/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/ |
D | SafetyCenterQsViewModel.kt | 64 private val sensorPrivacyManager: SensorPrivacyManager = constant 140 val blocked = sensorPrivacyManager.isSensorPrivacyEnabled(Sensors.MICROPHONE) in toggleSensor() 141 sensorPrivacyManager.setSensorPrivacy(Sensors.MICROPHONE, !blocked) in toggleSensor() 145 val blocked = sensorPrivacyManager.isSensorPrivacyEnabled(Sensors.CAMERA) in toggleSensor() 146 sensorPrivacyManager.setSensorPrivacy(Sensors.CAMERA, !blocked) in toggleSensor() 200 sensorPrivacyManager.addSensorPrivacyListener(Sensors.CAMERA, this) in onActive() 201 sensorPrivacyManager.addSensorPrivacyListener(Sensors.MICROPHONE, this) in onActive() 208 sensorPrivacyManager.removeSensorPrivacyListener(Sensors.CAMERA, this) in onInactive() 209 sensorPrivacyManager.removeSensorPrivacyListener(Sensors.MICROPHONE, this) in onInactive() 222 sensorConfigEnabled && sensorPrivacyManager.supportsSensorToggle(sensor), in getSensorState() [all …]
|
D | PrivacyControlsViewModel.kt | 44 private val sensorPrivacyManager: SensorPrivacyManager = constant in com.android.permissioncontroller.safetycenter.ui.model.PrivacyControlsViewModel 100 sensorPrivacyManager.addSensorPrivacyListener(this) in onActive() 107 sensorPrivacyManager.removeSensorPrivacyListener(this) in onInactive() 131 val blocked = sensorPrivacyManager.isSensorPrivacyEnabled(TOGGLE_TYPE_SOFTWARE, sensor) in toggleSensorOrShowAdmin() 132 sensorPrivacyManager.setSensorPrivacy(sensor, !blocked) in toggleSensorOrShowAdmin() 148 visible = sensorConfigEnabled && sensorPrivacyManager.supportsSensorToggle(sensor), in getSensorToggleState() 149 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/functional/safetycenter/singleuser/src/android/safetycenter/functional/ui/ |
D | SafetyCenterQsActivityTest.kt | 60 private val sensorPrivacyManager = context.getSystemService(SensorPrivacyManager::class.java)!! constant in android.safetycenter.functional.ui.SafetyCenterQsActivityTest 139 return sensorPrivacyManager.supportsSensorToggle(sensor) && in deviceSupportsSensorToggle() 140 sensorPrivacyManager.supportsSensorToggle(TOGGLE_TYPE_SOFTWARE, sensor) in deviceSupportsSensorToggle() 146 sensorPrivacyManager.isSensorPrivacyEnabled(TOGGLE_TYPE_SOFTWARE, sensor) in isSensorEnabled() 155 sensorPrivacyManager.setSensorPrivacy(sensor, disableSensor) in setSensorState()
|
/packages/apps/SystemUIGo/src/com/android/systemui/go/ |
D | SystemUIGoModule.java | 121 SensorPrivacyManager sensorPrivacyManager) { in provideSensorPrivacyController() argument 122 SensorPrivacyController spC = new SensorPrivacyControllerImpl(sensorPrivacyManager); in provideSensorPrivacyController() 130 SensorPrivacyManager sensorPrivacyManager) { in provideIndividualSensorPrivacyController() argument 132 sensorPrivacyManager); in provideIndividualSensorPrivacyController()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/ |
D | CarSystemUIModule.java | 172 SensorPrivacyManager sensorPrivacyManager) { in provideSensorPrivacyController() argument 173 SensorPrivacyController spC = new SensorPrivacyControllerImpl(sensorPrivacyManager); in provideSensorPrivacyController() 181 SensorPrivacyManager sensorPrivacyManager) { in provideIndividualSensorPrivacyController() argument 183 sensorPrivacyManager); in provideIndividualSensorPrivacyController()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | CameraPrivacyChipViewController.java | 40 SensorPrivacyManager sensorPrivacyManager) { in CameraPrivacyChipViewController() argument 41 super(context, privacyItemController, sensorPrivacyManager); in CameraPrivacyChipViewController()
|
D | MicPrivacyChipViewController.java | 40 SensorPrivacyManager sensorPrivacyManager) { in MicPrivacyChipViewController() argument 41 super(context, privacyItemController, sensorPrivacyManager); in MicPrivacyChipViewController()
|
D | PrivacyChipViewController.java | 119 SensorPrivacyManager sensorPrivacyManager) { in PrivacyChipViewController() argument 122 mSensorPrivacyManager = sensorPrivacyManager; in PrivacyChipViewController()
|
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/ |
D | CameraTogglePreferenceController.java | 46 SensorPrivacyManager sensorPrivacyManager) { in CameraTogglePreferenceController() argument 48 mSensorPrivacyManager = sensorPrivacyManager; in CameraTogglePreferenceController()
|
D | MicTogglePreferenceController.java | 45 SensorPrivacyManager sensorPrivacyManager) { in MicTogglePreferenceController() argument 47 mSensorPrivacyManager = sensorPrivacyManager; in MicTogglePreferenceController()
|
D | ManageMicPermissionsPreferenceController.java | 70 SensorPrivacyManager sensorPrivacyManager, UserManager userManager) { in ManageMicPermissionsPreferenceController() argument 72 mSensorPrivacyManager = sensorPrivacyManager; in ManageMicPermissionsPreferenceController()
|
D | MicrophoneRecentAccessesPreferenceController.java | 64 SensorPrivacyManager sensorPrivacyManager) { in MicrophoneRecentAccessesPreferenceController() argument 68 mSensorPrivacyManager = sensorPrivacyManager; in MicrophoneRecentAccessesPreferenceController()
|
D | CameraRecentAccessesPreferenceController.java | 64 SensorPrivacyManager sensorPrivacyManager) { in CameraRecentAccessesPreferenceController() argument 68 mSensorPrivacyManager = sensorPrivacyManager; in CameraRecentAccessesPreferenceController()
|
D | ManageCameraPermissionsPreferenceController.java | 70 SensorPrivacyManager sensorPrivacyManager, UserManager userManager) { in ManageCameraPermissionsPreferenceController() argument 72 mSensorPrivacyManager = sensorPrivacyManager; in ManageCameraPermissionsPreferenceController()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | PermissionAppsViewModel.kt | 119 val sensorPrivacyManager = app.getSystemService(SensorPrivacyManager::class.java)!! in <lambda>() constant 133 blocked = sensorPrivacyManager.isSensorPrivacyEnabled(sensor) in <lambda>() 147 sensorPrivacyManager.addSensorPrivacyListener(sensor, listener) in <lambda>() 156 sensorPrivacyManager.removeSensorPrivacyListener(sensor, listener) in <lambda>()
|