/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | EnableSensorRule.kt | 37 private val sensorPrivacyManager: SensorPrivacyManager = constant 59 sensorPrivacyManager.supportsSensorToggle(sensor) && in supportsSensorToggle() 60 sensorPrivacyManager.supportsSensorToggle(TOGGLE_TYPE_SOFTWARE, sensor) in supportsSensorToggle() 64 sensorPrivacyManager.isSensorPrivacyEnabled(TOGGLE_TYPE_SOFTWARE, sensor) in supportsSensorToggle() 69 sensorPrivacyManager.setSensorPrivacy(sensor, enabled) in setSensorPrivacy()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/ |
D | SafetyCenterQsViewModel.kt | 65 private val sensorPrivacyManager: SensorPrivacyManager = constant 146 val blocked = sensorPrivacyManager.isSensorPrivacyEnabled(Sensors.MICROPHONE) in toggleSensor() 147 sensorPrivacyManager.setSensorPrivacy(Sensors.MICROPHONE, !blocked) in toggleSensor() 151 val blocked = sensorPrivacyManager.isSensorPrivacyEnabled(Sensors.CAMERA) in toggleSensor() 152 sensorPrivacyManager.setSensorPrivacy(Sensors.CAMERA, !blocked) in toggleSensor() 209 sensorPrivacyManager.addSensorPrivacyListener(Sensors.CAMERA, this) in onActive() 210 sensorPrivacyManager.addSensorPrivacyListener(Sensors.MICROPHONE, this) in onActive() 217 sensorPrivacyManager.removeSensorPrivacyListener(Sensors.CAMERA, this) in onInactive() 218 sensorPrivacyManager.removeSensorPrivacyListener(Sensors.MICROPHONE, this) in onInactive() 231 sensorConfigEnabled && sensorPrivacyManager.supportsSensorToggle(sensor), in getSensorState() [all …]
|
D | PrivacyControlsViewModel.kt | 51 private val sensorPrivacyManager: SensorPrivacyManager = constant in com.android.permissioncontroller.safetycenter.ui.model.PrivacyControlsViewModel 109 sensorPrivacyManager.addSensorPrivacyListener(this) in onActive() 116 sensorPrivacyManager.removeSensorPrivacyListener(this) in onInactive() 140 val blocked = sensorPrivacyManager.isSensorPrivacyEnabled(TOGGLE_TYPE_SOFTWARE, sensor) in toggleSensorOrShowAdmin() 141 sensorPrivacyManager.setSensorPrivacy(sensor, !blocked) in toggleSensorOrShowAdmin() 157 visible = sensorConfigEnabled && sensorPrivacyManager.supportsSensorToggle(sensor), in getSensorToggleState() 158 checked = !sensorPrivacyManager.isSensorPrivacyEnabled(TOGGLE_TYPE_SOFTWARE, sensor), in getSensorToggleState()
|
/packages/apps/Settings/src/com/android/settings/utils/ |
D | SensorPrivacyManagerHelper.kt | 34 private val sensorPrivacyManager: SensorPrivacyManager in <lambda>() constant 53 sensorPrivacyManager = context.getSystemService(SensorPrivacyManager::class.java)!! in <lambda>() 55 sensorPrivacyManager.addSensorPrivacyListener(context.mainExecutor, this) in <lambda>() 64 return sensorPrivacyManager.supportsSensorToggle(sensor) in <lambda>() 75 sensorPrivacyManager.isSensorPrivacyEnabled(toggleType, sensor) in <lambda>() 81 sensorPrivacyManager.setSensorPrivacy(SETTINGS, sensor, blocked) in <lambda>()
|
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | SensorBlockedBannerTest.kt | 52 private val sensorPrivacyManager = context.getSystemService(SensorPrivacyManager::class.java)!! constant in android.permissionui.cts.SensorBlockedBannerTest 108 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(CAMERA)) in testCameraCardDisplayed() 114 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(MICROPHONE)) in testMicCardDisplayed() 126 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(CAMERA)) in testCardClickOpenPrivacyControls() 166 sensorPrivacyManager.setSensorPrivacy( in setSensor() 179 callWithShellPermissionIdentity { sensorPrivacyManager.isSensorPrivacyEnabled(sensor) } in isSensorPrivacyEnabled()
|
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/ |
D | CameraInfotainmentAppsTogglePreferenceController.java | 49 SensorPrivacyManager sensorPrivacyManager) { in CameraInfotainmentAppsTogglePreferenceController() argument 50 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in CameraInfotainmentAppsTogglePreferenceController() 51 mHasCameraPrivacyAllowlist = !sensorPrivacyManager.getCameraPrivacyAllowlist().isEmpty(); in CameraInfotainmentAppsTogglePreferenceController()
|
D | CameraInfotainmentAppsPreferenceController.java | 58 PackageManager packageManager, SensorPrivacyManager sensorPrivacyManager) { in CameraInfotainmentAppsPreferenceController() argument 59 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in CameraInfotainmentAppsPreferenceController() 61 mCameraPrivacyAllowlist = sensorPrivacyManager.getCameraPrivacyAllowlist(); in CameraInfotainmentAppsPreferenceController()
|
D | CameraPrivacyBasePreferenceController.java | 53 SensorPrivacyManager sensorPrivacyManager) { in CameraPrivacyBasePreferenceController() argument 55 mSensorPrivacyManager = sensorPrivacyManager; in CameraPrivacyBasePreferenceController()
|
D | PrivacyBasePreferenceController.java | 56 SensorPrivacyManager sensorPrivacyManager, int sensorType) { in PrivacyBasePreferenceController() argument 58 mSensorPrivacyManager = sensorPrivacyManager; in PrivacyBasePreferenceController()
|
D | CameraAccessPreferenceController.java | 47 SensorPrivacyManager sensorPrivacyManager) { in CameraAccessPreferenceController() argument 49 mSensorPrivacyManager = sensorPrivacyManager; in CameraAccessPreferenceController()
|
D | CameraTogglePreferenceController.java | 47 SensorPrivacyManager sensorPrivacyManager) { in CameraTogglePreferenceController() argument 48 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in CameraTogglePreferenceController()
|
D | CameraRequiredAppsPreferenceController.java | 61 PackageManager packageManager, SensorPrivacyManager sensorPrivacyManager) { in CameraRequiredAppsPreferenceController() argument 64 mSensorPrivacyManager = sensorPrivacyManager; in CameraRequiredAppsPreferenceController()
|
D | MicrophoneInfotainmentAppsPreferenceController.java | 55 PackageManager packageManager, SensorPrivacyManager sensorPrivacyManager) { in MicrophoneInfotainmentAppsPreferenceController() argument 57 sensorPrivacyManager, SensorPrivacyManager.Sensors.MICROPHONE); in MicrophoneInfotainmentAppsPreferenceController()
|
D | MicTogglePreferenceController.java | 50 SensorPrivacyManager sensorPrivacyManager) { in MicTogglePreferenceController() argument 52 mSensorPrivacyManager = sensorPrivacyManager; in MicTogglePreferenceController()
|
D | CameraRequiredAppsTogglePreferenceController.java | 55 SensorPrivacyManager sensorPrivacyManager) { in CameraRequiredAppsTogglePreferenceController() argument 56 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in CameraRequiredAppsTogglePreferenceController()
|
D | CameraRecentAccessesPreferenceController.java | 61 SensorPrivacyManager sensorPrivacyManager) { in CameraRecentAccessesPreferenceController() argument 62 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in CameraRecentAccessesPreferenceController()
|
D | ManageCameraPermissionsPreferenceController.java | 66 SensorPrivacyManager sensorPrivacyManager, UserManager userManager) { in ManageCameraPermissionsPreferenceController() argument 67 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in ManageCameraPermissionsPreferenceController()
|
D | MicrophoneRecentAccessesPreferenceController.java | 64 SensorPrivacyManager sensorPrivacyManager) { in MicrophoneRecentAccessesPreferenceController() argument 68 mSensorPrivacyManager = sensorPrivacyManager; in MicrophoneRecentAccessesPreferenceController()
|
/packages/apps/SystemUIGo/src/com/android/systemui/go/ |
D | SystemUIGoModule.java | 136 SensorPrivacyManager sensorPrivacyManager) { in provideSensorPrivacyController() argument 137 SensorPrivacyController spC = new SensorPrivacyControllerImpl(sensorPrivacyManager); in provideSensorPrivacyController() 145 SensorPrivacyManager sensorPrivacyManager) { in provideIndividualSensorPrivacyController() argument 147 sensorPrivacyManager); in provideIndividualSensorPrivacyController()
|
/packages/apps/TvSystemUI/src/com/android/systemui/tv/dagger/ |
D | TvSystemUIModule.kt | 162 sensorPrivacyManager: SensorPrivacyManager in bindNotificationLockscreenUserManager() 164 SensorPrivacyControllerImpl(sensorPrivacyManager).apply { init() } in bindNotificationLockscreenUserManager() 169 sensorPrivacyManager: SensorPrivacyManager in bindNotificationLockscreenUserManager() 171 IndividualSensorPrivacyControllerImpl(sensorPrivacyManager).apply { init() } in bindNotificationLockscreenUserManager()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/ |
D | CarSystemUIModule.java | 145 SensorPrivacyManager sensorPrivacyManager) { in provideSensorPrivacyController() argument 146 SensorPrivacyController spC = new SensorPrivacyControllerImpl(sensorPrivacyManager); in provideSensorPrivacyController() 154 SensorPrivacyManager sensorPrivacyManager) { in provideIndividualSensorPrivacyController() argument 156 sensorPrivacyManager); in provideIndividualSensorPrivacyController()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | MicPrivacyChipViewController.java | 41 SensorPrivacyManager sensorPrivacyManager, in MicPrivacyChipViewController() argument 43 super(context, privacyItemController, sensorPrivacyManager, userTracker); in MicPrivacyChipViewController()
|
D | CameraPrivacyChipViewController.java | 41 SensorPrivacyManager sensorPrivacyManager, in CameraPrivacyChipViewController() argument 43 super(context, privacyItemController, sensorPrivacyManager, userTracker); in CameraPrivacyChipViewController()
|
/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/ |
D | PrivacySubpageTest.kt | 67 private val sensorPrivacyManager: SensorPrivacyManager = constant in android.safetycenter.functional.ui.PrivacySubpageTest 158 displayed = sensorPrivacyManager.supportsSensorToggle(CAMERA), in privacySubpage_openWithIntentExtra_showsPrivacyControls() 162 displayed = sensorPrivacyManager.supportsSensorToggle(MICROPHONE), in privacySubpage_openWithIntentExtra_showsPrivacyControls()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | PermissionAppsViewModel.kt | 115 val sensorPrivacyManager = app.getSystemService(SensorPrivacyManager::class.java)!! in <lambda>() constant 129 blocked = sensorPrivacyManager.isSensorPrivacyEnabled(sensor) in <lambda>() 143 sensorPrivacyManager.addSensorPrivacyListener(sensor, listener) in <lambda>() 152 sensorPrivacyManager.removeSensorPrivacyListener(sensor, listener) in <lambda>()
|