Home
last modified time | relevance | path

Searched refs:onSensorPrivacyChanged (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
DSensorPrivacyManagerHelperTest.java135 verify(callback, times(1)).onSensorPrivacyChanged(eq(t), eq(s), eq(e)); in addCallbackNoFilter_invokeCallback()
136 verify(callback, times(i + 1)).onSensorPrivacyChanged(anyInt(), anyInt(), anyBoolean()); in addCallbackNoFilter_invokeCallback()
155 verify(callback, never()).onSensorPrivacyChanged(anyInt(), eq(SENSOR_MICROPHONE), in addCallbackMicrophoneOnlyFilter_invokeCallbackMicrophoneOnly()
175 verify(callback, never()).onSensorPrivacyChanged(anyInt(), eq(SENSOR_CAMERA), in addCallbackCameraOnlyFilter_invokeCallbackCameraOnly()
195 verify(callback, never()).onSensorPrivacyChanged(eq(TOGGLE_TYPE_SOFTWARE), in addCallbackSoftwareMicrophoneOnlyFilter_invokeCallbackSoftwareMicrophoneOnly()
215 verify(callback, never()).onSensorPrivacyChanged(eq(TOGGLE_TYPE_SOFTWARE), in addCallbackSoftwareCameraOnlyFilter_invokeCallbackSoftwareCameraOnly()
235 verify(callback, never()).onSensorPrivacyChanged(eq(TOGGLE_TYPE_HARDWARE), in addCallbackHardwareMicrophoneOnlyFilter_invokeCallbackHardwareMicrophoneOnly()
255 verify(callback, never()).onSensorPrivacyChanged(eq(TOGGLE_TYPE_HARDWARE), in addCallbackHardwareCameraOnlyFilter_invokeCallbackHardwareCameraOnly()
273 verify(callback, never()).onSensorPrivacyChanged(anyInt(), anyInt(), anyBoolean()); in removeCallback_noInvokeCallback()
295 listener.onSensorPrivacyChanged(createParams(t, s, e)); in verifyAllCases()
DSensorToggleControllerTest.java183 .onSensorPrivacyChanged(TOGGLE_TYPE_SOFTWARE, SENSOR_MICROPHONE, true); in isChecked_disableMicrophoneSensorPrivacyThenChanged_returnFalse()
210 .onSensorPrivacyChanged(TOGGLE_TYPE_SOFTWARE, SENSOR_MICROPHONE, false); in isChecked_enableMicrophoneSensorPrivacyThenChanged_returnTrue()
362 callbackCaptor.getValue().onSensorPrivacyChanged(TOGGLE_TYPE_SOFTWARE, SENSOR_CAMERA, true); in isChecked_disableCameraSensorPrivacyThenChanged_returnFalse()
389 .onSensorPrivacyChanged(TOGGLE_TYPE_SOFTWARE, SENSOR_CAMERA, false); in isChecked_enableCameraSensorPrivacyThenChanged_returnTrue()
/packages/apps/Settings/src/com/android/settings/utils/
DSensorPrivacyManagerHelper.kt49 fun onSensorPrivacyChanged(toggleType: Int, sensor: Int, blocked: Boolean) in <lambda>() method
158 override fun onSensorPrivacyChanged(sensor: Int, enabled: Boolean) { in <lambda>() method
162 override fun onSensorPrivacyChanged(params: SensorPrivacyChangedParams) { in <lambda>() method
171 it.first.onSensorPrivacyChanged(params.toggleType, params.sensor, in <lambda>()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
DMicTogglePreferenceControllerTest.java153 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, true); in onPreferenceClicked_clickMicEnabled_shouldSetPrivacySensor()
170 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, false); in onPreferenceClicked_clickMicDisabled_shouldClearPrivacySensor()
180 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, false); in onListenerUpdate_micDisabled_shouldUpdateChecked()
190 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, true); in onListenerUpdate_micEnabled_shouldUpdateChecked()
DCameraTogglePreferenceControllerTest.java163 mListener.getValue().onSensorPrivacyChanged(mSensorPrivacyChangedParams); in onPreferenceClicked_clickCameraEnabled_shouldSetPrivacySensor()
200 mListener.getValue().onSensorPrivacyChanged(mSensorPrivacyChangedParams); in onListenerUpdate_cameraEnabled_shouldUpdateChecked()
DMicrophoneRecentAccessesPreferenceControllerTest.java123 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, false); in onListenerUpdate_micEnabled_shouldShow()
133 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, true); in onListenerUpdate_micDisabled_shouldHide()
DCameraRecentAccessesPreferenceControllerTest.java126 mListener.getValue().onSensorPrivacyChanged(mSensorPrivacyChangedParams); in onListenerUpdate_cameraEnabled_shouldShow()
136 mListener.getValue().onSensorPrivacyChanged(mSensorPrivacyChangedParams); in onListenerUpdate_cameraDisabled_shouldHide()
DMicrophoneInfotainmentAppsPreferenceControllerTest.java138 mPreferenceController.getListener().onSensorPrivacyChanged(params); in onCreate_triggerListener_uiUpdate()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DCameraPrivacyBasePreferenceController.java41 public void onSensorPrivacyChanged(SensorPrivacyChangedParams params) {
46 public void onSensorPrivacyChanged(int sensor, boolean enabled) {
DPrivacyBasePreferenceController.java44 public void onSensorPrivacyChanged(SensorPrivacyChangedParams params) {
49 public void onSensorPrivacyChanged(int sensor, boolean enabled) {
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/
DSensorInfoUpdateListener.java27 void onSensorPrivacyChanged(); in onSensorPrivacyChanged() method
DSensorQcPanel.java225 public void onSensorPrivacyChanged() { in onSensorPrivacyChanged() method in SensorQcPanel
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DMicPrivacyChipViewControllerTest.java250 .onSensorPrivacyChanged(MICROPHONE, /* enabled= */ true); in onSensorPrivacyChanged_argTrue_setSensorEnabledWithFalseCalled()
266 .onSensorPrivacyChanged(MICROPHONE, /* enabled= */ false); in onSensorPrivacyChanged_argFalse_setSensorEnabledWithTrueCalled()
283 .onSensorPrivacyChanged(MICROPHONE, /* enabled= */ true); in onSensorPrivacyChanged_qsTileNotifyUpdateRunnableExecuted()
DCameraPrivacyChipViewControllerTest.java250 .onSensorPrivacyChanged(CAMERA, /* enabled= */ true); in onSensorPrivacyChanged_argTrue_setSensorEnabledWithFalseCalled()
266 .onSensorPrivacyChanged(CAMERA, /* enabled= */ false); in onSensorPrivacyChanged_argFalse_setSensorEnabledWithTrueCalled()
283 .onSensorPrivacyChanged(CAMERA, /* enabled= */ true); in onSensorPrivacyChanged_qsTileNotifyUpdateRunnableExecuted()
/packages/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepCameraStatePreferenceController.java50 public void onSensorPrivacyChanged(int sensor, boolean enabled) {
DSmartAutoRotateCameraStateController.java53 public void onSensorPrivacyChanged(int sensor, boolean enabled) {
DSmartAutoRotatePreferenceController.java70 public void onSensorPrivacyChanged(int sensor, boolean enabled) {
DSmartAutoRotateController.java72 public void onSensorPrivacyChanged(int sensor, boolean enabled) {
/packages/apps/Settings/src/com/android/settings/privacy/
DSensorToggleController.java115 public void onSensorPrivacyChanged(int toggleType, int sensor, boolean blocked) { in onSensorPrivacyChanged() method in SensorToggleController
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DPrivacyChipViewController.java65 mSensorInfoUpdateListener.onSensorPrivacyChanged();
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DPrivacyControlsViewModel.kt120 override fun onSensorPrivacyChanged(sensor: Int, enabled: Boolean) { in onSensorPrivacyChanged() method in com.android.permissioncontroller.safetycenter.ui.model.PrivacyControlsViewModel
DSafetyCenterQsViewModel.kt199 override fun onSensorPrivacyChanged(sensor: Int, enabled: Boolean) { in onSensorPrivacyChanged() method
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt317 override fun onSensorPrivacyChanged(params: SensorPrivacyChangedParams) { in <lambda>() method in com.android.permissioncontroller.permission.ui.model.SensorStatusLiveData
323 override fun onSensorPrivacyChanged(sensor: Int, enabled: Boolean) {} in <lambda>() method in com.android.permissioncontroller.permission.ui.model.SensorStatusLiveData