summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-09-06 10:15:30 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-06 10:15:31 -0700
commit49c74da132fe42dd4d2066131f8f0e2df301c1dd (patch)
treeda319566144a2dfcc05d9551e1f889fa97c2f0bb /include
parente148910dfb3f69cdf1a078066724cb32b18e7b8a (diff)
parent455d02eca342d8159637af317a5d83219d267812 (diff)
downloadframeworks_av-49c74da132fe42dd4d2066131f8f0e2df301c1dd.zip
frameworks_av-49c74da132fe42dd4d2066131f8f0e2df301c1dd.tar.gz
frameworks_av-49c74da132fe42dd4d2066131f8f0e2df301c1dd.tar.bz2
Merge "Update remote display API." into jb-mr1-dev
Diffstat (limited to 'include')
-rw-r--r--include/media/IRemoteDisplay.h6
-rw-r--r--include/media/IRemoteDisplayClient.h7
2 files changed, 6 insertions, 7 deletions
diff --git a/include/media/IRemoteDisplay.h b/include/media/IRemoteDisplay.h
index f39286e..a61704e 100644
--- a/include/media/IRemoteDisplay.h
+++ b/include/media/IRemoteDisplay.h
@@ -39,10 +39,8 @@ class IRemoteDisplay : public IInterface
public:
DECLARE_META_INTERFACE(RemoteDisplay);
- // Disconnects the remote display.
- // The remote display should respond back to the IRemoteDisplayClient with an
- // onDisplayDisconnected() event when the disconnection is complete.
- virtual status_t disconnect() = 0;
+ // Disconnects the remote display and stops listening for new connections.
+ virtual status_t dispose() = 0;
};
diff --git a/include/media/IRemoteDisplayClient.h b/include/media/IRemoteDisplayClient.h
index 38a0c9a..553ad36 100644
--- a/include/media/IRemoteDisplayClient.h
+++ b/include/media/IRemoteDisplayClient.h
@@ -40,9 +40,9 @@ public:
enum {
// Error: An unknown / generic error occurred.
- kErrorUnknown = 0,
+ kDisplayErrorUnknown = 1,
// Error: The connection was dropped unexpectedly.
- kErrorConnectionDropped = 1,
+ kDisplayErrorConnectionDropped = 2,
};
// Indicates that the remote display has been connected successfully.
@@ -52,7 +52,8 @@ public:
uint32_t width, uint32_t height, uint32_t flags) = 0; // one-way
// Indicates that the remote display has been disconnected normally.
- // This method should only be called once the client has called 'disconnect()'.
+ // This method should only be called once the client has called 'dispose()'
+ // on the IRemoteDisplay.
// It is currently an error for the display to disconnect for any other reason.
virtual void onDisplayDisconnected() = 0; // one-way