/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | IndividualSensorPrivacyControllerImpl.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE; 22 import android.hardware.SensorPrivacyManager; 23 import android.hardware.SensorPrivacyManager.Sensors.Sensor; 24 import android.hardware.SensorPrivacyManager.Sources.Source; 25 import android.hardware.SensorPrivacyManager.ToggleType; 37 private final @NonNull SensorPrivacyManager mSensorPrivacyManager; 44 @NonNull SensorPrivacyManager sensorPrivacyManager) { in IndividualSensorPrivacyControllerImpl() 66 SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, sensor); in init() 68 SensorPrivacyManager.TOGGLE_TYPE_HARDWARE, sensor); in init() [all …]
|
H A D | SensorPrivacyControllerImpl.java | 19 import android.hardware.SensorPrivacyManager; 34 SensorPrivacyManager.OnAllSensorPrivacyChangedListener { 35 private SensorPrivacyManager mSensorPrivacyManager; 43 public SensorPrivacyControllerImpl(@NonNull SensorPrivacyManager sensorPrivacyManager) { in SensorPrivacyControllerImpl()
|
H A D | IndividualSensorPrivacyController.java | 19 import android.hardware.SensorPrivacyManager.Sensors.Sensor; 20 import android.hardware.SensorPrivacyManager.Sources.Source;
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | BiometricCameraManagerImpl.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 22 import android.hardware.SensorPrivacyManager; 30 private final SensorPrivacyManager mSensorPrivacyManager; 47 @NonNull SensorPrivacyManager sensorPrivacyManager) { in BiometricCameraManagerImpl() 66 .isSensorPrivacyEnabled(SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, CAMERA); in isCameraPrivacyEnabled()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/ |
H A D | FaceDetectClient.java | 22 import android.hardware.SensorPrivacyManager; 53 @Nullable private SensorPrivacyManager mSensorPrivacyManager; 63 context.getSystemService(SensorPrivacyManager.class)); in FaceDetectClient() 72 boolean isStrongBiometric, SensorPrivacyManager sensorPrivacyManager) { in FaceDetectClient() 106 .isSensorPrivacyEnabled(SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, in startHalOperation() 107 SensorPrivacyManager.Sensors.CAMERA)) { in startHalOperation()
|
H A D | FaceAuthenticationClient.java | 24 import android.hardware.SensorPrivacyManager; 77 private SensorPrivacyManager mSensorPrivacyManager; 94 context.getSystemService(SensorPrivacyManager.class), sensorStrength); in FaceAuthenticationClient() 107 SensorPrivacyManager sensorPrivacyManager, in FaceAuthenticationClient() 149 .isSensorPrivacyEnabled(SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, in startHalOperation() 150 SensorPrivacyManager.Sensors.CAMERA)) { in startHalOperation()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/ |
H A D | SensorUseStartedActivity.kt | 26 import android.hardware.SensorPrivacyManager 27 import android.hardware.SensorPrivacyManager.EXTRA_ALL_SENSORS 28 import android.hardware.SensorPrivacyManager.EXTRA_SENSOR 29 import android.hardware.SensorPrivacyManager.Sources.DIALOG 64 internal const val CAMERA = SensorPrivacyManager.Sensors.CAMERA 65 internal const val MICROPHONE = SensorPrivacyManager.Sensors.MICROPHONE
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/television/ |
H A D | TvSensorPrivacyChangedActivity.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE; 27 import android.hardware.SensorPrivacyManager; 81 boolean allSensors = getIntent().getBooleanExtra(SensorPrivacyManager.EXTRA_ALL_SENSORS, in onCreate() 86 mSensor = getIntent().getIntExtra(SensorPrivacyManager.EXTRA_SENSOR, -1); in onCreate() 89 mToggleType = getIntent().getIntExtra(SensorPrivacyManager.EXTRA_TOGGLE_TYPE, -1); in onCreate() 98 if (mToggleType == SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE) { in onCreate()
|
H A D | TvUnblockSensorActivity.java | 20 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 21 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE; 22 import static android.hardware.SensorPrivacyManager.Sources.OTHER; 33 import android.hardware.SensorPrivacyManager; 94 boolean allSensors = getIntent().getBooleanExtra(SensorPrivacyManager.EXTRA_ALL_SENSORS, in onCreate() 99 mSensor = getIntent().getIntExtra(SensorPrivacyManager.EXTRA_SENSOR, -1); in onCreate()
|
/aosp14/frameworks/base/core/java/android/hardware/ |
H A D | SensorPrivacyManager.java | 51 public final class SensorPrivacyManager { class 53 private static final String LOG_TAG = SensorPrivacyManager.class.getSimpleName(); 65 public static final String EXTRA_SENSOR = SensorPrivacyManager.class.getName() 72 public static final String EXTRA_ALL_SENSORS = SensorPrivacyManager.class.getName() 79 public static final String EXTRA_TOGGLE_TYPE = SensorPrivacyManager.class.getName() 288 private static SensorPrivacyManager sInstance; 342 private SensorPrivacyManager(Context context, ISensorPrivacyManager service) { in SensorPrivacyManager() method in SensorPrivacyManager 353 public static SensorPrivacyManager getInstance(Context context) { in getInstance() 359 sInstance = new SensorPrivacyManager(context, service); in getInstance() 373 public static SensorPrivacyManager getInstance(Context context, ISensorPrivacyManager service) { in getInstance() [all …]
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
H A D | SensorPrivacyServiceMockingTest.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE; 21 import static android.hardware.SensorPrivacyManager.TOGGLE_TYPE_HARDWARE; 22 import static android.hardware.SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE; 38 import android.hardware.SensorPrivacyManager; 304 assertEquals(SensorPrivacyManager.StateTypes.DISABLED, micState.getState()); in testGetDefaultState() 305 assertEquals(SensorPrivacyManager.StateTypes.DISABLED, camState.getState()); in testGetDefaultState() 326 doReturn(SensorPrivacyManager.StateTypes.ENABLED).when(sensorState).getState(); in testGetSetState() 335 assertEquals(SensorPrivacyManager.StateTypes.ENABLED, micState.getState()); in testGetSetState() 363 assertEquals(SensorPrivacyManager.StateTypes.ENABLED, captor.getValue().getState()); in testSetState()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | RotationLockTile.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 26 import android.hardware.SensorPrivacyManager; 68 private final SensorPrivacyManager mPrivacyManager; 85 SensorPrivacyManager privacyManager, in RotationLockTile() 224 private final SensorPrivacyManager.OnSensorPrivacyChangedListener
|
H A D | MicrophoneToggleTile.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE; 24 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
|
H A D | CameraToggleTile.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 24 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
|
H A D | SensorPrivacyToggleTile.java | 19 import static android.hardware.SensorPrivacyManager.Sources.QS_TILE; 22 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/hidl/ |
H A D | FaceAuthenticationClient.java | 22 import android.hardware.SensorPrivacyManager; 67 private SensorPrivacyManager mSensorPrivacyManager; 86 mSensorPrivacyManager = context.getSystemService(SensorPrivacyManager.class); in FaceAuthenticationClient() 117 .isSensorPrivacyEnabled(SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, in startHalOperation() 118 SensorPrivacyManager.Sensors.CAMERA)) { in startHalOperation()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/ |
H A D | DreamOverlayStatusBarViewControllerTest.java | 38 import android.hardware.SensorPrivacyManager; 223 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsMicIconWhenDisabled() 225 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testOnViewAttachedShowsMicIconWhenDisabled() 234 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsCameraIconWhenDisabled() 236 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testOnViewAttachedShowsCameraIconWhenDisabled() 245 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsMicCameraIconWhenDisabled() 247 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testOnViewAttachedShowsMicCameraIconWhenDisabled() 431 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testMicCameraIconShownWhenSensorsBlocked() 433 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testMicCameraIconShownWhenSensorsBlocked() 440 SensorPrivacyManager.Sensors.MICROPHONE, true); in testMicCameraIconShownWhenSensorsBlocked()
|
/aosp14/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
H A D | SensorState.java | 19 import static android.hardware.SensorPrivacyManager.StateTypes.DISABLED; 20 import static android.hardware.SensorPrivacyManager.StateTypes.ENABLED;
|
H A D | SensorPrivacyService.java | 36 import static android.hardware.SensorPrivacyManager.EXTRA_ALL_SENSORS; 37 import static android.hardware.SensorPrivacyManager.EXTRA_SENSOR; 38 import static android.hardware.SensorPrivacyManager.EXTRA_TOGGLE_TYPE; 39 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 40 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE; 41 import static android.hardware.SensorPrivacyManager.Sources.DIALOG; 42 import static android.hardware.SensorPrivacyManager.Sources.OTHER; 43 import static android.hardware.SensorPrivacyManager.Sources.QS_TILE; 44 import static android.hardware.SensorPrivacyManager.Sources.SETTINGS; 45 import static android.hardware.SensorPrivacyManager.Sources.SHELL; [all …]
|
H A D | PersistedState.java | 19 import android.hardware.SensorPrivacyManager; 299 if (userSensor.mType != SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE) { in persist() 481 result.addState(SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, in fromPVersion1()
|
/aosp14/frameworks/base/services/core/java/com/android/server/rotationresolver/ |
H A D | RotationResolverManagerService.java | 35 import android.hardware.SensorPrivacyManager; 87 private final SensorPrivacyManager mPrivacyManager; 98 mPrivacyManager = SensorPrivacyManager.getInstance(context); in RotationResolverManagerService() 191 SensorPrivacyManager.Sensors.CAMERA); in resolveRotation()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/ |
H A D | TvSystemUIModule.java | 23 import android.hardware.SensorPrivacyManager; 117 SensorPrivacyManager sensorPrivacyManager) { in provideSensorPrivacyController() 126 SensorPrivacyManager sensorPrivacyManager) { in provideIndividualSensorPrivacyController()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/ |
H A D | ReferenceSystemUIModule.java | 23 import android.hardware.SensorPrivacyManager; 127 SensorPrivacyManager sensorPrivacyManager) { in provideSensorPrivacyController() 136 SensorPrivacyManager sensorPrivacyManager) { in provideIndividualSensorPrivacyController()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
H A D | RotationLockTileTest.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 28 import android.hardware.SensorPrivacyManager; 85 private SensorPrivacyManager mPrivacyManager;
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/ |
H A D | DreamOverlayStatusBarViewController.java | 22 import android.hardware.SensorPrivacyManager; 308 .isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE); in updateMicCameraBlockedStatusIcon() 310 .isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA); in updateMicCameraBlockedStatusIcon()
|