/packages/services/DeviceAsWebcam/jni/ |
D | SdkFrameProvider.cpp | 58 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()
|
D | SdkFrameProvider.h | 39 Status encodeImage(AHardwareBuffer* hardwareBuffer, long timestamp, int rotation) override; 46 Status getHardwareBufferDescFromHardwareBuffer(AHardwareBuffer* hardwareBuffer,
|
D | DeviceAsWebcamServiceManager.cpp | 86 int DeviceAsWebcamServiceManager::encodeImage(JNIEnv* env, jobject hardwareBuffer, in encodeImage() argument 94 AHardwareBuffer* buffer = AHardwareBuffer_fromHardwareBuffer(env, hardwareBuffer); in encodeImage()
|
D | DeviceAsWebcamNative.cpp | 91 jobject hardwareBuffer, in com_android_DeviceAsWebcam_encodeImage() argument 94 return DeviceAsWebcamServiceManager::kInstance->encodeImage(env, hardwareBuffer, timestamp, in com_android_DeviceAsWebcam_encodeImage()
|
D | FrameProvider.h | 45 virtual Status encodeImage(AHardwareBuffer* hardwareBuffer, long timestamp, int rotation) = 0;
|
D | DeviceAsWebcamServiceManager.h | 43 int encodeImage(JNIEnv* env, jobject hardwareBuffer, jlong timestamp, jint rotation);
|
D | DeviceAsWebcamNative.h | 45 jobject hardwareBuffer, jlong timestamp,
|
D | UVCProvider.h | 110 int encodeImage(AHardwareBuffer* hardwareBuffer, long timestamp, jint rotation);
|
/packages/modules/ExtServices/java/src/android/ext/services/displayhash/ |
D | ImageHashManager.java | 35 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/ |
D | ShimConverter.cpp | 458 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/ |
D | android_ext_services_displayhash_ImageHashManager.cpp | 73 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/ |
D | MockImageHashManager.java | 26 @Size(8) byte[] generateHash(HardwareBuffer hardwareBuffer, String hashAlgorithm) { in generateHash() argument
|
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/ |
D | CameraController.java | 297 HardwareBuffer hardwareBuffer; 329 hardwareBuffer = image.getHardwareBuffer(); 331 mImageMap.put(ts, new ImageAndBuffer(image, hardwareBuffer)); 334 hardwareBuffer, ts, getCurrentRotation()) != 0)) {
|