Home
last modified time | relevance | path

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

12345678910>>...14

/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/services/sensorservice/
DBatteryService.h34 status_t noteStartSensor(int uid, int handle);
35 status_t noteStopSensor(int uid, int handle);
37 void enableSensorImpl(uid_t uid, int handle);
38 void disableSensorImpl(uid_t uid, int handle);
43 int handle; member
45 Info() : uid(0), handle(0), count(0) { } in Info()
46 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { } in Info()
48 return (uid == rhs.uid) ? (handle < rhs.handle) : (uid < rhs.uid);
54 bool addSensor(uid_t uid, int handle);
55 bool removeSensor(uid_t uid, int handle);
[all …]
DBatteryService.cpp41 status_t BatteryService::noteStartSensor(int uid, int handle) { in noteStartSensor() argument
45 data.writeInt32(handle); in noteStartSensor()
52 status_t BatteryService::noteStopSensor(int uid, int handle) { in noteStopSensor() argument
56 data.writeInt32(handle); in noteStopSensor()
63 bool BatteryService::addSensor(uid_t uid, int handle) { in addSensor() argument
65 Info key(uid, handle); in addSensor()
75 bool BatteryService::removeSensor(uid_t uid, int handle) { in removeSensor() argument
77 ssize_t index = mActivations.indexOf(Info(uid, handle)); in removeSensor()
85 void BatteryService::enableSensorImpl(uid_t uid, int handle) { in enableSensorImpl() argument
87 if (addSensor(uid, handle)) { in enableSensorImpl()
[all …]
DSensorService.cpp228 int handle = mActiveSensors.keyAt(i); in dump() local
230 getSensorName(handle).string(), in dump()
231 handle, in dump()
363 String8 SensorService::getSensorName(int handle) const { in getSensorName()
367 if (sensor.getHandle() == handle) { in getSensorName()
399 int handle = mActiveSensors.keyAt(i); in cleanupConnection() local
400 if (c->hasSensor(handle)) { in cleanupConnection()
401 ALOGD_IF(DEBUG_CONNECTIONS, "%i: disabling handle=0x%08x", i, handle); in cleanupConnection()
402 SensorInterface* sensor = mSensorMap.valueFor( handle ); in cleanupConnection()
403 ALOGE_IF(!sensor, "mSensorMap[handle=0x%08x] is null!", handle); in cleanupConnection()
[all …]
DSensorDevice.cpp61 mActivationCount.add(list[i].handle, model); in ANDROID_SINGLETON_STATIC_INSTANCE()
62 mSensorDevice->activate(mSensorDevice, list[i].handle, 0); in ANDROID_SINGLETON_STATIC_INSTANCE()
79 const Info& info = mActivationCount.valueFor(list[i].handle); in dump()
81 list[i].handle, in dump()
114 status_t SensorDevice::activate(void* ident, int handle, int enabled) in activate() argument
120 Info& info( mActivationCount.editValueFor(handle) ); in activate()
125 ident, handle, enabled, info.rates.size()); in activate()
158 err = mSensorDevice->activate(mSensorDevice, handle, enabled); in activate()
161 handle, strerror(-err)); in activate()
167 mSensorDevice->setDelay(mSensorDevice, handle, ns); in activate()
[all …]
DSensorService.h75 virtual status_t enableDisable(int handle, bool enabled);
76 virtual status_t setEventRate(int handle, nsecs_t ns);
91 bool hasSensor(int32_t handle) const;
93 bool addSensor(int32_t handle);
94 bool removeSensor(int32_t handle);
111 String8 getSensorName(int handle) const;
138 status_t enable(const sp<SensorEventConnection>& connection, int handle);
139 status_t disable(const sp<SensorEventConnection>& connection, int handle);
140 status_t setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns);
/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()
DGraphicBufferAllocator.cpp96 static void queueCaptiveBuffer(buffer_handle_t handle) { in queueCaptiveBuffer() argument
105 sThread->mQueue.push_back(handle); in queueCaptiveBuffer()
131 buffer_handle_t handle; in threadLoop() local
137 handle = mQueue[0]; in threadLoop()
144 err = gba.mAllocDev->free(gba.mAllocDev, handle); in threadLoop()
152 list.removeItem(handle); in threadLoop()
193 int usage, buffer_handle_t* handle, int32_t* stride) in alloc() argument
209 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); in alloc()
214 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); in alloc()
236 list.add(*handle, rec); in alloc()
[all …]
/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/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/native/include/binder/
DIPCThreadState.h61 status_t transact(int32_t handle,
65 void incStrongHandle(int32_t handle);
66 void decStrongHandle(int32_t handle);
67 void incWeakHandle(int32_t handle);
68 void decWeakHandle(int32_t handle);
69 status_t attemptIncStrongHandle(int32_t handle);
70 static void expungeHandle(int32_t handle, IBinder* binder);
71 status_t requestDeathNotification( int32_t handle,
73 status_t clearDeathNotification( int32_t handle,
95 int32_t handle,
/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,
/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/base/core/java/android/widget/
DSlidingDrawer.java270 final View handle = mHandle; in onMeasure() local
271 measureChild(handle, widthMeasureSpec, heightMeasureSpec); in onMeasure()
274 int height = heightSpecSize - handle.getMeasuredHeight() - mTopOffset; in onMeasure()
278 int width = widthSpecSize - handle.getMeasuredWidth() - mTopOffset; in onMeasure()
289 final View handle = mHandle; in dispatchDraw() local
292 drawChild(canvas, handle, drawingTime); in dispatchDraw()
298 canvas.drawBitmap(cache, 0, handle.getBottom(), null); in dispatchDraw()
300 canvas.drawBitmap(cache, handle.getRight(), 0, null); in dispatchDraw()
304 canvas.translate(isVertical ? 0 : handle.getLeft() - mTopOffset, in dispatchDraw()
305 isVertical ? handle.getTop() - mTopOffset : 0); in dispatchDraw()
[all …]
/frameworks/base/core/java/android/app/
DNativeActivity.java88 private native void unloadNativeCode(int handle); in unloadNativeCode() argument
90 private native void onStartNative(int handle); in onStartNative() argument
91 private native void onResumeNative(int handle); in onResumeNative() argument
92 private native byte[] onSaveInstanceStateNative(int handle); in onSaveInstanceStateNative() argument
93 private native void onPauseNative(int handle); in onPauseNative() argument
94 private native void onStopNative(int handle); in onStopNative() argument
95 private native void onConfigurationChangedNative(int handle); in onConfigurationChangedNative() argument
96 private native void onLowMemoryNative(int handle); in onLowMemoryNative() argument
97 private native void onWindowFocusChangedNative(int handle, boolean focused); in onWindowFocusChangedNative() argument
98 private native void onSurfaceCreatedNative(int handle, Surface surface); in onSurfaceCreatedNative() argument
[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/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()

12345678910>>...14