The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | // tag as surfaceflinger |
| 18 | #define LOG_TAG "SurfaceFlinger" |
| 19 | |
| 20 | #include <stdint.h> |
| 21 | #include <sys/types.h> |
| 22 | |
Mathias Agopian | c5b2c0b | 2009-05-19 19:08:10 -0700 | [diff] [blame] | 23 | #include <binder/Parcel.h> |
| 24 | #include <binder/IMemory.h> |
| 25 | #include <binder/IPCThreadState.h> |
| 26 | #include <binder/IServiceManager.h> |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 27 | |
Mathias Agopian | d0566bc | 2011-11-17 17:49:17 -0800 | [diff] [blame] | 28 | #include <gui/BitTube.h> |
| 29 | #include <gui/IDisplayEventConnection.h> |
Mathias Agopian | 90ac799 | 2012-02-25 18:48:35 -0800 | [diff] [blame] | 30 | #include <gui/ISurfaceComposer.h> |
| 31 | #include <gui/ISurfaceTexture.h> |
| 32 | |
| 33 | #include <private/gui/LayerState.h> |
Mathias Agopian | d0566bc | 2011-11-17 17:49:17 -0800 | [diff] [blame] | 34 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 35 | #include <ui/DisplayInfo.h> |
| 36 | |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 37 | #include <utils/Log.h> |
Mathias Agopian | 9cce325 | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 38 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 39 | // --------------------------------------------------------------------------- |
| 40 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 41 | namespace android { |
| 42 | |
Mathias Agopian | d0566bc | 2011-11-17 17:49:17 -0800 | [diff] [blame] | 43 | class IDisplayEventConnection; |
| 44 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 45 | class BpSurfaceComposer : public BpInterface<ISurfaceComposer> |
| 46 | { |
| 47 | public: |
| 48 | BpSurfaceComposer(const sp<IBinder>& impl) |
| 49 | : BpInterface<ISurfaceComposer>(impl) |
| 50 | { |
| 51 | } |
| 52 | |
Mathias Agopian | 7e27f05 | 2010-05-28 14:22:23 -0700 | [diff] [blame] | 53 | virtual sp<ISurfaceComposerClient> createConnection() |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 54 | { |
| 55 | uint32_t n; |
| 56 | Parcel data, reply; |
| 57 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 58 | remote()->transact(BnSurfaceComposer::CREATE_CONNECTION, data, &reply); |
Mathias Agopian | 7e27f05 | 2010-05-28 14:22:23 -0700 | [diff] [blame] | 59 | return interface_cast<ISurfaceComposerClient>(reply.readStrongBinder()); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 60 | } |
| 61 | |
Jamie Gennis | 9a78c90 | 2011-01-12 18:30:40 -0800 | [diff] [blame] | 62 | virtual sp<IGraphicBufferAlloc> createGraphicBufferAlloc() |
| 63 | { |
| 64 | uint32_t n; |
| 65 | Parcel data, reply; |
| 66 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 67 | remote()->transact(BnSurfaceComposer::CREATE_GRAPHIC_BUFFER_ALLOC, data, &reply); |
| 68 | return interface_cast<IGraphicBufferAlloc>(reply.readStrongBinder()); |
| 69 | } |
| 70 | |
Mathias Agopian | 7303c6b | 2009-07-02 18:11:53 -0700 | [diff] [blame] | 71 | virtual sp<IMemoryHeap> getCblk() const |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 72 | { |
| 73 | Parcel data, reply; |
| 74 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 75 | remote()->transact(BnSurfaceComposer::GET_CBLK, data, &reply); |
Mathias Agopian | 7303c6b | 2009-07-02 18:11:53 -0700 | [diff] [blame] | 76 | return interface_cast<IMemoryHeap>(reply.readStrongBinder()); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 77 | } |
| 78 | |
Jamie Gennis | b8d69a5 | 2011-10-10 15:48:06 -0700 | [diff] [blame] | 79 | virtual void setTransactionState(const Vector<ComposerState>& state, |
Jamie Gennis | 2837839 | 2011-10-12 17:39:00 -0700 | [diff] [blame] | 80 | int orientation, uint32_t flags) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 81 | { |
| 82 | Parcel data, reply; |
| 83 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
Mathias Agopian | 698c087 | 2011-06-28 19:09:31 -0700 | [diff] [blame] | 84 | Vector<ComposerState>::const_iterator b(state.begin()); |
| 85 | Vector<ComposerState>::const_iterator e(state.end()); |
| 86 | data.writeInt32(state.size()); |
| 87 | for ( ; b != e ; ++b ) { |
| 88 | b->write(data); |
| 89 | } |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 90 | data.writeInt32(orientation); |
Jamie Gennis | 2837839 | 2011-10-12 17:39:00 -0700 | [diff] [blame] | 91 | data.writeInt32(flags); |
Jamie Gennis | b8d69a5 | 2011-10-10 15:48:06 -0700 | [diff] [blame] | 92 | remote()->transact(BnSurfaceComposer::SET_TRANSACTION_STATE, data, &reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 93 | } |
| 94 | |
| 95 | virtual void bootFinished() |
| 96 | { |
| 97 | Parcel data, reply; |
| 98 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 99 | remote()->transact(BnSurfaceComposer::BOOT_FINISHED, data, &reply); |
| 100 | } |
| 101 | |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 102 | virtual status_t captureScreen(DisplayID dpy, |
| 103 | sp<IMemoryHeap>* heap, |
Mathias Agopian | df85c45 | 2010-09-29 13:02:36 -0700 | [diff] [blame] | 104 | uint32_t* width, uint32_t* height, PixelFormat* format, |
Mathias Agopian | bf2c6a6 | 2010-12-10 16:22:31 -0800 | [diff] [blame] | 105 | uint32_t reqWidth, uint32_t reqHeight, |
| 106 | uint32_t minLayerZ, uint32_t maxLayerZ) |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 107 | { |
| 108 | Parcel data, reply; |
| 109 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 110 | data.writeInt32(dpy); |
Mathias Agopian | df85c45 | 2010-09-29 13:02:36 -0700 | [diff] [blame] | 111 | data.writeInt32(reqWidth); |
| 112 | data.writeInt32(reqHeight); |
Mathias Agopian | bf2c6a6 | 2010-12-10 16:22:31 -0800 | [diff] [blame] | 113 | data.writeInt32(minLayerZ); |
| 114 | data.writeInt32(maxLayerZ); |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 115 | remote()->transact(BnSurfaceComposer::CAPTURE_SCREEN, data, &reply); |
| 116 | *heap = interface_cast<IMemoryHeap>(reply.readStrongBinder()); |
| 117 | *width = reply.readInt32(); |
| 118 | *height = reply.readInt32(); |
| 119 | *format = reply.readInt32(); |
| 120 | return reply.readInt32(); |
| 121 | } |
| 122 | |
Mathias Agopian | 59119e6 | 2010-10-11 12:37:43 -0700 | [diff] [blame] | 123 | virtual status_t turnElectronBeamOff(int32_t mode) |
| 124 | { |
| 125 | Parcel data, reply; |
| 126 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 127 | data.writeInt32(mode); |
| 128 | remote()->transact(BnSurfaceComposer::TURN_ELECTRON_BEAM_OFF, data, &reply); |
| 129 | return reply.readInt32(); |
| 130 | } |
| 131 | |
Mathias Agopian | 9daa5c9 | 2010-10-12 16:05:48 -0700 | [diff] [blame] | 132 | virtual status_t turnElectronBeamOn(int32_t mode) |
| 133 | { |
| 134 | Parcel data, reply; |
| 135 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 136 | data.writeInt32(mode); |
| 137 | remote()->transact(BnSurfaceComposer::TURN_ELECTRON_BEAM_ON, data, &reply); |
| 138 | return reply.readInt32(); |
| 139 | } |
| 140 | |
Jamie Gennis | 582270d | 2011-08-17 18:19:00 -0700 | [diff] [blame] | 141 | virtual bool authenticateSurfaceTexture( |
| 142 | const sp<ISurfaceTexture>& surfaceTexture) const |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 143 | { |
| 144 | Parcel data, reply; |
| 145 | int err = NO_ERROR; |
| 146 | err = data.writeInterfaceToken( |
| 147 | ISurfaceComposer::getInterfaceDescriptor()); |
| 148 | if (err != NO_ERROR) { |
Steve Block | e6f43dd | 2012-01-06 19:20:56 +0000 | [diff] [blame] | 149 | ALOGE("ISurfaceComposer::authenticateSurfaceTexture: error writing " |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 150 | "interface descriptor: %s (%d)", strerror(-err), -err); |
| 151 | return false; |
| 152 | } |
Jamie Gennis | 582270d | 2011-08-17 18:19:00 -0700 | [diff] [blame] | 153 | err = data.writeStrongBinder(surfaceTexture->asBinder()); |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 154 | if (err != NO_ERROR) { |
Steve Block | e6f43dd | 2012-01-06 19:20:56 +0000 | [diff] [blame] | 155 | ALOGE("ISurfaceComposer::authenticateSurfaceTexture: error writing " |
Jamie Gennis | 582270d | 2011-08-17 18:19:00 -0700 | [diff] [blame] | 156 | "strong binder to parcel: %s (%d)", strerror(-err), -err); |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 157 | return false; |
| 158 | } |
| 159 | err = remote()->transact(BnSurfaceComposer::AUTHENTICATE_SURFACE, data, |
| 160 | &reply); |
| 161 | if (err != NO_ERROR) { |
Steve Block | e6f43dd | 2012-01-06 19:20:56 +0000 | [diff] [blame] | 162 | ALOGE("ISurfaceComposer::authenticateSurfaceTexture: error " |
Jamie Gennis | 582270d | 2011-08-17 18:19:00 -0700 | [diff] [blame] | 163 | "performing transaction: %s (%d)", strerror(-err), -err); |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 164 | return false; |
| 165 | } |
| 166 | int32_t result = 0; |
| 167 | err = reply.readInt32(&result); |
| 168 | if (err != NO_ERROR) { |
Steve Block | e6f43dd | 2012-01-06 19:20:56 +0000 | [diff] [blame] | 169 | ALOGE("ISurfaceComposer::authenticateSurfaceTexture: error " |
Jamie Gennis | 582270d | 2011-08-17 18:19:00 -0700 | [diff] [blame] | 170 | "retrieving result: %s (%d)", strerror(-err), -err); |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 171 | return false; |
| 172 | } |
| 173 | return result != 0; |
| 174 | } |
Mathias Agopian | d0566bc | 2011-11-17 17:49:17 -0800 | [diff] [blame] | 175 | |
| 176 | virtual sp<IDisplayEventConnection> createDisplayEventConnection() |
| 177 | { |
| 178 | Parcel data, reply; |
| 179 | sp<IDisplayEventConnection> result; |
| 180 | int err = data.writeInterfaceToken( |
| 181 | ISurfaceComposer::getInterfaceDescriptor()); |
| 182 | if (err != NO_ERROR) { |
| 183 | return result; |
| 184 | } |
| 185 | err = remote()->transact( |
| 186 | BnSurfaceComposer::CREATE_DISPLAY_EVENT_CONNECTION, |
| 187 | data, &reply); |
| 188 | if (err != NO_ERROR) { |
Steve Block | e6f43dd | 2012-01-06 19:20:56 +0000 | [diff] [blame] | 189 | ALOGE("ISurfaceComposer::createDisplayEventConnection: error performing " |
Mathias Agopian | d0566bc | 2011-11-17 17:49:17 -0800 | [diff] [blame] | 190 | "transaction: %s (%d)", strerror(-err), -err); |
| 191 | return result; |
| 192 | } |
| 193 | result = interface_cast<IDisplayEventConnection>(reply.readStrongBinder()); |
| 194 | return result; |
| 195 | } |
Colin Cross | 8e53306 | 2012-06-07 13:17:52 -0700 | [diff] [blame] | 196 | |
| 197 | virtual void blank() |
| 198 | { |
| 199 | Parcel data, reply; |
| 200 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 201 | remote()->transact(BnSurfaceComposer::BLANK, data, &reply); |
| 202 | } |
| 203 | |
| 204 | virtual void unblank() |
| 205 | { |
| 206 | Parcel data, reply; |
| 207 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 208 | remote()->transact(BnSurfaceComposer::UNBLANK, data, &reply); |
| 209 | } |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 210 | }; |
| 211 | |
| 212 | IMPLEMENT_META_INTERFACE(SurfaceComposer, "android.ui.ISurfaceComposer"); |
| 213 | |
| 214 | // ---------------------------------------------------------------------- |
| 215 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 216 | status_t BnSurfaceComposer::onTransact( |
| 217 | uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) |
| 218 | { |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 219 | switch(code) { |
| 220 | case CREATE_CONNECTION: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 221 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 222 | sp<IBinder> b = createConnection()->asBinder(); |
| 223 | reply->writeStrongBinder(b); |
| 224 | } break; |
Jamie Gennis | 9a78c90 | 2011-01-12 18:30:40 -0800 | [diff] [blame] | 225 | case CREATE_GRAPHIC_BUFFER_ALLOC: { |
| 226 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 227 | sp<IBinder> b = createGraphicBufferAlloc()->asBinder(); |
| 228 | reply->writeStrongBinder(b); |
| 229 | } break; |
Mathias Agopian | 698c087 | 2011-06-28 19:09:31 -0700 | [diff] [blame] | 230 | case SET_TRANSACTION_STATE: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 231 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
Mathias Agopian | 698c087 | 2011-06-28 19:09:31 -0700 | [diff] [blame] | 232 | size_t count = data.readInt32(); |
| 233 | ComposerState s; |
| 234 | Vector<ComposerState> state; |
| 235 | state.setCapacity(count); |
| 236 | for (size_t i=0 ; i<count ; i++) { |
| 237 | s.read(data); |
| 238 | state.add(s); |
| 239 | } |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 240 | int orientation = data.readInt32(); |
Jamie Gennis | 2837839 | 2011-10-12 17:39:00 -0700 | [diff] [blame] | 241 | uint32_t flags = data.readInt32(); |
| 242 | setTransactionState(state, orientation, flags); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 243 | } break; |
| 244 | case BOOT_FINISHED: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 245 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 246 | bootFinished(); |
| 247 | } break; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 248 | case GET_CBLK: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 249 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 250 | sp<IBinder> b = getCblk()->asBinder(); |
| 251 | reply->writeStrongBinder(b); |
| 252 | } break; |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 253 | case CAPTURE_SCREEN: { |
| 254 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 255 | DisplayID dpy = data.readInt32(); |
Mathias Agopian | df85c45 | 2010-09-29 13:02:36 -0700 | [diff] [blame] | 256 | uint32_t reqWidth = data.readInt32(); |
| 257 | uint32_t reqHeight = data.readInt32(); |
Mathias Agopian | bf2c6a6 | 2010-12-10 16:22:31 -0800 | [diff] [blame] | 258 | uint32_t minLayerZ = data.readInt32(); |
| 259 | uint32_t maxLayerZ = data.readInt32(); |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 260 | sp<IMemoryHeap> heap; |
| 261 | uint32_t w, h; |
| 262 | PixelFormat f; |
Mathias Agopian | df85c45 | 2010-09-29 13:02:36 -0700 | [diff] [blame] | 263 | status_t res = captureScreen(dpy, &heap, &w, &h, &f, |
Mathias Agopian | bf2c6a6 | 2010-12-10 16:22:31 -0800 | [diff] [blame] | 264 | reqWidth, reqHeight, minLayerZ, maxLayerZ); |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 265 | reply->writeStrongBinder(heap->asBinder()); |
| 266 | reply->writeInt32(w); |
| 267 | reply->writeInt32(h); |
| 268 | reply->writeInt32(f); |
| 269 | reply->writeInt32(res); |
| 270 | } break; |
Mathias Agopian | 59119e6 | 2010-10-11 12:37:43 -0700 | [diff] [blame] | 271 | case TURN_ELECTRON_BEAM_OFF: { |
| 272 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 273 | int32_t mode = data.readInt32(); |
| 274 | status_t res = turnElectronBeamOff(mode); |
| 275 | reply->writeInt32(res); |
Jamie Gennis | 151f2f5 | 2010-12-20 11:05:18 -0800 | [diff] [blame] | 276 | } break; |
Mathias Agopian | 9daa5c9 | 2010-10-12 16:05:48 -0700 | [diff] [blame] | 277 | case TURN_ELECTRON_BEAM_ON: { |
| 278 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 279 | int32_t mode = data.readInt32(); |
| 280 | status_t res = turnElectronBeamOn(mode); |
| 281 | reply->writeInt32(res); |
Jamie Gennis | 151f2f5 | 2010-12-20 11:05:18 -0800 | [diff] [blame] | 282 | } break; |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 283 | case AUTHENTICATE_SURFACE: { |
| 284 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
Jamie Gennis | 582270d | 2011-08-17 18:19:00 -0700 | [diff] [blame] | 285 | sp<ISurfaceTexture> surfaceTexture = |
| 286 | interface_cast<ISurfaceTexture>(data.readStrongBinder()); |
| 287 | int32_t result = authenticateSurfaceTexture(surfaceTexture) ? 1 : 0; |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 288 | reply->writeInt32(result); |
| 289 | } break; |
Mathias Agopian | d0566bc | 2011-11-17 17:49:17 -0800 | [diff] [blame] | 290 | case CREATE_DISPLAY_EVENT_CONNECTION: { |
| 291 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 292 | sp<IDisplayEventConnection> connection(createDisplayEventConnection()); |
| 293 | reply->writeStrongBinder(connection->asBinder()); |
| 294 | return NO_ERROR; |
| 295 | } break; |
Colin Cross | 8e53306 | 2012-06-07 13:17:52 -0700 | [diff] [blame] | 296 | case BLANK: { |
| 297 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 298 | blank(); |
| 299 | } break; |
| 300 | case UNBLANK: { |
| 301 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 302 | unblank(); |
| 303 | } break; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 304 | default: |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 305 | return BBinder::onTransact(code, data, reply, flags); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 306 | } |
| 307 | return NO_ERROR; |
| 308 | } |
| 309 | |
| 310 | // ---------------------------------------------------------------------------- |
| 311 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 312 | }; |