Searched refs:supportsSensorToggle (Results 1 – 17 of 17) sorted by relevance
45 supportsSensorToggle() in apply()58 private fun supportsSensorToggle(): Boolean = in supportsSensorToggle() method59 sensorPrivacyManager.supportsSensorToggle(sensor) && in supportsSensorToggle()60 sensorPrivacyManager.supportsSensorToggle(TOGGLE_TYPE_SOFTWARE, sensor) in supportsSensorToggle()
108 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(CAMERA)) in testCameraCardDisplayed()114 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(MICROPHONE)) in testMicCardDisplayed()126 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(CAMERA)) in testCardClickOpenPrivacyControls()
113 .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()
123 .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()
91 when(mMockSensorPrivacyManager.supportsSensorToggle( in onCreate_supportsSensorToggle_getDefaultAvailabilityStatus_available()102 when(mMockSensorPrivacyManager.supportsSensorToggle( in onCreate_notSupportsSensorToggle_getDefaultAvailabilityStatus_notAvailable()
89 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()
63 open fun supportsSensorToggle(sensor: Int): Boolean { in <lambda>() method64 return sensorPrivacyManager.supportsSensorToggle(sensor) in <lambda>()
53 boolean hasFeatureMicrophoneToggle = mSensorPrivacyManager.supportsSensorToggle( in getDefaultAvailabilityStatus()
59 boolean hasFeatureCameraToggle = mSensorPrivacyManager.supportsSensorToggle( in getDefaultAvailabilityStatus()
74 .supportsSensorToggle(SensorPrivacyManager.Sensors.CAMERA)) { in getDefaultAvailabilityStatus()
93 if (!mSensorPrivacyManager.supportsSensorToggle(SensorPrivacyManager.Sensors.MICROPHONE)) { in getDefaultAvailabilityStatus()
158 displayed = sensorPrivacyManager.supportsSensorToggle(CAMERA), in privacySubpage_openWithIntentExtra_showsPrivacyControls()162 displayed = sensorPrivacyManager.supportsSensorToggle(MICROPHONE), in privacySubpage_openWithIntentExtra_showsPrivacyControls()
83 return context.getSystemService(SensorPrivacyManager.class).supportsSensorToggle( in isPresentAndEnabled()
80 return mSensorPrivacyManagerHelper.supportsSensorToggle(getSensor()) in getAvailabilityStatus()
125 return context.getSystemService(SensorPrivacyManager.class).supportsSensorToggle( in isPresentAndEnabled()
157 visible = sensorConfigEnabled && sensorPrivacyManager.supportsSensorToggle(sensor), in getSensorToggleState()
231 sensorConfigEnabled && sensorPrivacyManager.supportsSensorToggle(sensor), in getSensorState()