Home
last modified time | relevance | path

Searched refs:hardwareBuffer (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/native/android/
Dhardware_buffer_jni.cpp29 jobject AHardwareBuffer_toHardwareBuffer(JNIEnv* env, AHardwareBuffer* hardwareBuffer) { in AHardwareBuffer_toHardwareBuffer() argument
30 return android_hardware_HardwareBuffer_createFromAHardwareBuffer(env, hardwareBuffer); in AHardwareBuffer_toHardwareBuffer()
/frameworks/av/media/ndk/tests/
DAImageReaderWindowHandleTest.cpp89 AHardwareBuffer *hardwareBuffer = nullptr; in HandleImageAvailable() local
90 ret = AImage_getHardwareBuffer(img.get(), &hardwareBuffer); in HandleImageAvailable()
92 ASSERT_NE(hardwareBuffer, nullptr); in HandleImageAvailable()
93 const native_handle_t *nh = AHardwareBuffer_getNativeHandle(hardwareBuffer); in HandleImageAvailable()
/frameworks/rs/
DrsGrallocConsumer.cpp151 AHardwareBuffer *hardwareBuffer = nullptr; in lockNextBuffer() local
152 ret = AImage_getHardwareBuffer(img, &hardwareBuffer); in lockNextBuffer()
153 if (ret != AMEDIA_OK || hardwareBuffer == nullptr) { in lockNextBuffer()
163 mAlloc[idx]->mHal.state.nativeBuffer = hardwareBuffer; in lockNextBuffer()
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java557 MemoryFile memoryFile, HardwareBuffer hardwareBuffer) { in createDirectChannelImpl() argument
583 } else if (hardwareBuffer != null) { in createDirectChannelImpl()
584 if (hardwareBuffer.getFormat() != HardwareBuffer.BLOB) { in createDirectChannelImpl()
587 if (hardwareBuffer.getHeight() != 1) { in createDirectChannelImpl()
590 if (hardwareBuffer.getWidth() < MIN_DIRECT_CHANNEL_BUFFER_SIZE) { in createDirectChannelImpl()
595 if ((hardwareBuffer.getUsage() & HardwareBuffer.USAGE_SENSOR_DIRECT_DATA) == 0) { in createDirectChannelImpl()
599 size = hardwareBuffer.getWidth(); in createDirectChannelImpl()
602 -1, hardwareBuffer); in createDirectChannelImpl()
DSensorManager.java936 MemoryFile memoryFile, HardwareBuffer hardwareBuffer); in createDirectChannelImpl() argument
/frameworks/native/include/android/
Dhardware_buffer_jni.h58 AHardwareBuffer* hardwareBuffer) __INTRODUCED_IN(26);
/frameworks/base/core/jni/include/android_runtime/
Dandroid_hardware_HardwareBuffer.h32 JNIEnv* env, AHardwareBuffer* hardwareBuffer);
/frameworks/base/core/jni/
Dandroid_hardware_HardwareBuffer.cpp213 JNIEnv* env, AHardwareBuffer* hardwareBuffer) { in android_hardware_HardwareBuffer_createFromAHardwareBuffer() argument
214 GraphicBuffer* buffer = AHardwareBuffer_to_GraphicBuffer(hardwareBuffer); in android_hardware_HardwareBuffer_createFromAHardwareBuffer()
Dandroid_hardware_SensorManager.cpp245 AHardwareBuffer *hardwareBuffer = in nativeCreateDirectChannel() local
247 if (hardwareBuffer != nullptr) { in nativeCreateDirectChannel()
248 nativeHandle = AHardwareBuffer_getNativeHandle(hardwareBuffer); in nativeCreateDirectChannel()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java753 public static Bitmap wrapHardwareBuffer(@NonNull HardwareBuffer hardwareBuffer, in wrapHardwareBuffer() argument
755 if ((hardwareBuffer.getUsage() & HardwareBuffer.USAGE_GPU_SAMPLED_IMAGE) == 0) { in wrapHardwareBuffer()
758 int format = hardwareBuffer.getFormat(); in wrapHardwareBuffer()
762 return nativeWrapHardwareBufferBitmap(hardwareBuffer, colorSpace.getNativeInstance()); in wrapHardwareBuffer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DAsyncSensorManager.java107 HardwareBuffer hardwareBuffer) { in createDirectChannelImpl() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/
DFakeSensorManager.java145 HardwareBuffer hardwareBuffer) { in createDirectChannelImpl() argument
/frameworks/ml/nn/common/
DCpuExecutor.cpp277 AHardwareBuffer* hardwareBuffer, uint32_t size);
305 AHardwareBuffer* hardwareBuffer, in RunTimePoolInfoImpl() argument
310 mAHardwareBuffer(hardwareBuffer), in RunTimePoolInfoImpl()
359 AHardwareBuffer* hardwareBuffer = nullptr; in createFromHidlMemory() local
401 &desc, handle, AHARDWAREBUFFER_CREATE_FROM_HANDLE_METHOD_CLONE, &hardwareBuffer); in createFromHidlMemory()
408 status = AHardwareBuffer_lock(hardwareBuffer, usage, -1, nullptr, &gBuffer); in createFromHidlMemory()
420 hidlMemory, buffer, memory, hardwareBuffer, hidlMemory.size()); in createFromHidlMemory()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp1115 static jobject Bitmap_wrapHardwareBufferBitmap(JNIEnv* env, jobject, jobject hardwareBuffer, in Bitmap_wrapHardwareBufferBitmap() argument
1118 hardwareBuffer); in Bitmap_wrapHardwareBufferBitmap()