Home
last modified time | relevance | path

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

12

/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DEnableSensorRule.kt37 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/
DSafetyCenterQsViewModel.kt65 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 …]
DPrivacyControlsViewModel.kt51 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/
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/cts/permissionui/src/android/permissionui/cts/
DSensorBlockedBannerTest.kt52 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/
DCameraInfotainmentAppsTogglePreferenceController.java49 SensorPrivacyManager sensorPrivacyManager) { in CameraInfotainmentAppsTogglePreferenceController() argument
50 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in CameraInfotainmentAppsTogglePreferenceController()
51 mHasCameraPrivacyAllowlist = !sensorPrivacyManager.getCameraPrivacyAllowlist().isEmpty(); in CameraInfotainmentAppsTogglePreferenceController()
DCameraInfotainmentAppsPreferenceController.java58 PackageManager packageManager, SensorPrivacyManager sensorPrivacyManager) { in CameraInfotainmentAppsPreferenceController() argument
59 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in CameraInfotainmentAppsPreferenceController()
61 mCameraPrivacyAllowlist = sensorPrivacyManager.getCameraPrivacyAllowlist(); in CameraInfotainmentAppsPreferenceController()
DCameraPrivacyBasePreferenceController.java53 SensorPrivacyManager sensorPrivacyManager) { in CameraPrivacyBasePreferenceController() argument
55 mSensorPrivacyManager = sensorPrivacyManager; in CameraPrivacyBasePreferenceController()
DPrivacyBasePreferenceController.java56 SensorPrivacyManager sensorPrivacyManager, int sensorType) { in PrivacyBasePreferenceController() argument
58 mSensorPrivacyManager = sensorPrivacyManager; in PrivacyBasePreferenceController()
DCameraAccessPreferenceController.java47 SensorPrivacyManager sensorPrivacyManager) { in CameraAccessPreferenceController() argument
49 mSensorPrivacyManager = sensorPrivacyManager; in CameraAccessPreferenceController()
DCameraTogglePreferenceController.java47 SensorPrivacyManager sensorPrivacyManager) { in CameraTogglePreferenceController() argument
48 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in CameraTogglePreferenceController()
DCameraRequiredAppsPreferenceController.java61 PackageManager packageManager, SensorPrivacyManager sensorPrivacyManager) { in CameraRequiredAppsPreferenceController() argument
64 mSensorPrivacyManager = sensorPrivacyManager; in CameraRequiredAppsPreferenceController()
DMicrophoneInfotainmentAppsPreferenceController.java55 PackageManager packageManager, SensorPrivacyManager sensorPrivacyManager) { in MicrophoneInfotainmentAppsPreferenceController() argument
57 sensorPrivacyManager, SensorPrivacyManager.Sensors.MICROPHONE); in MicrophoneInfotainmentAppsPreferenceController()
DMicTogglePreferenceController.java50 SensorPrivacyManager sensorPrivacyManager) { in MicTogglePreferenceController() argument
52 mSensorPrivacyManager = sensorPrivacyManager; in MicTogglePreferenceController()
DCameraRequiredAppsTogglePreferenceController.java55 SensorPrivacyManager sensorPrivacyManager) { in CameraRequiredAppsTogglePreferenceController() argument
56 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in CameraRequiredAppsTogglePreferenceController()
DCameraRecentAccessesPreferenceController.java61 SensorPrivacyManager sensorPrivacyManager) { in CameraRecentAccessesPreferenceController() argument
62 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in CameraRecentAccessesPreferenceController()
DManageCameraPermissionsPreferenceController.java66 SensorPrivacyManager sensorPrivacyManager, UserManager userManager) { in ManageCameraPermissionsPreferenceController() argument
67 super(context, preferenceKey, fragmentController, uxRestrictions, sensorPrivacyManager); in ManageCameraPermissionsPreferenceController()
DMicrophoneRecentAccessesPreferenceController.java64 SensorPrivacyManager sensorPrivacyManager) { in MicrophoneRecentAccessesPreferenceController() argument
68 mSensorPrivacyManager = sensorPrivacyManager; in MicrophoneRecentAccessesPreferenceController()
/packages/apps/SystemUIGo/src/com/android/systemui/go/
DSystemUIGoModule.java136 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/
DTvSystemUIModule.kt162 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/
DCarSystemUIModule.java145 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/
DMicPrivacyChipViewController.java41 SensorPrivacyManager sensorPrivacyManager, in MicPrivacyChipViewController() argument
43 super(context, privacyItemController, sensorPrivacyManager, userTracker); in MicPrivacyChipViewController()
DCameraPrivacyChipViewController.java41 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/
DPrivacySubpageTest.kt67 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/
DPermissionAppsViewModel.kt115 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>()

12