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

123

/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...]
H A Ddrm_file.c492 int32_t* handle)
525 *handle = res;
532 DRM_file_read(int32_t handle, uint8_t* dst, int32_t length) argument
540 n = read((int)handle, dst, (size_t)length);
543 Trace("DRM_file_read handle=%d read %d bytes", handle, n);
548 Trace("DRM_file_read read EOF: handle=%d", handle);
553 Trace("DRM_file_read failed handle=%d, errno=%d", handle, errn
491 DRM_file_open(const uint16_t *name, int32_t nameLen, int32_t mode, int32_t* handle) argument
560 DRM_file_write(int32_t handle, const uint8_t* src, int32_t length) argument
613 DRM_file_close(int32_t handle) argument
627 DRM_file_setPosition(int32_t handle, int32_t value) argument
[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);
H A Dandroid_native_buffer.h48 buffer_handle_t handle; member in struct:android_native_buffer_t
H A DGraphicBufferAllocator.h66 buffer_handle_t* handle, int32_t* stride);
68 status_t free(buffer_handle_t handle);
/frameworks/base/include/binder/
H A DIPCThreadState.h54 status_t transact(int32_t handle,
58 void incStrongHandle(int32_t handle);
59 void decStrongHandle(int32_t handle);
60 void incWeakHandle(int32_t handle);
61 void decWeakHandle(int32_t handle);
62 status_t attemptIncStrongHandle(int32_t handle);
63 static void expungeHandle(int32_t handle, IBinder* binder);
64 status_t requestDeathNotification( int32_t handle,
66 status_t clearDeathNotification( int32_t handle,
88 int32_t handle,
[all...]
H A DProcessState.h65 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/core/jni/
H A Dandroid_database_SQLiteDatabase.cpp100 sqlite3 * handle = NULL; local
117 err = sqlite3_open_v2(path8, &handle, sqliteFlags, NULL);
119 LOGE("sqlite3_open_v2(\"%s\", &handle, %d, NULL) failed\n", path8, sqliteFlags);
120 throw_sqlite3_exception(env, handle);
130 err = sqlite3_busy_timeout(handle, 1000 /* ms */);
132 LOGE("sqlite3_busy_timeout(handle, 1000) failed for \"%s\"\n", path8);
133 throw_sqlite3_exception(env, handle);
139 err = sqlite3_prepare_v2(handle, integritySql, -1, &statement, NULL);
141 LOGE("sqlite_prepare_v2(handle, \"%s\") failed for \"%s\"\n", integritySql, path8);
142 throw_sqlite3_exception(env, handle);
179 getDatabaseName(JNIEnv* env, sqlite3 * handle, jstring databaseName) argument
197 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
209 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
217 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
249 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
297 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
305 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
313 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
327 sqlite3 * handle = (sqlite3 *)env->GetIntField(object, offset_db_handle); local
481 throw_sqlite3_exception(JNIEnv* env, sqlite3* handle) argument
493 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.cpp39 sqlite3 * handle, jstring sqlString);
54 sqlite3 * handle = GET_HANDLE(env, object); local
62 throw_sqlite3_exception_errcode(env, err, sqlite3_errmsg(handle));
72 sqlite3 * handle = GET_HANDLE(env, object); local
84 throw_sqlite3_exception_errcode(env, err, sqlite3_errmsg(handle));
96 sqlite3 * handle = GET_HANDLE(env, object); local
109 throw_sqlite3_exception_errcode(env, err, sqlite3_errmsg(handle));
H A Dandroid_database_SQLiteCompiledSql.cpp48 sqlite3 * handle, jstring sqlString)
64 err = sqlite3_prepare16_v2(handle, sql, sqlLen * 2, &statement, NULL);
69 LOGV("Prepared statement %p on %p", statement, handle);
83 throw_sqlite3_exception(env, handle, message);
47 compile(JNIEnv* env, jobject object, sqlite3 * handle, jstring sqlString) argument
H A Dandroid_hardware_SensorManager.cpp35 jfieldID handle; member in struct:android::SensorOffsets
79 env->SetIntField(sensor, sensorOffsets.handle, list->handle);
118 native_handle_t* handle = native_handle_create(numFds, numInts); local
124 handle->data[offset++] = env->GetIntField(fdo, fieldOffset);
126 handle->data[offset++] = -1;
132 handle->data[offset++] = ints[i];
137 // doesn't take ownership of the native handle
138 return sSensorDevice->data_open(sSensorDevice, handle);
170 sensorOffsets.handle
[all...]
/frameworks/base/libs/ui/
H A DGraphicBuffer.cpp48 handle = NULL;
61 handle = NULL;
77 handle = inHandle;
82 if (handle) {
90 native_handle_close(handle);
91 native_handle_delete(const_cast<native_handle*>(handle));
94 allocator.free(handle);
114 if (handle) {
116 allocator.free(handle);
117 handle
[all...]
H A DGraphicBufferMapper.cpp57 status_t GraphicBufferMapper::registerBuffer(buffer_handle_t handle) argument
60 if (sw_gralloc_handle_t::validate(handle) < 0) {
61 err = mAllocMod->registerBuffer(mAllocMod, handle);
63 err = sw_gralloc_handle_t::registerBuffer((sw_gralloc_handle_t*)handle);
66 handle, err, strerror(-err));
70 status_t GraphicBufferMapper::unregisterBuffer(buffer_handle_t handle) argument
73 if (sw_gralloc_handle_t::validate(handle) < 0) {
74 err = mAllocMod->unregisterBuffer(mAllocMod, handle);
76 err = sw_gralloc_handle_t::unregisterBuffer((sw_gralloc_handle_t*)handle);
79 handle, er
83 lock(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr) argument
100 unlock(buffer_handle_t handle) argument
[all...]
H A DGraphicBufferAllocator.cpp79 int usage, buffer_handle_t* handle, int32_t* stride)
89 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
91 err = sw_gralloc_handle_t::alloc(w, h, format, usage, handle, stride);
107 list.add(*handle, rec);
117 status_t GraphicBufferAllocator::free(buffer_handle_t handle) argument
120 if (sw_gralloc_handle_t::validate(handle) < 0) {
121 err = mAllocDev->free(mAllocDev, handle);
123 err = sw_gralloc_handle_t::free((sw_gralloc_handle_t*)handle);
130 list.removeItem(handle);
78 alloc(uint32_t w, uint32_t h, PixelFormat format, int usage, buffer_handle_t* handle, int32_t* stride) argument
/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/services/jni/
H A Dcom_android_server_SensorService.cpp72 native_handle_t* handle = sSensorDevice->open_data_source(sSensorDevice); local
73 if (!handle) {
82 if (handle->numFds > 0) {
83 jobjectArray fdArray = env->NewObjectArray(handle->numFds,
85 for (int i = 0; i < handle->numFds; i++) {
89 env->SetIntField(fd, gFileDescriptorOffsets.mDescriptor, handle->data[i]);
100 if (handle->numInts > 0) {
101 jintArray intArray = env->NewIntArray(handle->numInts);
102 env->SetIntArrayRegion(intArray, 0, handle->numInts, &handle
[all...]
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java37 * SlidingDrawer hides content out of the screen and allows the user to drag a handle
40 * A special widget composed of two children views: the handle, that the users drags,
41 * and the content, attached to the handle and dragged with it.
48 * Inside an XML layout, SlidingDrawer must define the id of the handle and of the
57 * android:handle="@+id/handle"
61 * android:id="@id/handle"
164 * Invoked when the user starts dragging/flinging the drawer's handle.
169 * Invoked when the user stops dragging/flinging the drawer's handle.
204 throw new IllegalArgumentException("The handle attribut
[all...]
/frameworks/opt/emoji/
H A DEmojiFactory.cpp76 void *handle = dlopen(library_name, RTLD_LAZY | RTLD_LOCAL); local
77 if (handle == NULL) {
86 reinterpret_cast<EmojiFactory *(*)()>(dlsym(handle,
94 dlclose(handle);
101 dlclose(handle);
113 dlclose(handle);
120 g_handles->push(handle);
/frameworks/base/core/java/android/webkit/
H A DNetwork.java183 RequestHandle handle = null;
185 handle = q.queueSynchronousRequest(url, loader.getWebAddress(),
187 loader.attachRequestHandle(handle);
188 handle.processRequest();
191 handle = q.queueRequest(url, loader.getWebAddress(), method,
196 // request handle on the loader. We should probably refactor this to
197 // ensure the handle is attached before processing begins.
198 loader.attachRequestHandle(handle);
/frameworks/base/libs/binder/
H A DProcessState.cpp195 ProcessState::handle_entry* ProcessState::lookupHandleLocked(int32_t handle) argument
198 if (N <= (size_t)handle) {
202 status_t err = mHandleToObject.insertAt(e, N, handle+1-N);
205 return &mHandleToObject.editItemAt(handle);
208 sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle) argument
214 handle_entry* e = lookupHandleLocked(handle);
222 b = new BpBinder(handle);
229 // but another team is sending the handle to us.
238 wp<IBinder> ProcessState::getWeakProxyForHandle(int32_t handle) argument
244 handle_entry* e = lookupHandleLocked(handle);
269 expungeHandle(int32_t handle, IBinder* binder) argument
[all...]
H A DIPCThreadState.cpp277 out << ": handle=" << h << " (death cookie " << (void*)c << ")";
473 status_t IPCThreadState::transact(int32_t handle, argument
484 << handle << " / code " << TypeCode(code) << ": "
491 err = writeTransactionData(BC_TRANSACTION, flags, handle, code, data, NULL);
510 << handle << ": ";
521 void IPCThreadState::incStrongHandle(int32_t handle) argument
523 LOG_REMOTEREFS("IPCThreadState::incStrongHandle(%d)\n", handle);
525 mOut.writeInt32(handle);
528 void IPCThreadState::decStrongHandle(int32_t handle) argument
530 LOG_REMOTEREFS("IPCThreadState::decStrongHandle(%d)\n", handle);
535 incWeakHandle(int32_t handle) argument
542 decWeakHandle(int32_t handle) argument
549 attemptIncStrongHandle(int32_t handle) argument
566 expungeHandle(int32_t handle, IBinder* binder) argument
574 requestDeathNotification(int32_t handle, BpBinder* proxy) argument
582 clearDeathNotification(int32_t handle, BpBinder* proxy) argument
799 writeTransactionData(int32_t cmd, uint32_t binderFlags, int32_t handle, uint32_t code, const Parcel& data, status_t* statusBuffer) argument
[all...]
/frameworks/base/awt/org/apache/harmony/awt/gl/color/
H A DNativeCMM.java41 public static void addHandle(ICC_Profile key, long handle) { argument
42 profileHandles.put(key, new Long(handle));
/frameworks/base/include/private/binder/
H A Dbinder_module.h51 signed long handle;
67 size_t handle;
/frameworks/base/tests/CoreTests/android/core/
H A DRequestAPITest.java72 RequestHandle handle =
77 handle.waitUntilComplete();
122 RequestHandle handle = mRequestQueue.queueRequest(
125 handle.waitUntilComplete();
198 RequestHandle handle = mRequestQueue.queueRequest(
203 handle.waitUntilComplete();
271 RequestHandle handle = mRequestQueue.queueRequest(
276 handle.waitUntilComplete();
298 RequestHandle handle = mRequestQueue.queueRequest(
303 handle
[all...]

Completed in 452 milliseconds

123