Home
last modified time | relevance | path

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

/packages/services/DeviceAsWebcam/jni/
DSdkFrameProvider.cpp58 Status SdkFrameProvider::encodeImage(AHardwareBuffer* hardwareBuffer, long timestamp, in encodeImage() argument
61 if (getHardwareBufferDescFromHardwareBuffer(hardwareBuffer, desc) != Status::OK) { in encodeImage()
68 Status SdkFrameProvider::getHardwareBufferDescFromHardwareBuffer(AHardwareBuffer* hardwareBuffer, in getHardwareBufferDescFromHardwareBuffer() argument
70 if (hardwareBuffer == nullptr) { in getHardwareBufferDescFromHardwareBuffer()
77 AHardwareBuffer_acquire(hardwareBuffer); in getHardwareBufferDescFromHardwareBuffer()
80 if (AHardwareBuffer_lockPlanes(hardwareBuffer, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN, in getHardwareBufferDescFromHardwareBuffer()
83 AHardwareBuffer_release(hardwareBuffer); in getHardwareBufferDescFromHardwareBuffer()
87 AHardwareBuffer_describe(hardwareBuffer, &desc); in getHardwareBufferDescFromHardwareBuffer()
123 mBufferIdToAHardwareBuffer[ret.bufferId] = hardwareBuffer; in getHardwareBufferDescFromHardwareBuffer()
DSdkFrameProvider.h39 Status encodeImage(AHardwareBuffer* hardwareBuffer, long timestamp, int rotation) override;
46 Status getHardwareBufferDescFromHardwareBuffer(AHardwareBuffer* hardwareBuffer,
DDeviceAsWebcamServiceManager.cpp86 int DeviceAsWebcamServiceManager::encodeImage(JNIEnv* env, jobject hardwareBuffer, in encodeImage() argument
94 AHardwareBuffer* buffer = AHardwareBuffer_fromHardwareBuffer(env, hardwareBuffer); in encodeImage()
DDeviceAsWebcamNative.cpp91 jobject hardwareBuffer, in com_android_DeviceAsWebcam_encodeImage() argument
94 return DeviceAsWebcamServiceManager::kInstance->encodeImage(env, hardwareBuffer, timestamp, in com_android_DeviceAsWebcam_encodeImage()
DFrameProvider.h45 virtual Status encodeImage(AHardwareBuffer* hardwareBuffer, long timestamp, int rotation) = 0;
DDeviceAsWebcamServiceManager.h43 int encodeImage(JNIEnv* env, jobject hardwareBuffer, jlong timestamp, jint rotation);
DDeviceAsWebcamNative.h45 jobject hardwareBuffer, jlong timestamp,
DUVCProvider.h110 int encodeImage(AHardwareBuffer* hardwareBuffer, long timestamp, jint rotation);
/packages/modules/ExtServices/java/src/android/ext/services/displayhash/
DImageHashManager.java35 private static native byte[] nativeGenerateHash(HardwareBuffer hardwareBuffer, in nativeGenerateHash() argument
39 @Size(8) byte[] generateHash(@NonNull HardwareBuffer hardwareBuffer, String hashAlgorithm) { in generateHash() argument
40 return nativeGenerateHash(hardwareBuffer, hashAlgorithm); in generateHash()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimConverter.cpp458 case Tag::hardwareBuffer: { in convertFromHAL()
459 const auto& hardwareBuffer = pool.get<Tag::hardwareBuffer>(); in convertFromHAL() local
461 native_handle_t* handle = ::android::dupFromAidl(hardwareBuffer.handle); in convertFromHAL()
478 .width = static_cast<uint32_t>(hardwareBuffer.description.width), in convertFromHAL()
479 .height = static_cast<uint32_t>(hardwareBuffer.description.height), in convertFromHAL()
480 .layers = static_cast<uint32_t>(hardwareBuffer.description.layers), in convertFromHAL()
481 .format = static_cast<uint32_t>(hardwareBuffer.description.format), in convertFromHAL()
482 .usage = static_cast<uint64_t>(hardwareBuffer.description.usage), in convertFromHAL()
483 .stride = static_cast<uint32_t>(hardwareBuffer.description.stride), in convertFromHAL()
/packages/modules/ExtServices/jni/
Dandroid_ext_services_displayhash_ImageHashManager.cpp73 AHardwareBuffer* hardwareBuffer = AHardwareBuffer_fromHardwareBuffer(env, hardwareBufferObj); in nativeGenerateHash() local
76 AHardwareBuffer_describe(hardwareBuffer, &bufferDesc); in nativeGenerateHash()
78 BufferWrapper bufferWrapper(hardwareBuffer); in nativeGenerateHash()
/packages/modules/ExtServices/java/tests/src/android/ext/services/displayhash/
DMockImageHashManager.java26 @Size(8) byte[] generateHash(HardwareBuffer hardwareBuffer, String hashAlgorithm) { in generateHash() argument
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DCameraController.java297 HardwareBuffer hardwareBuffer;
329 hardwareBuffer = image.getHardwareBuffer();
331 mImageMap.put(ts, new ImageAndBuffer(image, hardwareBuffer));
334 hardwareBuffer, ts, getCurrentRotation()) != 0)) {