diff options
author | Andreas Huber <andih@google.com> | 2012-11-29 14:27:59 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-11-29 14:27:59 -0800 |
commit | 2f6107ec8e67eea1f73b9558a5ad34caec52867f (patch) | |
tree | d14c5bad33fc76c96885250d73ad8172fad739c6 /media/libmedia | |
parent | 5ea87edbc97cd693fb7a9a8e00e712978315693c (diff) | |
parent | b64def9a555bfbf533a2da41ba0189b9842a76fb (diff) | |
download | frameworks_av-2f6107ec8e67eea1f73b9558a5ad34caec52867f.zip frameworks_av-2f6107ec8e67eea1f73b9558a5ad34caec52867f.tar.gz frameworks_av-2f6107ec8e67eea1f73b9558a5ad34caec52867f.tar.bz2 |
am b64def9a: Merge "[wfd] Support a low(er) power state by triggering PAUSE/RESUME." into jb-mr1.1-dev
* commit 'b64def9a555bfbf533a2da41ba0189b9842a76fb':
[wfd] Support a low(er) power state by triggering PAUSE/RESUME.
Diffstat (limited to 'media/libmedia')
-rw-r--r-- | media/libmedia/IRemoteDisplay.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/media/libmedia/IRemoteDisplay.cpp b/media/libmedia/IRemoteDisplay.cpp index da25a15..1e15434 100644 --- a/media/libmedia/IRemoteDisplay.cpp +++ b/media/libmedia/IRemoteDisplay.cpp @@ -23,6 +23,8 @@ namespace android { enum { DISPOSE = IBinder::FIRST_CALL_TRANSACTION, + PAUSE, + RESUME, }; class BpRemoteDisplay: public BpInterface<IRemoteDisplay> @@ -33,6 +35,20 @@ public: { } + virtual status_t pause() { + Parcel data, reply; + data.writeInterfaceToken(IRemoteDisplay::getInterfaceDescriptor()); + remote()->transact(PAUSE, data, &reply); + return reply.readInt32(); + } + + virtual status_t resume() { + Parcel data, reply; + data.writeInterfaceToken(IRemoteDisplay::getInterfaceDescriptor()); + remote()->transact(RESUME, data, &reply); + return reply.readInt32(); + } + status_t dispose() { Parcel data, reply; @@ -55,6 +71,21 @@ status_t BnRemoteDisplay::onTransact( reply->writeInt32(dispose()); return NO_ERROR; } + + case PAUSE: + { + CHECK_INTERFACE(IRemoteDisplay, data, reply); + reply->writeInt32(pause()); + return OK; + } + + case RESUME: + { + CHECK_INTERFACE(IRemoteDisplay, data, reply); + reply->writeInt32(resume()); + return OK; + } + default: return BBinder::onTransact(code, data, reply, flags); } |