summaryrefslogtreecommitdiffstats
path: root/include/media/IRemoteDisplayClient.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-09-05 17:48:03 -0700
committerJeff Brown <jeffbrown@google.com>2012-09-05 17:48:03 -0700
commit455d02eca342d8159637af317a5d83219d267812 (patch)
tree2c8a516e25ac9866d681021cd138b582a9f76bba /include/media/IRemoteDisplayClient.h
parent0b73d4730202fcad53aefc4314a06e7b95f442f0 (diff)
downloadframeworks_av-455d02eca342d8159637af317a5d83219d267812.zip
frameworks_av-455d02eca342d8159637af317a5d83219d267812.tar.gz
frameworks_av-455d02eca342d8159637af317a5d83219d267812.tar.bz2
Update remote display API.
Renamed disconnect() to dispose() to emphasize the fact that this method is intended to clean up the IRemoteDisplay completely, not just temporarily disconnect the current client (which might be useful someday). Other minor tweaks. Change-Id: I1209639eb0cd8af09c724206642d7e52aab48257
Diffstat (limited to 'include/media/IRemoteDisplayClient.h')
-rw-r--r--include/media/IRemoteDisplayClient.h7
1 files changed, 4 insertions, 3 deletions
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