Searched refs:addSensorBlockedListener (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Settings/src/com/android/settings/utils/ |
D | SensorPrivacyManagerHelper.kt | 84 open fun addSensorBlockedListener(executor: Executor?, callback: Callback?) { in <lambda>() method 86 addSensorBlockedListener(SENSOR_ANY, executor, callback) in <lambda>() 89 open fun addSensorBlockedListener(sensor: Int, executor: Executor?, callback: Callback?) { in <lambda>() method 91 addSensorBlockedListener(TOGGLE_TYPE_ANY, sensor, executor, callback) in <lambda>() 94 open fun addSensorBlockedListener(toggleType: Int, sensor: Int, in <lambda>() method 98 addSensorBlockedListener(TOGGLE_TYPE_SOFTWARE, sensor, executor, callback) in <lambda>() 99 addSensorBlockedListener(TOGGLE_TYPE_HARDWARE, sensor, executor, callback) in <lambda>() 104 addSensorBlockedListener(toggleType, SENSOR_MICROPHONE, executor, callback) in <lambda>() 105 addSensorBlockedListener(toggleType, SENSOR_CAMERA, executor, callback) in <lambda>()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/ |
D | SensorPrivacyManagerHelperTest.java | 132 mSensorPrivacyManagerHelper.addSensorBlockedListener(mExecutor, callback); in addCallbackNoFilter_invokeCallback() 150 mSensorPrivacyManagerHelper.addSensorBlockedListener(SENSOR_MICROPHONE, mExecutor, in addCallbackMicrophoneOnlyFilter_invokeCallbackMicrophoneOnly() 170 mSensorPrivacyManagerHelper.addSensorBlockedListener(SENSOR_CAMERA, mExecutor, in addCallbackCameraOnlyFilter_invokeCallbackCameraOnly() 190 mSensorPrivacyManagerHelper.addSensorBlockedListener(TOGGLE_TYPE_SOFTWARE, in addCallbackSoftwareMicrophoneOnlyFilter_invokeCallbackSoftwareMicrophoneOnly() 210 mSensorPrivacyManagerHelper.addSensorBlockedListener(TOGGLE_TYPE_SOFTWARE, in addCallbackSoftwareCameraOnlyFilter_invokeCallbackSoftwareCameraOnly() 230 mSensorPrivacyManagerHelper.addSensorBlockedListener(TOGGLE_TYPE_HARDWARE, in addCallbackHardwareMicrophoneOnlyFilter_invokeCallbackHardwareMicrophoneOnly() 250 mSensorPrivacyManagerHelper.addSensorBlockedListener(TOGGLE_TYPE_HARDWARE, in addCallbackHardwareCameraOnlyFilter_invokeCallbackHardwareCameraOnly() 269 mSensorPrivacyManagerHelper.addSensorBlockedListener(mExecutor, callback); in removeCallback_noInvokeCallback()
|
D | SensorToggleControllerTest.java | 141 .addSensorBlockedListener(eq(SENSOR_MICROPHONE), any(), any()); in startMicrophoneToggleController_invokeAddSensorBlockedListener() 153 .addSensorBlockedListener(eq(SENSOR_MICROPHONE), any(), callbackCaptor.capture()); in stopMicrophoneToggleController_invokeRemoveSensorBlockedListener() 178 .addSensorBlockedListener(eq(SENSOR_MICROPHONE), any(), callbackCaptor.capture()); in isChecked_disableMicrophoneSensorPrivacyThenChanged_returnFalse() 206 .addSensorBlockedListener(eq(SENSOR_MICROPHONE), any(), callbackCaptor.capture()); in isChecked_enableMicrophoneSensorPrivacyThenChanged_returnTrue() 321 .addSensorBlockedListener(eq(SENSOR_CAMERA), any(), any()); in startCameraToggleController_invokeAddSensorBlockedListener() 333 .addSensorBlockedListener(eq(SENSOR_CAMERA), any(), callbackCaptor.capture()); in stopCameraToggleController_invokeRemoveSensorBlockedListener() 358 .addSensorBlockedListener(eq(SENSOR_CAMERA), any(), callbackCaptor.capture()); in isChecked_disableCameraSensorPrivacyThenChanged_returnFalse() 385 .addSensorBlockedListener(eq(SENSOR_CAMERA), any(), callbackCaptor.capture()); in isChecked_enableCameraSensorPrivacyThenChanged_returnTrue()
|
/packages/apps/Settings/src/com/android/settings/privacy/ |
D | SensorToggleController.java | 124 mSensorPrivacyManagerHelper.addSensorBlockedListener(getSensor(), mCallbackExecutor, this); in onStart()
|