summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-10-13 15:55:57 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-10-13 15:55:57 -0700
commit011b5bcc0355338b7ff906656282a54ffaa04b5a (patch)
tree9f6d7c04c957756d2ce6f87dceab45e135e7dff3 /libs
parent90d59d180bd963f00161e6bfaabfda432960cab6 (diff)
parent2d2b803a92ba531cf6c4bb7042326653255b8780 (diff)
Merge "implement part of [3094280] New animation for screen on and screen off add support for screen on animation" into gingerbread
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaceflinger_client/ISurfaceComposer.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/surfaceflinger_client/ISurfaceComposer.cpp b/libs/surfaceflinger_client/ISurfaceComposer.cpp
index d72561fd7b26..969ee79853d2 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);
}