Home
last modified time | relevance | path

Searched refs:SensorPrivacyManager (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/native/libs/sensorprivacy/
DSensorPrivacyManager.cpp28 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/
DIndividualSensorPrivacyControllerImpl.java19 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 …]
DSensorPrivacyControllerImpl.java19 import android.hardware.SensorPrivacyManager;
34 SensorPrivacyManager.OnAllSensorPrivacyChangedListener {
35 private SensorPrivacyManager mSensorPrivacyManager;
43 public SensorPrivacyControllerImpl(@NonNull SensorPrivacyManager sensorPrivacyManager) { in SensorPrivacyControllerImpl()
DIndividualSensorPrivacyController.java20 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
21 import android.hardware.SensorPrivacyManager.Sources.Source;
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricCameraManagerImpl.java19 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/
DCameraSensorPrivacyRepository.kt19 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/
DCameraSensorPrivacyRepositoryImplTest.kt19 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/
DSensorPrivacyToggleTileUserActionInteractorTest.kt19 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>()
DSensorPrivacyToggleTileDataInteractorTest.kt19 import android.hardware.SensorPrivacyManager.Sensors.CAMERA
20 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE
/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/
DSensorUseStartedActivity.kt27 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/
DFaceDetectClient.java24 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()
DFaceAuthenticationClient.java32 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/
DSensorPrivacyManager.java54 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/
DSensorPrivacyServiceMockingTest.java19 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/
DKeyboardLedController.java25 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/
DSensorState.java19 import static android.hardware.SensorPrivacyManager.StateTypes.DISABLED;
20 import static android.hardware.SensorPrivacyManager.StateTypes.ENABLED;
DSensorPrivacyService.java37 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/
DRotationLockTile.java19 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
DCameraToggleTile.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
24 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
DMicrophoneToggleTile.java19 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/
DAmbientStatusBarViewControllerTest.java38 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/
DSensorPrivacyManager.h30 class SensorPrivacyManager
51 SensorPrivacyManager();
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/sensorprivacy/
DSensorPrivacyToggleTileDataInteractor.kt19 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/
DRotationResolverManagerService.java35 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/
DSensorPrivacyToggleTileUserActionInteractor.kt20 import android.hardware.SensorPrivacyManager.Sensors.Sensor
21 import android.hardware.SensorPrivacyManager.Sources.QS_TILE

123