/frameworks/native/libs/sensorprivacy/ |
D | SensorPrivacyManager.cpp | 28 SensorPrivacyManager::SensorPrivacyManager() in SensorPrivacyManager() function in android::SensorPrivacyManager 32 sp<hardware::ISensorPrivacyManager> SensorPrivacyManager::getService() in getService() 43 bool SensorPrivacyManager::supportsSensorToggle(int toggleType, int sensor) { in supportsSensorToggle() 59 void SensorPrivacyManager::addSensorPrivacyListener( in addSensorPrivacyListener() 68 status_t SensorPrivacyManager::addToggleSensorPrivacyListener( in addToggleSensorPrivacyListener() 79 void SensorPrivacyManager::removeSensorPrivacyListener( in removeSensorPrivacyListener() 88 void SensorPrivacyManager::removeToggleSensorPrivacyListener( in removeToggleSensorPrivacyListener() 97 bool SensorPrivacyManager::isSensorPrivacyEnabled() in isSensorPrivacyEnabled() 109 bool SensorPrivacyManager::isToggleSensorPrivacyEnabled(int sensor) in isToggleSensorPrivacyEnabled() 121 bool SensorPrivacyManager::isToggleSensorPrivacyEnabled(int toggleType, int sensor) in isToggleSensorPrivacyEnabled() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | IndividualSensorPrivacyControllerImpl.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE; 25 import android.hardware.SensorPrivacyManager; 26 import android.hardware.SensorPrivacyManager.Sensors.Sensor; 27 import android.hardware.SensorPrivacyManager.Sources.Source; 28 import android.hardware.SensorPrivacyManager.ToggleType; 43 private final @NonNull SensorPrivacyManager mSensorPrivacyManager; 50 @NonNull SensorPrivacyManager sensorPrivacyManager) { in IndividualSensorPrivacyControllerImpl() 57 new SensorPrivacyManager.OnSensorPrivacyChangedListener() { in init() 72 SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, sensor); in init() [all …]
|
D | SensorPrivacyControllerImpl.java | 19 import android.hardware.SensorPrivacyManager; 34 SensorPrivacyManager.OnAllSensorPrivacyChangedListener { 35 private SensorPrivacyManager mSensorPrivacyManager; 43 public SensorPrivacyControllerImpl(@NonNull SensorPrivacyManager sensorPrivacyManager) { in SensorPrivacyControllerImpl()
|
D | IndividualSensorPrivacyController.java | 20 import android.hardware.SensorPrivacyManager.Sensors.Sensor; 21 import android.hardware.SensorPrivacyManager.Sources.Source;
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/camera/data/repository/ |
D | CameraSensorPrivacyRepository.kt | 19 import android.hardware.SensorPrivacyManager in <lambda>() 20 import android.hardware.SensorPrivacyManager.Sensors.CAMERA in <lambda>() 49 private val privacyManager: SensorPrivacyManager, 63 fun SensorPrivacyManager.isEnabled(userHandle: UserHandle): Flow<Boolean> { in SensorPrivacyManager() method 66 SensorPrivacyManager.OnSensorPrivacyChangedListener { sensor, enabled -> in SensorPrivacyManager() 74 .onStart { emit(isSensorPrivacyEnabled(SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, CAMERA)) } in SensorPrivacyManager()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/camera/data/repository/ |
D | CameraSensorPrivacyRepositoryImplTest.kt | 19 import android.hardware.SensorPrivacyManager 46 private val privacyManager = mock<SensorPrivacyManager>() 83 SensorPrivacyManager.OnSensorPrivacyChangedListener::class.java in isEnabled_dataMatchesSensorPrivacyManager() 90 ArgumentMatchers.eq(SensorPrivacyManager.Sensors.CAMERA), in isEnabled_dataMatchesSensorPrivacyManager() 96 sensorPrivacyCallback.onSensorPrivacyChanged(SensorPrivacyManager.Sensors.CAMERA, true) in isEnabled_dataMatchesSensorPrivacyManager() 100 sensorPrivacyCallback.onSensorPrivacyChanged(SensorPrivacyManager.Sensors.CAMERA, false) in isEnabled_dataMatchesSensorPrivacyManager()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/sensorprivacy/domain/interactor/ |
D | SensorPrivacyToggleTileUserActionInteractorTest.kt | 19 import android.hardware.SensorPrivacyManager 20 import android.hardware.SensorPrivacyManager.Sensors.CAMERA 21 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE 80 eq(SensorPrivacyManager.Sources.QS_TILE), in <lambda>() 96 eq(SensorPrivacyManager.Sources.QS_TILE), in <lambda>() 115 eq(SensorPrivacyManager.Sources.QS_TILE), in <lambda>() 160 .setSensorBlocked(eq(SensorPrivacyManager.Sources.QS_TILE), eq(MICROPHONE), eq(true)) in <lambda>() 166 .setSensorBlocked(eq(SensorPrivacyManager.Sources.QS_TILE), eq(MICROPHONE), eq(false)) in <lambda>()
|
D | SensorPrivacyToggleTileDataInteractorTest.kt | 19 import android.hardware.SensorPrivacyManager.Sensors.CAMERA 20 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/ |
D | SensorUseStartedActivity.kt | 27 import android.hardware.SensorPrivacyManager in <lambda>() 28 import android.hardware.SensorPrivacyManager.EXTRA_ALL_SENSORS in <lambda>() 29 import android.hardware.SensorPrivacyManager.EXTRA_SENSOR in <lambda>() 30 import android.hardware.SensorPrivacyManager.Sources.DIALOG in <lambda>() 66 internal const val CAMERA = SensorPrivacyManager.Sensors.CAMERA in <lambda>() 67 internal const val MICROPHONE = SensorPrivacyManager.Sensors.MICROPHONE in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/ |
D | FaceDetectClient.java | 24 import android.hardware.SensorPrivacyManager; 61 @Nullable private SensorPrivacyManager mSensorPrivacyManager; 73 context.getSystemService(SensorPrivacyManager.class)); in FaceDetectClient() 83 boolean isStrongBiometric, SensorPrivacyManager sensorPrivacyManager) { in FaceDetectClient() 126 .isSensorPrivacyEnabled(SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, in startHalOperation() 127 SensorPrivacyManager.Sensors.CAMERA)) { in startHalOperation()
|
D | FaceAuthenticationClient.java | 32 import android.hardware.SensorPrivacyManager; 92 private final SensorPrivacyManager mSensorPrivacyManager; 112 context.getSystemService(SensorPrivacyManager.class), sensorStrength, in FaceAuthenticationClient() 126 SensorPrivacyManager sensorPrivacyManager, in FaceAuthenticationClient() 173 .isSensorPrivacyEnabled(SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, in startHalOperation() 174 SensorPrivacyManager.Sensors.CAMERA)) { in startHalOperation()
|
/frameworks/base/core/java/android/hardware/ |
D | SensorPrivacyManager.java | 54 public final class SensorPrivacyManager { class 56 private static final String LOG_TAG = SensorPrivacyManager.class.getSimpleName(); 68 public static final String EXTRA_SENSOR = SensorPrivacyManager.class.getName() 75 public static final String EXTRA_NOTIFICATION_ID = SensorPrivacyManager.class.getName() 82 public static final String EXTRA_ALL_SENSORS = SensorPrivacyManager.class.getName() 89 public static final String EXTRA_TOGGLE_TYPE = SensorPrivacyManager.class.getName() 327 private static SensorPrivacyManager sInstance; 403 private SensorPrivacyManager(Context context, ISensorPrivacyManager service) { in SensorPrivacyManager() method in SensorPrivacyManager 414 public static SensorPrivacyManager getInstance(Context context) { in getInstance() 420 sInstance = new SensorPrivacyManager(context, service); in getInstance() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
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()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | KeyboardLedController.java | 25 import android.hardware.SensorPrivacyManager; 26 import android.hardware.SensorPrivacyManager.Sensors; 57 private SensorPrivacyManager mSensorPrivacyManager; 121 mContext.getSystemService(SensorPrivacyManager.class)); in systemRunning()
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | SensorState.java | 19 import static android.hardware.SensorPrivacyManager.StateTypes.DISABLED; 20 import static android.hardware.SensorPrivacyManager.StateTypes.ENABLED;
|
D | SensorPrivacyService.java | 37 import static android.hardware.SensorPrivacyManager.EXTRA_ALL_SENSORS; 38 import static android.hardware.SensorPrivacyManager.EXTRA_NOTIFICATION_ID; 39 import static android.hardware.SensorPrivacyManager.EXTRA_SENSOR; 40 import static android.hardware.SensorPrivacyManager.EXTRA_TOGGLE_TYPE; 41 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 42 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE; 43 import static android.hardware.SensorPrivacyManager.Sources.DIALOG; 44 import static android.hardware.SensorPrivacyManager.Sources.OTHER; 45 import static android.hardware.SensorPrivacyManager.Sources.QS_TILE; 46 import static android.hardware.SensorPrivacyManager.Sources.SETTINGS; [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
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
|
D | CameraToggleTile.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 24 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
|
D | MicrophoneToggleTile.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE; 24 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/statusbar/ui/ |
D | AmbientStatusBarViewControllerTest.java | 38 import android.hardware.SensorPrivacyManager; 202 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsMicIconWhenDisabled() 204 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testOnViewAttachedShowsMicIconWhenDisabled() 213 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsCameraIconWhenDisabled() 215 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testOnViewAttachedShowsCameraIconWhenDisabled() 224 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsMicCameraIconWhenDisabled() 226 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testOnViewAttachedShowsMicCameraIconWhenDisabled() 348 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testMicCameraIconShownWhenSensorsBlocked() 350 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testMicCameraIconShownWhenSensorsBlocked() 357 SensorPrivacyManager.Sensors.MICROPHONE, true); in testMicCameraIconShownWhenSensorsBlocked()
|
/frameworks/native/libs/sensorprivacy/include/sensorprivacy/ |
D | SensorPrivacyManager.h | 30 class SensorPrivacyManager 51 SensorPrivacyManager();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/sensorprivacy/ |
D | SensorPrivacyToggleTileDataInteractor.kt | 19 import android.hardware.SensorPrivacyManager.Sensors.CAMERA in <lambda>() 20 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE in <lambda>() 21 import android.hardware.SensorPrivacyManager.Sensors.Sensor in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/rotationresolver/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/sensorprivacy/domain/ |
D | SensorPrivacyToggleTileUserActionInteractor.kt | 20 import android.hardware.SensorPrivacyManager.Sensors.Sensor 21 import android.hardware.SensorPrivacyManager.Sources.QS_TILE
|