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 | |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame^] | 28 | #include <surfaceflinger/ISurfaceComposer.h> |
| 29 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 30 | #include <ui/DisplayInfo.h> |
| 31 | |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame^] | 32 | #include <utils/Log.h> |
Mathias Agopian | 9cce325 | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 33 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 34 | // --------------------------------------------------------------------------- |
| 35 | |
| 36 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) |
| 37 | #define UNLIKELY( exp ) (__builtin_expect( (exp) != 0, false )) |
| 38 | |
| 39 | // --------------------------------------------------------------------------- |
| 40 | |
| 41 | namespace android { |
| 42 | |
| 43 | class BpSurfaceComposer : public BpInterface<ISurfaceComposer> |
| 44 | { |
| 45 | public: |
| 46 | BpSurfaceComposer(const sp<IBinder>& impl) |
| 47 | : BpInterface<ISurfaceComposer>(impl) |
| 48 | { |
| 49 | } |
| 50 | |
Mathias Agopian | 7e27f05 | 2010-05-28 14:22:23 -0700 | [diff] [blame] | 51 | virtual sp<ISurfaceComposerClient> createConnection() |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 52 | { |
| 53 | uint32_t n; |
| 54 | Parcel data, reply; |
| 55 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 56 | remote()->transact(BnSurfaceComposer::CREATE_CONNECTION, data, &reply); |
Mathias Agopian | 7e27f05 | 2010-05-28 14:22:23 -0700 | [diff] [blame] | 57 | return interface_cast<ISurfaceComposerClient>(reply.readStrongBinder()); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 58 | } |
| 59 | |
Mathias Agopian | b7e930d | 2010-06-01 15:12:58 -0700 | [diff] [blame] | 60 | virtual sp<ISurfaceComposerClient> createClientConnection() |
| 61 | { |
| 62 | uint32_t n; |
| 63 | Parcel data, reply; |
| 64 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 65 | remote()->transact(BnSurfaceComposer::CREATE_CLIENT_CONNECTION, data, &reply); |
| 66 | return interface_cast<ISurfaceComposerClient>(reply.readStrongBinder()); |
| 67 | } |
| 68 | |
Jamie Gennis | 9a78c90 | 2011-01-12 18:30:40 -0800 | [diff] [blame] | 69 | virtual sp<IGraphicBufferAlloc> createGraphicBufferAlloc() |
| 70 | { |
| 71 | uint32_t n; |
| 72 | Parcel data, reply; |
| 73 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 74 | remote()->transact(BnSurfaceComposer::CREATE_GRAPHIC_BUFFER_ALLOC, data, &reply); |
| 75 | return interface_cast<IGraphicBufferAlloc>(reply.readStrongBinder()); |
| 76 | } |
| 77 | |
Mathias Agopian | 7303c6b | 2009-07-02 18:11:53 -0700 | [diff] [blame] | 78 | virtual sp<IMemoryHeap> getCblk() const |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 79 | { |
| 80 | Parcel data, reply; |
| 81 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 82 | remote()->transact(BnSurfaceComposer::GET_CBLK, data, &reply); |
Mathias Agopian | 7303c6b | 2009-07-02 18:11:53 -0700 | [diff] [blame] | 83 | return interface_cast<IMemoryHeap>(reply.readStrongBinder()); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | virtual void openGlobalTransaction() |
| 87 | { |
| 88 | Parcel data, reply; |
| 89 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 90 | remote()->transact(BnSurfaceComposer::OPEN_GLOBAL_TRANSACTION, data, &reply); |
| 91 | } |
| 92 | |
| 93 | virtual void closeGlobalTransaction() |
| 94 | { |
| 95 | Parcel data, reply; |
| 96 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 97 | remote()->transact(BnSurfaceComposer::CLOSE_GLOBAL_TRANSACTION, data, &reply); |
| 98 | } |
| 99 | |
| 100 | virtual status_t freezeDisplay(DisplayID dpy, uint32_t flags) |
| 101 | { |
| 102 | Parcel data, reply; |
| 103 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 104 | data.writeInt32(dpy); |
| 105 | data.writeInt32(flags); |
| 106 | remote()->transact(BnSurfaceComposer::FREEZE_DISPLAY, data, &reply); |
| 107 | return reply.readInt32(); |
| 108 | } |
| 109 | |
| 110 | virtual status_t unfreezeDisplay(DisplayID dpy, uint32_t flags) |
| 111 | { |
| 112 | Parcel data, reply; |
| 113 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 114 | data.writeInt32(dpy); |
| 115 | data.writeInt32(flags); |
| 116 | remote()->transact(BnSurfaceComposer::UNFREEZE_DISPLAY, data, &reply); |
| 117 | return reply.readInt32(); |
| 118 | } |
| 119 | |
Mathias Agopian | c08731e | 2009-03-27 18:11:38 -0700 | [diff] [blame] | 120 | virtual int setOrientation(DisplayID dpy, int orientation, uint32_t flags) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 121 | { |
| 122 | Parcel data, reply; |
| 123 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 124 | data.writeInt32(dpy); |
| 125 | data.writeInt32(orientation); |
Mathias Agopian | c08731e | 2009-03-27 18:11:38 -0700 | [diff] [blame] | 126 | data.writeInt32(flags); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 127 | remote()->transact(BnSurfaceComposer::SET_ORIENTATION, data, &reply); |
| 128 | return reply.readInt32(); |
| 129 | } |
| 130 | |
| 131 | virtual void bootFinished() |
| 132 | { |
| 133 | Parcel data, reply; |
| 134 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 135 | remote()->transact(BnSurfaceComposer::BOOT_FINISHED, data, &reply); |
| 136 | } |
| 137 | |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 138 | virtual status_t captureScreen(DisplayID dpy, |
| 139 | sp<IMemoryHeap>* heap, |
Mathias Agopian | df85c45 | 2010-09-29 13:02:36 -0700 | [diff] [blame] | 140 | uint32_t* width, uint32_t* height, PixelFormat* format, |
Mathias Agopian | bf2c6a6 | 2010-12-10 16:22:31 -0800 | [diff] [blame] | 141 | uint32_t reqWidth, uint32_t reqHeight, |
| 142 | uint32_t minLayerZ, uint32_t maxLayerZ) |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 143 | { |
| 144 | Parcel data, reply; |
| 145 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 146 | data.writeInt32(dpy); |
Mathias Agopian | df85c45 | 2010-09-29 13:02:36 -0700 | [diff] [blame] | 147 | data.writeInt32(reqWidth); |
| 148 | data.writeInt32(reqHeight); |
Mathias Agopian | bf2c6a6 | 2010-12-10 16:22:31 -0800 | [diff] [blame] | 149 | data.writeInt32(minLayerZ); |
| 150 | data.writeInt32(maxLayerZ); |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 151 | remote()->transact(BnSurfaceComposer::CAPTURE_SCREEN, data, &reply); |
| 152 | *heap = interface_cast<IMemoryHeap>(reply.readStrongBinder()); |
| 153 | *width = reply.readInt32(); |
| 154 | *height = reply.readInt32(); |
| 155 | *format = reply.readInt32(); |
| 156 | return reply.readInt32(); |
| 157 | } |
| 158 | |
Mathias Agopian | 59119e6 | 2010-10-11 12:37:43 -0700 | [diff] [blame] | 159 | virtual status_t turnElectronBeamOff(int32_t mode) |
| 160 | { |
| 161 | Parcel data, reply; |
| 162 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 163 | data.writeInt32(mode); |
| 164 | remote()->transact(BnSurfaceComposer::TURN_ELECTRON_BEAM_OFF, data, &reply); |
| 165 | return reply.readInt32(); |
| 166 | } |
| 167 | |
Mathias Agopian | 9daa5c9 | 2010-10-12 16:05:48 -0700 | [diff] [blame] | 168 | virtual status_t turnElectronBeamOn(int32_t mode) |
| 169 | { |
| 170 | Parcel data, reply; |
| 171 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 172 | data.writeInt32(mode); |
| 173 | remote()->transact(BnSurfaceComposer::TURN_ELECTRON_BEAM_ON, data, &reply); |
| 174 | return reply.readInt32(); |
| 175 | } |
| 176 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 177 | virtual void signal() const |
| 178 | { |
| 179 | Parcel data, reply; |
| 180 | data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); |
| 181 | remote()->transact(BnSurfaceComposer::SIGNAL, data, &reply, IBinder::FLAG_ONEWAY); |
| 182 | } |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame^] | 183 | |
| 184 | virtual bool authenticateSurface(const sp<ISurface>& surface) const |
| 185 | { |
| 186 | Parcel data, reply; |
| 187 | int err = NO_ERROR; |
| 188 | err = data.writeInterfaceToken( |
| 189 | ISurfaceComposer::getInterfaceDescriptor()); |
| 190 | if (err != NO_ERROR) { |
| 191 | LOGE("ISurfaceComposer::authenticateSurface: error writing " |
| 192 | "interface descriptor: %s (%d)", strerror(-err), -err); |
| 193 | return false; |
| 194 | } |
| 195 | err = data.writeStrongBinder(surface->asBinder()); |
| 196 | if (err != NO_ERROR) { |
| 197 | LOGE("ISurfaceComposer::authenticateSurface: error writing strong " |
| 198 | "binder to parcel: %s (%d)", strerror(-err), -err); |
| 199 | return false; |
| 200 | } |
| 201 | err = remote()->transact(BnSurfaceComposer::AUTHENTICATE_SURFACE, data, |
| 202 | &reply); |
| 203 | if (err != NO_ERROR) { |
| 204 | LOGE("ISurfaceComposer::authenticateSurface: error performing " |
| 205 | "transaction: %s (%d)", strerror(-err), -err); |
| 206 | return false; |
| 207 | } |
| 208 | int32_t result = 0; |
| 209 | err = reply.readInt32(&result); |
| 210 | if (err != NO_ERROR) { |
| 211 | LOGE("ISurfaceComposer::authenticateSurface: error retrieving " |
| 212 | "result: %s (%d)", strerror(-err), -err); |
| 213 | return false; |
| 214 | } |
| 215 | return result != 0; |
| 216 | } |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 217 | }; |
| 218 | |
| 219 | IMPLEMENT_META_INTERFACE(SurfaceComposer, "android.ui.ISurfaceComposer"); |
| 220 | |
| 221 | // ---------------------------------------------------------------------- |
| 222 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 223 | status_t BnSurfaceComposer::onTransact( |
| 224 | uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) |
| 225 | { |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 226 | switch(code) { |
| 227 | case CREATE_CONNECTION: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 228 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 229 | sp<IBinder> b = createConnection()->asBinder(); |
| 230 | reply->writeStrongBinder(b); |
| 231 | } break; |
Mathias Agopian | b7e930d | 2010-06-01 15:12:58 -0700 | [diff] [blame] | 232 | case CREATE_CLIENT_CONNECTION: { |
| 233 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 234 | sp<IBinder> b = createClientConnection()->asBinder(); |
| 235 | reply->writeStrongBinder(b); |
| 236 | } break; |
Jamie Gennis | 9a78c90 | 2011-01-12 18:30:40 -0800 | [diff] [blame] | 237 | case CREATE_GRAPHIC_BUFFER_ALLOC: { |
| 238 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 239 | sp<IBinder> b = createGraphicBufferAlloc()->asBinder(); |
| 240 | reply->writeStrongBinder(b); |
| 241 | } break; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 242 | case OPEN_GLOBAL_TRANSACTION: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 243 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 244 | openGlobalTransaction(); |
| 245 | } break; |
| 246 | case CLOSE_GLOBAL_TRANSACTION: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 247 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 248 | closeGlobalTransaction(); |
| 249 | } break; |
| 250 | case SET_ORIENTATION: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 251 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 252 | DisplayID dpy = data.readInt32(); |
| 253 | int orientation = data.readInt32(); |
Mathias Agopian | c08731e | 2009-03-27 18:11:38 -0700 | [diff] [blame] | 254 | uint32_t flags = data.readInt32(); |
| 255 | reply->writeInt32( setOrientation(dpy, orientation, flags) ); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 256 | } break; |
| 257 | case FREEZE_DISPLAY: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 258 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 259 | DisplayID dpy = data.readInt32(); |
| 260 | uint32_t flags = data.readInt32(); |
| 261 | reply->writeInt32( freezeDisplay(dpy, flags) ); |
| 262 | } break; |
| 263 | case UNFREEZE_DISPLAY: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 264 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 265 | DisplayID dpy = data.readInt32(); |
| 266 | uint32_t flags = data.readInt32(); |
| 267 | reply->writeInt32( unfreezeDisplay(dpy, flags) ); |
| 268 | } break; |
| 269 | case BOOT_FINISHED: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 270 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 271 | bootFinished(); |
| 272 | } break; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 273 | case SIGNAL: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 274 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 275 | signal(); |
| 276 | } break; |
| 277 | case GET_CBLK: { |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 278 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 279 | sp<IBinder> b = getCblk()->asBinder(); |
| 280 | reply->writeStrongBinder(b); |
| 281 | } break; |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 282 | case CAPTURE_SCREEN: { |
| 283 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 284 | DisplayID dpy = data.readInt32(); |
Mathias Agopian | df85c45 | 2010-09-29 13:02:36 -0700 | [diff] [blame] | 285 | uint32_t reqWidth = data.readInt32(); |
| 286 | uint32_t reqHeight = data.readInt32(); |
Mathias Agopian | bf2c6a6 | 2010-12-10 16:22:31 -0800 | [diff] [blame] | 287 | uint32_t minLayerZ = data.readInt32(); |
| 288 | uint32_t maxLayerZ = data.readInt32(); |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 289 | sp<IMemoryHeap> heap; |
| 290 | uint32_t w, h; |
| 291 | PixelFormat f; |
Mathias Agopian | df85c45 | 2010-09-29 13:02:36 -0700 | [diff] [blame] | 292 | status_t res = captureScreen(dpy, &heap, &w, &h, &f, |
Mathias Agopian | bf2c6a6 | 2010-12-10 16:22:31 -0800 | [diff] [blame] | 293 | reqWidth, reqHeight, minLayerZ, maxLayerZ); |
Mathias Agopian | 1b0b30d | 2010-09-24 11:26:58 -0700 | [diff] [blame] | 294 | reply->writeStrongBinder(heap->asBinder()); |
| 295 | reply->writeInt32(w); |
| 296 | reply->writeInt32(h); |
| 297 | reply->writeInt32(f); |
| 298 | reply->writeInt32(res); |
| 299 | } break; |
Mathias Agopian | 59119e6 | 2010-10-11 12:37:43 -0700 | [diff] [blame] | 300 | case TURN_ELECTRON_BEAM_OFF: { |
| 301 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 302 | int32_t mode = data.readInt32(); |
| 303 | status_t res = turnElectronBeamOff(mode); |
| 304 | reply->writeInt32(res); |
Jamie Gennis | 151f2f5 | 2010-12-20 11:05:18 -0800 | [diff] [blame] | 305 | } break; |
Mathias Agopian | 9daa5c9 | 2010-10-12 16:05:48 -0700 | [diff] [blame] | 306 | case TURN_ELECTRON_BEAM_ON: { |
| 307 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 308 | int32_t mode = data.readInt32(); |
| 309 | status_t res = turnElectronBeamOn(mode); |
| 310 | reply->writeInt32(res); |
Jamie Gennis | 151f2f5 | 2010-12-20 11:05:18 -0800 | [diff] [blame] | 311 | } break; |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame^] | 312 | case AUTHENTICATE_SURFACE: { |
| 313 | CHECK_INTERFACE(ISurfaceComposer, data, reply); |
| 314 | sp<ISurface> surface = interface_cast<ISurface>(data.readStrongBinder()); |
| 315 | int32_t result = authenticateSurface(surface) ? 1 : 0; |
| 316 | reply->writeInt32(result); |
| 317 | } break; |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 318 | default: |
Mathias Agopian | 83c0446 | 2009-05-22 19:00:22 -0700 | [diff] [blame] | 319 | return BBinder::onTransact(code, data, reply, flags); |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 320 | } |
| 321 | return NO_ERROR; |
| 322 | } |
| 323 | |
| 324 | // ---------------------------------------------------------------------------- |
| 325 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 326 | }; |