OSDN Git Service

Enhance Visualizer behavior in the case of mediaserver death.
authorJohn Grossman <johngro@google.com>
Wed, 11 Jan 2012 20:23:42 +0000 (12:23 -0800)
committerJohn Grossman <johngro@google.com>
Thu, 12 Jan 2012 22:36:16 +0000 (14:36 -0800)
commit4a9eb9628be8fdc441179394b7edca9bdce23ed3
tree6664d5fcb31273378375c3967e81b78b85a6eb29
parent3c4551107ba2e11d3e4573113d337e2fc5ff4c0f
Enhance Visualizer behavior in the case of mediaserver death.

Bring the Visualizer class into line with the SDK documentation by
returning ERROR_DEAD_OBJECT instead of ERROR_INVALID_OPERATION when
the Visualizer loses its binder connection to the mediaserver because
of a mediaserver restart.

Also add a new callback interface to allow clients to be
asynchronously notified in the case of server death.  Right now, the
interface definition and the registration method are flagged as hidden
pending API council review/approval.

See http://b/issue?id=5717519 for details.

Change-Id: Id428fb946d6d7676bffd2a597366e8444ebe24f2
Signed-off-by: John Grossman <johngro@google.com>
media/libmedia/AudioEffect.cpp
media/libmedia/IEffect.cpp
media/libmedia/Visualizer.cpp