/frameworks/base/core/jni/ |
D | android_database_SQLiteDatabase.cpp | 100 sqlite3 * handle = NULL; in dbopen() local 117 err = sqlite3_open_v2(path8, &handle, sqliteFlags, NULL); in dbopen() 120 throw_sqlite3_exception(env, handle); in dbopen() 130 err = sqlite3_busy_timeout(handle, 1000 /* ms */); in dbopen() 133 throw_sqlite3_exception(env, handle); in dbopen() 139 err = sqlite3_prepare_v2(handle, integritySql, -1, &statement, NULL); in dbopen() 142 throw_sqlite3_exception(env, handle); in dbopen() 150 throw_sqlite3_exception(env, handle); in dbopen() 162 err = register_android_functions(handle, UTF16_STORAGE); in dbopen() 164 throw_sqlite3_exception(env, handle); in dbopen() [all …]
|
D | android_app_NativeActivity.cpp | 641 void* handle = dlopen(pathStr, RTLD_LAZY); in loadNativeCode_native() local 645 if (handle != NULL) { in loadNativeCode_native() 647 code = new NativeCode(handle, (ANativeActivity_createFunc*) in loadNativeCode_native() 648 dlsym(handle, funcStr)); in loadNativeCode_native() 721 unloadNativeCode_native(JNIEnv* env, jobject clazz, jint handle) in unloadNativeCode_native() argument 724 if (handle != 0) { in unloadNativeCode_native() 725 NativeCode* code = (NativeCode*)handle; in unloadNativeCode_native() 731 onStart_native(JNIEnv* env, jobject clazz, jint handle) in onStart_native() argument 734 if (handle != 0) { in onStart_native() 735 NativeCode* code = (NativeCode*)handle; in onStart_native() [all …]
|
D | android_database_SQLiteStatement.cpp | 39 sqlite3 * handle, jstring sqlString); 54 sqlite3 * handle = GET_HANDLE(env, object); in native_execute() local 62 throw_sqlite3_exception_errcode(env, err, sqlite3_errmsg(handle)); in native_execute() 72 sqlite3 * handle = GET_HANDLE(env, object); in native_1x1_long() local 84 throw_sqlite3_exception_errcode(env, err, sqlite3_errmsg(handle)); in native_1x1_long() 96 sqlite3 * handle = GET_HANDLE(env, object); in native_1x1_string() local 109 throw_sqlite3_exception_errcode(env, err, sqlite3_errmsg(handle)); in native_1x1_string()
|
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
D | drm_rights_manager.c | 22 static int32_t drm_getString(uint8_t* string, int32_t len, int32_t handle) in drm_getString() argument 27 if (DRM_FILE_FAILURE == DRM_file_read(handle, &string[i], 1)) in drm_getString() 37 static int32_t drm_putString(uint8_t* string, int32_t handle) in drm_putString() argument 44 if (DRM_FILE_FAILURE == DRM_file_write(handle, &string[i], 1)) in drm_putString() 60 int32_t handle; in drm_writeToUidTxt() local 77 &handle); in drm_writeToUidTxt() 82 &handle); in drm_writeToUidTxt() 83 DRM_file_write(handle, (uint8_t *)"0\n", 2); in drm_writeToUidTxt() 84 DRM_file_close(handle); in drm_writeToUidTxt() 88 &handle); in drm_writeToUidTxt() [all …]
|
D | drm_file.c | 492 int32_t* handle) in DRM_file_open() argument 525 *handle = res; in DRM_file_open() 532 DRM_file_read(int32_t handle, uint8_t* dst, int32_t length) in DRM_file_read() argument 540 n = read((int)handle, dst, (size_t)length); in DRM_file_read() 543 Trace("DRM_file_read handle=%d read %d bytes", handle, n); in DRM_file_read() 548 Trace("DRM_file_read read EOF: handle=%d", handle); in DRM_file_read() 553 Trace("DRM_file_read failed handle=%d, errno=%d", handle, errno); in DRM_file_read() 560 DRM_file_write(int32_t handle, const uint8_t* src, int32_t length) in DRM_file_write() argument 574 if ( -1 == fstat((int)handle, &sbuf) ) in DRM_file_write() 580 prevPos = lseek( (int)handle, 0, SEEK_CUR); in DRM_file_write() [all …]
|
/frameworks/base/libs/ui/ |
D | GraphicBuffer.cpp | 49 handle = NULL; in GraphicBuffer() 63 handle = NULL; in GraphicBuffer() 80 handle = inHandle; in GraphicBuffer() 85 if (handle) { in ~GraphicBuffer() 93 native_handle_close(handle); in free_handle() 94 native_handle_delete(const_cast<native_handle*>(handle)); in free_handle() 97 allocator.free(handle); in free_handle() 122 if (handle && w==width && h==height && f==format && reqUsage==usage) in reallocate() 125 if (handle) { in reallocate() 127 allocator.free(handle); in reallocate() [all …]
|
D | GraphicBufferMapper.cpp | 57 status_t GraphicBufferMapper::registerBuffer(buffer_handle_t handle) in registerBuffer() argument 60 if (sw_gralloc_handle_t::validate(handle) < 0) { in registerBuffer() 61 err = mAllocMod->registerBuffer(mAllocMod, handle); in registerBuffer() 63 err = sw_gralloc_handle_t::registerBuffer((sw_gralloc_handle_t*)handle); in registerBuffer() 66 handle, err, strerror(-err)); in registerBuffer() 70 status_t GraphicBufferMapper::unregisterBuffer(buffer_handle_t handle) in unregisterBuffer() argument 73 if (sw_gralloc_handle_t::validate(handle) < 0) { in unregisterBuffer() 74 err = mAllocMod->unregisterBuffer(mAllocMod, handle); in unregisterBuffer() 76 err = sw_gralloc_handle_t::unregisterBuffer((sw_gralloc_handle_t*)handle); in unregisterBuffer() 79 handle, err, strerror(-err)); in unregisterBuffer() [all …]
|
D | GraphicBufferAllocator.cpp | 84 int usage, buffer_handle_t* handle, int32_t* stride) in alloc() argument 95 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); in alloc() 97 err = sw_gralloc_handle_t::alloc(w, h, format, usage, handle, stride); in alloc() 113 list.add(*handle, rec); in alloc() 119 status_t GraphicBufferAllocator::free(buffer_handle_t handle) in free() argument 122 if (sw_gralloc_handle_t::validate(handle) < 0) { in free() 123 err = mAllocDev->free(mAllocDev, handle); in free() 125 err = sw_gralloc_handle_t::free((sw_gralloc_handle_t*)handle); in free() 132 list.removeItem(handle); in free()
|
/frameworks/base/services/sensorservice/ |
D | SensorDevice.cpp | 51 status_t noteStartSensor(int uid, int handle) { in noteStartSensor() argument 55 data.writeInt32(handle); in noteStartSensor() 62 status_t noteStopSensor(int uid, int handle) { in noteStopSensor() argument 66 data.writeInt32(handle); in noteStopSensor() 74 void enableSensor(int handle) { in enableSensor() argument 78 noteStartSensor(uid, handle); in enableSensor() 82 void disableSensor(int handle) { in disableSensor() argument 86 noteStopSensor(uid, handle); in disableSensor() 122 mActivationCount.add(list[i].handle, model); in ANDROID_SINGLETON_STATIC_INSTANCE() 123 mSensorDevice->activate(mSensorDevice, list[i].handle, 0); in ANDROID_SINGLETON_STATIC_INSTANCE() [all …]
|
D | SensorService.cpp | 153 int handle = mActiveSensors.keyAt(i); in dump() local 155 getSensorName(handle).string(), in dump() 156 handle, in dump() 273 String8 SensorService::getSensorName(int handle) const { in getSensorName() 277 if (sensor.getHandle() == handle) { in getSensorName() 302 int handle = mActiveSensors.keyAt(i); in cleanupConnection() local 303 if (c->hasSensor(handle)) { in cleanupConnection() 304 SensorInterface* sensor = mSensorMap.valueFor( handle ); in cleanupConnection() 312 mActiveVirtualSensors.removeItem(handle); in cleanupConnection() 323 int handle) in enable() argument [all …]
|
D | SensorService.h | 74 virtual status_t enableDisable(int handle, bool enabled); 75 virtual status_t setEventRate(int handle, nsecs_t ns); 89 bool hasSensor(int32_t handle) const; 91 bool addSensor(int32_t handle); 92 bool removeSensor(int32_t handle); 107 String8 getSensorName(int handle) const; 133 status_t enable(const sp<SensorEventConnection>& connection, int handle); 134 status_t disable(const sp<SensorEventConnection>& connection, int handle); 135 status_t setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns);
|
/frameworks/base/include/binder/ |
D | IPCThreadState.h | 60 status_t transact(int32_t handle, 64 void incStrongHandle(int32_t handle); 65 void decStrongHandle(int32_t handle); 66 void incWeakHandle(int32_t handle); 67 void decWeakHandle(int32_t handle); 68 status_t attemptIncStrongHandle(int32_t handle); 69 static void expungeHandle(int32_t handle, IBinder* binder); 70 status_t requestDeathNotification( int32_t handle, 72 status_t clearDeathNotification( int32_t handle, 94 int32_t handle,
|
D | ProcessState.h | 65 sp<IBinder> getStrongProxyForHandle(int32_t handle); 66 wp<IBinder> getWeakProxyForHandle(int32_t handle); 67 void expungeHandle(int32_t handle, IBinder* binder); 91 handle_entry* lookupHandleLocked(int32_t handle);
|
/frameworks/base/voip/java/com/android/server/sip/ |
D | SipSessionListenerProxy.java | 53 handle(t, "onCalling()"); in onCalling() 67 handle(t, "onRinging()"); in onRinging() 80 handle(t, "onRingingBack()"); in onRingingBack() 94 handle(t, "onCallEstablished()"); in onCallEstablished() 107 handle(t, "onCallEnded()"); in onCallEnded() 120 handle(t, "onCallBusy()"); in onCallBusy() 134 handle(t, "onCallChangeFailed()"); in onCallChangeFailed() 148 handle(t, "onError()"); in onError() 161 handle(t, "onRegistering()"); in onRegistering() 175 handle(t, "onRegistrationDone()"); in onRegistrationDone() [all …]
|
/frameworks/base/core/java/com/android/internal/nfc/ |
D | LlcpServiceSocket.java | 83 public LlcpServiceSocket(ILlcpServiceSocket service, ILlcpSocket socketService, int handle) { in LlcpServiceSocket() argument 85 this.mHandle = handle; in LlcpServiceSocket() 105 int handle = mService.accept(mHandle); in accept() local 107 if (ErrorCodes.isError(handle)) { in accept() 108 if (handle == ErrorCodes.ERROR_IO) { in accept() 111 throw convertErrorToLlcpException(handle); in accept() 116 return new LlcpSocket(mLlcpSocketService, handle); in accept()
|
/frameworks/base/libs/gui/ |
D | ISensorEventConnection.cpp | 55 virtual status_t enableDisable(int handle, bool enabled) in enableDisable() argument 59 data.writeInt32(handle); in enableDisable() 65 virtual status_t setEventRate(int handle, nsecs_t ns) in setEventRate() argument 69 data.writeInt32(handle); in setEventRate() 92 int handle = data.readInt32(); in onTransact() local 94 status_t result = enableDisable(handle, enabled); in onTransact() 100 int handle = data.readInt32(); in onTransact() local 102 status_t result = setEventRate(handle, ns); in onTransact()
|
D | SensorEventQueue.cpp | 131 status_t SensorEventQueue::enableSensor(int32_t handle, int32_t us) const { in enableSensor() argument 132 status_t err = mSensorEventConnection->enableDisable(handle, true); in enableSensor() 134 mSensorEventConnection->setEventRate(handle, us2ns(us)); in enableSensor() 139 status_t SensorEventQueue::disableSensor(int32_t handle) const { in disableSensor() 140 return mSensorEventConnection->enableDisable(handle, false); in disableSensor()
|
/frameworks/base/core/java/android/widget/ |
D | SlidingDrawer.java | 264 final View handle = mHandle; in onMeasure() local 265 measureChild(handle, widthMeasureSpec, heightMeasureSpec); in onMeasure() 268 int height = heightSpecSize - handle.getMeasuredHeight() - mTopOffset; in onMeasure() 272 int width = widthSpecSize - handle.getMeasuredWidth() - mTopOffset; in onMeasure() 283 final View handle = mHandle; in dispatchDraw() local 286 drawChild(canvas, handle, drawingTime); in dispatchDraw() 292 canvas.drawBitmap(cache, 0, handle.getBottom(), null); in dispatchDraw() 294 canvas.drawBitmap(cache, handle.getRight(), 0, null); in dispatchDraw() 298 canvas.translate(isVertical ? 0 : handle.getLeft() - mTopOffset, in dispatchDraw() 299 isVertical ? handle.getTop() - mTopOffset : 0); in dispatchDraw() [all …]
|
/frameworks/base/include/ui/ |
D | GraphicBufferMapper.h | 41 status_t registerBuffer(buffer_handle_t handle); 43 status_t unregisterBuffer(buffer_handle_t handle); 45 status_t lock(buffer_handle_t handle, 48 status_t unlock(buffer_handle_t handle); 51 void dump(buffer_handle_t handle);
|
/frameworks/base/core/java/android/app/ |
D | NativeActivity.java | 89 private native void unloadNativeCode(int handle); in unloadNativeCode() argument 91 private native void onStartNative(int handle); in onStartNative() argument 92 private native void onResumeNative(int handle); in onResumeNative() argument 93 private native byte[] onSaveInstanceStateNative(int handle); in onSaveInstanceStateNative() argument 94 private native void onPauseNative(int handle); in onPauseNative() argument 95 private native void onStopNative(int handle); in onStopNative() argument 96 private native void onConfigurationChangedNative(int handle); in onConfigurationChangedNative() argument 97 private native void onLowMemoryNative(int handle); in onLowMemoryNative() argument 98 private native void onWindowFocusChangedNative(int handle, boolean focused); in onWindowFocusChangedNative() argument 99 private native void onSurfaceCreatedNative(int handle, Surface surface); in onSurfaceCreatedNative() argument [all …]
|
/frameworks/base/libs/binder/ |
D | ProcessState.cpp | 195 ProcessState::handle_entry* ProcessState::lookupHandleLocked(int32_t handle) in lookupHandleLocked() argument 198 if (N <= (size_t)handle) { in lookupHandleLocked() 202 status_t err = mHandleToObject.insertAt(e, N, handle+1-N); in lookupHandleLocked() 205 return &mHandleToObject.editItemAt(handle); in lookupHandleLocked() 208 sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle) in getStrongProxyForHandle() argument 214 handle_entry* e = lookupHandleLocked(handle); in getStrongProxyForHandle() 222 b = new BpBinder(handle); in getStrongProxyForHandle() 238 wp<IBinder> ProcessState::getWeakProxyForHandle(int32_t handle) in getWeakProxyForHandle() argument 244 handle_entry* e = lookupHandleLocked(handle); in getWeakProxyForHandle() 256 b = new BpBinder(handle); in getWeakProxyForHandle() [all …]
|
D | IPCThreadState.cpp | 493 status_t IPCThreadState::transact(int32_t handle, in transact() argument 504 << handle << " / code " << TypeCode(code) << ": " in transact() 511 err = writeTransactionData(BC_TRANSACTION, flags, handle, code, data, NULL); in transact() 544 << handle << ": "; in transact() 555 void IPCThreadState::incStrongHandle(int32_t handle) in incStrongHandle() argument 557 LOG_REMOTEREFS("IPCThreadState::incStrongHandle(%d)\n", handle); in incStrongHandle() 559 mOut.writeInt32(handle); in incStrongHandle() 562 void IPCThreadState::decStrongHandle(int32_t handle) in decStrongHandle() argument 564 LOG_REMOTEREFS("IPCThreadState::decStrongHandle(%d)\n", handle); in decStrongHandle() 566 mOut.writeInt32(handle); in decStrongHandle() [all …]
|
/frameworks/opt/emoji/ |
D | EmojiFactory.cpp | 76 void *handle = dlopen(library_name, RTLD_LAZY | RTLD_LOCAL); in TryRegisterEmojiFactory() local 77 if (handle == NULL) { in TryRegisterEmojiFactory() 86 reinterpret_cast<EmojiFactory *(*)()>(dlsym(handle, in TryRegisterEmojiFactory() 94 dlclose(handle); in TryRegisterEmojiFactory() 101 dlclose(handle); in TryRegisterEmojiFactory() 113 dlclose(handle); in TryRegisterEmojiFactory() 120 g_handles->push(handle); in TryRegisterEmojiFactory()
|
/frameworks/base/media/libdrm/mobile1/include/objmng/ |
D | drm_file.h | 197 int32_t* handle); 228 int32_t DRM_file_read(int32_t handle, 249 int32_t DRM_file_write(int32_t handle, 261 int32_t DRM_file_close(int32_t handle); 277 int32_t DRM_file_setPosition(int32_t handle, int32_t value);
|
/frameworks/base/tests/CoreTests/android/core/ |
D | RequestAPITest.java | 72 RequestHandle handle = in verifyFailure() local 77 handle.waitUntilComplete(); in verifyFailure() 122 RequestHandle handle = mRequestQueue.queueRequest( in verifySuccess() local 125 handle.waitUntilComplete(); in verifySuccess() 198 RequestHandle handle = mRequestQueue.queueRequest( in testGet() local 203 handle.waitUntilComplete(); in testGet() 271 RequestHandle handle = mRequestQueue.queueRequest( in testHead() local 276 handle.waitUntilComplete(); in testHead() 298 RequestHandle handle = mRequestQueue.queueRequest( in testChunked() local 303 handle.waitUntilComplete(); in testChunked() [all …]
|