diff --git a/core/api/test-current.txt b/core/api/test-current.txt
index 2f795f0e103f8..5725230355568 100644
--- a/core/api/test-current.txt
+++ b/core/api/test-current.txt
@@ -1103,6 +1103,10 @@ package android.hardware.camera2 {
method @RequiresPermission(android.Manifest.permission.CAMERA_OPEN_CLOSE_LISTENER) public void onCameraOpened(@NonNull String, @NonNull String);
}
+ public abstract class CameraMetadata
For example:
- *android.control.testPatternData = [0, 0xFFFFFFFF, 0xFFFFFFFF, 0]
+ * {@link CaptureRequest#SENSOR_TEST_PATTERN_DATA android.sensor.testPatternData} = [0, 0xFFFFFFFF, 0xFFFFFFFF, 0]
*
* All green pixels are 100% green. All red/blue pixels are black.
- * android.control.testPatternData = [0xFFFFFFFF, 0, 0xFFFFFFFF, 0]
+ * {@link CaptureRequest#SENSOR_TEST_PATTERN_DATA android.sensor.testPatternData} = [0xFFFFFFFF, 0, 0xFFFFFFFF, 0]
*
* All red pixels are 100% red. Only the odd green pixels
* are 100% green. All blue pixels are 100% black.
@@ -3001,6 +3002,20 @@ public abstract class CameraMetadata {
*/
public static final int SENSOR_TEST_PATTERN_MODE_PN9 = 4;
+ /**
+ * All pixel data is replaced by 0% intensity (black) values.
+ * This test pattern is identical to SOLID_COLOR with a value of [0, 0, 0, 0] for
+ * {@link CaptureRequest#SENSOR_TEST_PATTERN_DATA android.sensor.testPatternData}. It is recommended that devices implement full
+ * SOLID_COLOR support instead, but BLACK can be used to provide minimal support for a
+ * test pattern suitable for privacy use cases.
+ *
+ * @see CaptureRequest#SENSOR_TEST_PATTERN_DATA
+ * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
+ * @hide
+ */
+ @TestApi
+ public static final int SENSOR_TEST_PATTERN_MODE_BLACK = 5;
+
/**
* The first custom test pattern. All custom patterns that are
* available only on this camera device are at least this numeric