Home
last modified time | relevance | path

Searched refs:resourceHandle (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/native/android/
Dsensor.cpp146 native_handle_t *resourceHandle = native_handle_create(1 /* nFd */, 0 /* nInt */); in ASensorManager_createSharedMemoryDirectChannel() local
147 if (!resourceHandle) { in ASensorManager_createSharedMemoryDirectChannel()
151 resourceHandle->data[0] = fd; in ASensorManager_createSharedMemoryDirectChannel()
153 size, ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY, resourceHandle); in ASensorManager_createSharedMemoryDirectChannel()
154 native_handle_delete(resourceHandle); in ASensorManager_createSharedMemoryDirectChannel()
172 const native_handle_t *resourceHandle = AHardwareBuffer_getNativeHandle(buffer); in ASensorManager_createHardwareBufferDirectChannel() local
173 if (!resourceHandle) { in ASensorManager_createHardwareBufferDirectChannel()
178 size, ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER, resourceHandle); in ASensorManager_createHardwareBufferDirectChannel()
/frameworks/native/libs/sensor/
DSensorManager.cpp255 size_t size, int channelType, const native_handle_t *resourceHandle) { in createDirectChannel() argument
271 SENSOR_DIRECT_FMT_SENSORS_EVENT, resourceHandle); in createDirectChannel()