Merge "Expose SensorPrivacy as SystemApi" into sc-dev

This commit is contained in:
Evan Severson
2021-02-25 18:29:43 +00:00
committed by Android (Google) Code Review
18 changed files with 248 additions and 102 deletions

View File

@@ -3623,11 +3623,26 @@ public abstract class PackageManager {
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device supports a enabling/disabling sensor privacy for
* camera. When sensory privacy for the camera is enabled no camera data is send to clients,
* microphone. When sensory privacy for the microphone is enabled no microphone data is sent to
* clients, e.g. all audio data is silent.
*
* @hide
*/
@SystemApi
@TestApi
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_MICROPHONE_TOGGLE = "android.hardware.microphone.toggle";
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device supports a enabling/disabling sensor privacy for
* camera. When sensory privacy for the camera is enabled no camera data is sent to clients,
* e.g. the view finder in a camera app would appear blank.
*
* @hide
*/
@SystemApi
@TestApi
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_CAMERA_TOGGLE = "android.hardware.camera.toggle";