Searched refs:handle (Results 1 - 25 of 132) sorted by relevance

123456

/frameworks/base/libs/ui/
H A DGraphicBufferMapper.cpp47 status_t GraphicBufferMapper::registerBuffer(buffer_handle_t handle) argument
51 err = mAllocMod->registerBuffer(mAllocMod, handle);
54 handle, err, strerror(-err));
58 status_t GraphicBufferMapper::unregisterBuffer(buffer_handle_t handle) argument
62 err = mAllocMod->unregisterBuffer(mAllocMod, handle);
65 handle, err, strerror(-err));
69 status_t GraphicBufferMapper::lock(buffer_handle_t handle, argument
74 err = mAllocMod->lock(mAllocMod, handle, usage,
82 status_t GraphicBufferMapper::unlock(buffer_handle_t handle) argument
86 err = mAllocMod->unlock(mAllocMod, handle);
[all...]
H A DGraphicBuffer.cpp48 handle = NULL;
61 handle = NULL;
77 handle = inHandle;
90 handle = buffer->handle;
95 if (handle) {
103 mBufferMapper.unregisterBuffer(handle);
104 native_handle_close(handle);
105 native_handle_delete(const_cast<native_handle*>(handle));
108 allocator.free(handle);
[all...]
/frameworks/base/media/java/android/mtp/
H A DMtpServer.java46 public void sendObjectAdded(int handle) { argument
47 native_send_object_added(handle);
50 public void sendObjectRemoved(int handle) { argument
51 native_send_object_removed(handle);
65 private native final void native_send_object_added(int handle); argument
66 private native final void native_send_object_removed(int handle); argument
H A DMtpPropertyList.java53 public void append(int handle, int property, int type, long value) { argument
58 mObjectHandles[index] = handle;
64 public void append(int handle, int property, String value) { argument
69 mObjectHandles[index] = handle;
H A DMtpPropertyGroup.java136 // PUID is concatenation of storageID and object handle
284 MtpPropertyList getPropertyList(int handle, int format, int depth) { argument
285 //Log.d(TAG, "getPropertyList handle: " + handle + " format: " + format + " depth: " + depth);
295 if (handle == 0xFFFFFFFF) {
300 whereArgs = new String[] { Integer.toString(handle) };
308 if (handle == 0xFFFFFFFF) {
313 whereArgs = new String[] { Integer.toString(handle), Integer.toString(format) };
325 if (depth > 0 || handle == 0xFFFFFFFF || mColumns.length > 1) {
340 handle
[all...]
/frameworks/base/media/libdrm/mobile1/src/objmng/
H A Ddrm_rights_manager.c22 static int32_t drm_getString(uint8_t* string, int32_t len, int32_t handle) argument
27 if (DRM_FILE_FAILURE == DRM_file_read(handle, &string[i], 1))
37 static int32_t drm_putString(uint8_t* string, int32_t handle) argument
44 if (DRM_FILE_FAILURE == DRM_file_write(handle, &string[i], 1))
60 int32_t handle; local
77 &handle);
82 &handle);
83 DRM_file_write(handle, (uint8_t *)"0\n", 2);
84 DRM_file_close(handle);
88 &handle);
160 int32_t handle; local
258 int32_t handle; local
387 int32_t handle; local
448 int32_t handle; local
[all...]
/frameworks/base/include/ui/
H A 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);
50 // dumps information about the mapping of this handle
51 void dump(buffer_handle_t handle);
/frameworks/base/core/jni/
H A Dandroid_database_SQLiteDatabase.cpp105 sqlite3 * handle = NULL; local
122 err = sqlite3_open_v2(path8, &handle, sqliteFlags, NULL);
124 LOGE("sqlite3_open_v2(\"%s\", &handle, %d, NULL) failed\n", path8, sqliteFlags);
125 throw_sqlite3_exception(env, handle);
135 err = sqlite3_busy_timeout(handle, 1000 /* ms */);
137 LOGE("sqlite3_busy_timeout(handle, 1000) failed for \"%s\"\n", path8);
138 throw_sqlite3_exception(env, handle);
144 err = sqlite3_prepare_v2(handle, integritySql, -1, &statement, NULL);
146 LOGE("sqlite_prepare_v2(handle, \"%s\") failed for \"%s\"\n", integritySql, path8);
147 throw_sqlite3_exception(env, handle);
184 getDatabaseName(JNIEnv* env, sqlite3 * handle, jstring databaseName, short connNum) argument
206 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
218 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
226 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
255 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
269 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
439 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
519 throw_sqlite3_exception(JNIEnv* env, sqlite3* handle) argument
531 throw_sqlite3_exception(JNIEnv* env, sqlite3* handle, const char* message) argument
[all...]
H A Dsqlite3_exception.h29 /* throw a SQLiteException with a message appropriate for the error in handle */
30 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle);
35 /* throw a SQLiteException with a message appropriate for the error in handle
38 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle, const char* message);
H A Dandroid_database_SQLiteStatement.cpp46 sqlite3 * handle, jstring sqlString);
61 sqlite3 * handle = GET_HANDLE(env, object); local
73 throw_sqlite3_exception_errcode(env, err, sqlite3_errmsg(handle));
75 numChanges = sqlite3_changes(handle);
85 sqlite3 * handle = GET_HANDLE(env, object); local
88 return sqlite3_last_insert_rowid(handle);
97 sqlite3 * handle = GET_HANDLE(env, object); local
109 throw_sqlite3_exception_errcode(env, err, sqlite3_errmsg(handle));
121 sqlite3 * handle = GET_HANDLE(env, object); local
134 throw_sqlite3_exception_errcode(env, err, sqlite3_errmsg(handle));
215 sqlite3 * handle = GET_HANDLE(env, object); local
245 sqlite3 * handle = GET_HANDLE(env, object); local
[all...]
H A Dandroid_app_NativeActivity.cpp253 // The app didn't handle this, but it may have a default action
652 void* handle = dlopen(pathStr, RTLD_LAZY); local
656 if (handle != NULL) {
658 code = new NativeCode(handle, (ANativeActivity_createFunc*)
659 dlsym(handle, funcStr));
737 unloadNativeCode_native(JNIEnv* env, jobject clazz, jint handle) argument
740 if (handle != 0) {
741 NativeCode* code = (NativeCode*)handle;
747 onStart_native(JNIEnv* env, jobject clazz, jint handle) argument
750 if (handle !
759 onResume_native(JNIEnv* env, jobject clazz, jint handle) argument
771 onSaveInstanceState_native(JNIEnv* env, jobject clazz, jint handle) argument
798 onPause_native(JNIEnv* env, jobject clazz, jint handle) argument
810 onStop_native(JNIEnv* env, jobject clazz, jint handle) argument
822 onConfigurationChanged_native(JNIEnv* env, jobject clazz, jint handle) argument
834 onLowMemory_native(JNIEnv* env, jobject clazz, jint handle) argument
846 onWindowFocusChanged_native(JNIEnv* env, jobject clazz, jint handle, jboolean focused) argument
858 onSurfaceCreated_native(JNIEnv* env, jobject clazz, jint handle, jobject surface) argument
878 onSurfaceChanged_native(JNIEnv* env, jobject clazz, jint handle, jobject surface, jint format, jint width, jint height) argument
919 onSurfaceRedrawNeeded_native(JNIEnv* env, jobject clazz, jint handle) argument
931 onSurfaceDestroyed_native(JNIEnv* env, jobject clazz, jint handle, jobject surface) argument
945 onInputChannelCreated_native(JNIEnv* env, jobject clazz, jint handle, jobject channel) argument
964 onInputChannelDestroyed_native(JNIEnv* env, jobject clazz, jint handle, jobject channel) argument
979 onContentRectChanged_native(JNIEnv* env, jobject clazz, jint handle, jint x, jint y, jint w, jint h) argument
997 dispatchKeyEvent_native(JNIEnv* env, jobject clazz, jint handle, jobject eventObj) argument
1016 finishPreDispatchKeyEvent_native(JNIEnv* env, jobject clazz, jint handle, jint seq, jboolean handled) argument
[all...]
/frameworks/base/include/binder/
H A 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,
[all...]
/frameworks/base/media/mtp/
H A 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,
[all...]
H A 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,
H A DMtpServer.h63 // handle for new object, set by SendObjectInfo and used by SendObject
81 ObjectEdit(MtpObjectHandle handle, const char* path, uint64_t size, argument
83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) {
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);
H A DMtpServer.cpp244 void MtpServer::sendObjectAdded(MtpObjectHandle handle) { argument
245 LOGV("sendObjectAdded %d\n", handle);
246 sendEvent(MTP_EVENT_OBJECT_ADDED, handle);
249 void MtpServer::sendObjectRemoved(MtpObjectHandle handle) { argument
250 LOGV("sendObjectRemoved %d\n", handle);
251 sendEvent(MTP_EVENT_OBJECT_REMOVED, handle);
274 void MtpServer::addEditObject(MtpObjectHandle handle, MtpString& path, argument
276 ObjectEdit* edit = new ObjectEdit(handle, path, size, format, fd);
280 MtpServer::ObjectEdit* MtpServer::getEditObject(MtpObjectHandle handle) { argument
284 if (edit->mHandle == handle) retur
289 removeEditObject(MtpObjectHandle handle) argument
751 MtpObjectHandle handle = mRequest.getParameter(1); local
882 MtpObjectHandle handle = mDatabase->beginSendObject((const char*)path, local
1155 MtpObjectHandle handle = mRequest.getParameter(1); local
1174 MtpObjectHandle handle = mRequest.getParameter(1); local
1198 MtpObjectHandle handle = mRequest.getParameter(1); local
[all...]
/frameworks/base/voip/java/com/android/server/sip/
H A DSipSessionListenerProxy.java53 handle(t, "onCalling()");
67 handle(t, "onRinging()");
80 handle(t, "onRingingBack()");
94 handle(t, "onCallEstablished()");
107 handle(t, "onCallEnded()");
121 handle(t, "onCallTransferring()");
134 handle(t, "onCallBusy()");
148 handle(t, "onCallChangeFailed()");
162 handle(t, "onError()");
175 handle(
222 private void handle(Throwable t, String message) { method in class:SipSessionListenerProxy
[all...]
/frameworks/base/media/libdrm/mobile1/include/objmng/
H A Ddrm_file.h166 * Opens a file with the given name and returns its file handle.
190 * @param handle Pointer where the result handle value is placed when the function
197 int32_t* handle);
219 * DRM_FILE_FAILURE is returned if the handle is invalid (e.g., as a
222 * @param handle File handle as returned by DRM_file_open().
228 int32_t DRM_file_read(int32_t handle,
237 * DRM_FILE_FAILURE is returned if the handle is invalid (e.g., as a
240 * @param handle Fil
[all...]
/frameworks/base/libs/gui/
H A DISensorEventConnection.cpp55 virtual status_t enableDisable(int handle, bool enabled) argument
59 data.writeInt32(handle);
65 virtual status_t setEventRate(int handle, nsecs_t ns) argument
69 data.writeInt32(handle);
92 int handle = data.readInt32(); local
94 status_t result = enableDisable(handle, enabled);
100 int handle = data.readInt32(); local
102 status_t result = setEventRate(handle, ns);
/frameworks/base/services/jni/
H A Dcom_android_server_InputApplicationHandle.cpp94 NativeInputApplicationHandle* handle; local
96 handle = reinterpret_cast<NativeInputApplicationHandle*>(ptr);
99 handle = new NativeInputApplicationHandle(objWeak);
100 handle->incStrong(inputApplicationHandleObj);
102 reinterpret_cast<int>(handle));
104 return handle;
117 NativeInputApplicationHandle* handle = reinterpret_cast<NativeInputApplicationHandle*>(ptr); local
118 handle->decStrong(obj);
/frameworks/base/services/sensorservice/
H A DSensorInterface.cpp53 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { argument
54 return mSensorDevice.setDelay(ident, handle, ns);
H A DSensorDevice.cpp52 status_t noteStartSensor(int uid, int handle) { argument
56 data.writeInt32(handle);
63 status_t noteStopSensor(int uid, int handle) { argument
67 data.writeInt32(handle);
75 void enableSensor(int handle) { argument
79 noteStartSensor(uid, handle);
83 void disableSensor(int handle) { argument
87 noteStopSensor(uid, handle);
123 mActivationCount.add(list[i].handle, model);
124 mSensorDevice->activate(mSensorDevice, list[i].handle,
176 activate(void* ident, int handle, int enabled) argument
242 setDelay(void* ident, int handle, int64_t ns) argument
[all...]
H A DSensorService.cpp154 // add to our handle->SensorInterface mapping
211 int handle = mActiveSensors.keyAt(i); local
212 snprintf(buffer, SIZE, "%s (handle=0x%08x, connections=%d)\n",
213 getSensorName(handle).string(),
214 handle,
243 // handle virtual sensors
338 String8 SensorService::getSensorName(int handle) const {
342 if (sensor.getHandle() == handle) {
368 int handle = mActiveSensors.keyAt(i); local
369 if (c->hasSensor(handle)) {
396 enable(const sp<SensorEventConnection>& connection, int handle) argument
442 disable(const sp<SensorEventConnection>& connection, int handle) argument
469 setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns) argument
539 addSensor(int32_t handle) argument
548 removeSensor(int32_t handle) argument
612 enableDisable( int handle, bool enabled) argument
624 setEventRate( int handle, nsecs_t ns) argument
[all...]
H A 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/core/java/android/app/
H A DNativeActivity.java89 private native void unloadNativeCode(int handle); argument
91 private native void onStartNative(int handle); argument
92 private native void onResumeNative(int handle); argument
93 private native byte[] onSaveInstanceStateNative(int handle); argument
94 private native void onPauseNative(int handle); argument
95 private native void onStopNative(int handle); argument
96 private native void onConfigurationChangedNative(int handle); argument
97 private native void onLowMemoryNative(int handle); argument
98 private native void onWindowFocusChangedNative(int handle, boolean focused); argument
99 private native void onSurfaceCreatedNative(int handle, Surfac argument
100 onSurfaceChangedNative(int handle, Surface surface, int format, int width, int height) argument
102 onSurfaceRedrawNeededNative(int handle, Surface surface) argument
103 onSurfaceDestroyedNative(int handle) argument
104 onInputChannelCreatedNative(int handle, InputChannel channel) argument
105 onInputChannelDestroyedNative(int handle, InputChannel channel) argument
106 onContentRectChangedNative(int handle, int x, int y, int w, int h) argument
107 dispatchKeyEventNative(int handle, KeyEvent event) argument
108 finishPreDispatchKeyEventNative(int handle, int seq, boolean handled) argument
[all...]

Completed in 1609 milliseconds

123456