Home
last modified time | relevance | path

Searched refs:SENSOR_CAMERA (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
DSensorToggleControllerTest.java21 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_CAMERA;
269 doReturn(false).when(mSensorPrivacyManagerHelper).supportsSensorToggle(SENSOR_CAMERA); in getAvailabilityStatus_CameraToggleNotSupported_returnUnsupported()
282 doReturn(true).when(mSensorPrivacyManagerHelper).supportsSensorToggle(SENSOR_CAMERA); in getAvailabilityStatus_CameraToggleSupported_returnAvailable()
295 doReturn(false).when(mSensorPrivacyManagerHelper).isSensorBlocked(SENSOR_CAMERA); in isChecked_disableCameraSensorPrivacy_returnTrue()
308 doReturn(true).when(mSensorPrivacyManagerHelper).isSensorBlocked(SENSOR_CAMERA); in isChecked_enableCameraSensorPrivacy_returnFalse()
321 .addSensorBlockedListener(eq(SENSOR_CAMERA), any(), any()); in startCameraToggleController_invokeAddSensorBlockedListener()
333 .addSensorBlockedListener(eq(SENSOR_CAMERA), any(), callbackCaptor.capture()); in stopCameraToggleController_invokeRemoveSensorBlockedListener()
348 doReturn(false).when(mSensorPrivacyManagerHelper).isSensorBlocked(SENSOR_CAMERA); in isChecked_disableCameraSensorPrivacyThenChanged_returnFalse()
358 .addSensorBlockedListener(eq(SENSOR_CAMERA), any(), callbackCaptor.capture()); in isChecked_disableCameraSensorPrivacyThenChanged_returnFalse()
361 doReturn(true).when(mSensorPrivacyManagerHelper).isSensorBlocked(SENSOR_CAMERA); in isChecked_disableCameraSensorPrivacyThenChanged_returnFalse()
[all …]
DSensorPrivacyManagerHelperTest.java21 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_CAMERA;
170 mSensorPrivacyManagerHelper.addSensorBlockedListener(SENSOR_CAMERA, mExecutor, in addCallbackCameraOnlyFilter_invokeCallbackCameraOnly()
175 verify(callback, never()).onSensorPrivacyChanged(anyInt(), eq(SENSOR_CAMERA), in addCallbackCameraOnlyFilter_invokeCallbackCameraOnly()
211 SENSOR_CAMERA, mExecutor, callback); in addCallbackSoftwareCameraOnlyFilter_invokeCallbackSoftwareCameraOnly()
216 eq(SENSOR_CAMERA), anyBoolean()); in addCallbackSoftwareCameraOnlyFilter_invokeCallbackSoftwareCameraOnly()
251 SENSOR_CAMERA, mExecutor, callback); in addCallbackHardwareCameraOnlyFilter_invokeCallbackHardwareCameraOnly()
256 eq(SENSOR_CAMERA), anyBoolean()); in addCallbackHardwareCameraOnlyFilter_invokeCallbackHardwareCameraOnly()
288 int[] sensors = {SENSOR_MICROPHONE, SENSOR_CAMERA}; in verifyAllCases()
/packages/apps/Settings/src/com/android/settings/privacy/
DCameraToggleController.java21 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_CAMERA;
46 return SENSOR_CAMERA; in getSensor()
/packages/apps/Settings/src/com/android/settings/utils/
DSensorPrivacyManagerHelper.kt105 addSensorBlockedListener(toggleType, SENSOR_CAMERA, executor, callback) in <lambda>()
138 const val SENSOR_CAMERA = SensorPrivacyManager.Sensors.CAMERA in <lambda>() constant
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollIntroduction.java231 .isSensorBlocked(SensorPrivacyManagerHelper.SENSOR_CAMERA); in onCreate()
536 .isSensorBlocked(SensorPrivacyManagerHelper.SENSOR_CAMERA); in onNextButtonClick()