Home
last modified time | relevance | path

Searched refs:supportsSensorToggle (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DEnableSensorRule.kt45 supportsSensorToggle() in apply()
58 private fun supportsSensorToggle(): Boolean = in supportsSensorToggle() method
59 sensorPrivacyManager.supportsSensorToggle(sensor) && in supportsSensorToggle()
60 sensorPrivacyManager.supportsSensorToggle(TOGGLE_TYPE_SOFTWARE, sensor) in supportsSensorToggle()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DSensorBlockedBannerTest.kt108 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(CAMERA)) in testCameraCardDisplayed()
114 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(MICROPHONE)) in testMicCardDisplayed()
126 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(CAMERA)) in testCardClickOpenPrivacyControls()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
DMicTogglePreferenceControllerTest.java113 .supportsSensorToggle(eq(SensorPrivacyManager.Sensors.MICROPHONE))) in baseUserRestricted_preferenceIsDisabled()
127 .supportsSensorToggle(eq(SensorPrivacyManager.Sensors.MICROPHONE))) in userRestricted_availableForViewing()
219 .supportsSensorToggle(eq(SensorPrivacyManager.Sensors.MICROPHONE))) in setMicMuteFeatureAvailable()
DCameraTogglePreferenceControllerTest.java123 .supportsSensorToggle(eq(SensorPrivacyManager.Sensors.MICROPHONE))) in baseUserRestricted_preferenceIsShown_zoneWrite()
137 .supportsSensorToggle(eq(SensorPrivacyManager.Sensors.MICROPHONE))) in userRestricted_preferenceIsShown_zoneWrite()
231 .supportsSensorToggle(eq(SensorPrivacyManager.Sensors.CAMERA))) in setCameraMuteFeatureAvailable()
DMicrophoneAccessPreferenceControllerTest.java91 when(mMockSensorPrivacyManager.supportsSensorToggle( in onCreate_supportsSensorToggle_getDefaultAvailabilityStatus_available()
102 when(mMockSensorPrivacyManager.supportsSensorToggle( in onCreate_notSupportsSensorToggle_getDefaultAvailabilityStatus_notAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
DSensorToggleControllerTest.java89 doReturn(false).when(mSensorPrivacyManagerHelper).supportsSensorToggle(SENSOR_MICROPHONE); in getAvailabilityStatus_MicrophoneToggleNotSupported_returnUnsupported()
102 doReturn(true).when(mSensorPrivacyManagerHelper).supportsSensorToggle(SENSOR_MICROPHONE); in getAvailabilityStatus_MicrophoneToggleSupported_returnAvailable()
269 doReturn(false).when(mSensorPrivacyManagerHelper).supportsSensorToggle(SENSOR_CAMERA); in getAvailabilityStatus_CameraToggleNotSupported_returnUnsupported()
282 doReturn(true).when(mSensorPrivacyManagerHelper).supportsSensorToggle(SENSOR_CAMERA); in getAvailabilityStatus_CameraToggleSupported_returnAvailable()
/packages/apps/Settings/src/com/android/settings/utils/
DSensorPrivacyManagerHelper.kt63 open fun supportsSensorToggle(sensor: Int): Boolean { in <lambda>() method
64 return sensorPrivacyManager.supportsSensorToggle(sensor) in <lambda>()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DMicrophoneAccessPreferenceController.java53 boolean hasFeatureMicrophoneToggle = mSensorPrivacyManager.supportsSensorToggle( in getDefaultAvailabilityStatus()
DCameraAccessPreferenceController.java59 boolean hasFeatureCameraToggle = mSensorPrivacyManager.supportsSensorToggle( in getDefaultAvailabilityStatus()
DCameraTogglePreferenceController.java74 .supportsSensorToggle(SensorPrivacyManager.Sensors.CAMERA)) { in getDefaultAvailabilityStatus()
DMicTogglePreferenceController.java93 if (!mSensorPrivacyManager.supportsSensorToggle(SensorPrivacyManager.Sensors.MICROPHONE)) { in getDefaultAvailabilityStatus()
/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/
DPrivacySubpageTest.kt158 displayed = sensorPrivacyManager.supportsSensorToggle(CAMERA), in privacySubpage_openWithIntentExtra_showsPrivacyControls()
162 displayed = sensorPrivacyManager.supportsSensorToggle(MICROPHONE), in privacySubpage_openWithIntentExtra_showsPrivacyControls()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/privacy/
DPrivacyToggle.java83 return context.getSystemService(SensorPrivacyManager.class).supportsSensorToggle( in isPresentAndEnabled()
/packages/apps/Settings/src/com/android/settings/privacy/
DSensorToggleController.java80 return mSensorPrivacyManagerHelper.supportsSensorToggle(getSensor()) in getAvailabilityStatus()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/
DPrivacyToggle.java125 return context.getSystemService(SensorPrivacyManager.class).supportsSensorToggle( in isPresentAndEnabled()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DPrivacyControlsViewModel.kt157 visible = sensorConfigEnabled && sensorPrivacyManager.supportsSensorToggle(sensor), in getSensorToggleState()
DSafetyCenterQsViewModel.kt231 sensorConfigEnabled && sensorPrivacyManager.supportsSensorToggle(sensor), in getSensorState()