Home
last modified time | relevance | path

Searched refs:sensorPrivacyManager (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DSafetyCenterQsViewModel.kt64 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 …]
DPrivacyControlsViewModel.kt44 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/
DSensorPrivacyManagerHelper.kt34 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/
DSafetyCenterQsActivityTest.kt60 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/
DSystemUIGoModule.java121 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/
DCarSystemUIModule.java172 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/
DCameraPrivacyChipViewController.java40 SensorPrivacyManager sensorPrivacyManager) { in CameraPrivacyChipViewController() argument
41 super(context, privacyItemController, sensorPrivacyManager); in CameraPrivacyChipViewController()
DMicPrivacyChipViewController.java40 SensorPrivacyManager sensorPrivacyManager) { in MicPrivacyChipViewController() argument
41 super(context, privacyItemController, sensorPrivacyManager); in MicPrivacyChipViewController()
DPrivacyChipViewController.java119 SensorPrivacyManager sensorPrivacyManager) { in PrivacyChipViewController() argument
122 mSensorPrivacyManager = sensorPrivacyManager; in PrivacyChipViewController()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DCameraTogglePreferenceController.java46 SensorPrivacyManager sensorPrivacyManager) { in CameraTogglePreferenceController() argument
48 mSensorPrivacyManager = sensorPrivacyManager; in CameraTogglePreferenceController()
DMicTogglePreferenceController.java45 SensorPrivacyManager sensorPrivacyManager) { in MicTogglePreferenceController() argument
47 mSensorPrivacyManager = sensorPrivacyManager; in MicTogglePreferenceController()
DManageMicPermissionsPreferenceController.java70 SensorPrivacyManager sensorPrivacyManager, UserManager userManager) { in ManageMicPermissionsPreferenceController() argument
72 mSensorPrivacyManager = sensorPrivacyManager; in ManageMicPermissionsPreferenceController()
DMicrophoneRecentAccessesPreferenceController.java64 SensorPrivacyManager sensorPrivacyManager) { in MicrophoneRecentAccessesPreferenceController() argument
68 mSensorPrivacyManager = sensorPrivacyManager; in MicrophoneRecentAccessesPreferenceController()
DCameraRecentAccessesPreferenceController.java64 SensorPrivacyManager sensorPrivacyManager) { in CameraRecentAccessesPreferenceController() argument
68 mSensorPrivacyManager = sensorPrivacyManager; in CameraRecentAccessesPreferenceController()
DManageCameraPermissionsPreferenceController.java70 SensorPrivacyManager sensorPrivacyManager, UserManager userManager) { in ManageCameraPermissionsPreferenceController() argument
72 mSensorPrivacyManager = sensorPrivacyManager; in ManageCameraPermissionsPreferenceController()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DPermissionAppsViewModel.kt119 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>()