Home
last modified time | relevance | path

Searched refs:SENSOR_MICROPHONE (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
DSensorToggleControllerTest.java22 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_MICROPHONE;
89 doReturn(false).when(mSensorPrivacyManagerHelper).supportsSensorToggle(SENSOR_MICROPHONE); in getAvailabilityStatus_MicrophoneToggleNotSupported_returnUnsupported()
102 doReturn(true).when(mSensorPrivacyManagerHelper).supportsSensorToggle(SENSOR_MICROPHONE); in getAvailabilityStatus_MicrophoneToggleSupported_returnAvailable()
115 doReturn(false).when(mSensorPrivacyManagerHelper).isSensorBlocked(SENSOR_MICROPHONE); in isChecked_disableMicrophoneSensorPrivacy_returnTrue()
128 doReturn(true).when(mSensorPrivacyManagerHelper).isSensorBlocked(SENSOR_MICROPHONE); in isChecked_enableMicrophoneSensorPrivacy_returnFalse()
141 .addSensorBlockedListener(eq(SENSOR_MICROPHONE), any(), any()); in startMicrophoneToggleController_invokeAddSensorBlockedListener()
153 .addSensorBlockedListener(eq(SENSOR_MICROPHONE), any(), callbackCaptor.capture()); in stopMicrophoneToggleController_invokeRemoveSensorBlockedListener()
168 doReturn(false).when(mSensorPrivacyManagerHelper).isSensorBlocked(SENSOR_MICROPHONE); in isChecked_disableMicrophoneSensorPrivacyThenChanged_returnFalse()
178 .addSensorBlockedListener(eq(SENSOR_MICROPHONE), any(), callbackCaptor.capture()); in isChecked_disableMicrophoneSensorPrivacyThenChanged_returnFalse()
181 doReturn(true).when(mSensorPrivacyManagerHelper).isSensorBlocked(SENSOR_MICROPHONE); in isChecked_disableMicrophoneSensorPrivacyThenChanged_returnFalse()
[all …]
DSensorPrivacyManagerHelperTest.java22 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_MICROPHONE;
106 mSensorPrivacyManagerHelper.setSensorBlocked(SENSOR_MICROPHONE, true); in invokeSetMicrophoneBlocked_invokeSetMicrophonePrivacyTrue()
108 .setSensorPrivacy(eq(SETTINGS), eq(SENSOR_MICROPHONE), eq(true)); in invokeSetMicrophoneBlocked_invokeSetMicrophonePrivacyTrue()
117 mSensorPrivacyManagerHelper.setSensorBlocked(SENSOR_MICROPHONE, false); in invokeSetMicrophoneUnBlocked_invokeSetMicrophonePrivacyFalse()
119 .setSensorPrivacy(eq(SETTINGS), eq(SENSOR_MICROPHONE), eq(false)); in invokeSetMicrophoneUnBlocked_invokeSetMicrophonePrivacyFalse()
150 mSensorPrivacyManagerHelper.addSensorBlockedListener(SENSOR_MICROPHONE, mExecutor, in addCallbackMicrophoneOnlyFilter_invokeCallbackMicrophoneOnly()
155 verify(callback, never()).onSensorPrivacyChanged(anyInt(), eq(SENSOR_MICROPHONE), in addCallbackMicrophoneOnlyFilter_invokeCallbackMicrophoneOnly()
191 SENSOR_MICROPHONE, mExecutor, callback); in addCallbackSoftwareMicrophoneOnlyFilter_invokeCallbackSoftwareMicrophoneOnly()
196 eq(SENSOR_MICROPHONE), anyBoolean()); in addCallbackSoftwareMicrophoneOnlyFilter_invokeCallbackSoftwareMicrophoneOnly()
231 SENSOR_MICROPHONE, mExecutor, callback); in addCallbackHardwareMicrophoneOnlyFilter_invokeCallbackHardwareMicrophoneOnly()
[all …]
/packages/apps/Settings/src/com/android/settings/privacy/
DMicToggleController.java21 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_MICROPHONE;
42 return SENSOR_MICROPHONE; in getSensor()
/packages/apps/Settings/src/com/android/settings/utils/
DSensorPrivacyManagerHelper.kt104 addSensorBlockedListener(toggleType, SENSOR_MICROPHONE, executor, callback) in <lambda>()
137 const val SENSOR_MICROPHONE = SensorPrivacyManager.Sensors.MICROPHONE in <lambda>() constant