Add capability MOTION TRACKING to EmulatedFakeCamera3
Motion Tracking is a feature to track fast moving objects, which
limits max exposure time to 20 ms.
Bug: 111746823
Test: run cts -m CtsAppTestCases -t android.app.cts.SystemFeaturesTest#testCameraFeatures
Change-Id: I4a49c940d15be9e13129788dc65d09223c19b6db
diff --git a/camera/EmulatedCamera3.h b/camera/EmulatedCamera3.h
index 9d2d7b2..02057e5 100644
--- a/camera/EmulatedCamera3.h
+++ b/camera/EmulatedCamera3.h
@@ -66,6 +66,7 @@
YUV_REPROCESSING,
DEPTH_OUTPUT,
CONSTRAINED_HIGH_SPEED_VIDEO,
+ MOTION_TRACKING,
// Levels
FULL_LEVEL,
diff --git a/camera/EmulatedFakeCamera3.cpp b/camera/EmulatedFakeCamera3.cpp
index 4330c02..96c2350 100644
--- a/camera/EmulatedFakeCamera3.cpp
+++ b/camera/EmulatedFakeCamera3.cpp
@@ -1113,6 +1113,7 @@
// "RAW" causes several CTS failures: b/68723953, disable it so far.
// TODO: add "RAW" back when all failures are resolved.
//mCapabilities.add(RAW);
+ mCapabilities.add(MOTION_TRACKING);
}
// Add level-based caps
@@ -1877,6 +1878,9 @@
case CONSTRAINED_HIGH_SPEED_VIDEO:
caps.add(ANDROID_REQUEST_AVAILABLE_CAPABILITIES_CONSTRAINED_HIGH_SPEED_VIDEO);
break;
+ case MOTION_TRACKING:
+ caps.add(ANDROID_REQUEST_AVAILABLE_CAPABILITIES_MOTION_TRACKING);
+ break;
default:
// Ignore LEVELs
break;