Merge "Expose SensorPrivacy as SystemApi" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
445abca30e
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user