summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorEmilian Peev <epeev@google.com>2021-06-28 17:50:55 -0700
committerEmilian Peev <epeev@google.com>2021-07-08 11:51:56 -0700
commit07d8600a359699d71fcc6d630ba606aa462a56d7 (patch)
treed9f4010ef7c078fa4cf4afead2425a18121dae3f /core/java/android
parent576c548b3ccc278fccb43e8fab58265d38ebff0c (diff)
Camera: Set metadata vendor id in extension proxy service
Set the appropriate vendor id for any native metadata instantiated within the camera extension proxy service. Bug: 187341271 Test: Partner verified, Camera CTS Change-Id: I07e0be304baac017d44606c1612a24c520bed588
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/hardware/camera2/impl/CameraMetadataNative.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/hardware/camera2/impl/CameraMetadataNative.java b/core/java/android/hardware/camera2/impl/CameraMetadataNative.java
index e23bf78d6e76..09fe1020ea59 100644
--- a/core/java/android/hardware/camera2/impl/CameraMetadataNative.java
+++ b/core/java/android/hardware/camera2/impl/CameraMetadataNative.java
@@ -1884,6 +1884,8 @@ public class CameraMetadataNative implements Parcelable {
private static native int nativeGetEntryCount(long ptr);
@FastNative
private static native long nativeGetBufferSize(long ptr);
+ @FastNative
+ private static native void nativeSetVendorId(long ptr, long vendorId);
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
@FastNative
@@ -1929,6 +1931,15 @@ public class CameraMetadataNative implements Parcelable {
}
/**
+ * Set the native metadata vendor id.
+ *
+ * @hide
+ */
+ public void setVendorId(long vendorId) {
+ nativeSetVendorId(mMetadataPtr, vendorId);
+ }
+
+ /**
* @hide
*/
public int getEntryCount() {