diff options
author | Mathias Agopian <mathias@google.com> | 2010-10-12 16:05:48 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-10-13 14:28:26 -0700 |
commit | 9daa5c9b9dd286cbbf5d43f7e45a5e9e4048e855 (patch) | |
tree | e8998b2916314f74f69231ca54ab93e2af5c11ef /libs | |
parent | 137ef22cef9a78b2e3672d6124967112d4bae1ef (diff) | |
download | frameworks_native-9daa5c9b9dd286cbbf5d43f7e45a5e9e4048e855.zip frameworks_native-9daa5c9b9dd286cbbf5d43f7e45a5e9e4048e855.tar.gz frameworks_native-9daa5c9b9dd286cbbf5d43f7e45a5e9e4048e855.tar.bz2 |
implement part of [3094280] New animation for screen on and screen off
add support for screen on animation
Change-Id: If50cf52ae04b95b42da7d74cf7fa96d5cb54d238
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaceflinger_client/ISurfaceComposer.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/surfaceflinger_client/ISurfaceComposer.cpp b/libs/surfaceflinger_client/ISurfaceComposer.cpp index d72561f..969ee79 100644 --- a/libs/surfaceflinger_client/ISurfaceComposer.cpp +++ b/libs/surfaceflinger_client/ISurfaceComposer.cpp @@ -151,6 +151,15 @@ public: return reply.readInt32(); } + virtual status_t turnElectronBeamOn(int32_t mode) + { + Parcel data, reply; + data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); + data.writeInt32(mode); + remote()->transact(BnSurfaceComposer::TURN_ELECTRON_BEAM_ON, data, &reply); + return reply.readInt32(); + } + virtual void signal() const { Parcel data, reply; @@ -239,6 +248,12 @@ status_t BnSurfaceComposer::onTransact( status_t res = turnElectronBeamOff(mode); reply->writeInt32(res); } + case TURN_ELECTRON_BEAM_ON: { + CHECK_INTERFACE(ISurfaceComposer, data, reply); + int32_t mode = data.readInt32(); + status_t res = turnElectronBeamOn(mode); + reply->writeInt32(res); + } default: return BBinder::onTransact(code, data, reply, flags); } |