Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/frameworks/base/media/libdrm/mobile1/src/objmng/
Ddrm_rights_manager.c22 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 …]
Ddrm_file.c492 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/native/libs/ui/
DGraphicBuffer.cpp46 handle = NULL; in GraphicBuffer()
59 handle = NULL; in GraphicBuffer()
75 handle = inHandle; in GraphicBuffer()
88 handle = buffer->handle; in GraphicBuffer()
93 if (handle) { in ~GraphicBuffer()
101 mBufferMapper.unregisterBuffer(handle); in free_handle()
102 native_handle_close(handle); in free_handle()
103 native_handle_delete(const_cast<native_handle*>(handle)); in free_handle()
106 allocator.free(handle); in free_handle()
132 if (handle && w==width && h==height && f==format && reqUsage==usage) in reallocate()
[all …]
DGraphicBufferMapper.cpp49 status_t GraphicBufferMapper::registerBuffer(buffer_handle_t handle) in registerBuffer() argument
54 err = mAllocMod->registerBuffer(mAllocMod, handle); in registerBuffer()
57 handle, err, strerror(-err)); in registerBuffer()
61 status_t GraphicBufferMapper::unregisterBuffer(buffer_handle_t handle) in unregisterBuffer() argument
66 err = mAllocMod->unregisterBuffer(mAllocMod, handle); in unregisterBuffer()
69 handle, err, strerror(-err)); in unregisterBuffer()
73 status_t GraphicBufferMapper::lock(buffer_handle_t handle, in lock() argument
79 err = mAllocMod->lock(mAllocMod, handle, usage, in lock()
87 status_t GraphicBufferMapper::unlock(buffer_handle_t handle) in unlock() argument
92 err = mAllocMod->unlock(mAllocMod, handle); in unlock()
/frameworks/base/services/sensorservice/
DSensorService.cpp212 int handle = mActiveSensors.keyAt(i); in dump() local
214 getSensorName(handle).string(), in dump()
215 handle, in dump()
347 String8 SensorService::getSensorName(int handle) const { in getSensorName()
351 if (sensor.getHandle() == handle) { in getSensorName()
377 int handle = mActiveSensors.keyAt(i); in cleanupConnection() local
378 if (c->hasSensor(handle)) { in cleanupConnection()
379 ALOGD_IF(DEBUG_CONNECTIONS, "%i: disabling handle=0x%08x", i, handle); in cleanupConnection()
380 SensorInterface* sensor = mSensorMap.valueFor( handle ); in cleanupConnection()
381 ALOGE_IF(!sensor, "mSensorMap[handle=0x%08x] is null!", handle); in cleanupConnection()
[all …]
DSensorDevice.cpp52 status_t noteStartSensor(int uid, int handle) { in noteStartSensor() argument
56 data.writeInt32(handle); in noteStartSensor()
63 status_t noteStopSensor(int uid, int handle) { in noteStopSensor() argument
67 data.writeInt32(handle); in noteStopSensor()
75 void enableSensor(int handle) { in enableSensor() argument
79 noteStartSensor(uid, handle); in enableSensor()
83 void disableSensor(int handle) { in disableSensor() argument
87 noteStopSensor(uid, handle); in disableSensor()
123 mActivationCount.add(list[i].handle, model); in ANDROID_SINGLETON_STATIC_INSTANCE()
124 mSensorDevice->activate(mSensorDevice, list[i].handle, 0); in ANDROID_SINGLETON_STATIC_INSTANCE()
[all …]
DSensorService.h75 virtual status_t enableDisable(int handle, bool enabled);
76 virtual status_t setEventRate(int handle, nsecs_t ns);
90 bool hasSensor(int32_t handle) const;
92 bool addSensor(int32_t handle);
93 bool removeSensor(int32_t handle);
108 String8 getSensorName(int handle) const;
134 status_t enable(const sp<SensorEventConnection>& connection, int handle);
135 status_t disable(const sp<SensorEventConnection>& connection, int handle);
136 status_t setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns);
/frameworks/base/voip/java/com/android/server/sip/
DSipSessionListenerProxy.java53 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()
121 handle(t, "onCallTransferring()"); in onCallTransferring()
134 handle(t, "onCallBusy()"); in onCallBusy()
148 handle(t, "onCallChangeFailed()"); in onCallChangeFailed()
162 handle(t, "onError()"); in onError()
175 handle(t, "onRegistering()"); in onRegistering()
[all …]
/frameworks/base/core/jni/
Dandroid_app_NativeActivity.cpp612 void* handle = dlopen(pathStr, RTLD_LAZY); in loadNativeCode_native() local
616 if (handle != NULL) { in loadNativeCode_native()
618 code = new NativeCode(handle, (ANativeActivity_createFunc*) in loadNativeCode_native()
619 dlsym(handle, funcStr)); in loadNativeCode_native()
698 unloadNativeCode_native(JNIEnv* env, jobject clazz, jint handle) in unloadNativeCode_native() argument
701 if (handle != 0) { in unloadNativeCode_native()
702 NativeCode* code = (NativeCode*)handle; in unloadNativeCode_native()
708 onStart_native(JNIEnv* env, jobject clazz, jint handle) in onStart_native() argument
711 if (handle != 0) { in onStart_native()
712 NativeCode* code = (NativeCode*)handle; in onStart_native()
[all …]
Dandroid_database_SQLiteCommon.cpp24 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle) { in throw_sqlite3_exception() argument
25 throw_sqlite3_exception(env, handle, NULL); in throw_sqlite3_exception()
36 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle, const char* message) { in throw_sqlite3_exception() argument
37 if (handle) { in throw_sqlite3_exception()
42 throw_sqlite3_exception(env, sqlite3_extended_errcode(handle), in throw_sqlite3_exception()
43 sqlite3_errmsg(handle), message); in throw_sqlite3_exception()
/frameworks/av/media/mtp/
DMtpDatabase.h44 MtpObjectHandle handle,
63 virtual MtpResponseCode getObjectPropertyValue(MtpObjectHandle handle,
67 virtual MtpResponseCode setObjectPropertyValue(MtpObjectHandle handle,
79 virtual MtpResponseCode getObjectPropertyList(MtpObjectHandle handle,
84 virtual MtpResponseCode getObjectInfo(MtpObjectHandle handle,
87 virtual void* getThumbnail(MtpObjectHandle handle, size_t& outThumbSize) = 0;
89 virtual MtpResponseCode getObjectFilePath(MtpObjectHandle handle,
94 virtual MtpResponseCode deleteFile(MtpObjectHandle handle) = 0;
96 virtual MtpObjectHandleList* getObjectReferences(MtpObjectHandle handle) = 0;
98 virtual MtpResponseCode setObjectReferences(MtpObjectHandle handle,
DMtpServer.cpp244 void MtpServer::sendObjectAdded(MtpObjectHandle handle) { in sendObjectAdded() argument
245 ALOGV("sendObjectAdded %d\n", handle); in sendObjectAdded()
246 sendEvent(MTP_EVENT_OBJECT_ADDED, handle); in sendObjectAdded()
249 void MtpServer::sendObjectRemoved(MtpObjectHandle handle) { in sendObjectRemoved() argument
250 ALOGV("sendObjectRemoved %d\n", handle); in sendObjectRemoved()
251 sendEvent(MTP_EVENT_OBJECT_REMOVED, handle); in sendObjectRemoved()
274 void MtpServer::addEditObject(MtpObjectHandle handle, MtpString& path, in addEditObject() argument
276 ObjectEdit* edit = new ObjectEdit(handle, path, size, format, fd); in addEditObject()
280 MtpServer::ObjectEdit* MtpServer::getEditObject(MtpObjectHandle handle) { in getEditObject() argument
284 if (edit->mHandle == handle) return edit; in getEditObject()
[all …]
DMtpDevice.h85 MtpObjectInfo* getObjectInfo(MtpObjectHandle handle);
86 void* getThumbnail(MtpObjectHandle handle, int& outLength);
89 bool deleteObject(MtpObjectHandle handle);
90 MtpObjectHandle getParent(MtpObjectHandle handle);
91 MtpObjectHandle getStorageID(MtpObjectHandle handle);
98 bool readObject(MtpObjectHandle handle,
102 bool readObject(MtpObjectHandle handle, const char* destPath, int group,
DMtpServer.h81 ObjectEdit(MtpObjectHandle handle, const char* path, uint64_t size, in ObjectEdit() argument
83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) { in ObjectEdit()
105 void sendObjectAdded(MtpObjectHandle handle);
106 void sendObjectRemoved(MtpObjectHandle handle);
113 void addEditObject(MtpObjectHandle handle, MtpString& path,
115 ObjectEdit* getEditObject(MtpObjectHandle handle);
116 void removeEditObject(MtpObjectHandle handle);
/frameworks/native/include/binder/
DIPCThreadState.h62 status_t transact(int32_t handle,
66 void incStrongHandle(int32_t handle);
67 void decStrongHandle(int32_t handle);
68 void incWeakHandle(int32_t handle);
69 void decWeakHandle(int32_t handle);
70 status_t attemptIncStrongHandle(int32_t handle);
71 static void expungeHandle(int32_t handle, IBinder* binder);
72 status_t requestDeathNotification( int32_t handle,
74 status_t clearDeathNotification( int32_t handle,
96 int32_t handle,
/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java284 MtpPropertyList getPropertyList(int handle, int format, int depth) { in getPropertyList() argument
295 if (handle == 0xFFFFFFFF) { in getPropertyList()
300 whereArgs = new String[] { Integer.toString(handle) }; in getPropertyList()
308 if (handle == 0xFFFFFFFF) { in getPropertyList()
313 whereArgs = new String[] { Integer.toString(handle), Integer.toString(format) }; in getPropertyList()
325 if (depth > 0 || handle == 0xFFFFFFFF || mColumns.length > 1) { in getPropertyList()
340 handle = (int)c.getLong(0); in getPropertyList()
353 result.append(handle, propertyCode, MtpConstants.TYPE_UINT16, 0); in getPropertyList()
359 result.append(handle, propertyCode, nameFromPath(value)); in getPropertyList()
369 name = queryString(handle, Audio.PlaylistsColumns.NAME); in getPropertyList()
[all …]
DMtpServer.java46 public void sendObjectAdded(int handle) { in sendObjectAdded() argument
47 native_send_object_added(handle); in sendObjectAdded()
50 public void sendObjectRemoved(int handle) { in sendObjectRemoved() argument
51 native_send_object_removed(handle); in sendObjectRemoved()
65 private native final void native_send_object_added(int handle); in native_send_object_added() argument
66 private native final void native_send_object_removed(int handle); in native_send_object_removed() argument
/frameworks/av/drm/common/
DIDrmManagerService.cpp41 const DecryptHandle* handle, Parcel* data) { in writeDecryptHandleToParcelData() argument
42 data->writeInt32(handle->decryptId); in writeDecryptHandleToParcelData()
43 data->writeString8(handle->mimeType); in writeDecryptHandleToParcelData()
44 data->writeInt32(handle->decryptApiType); in writeDecryptHandleToParcelData()
45 data->writeInt32(handle->status); in writeDecryptHandleToParcelData()
47 int size = handle->copyControlVector.size(); in writeDecryptHandleToParcelData()
50 data->writeInt32(handle->copyControlVector.keyAt(i)); in writeDecryptHandleToParcelData()
51 data->writeInt32(handle->copyControlVector.valueAt(i)); in writeDecryptHandleToParcelData()
54 size = handle->extendedData.size(); in writeDecryptHandleToParcelData()
57 data->writeString8(handle->extendedData.keyAt(i)); in writeDecryptHandleToParcelData()
[all …]
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java265 final View handle = mHandle; in onMeasure() local
266 measureChild(handle, widthMeasureSpec, heightMeasureSpec); in onMeasure()
269 int height = heightSpecSize - handle.getMeasuredHeight() - mTopOffset; in onMeasure()
273 int width = widthSpecSize - handle.getMeasuredWidth() - mTopOffset; in onMeasure()
284 final View handle = mHandle; in dispatchDraw() local
287 drawChild(canvas, handle, drawingTime); in dispatchDraw()
293 canvas.drawBitmap(cache, 0, handle.getBottom(), null); in dispatchDraw()
295 canvas.drawBitmap(cache, handle.getRight(), 0, null); in dispatchDraw()
299 canvas.translate(isVertical ? 0 : handle.getLeft() - mTopOffset, in dispatchDraw()
300 isVertical ? handle.getTop() - mTopOffset : 0); in dispatchDraw()
[all …]
/frameworks/native/libs/gui/
DISensorEventConnection.cpp55 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()
/frameworks/base/core/java/android/app/
DNativeActivity.java89 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/native/include/ui/
DGraphicBufferMapper.h41 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/services/jni/
Dcom_android_server_input_InputApplicationHandle.cpp94 NativeInputApplicationHandle* handle; in android_server_InputApplicationHandle_getHandle() local
96 handle = reinterpret_cast<NativeInputApplicationHandle*>(ptr); in android_server_InputApplicationHandle_getHandle()
99 handle = new NativeInputApplicationHandle(objWeak); in android_server_InputApplicationHandle_getHandle()
100 handle->incStrong(inputApplicationHandleObj); in android_server_InputApplicationHandle_getHandle()
102 reinterpret_cast<int>(handle)); in android_server_InputApplicationHandle_getHandle()
104 return handle; in android_server_InputApplicationHandle_getHandle()
117 NativeInputApplicationHandle* handle = reinterpret_cast<NativeInputApplicationHandle*>(ptr); in android_server_InputApplicationHandle_nativeDispose() local
118 handle->decStrong(obj); in android_server_InputApplicationHandle_nativeDispose()
/frameworks/native/libs/binder/
DProcessState.cpp170 ProcessState::handle_entry* ProcessState::lookupHandleLocked(int32_t handle) in lookupHandleLocked() argument
173 if (N <= (size_t)handle) { in lookupHandleLocked()
177 status_t err = mHandleToObject.insertAt(e, N, handle+1-N); in lookupHandleLocked()
180 return &mHandleToObject.editItemAt(handle); in lookupHandleLocked()
183 sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle) in getStrongProxyForHandle() argument
189 handle_entry* e = lookupHandleLocked(handle); in getStrongProxyForHandle()
197 b = new BpBinder(handle); in getStrongProxyForHandle()
213 wp<IBinder> ProcessState::getWeakProxyForHandle(int32_t handle) in getWeakProxyForHandle() argument
219 handle_entry* e = lookupHandleLocked(handle); in getWeakProxyForHandle()
231 b = new BpBinder(handle); in getWeakProxyForHandle()
[all …]
DIPCThreadState.cpp141 if (btd->target.handle < 1024) { in printBinderTransactionData()
143 out << "target.desc=" << btd->target.handle; in printBinderTransactionData()
509 status_t IPCThreadState::transact(int32_t handle, in transact() argument
520 << handle << " / code " << TypeCode(code) << ": " in transact()
527 err = writeTransactionData(BC_TRANSACTION, flags, handle, code, data, NULL); in transact()
560 << handle << ": "; in transact()
571 void IPCThreadState::incStrongHandle(int32_t handle) in incStrongHandle() argument
573 LOG_REMOTEREFS("IPCThreadState::incStrongHandle(%d)\n", handle); in incStrongHandle()
575 mOut.writeInt32(handle); in incStrongHandle()
578 void IPCThreadState::decStrongHandle(int32_t handle) in decStrongHandle() argument
[all …]

12345678910>>...12