Home
last modified time | relevance | path

Searched refs:mPrivacyManager (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepCameraStatePreferenceController.java44 private final SensorPrivacyManager mPrivacyManager; field in AdaptiveSleepCameraStatePreferenceController
56 mPrivacyManager = SensorPrivacyManager.getInstance(context); in AdaptiveSleepCameraStatePreferenceController()
63 mPrivacyManager.addSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStart()
68 mPrivacyManager.removeSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStop()
86 return mPrivacyManager.isSensorPrivacyEnabled(CAMERA); in isCameraLocked()
104 p -> mPrivacyManager.setSensorPrivacy(DIALOG, CAMERA, false)); in initializePreference()
DSmartAutoRotateCameraStateController.java47 private final SensorPrivacyManager mPrivacyManager; field in SmartAutoRotateCameraStateController
63 mPrivacyManager = SensorPrivacyManager.getInstance(context); in SmartAutoRotateCameraStateController()
68 mPrivacyManager.addSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStart()
74 mPrivacyManager.removeSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStop()
79 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
89 mPrivacyManager.setSensorPrivacy(DIALOG, CAMERA, false); in displayPreference()
DSmartAutoRotatePreferenceController.java58 private final SensorPrivacyManager mPrivacyManager; field in SmartAutoRotatePreferenceController
80 mPrivacyManager = SensorPrivacyManager.getInstance(context); in SmartAutoRotatePreferenceController()
135 mPrivacyManager.addSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStart()
145 mPrivacyManager.removeSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStop()
154 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
DSmartAutoRotateController.java60 private final SensorPrivacyManager mPrivacyManager; field in SmartAutoRotateController
85 mPrivacyManager = SensorPrivacyManager.getInstance(context); in SmartAutoRotateController()
121 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
144 mPrivacyManager.addSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStart()
156 mPrivacyManager.removeSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStop()
DAdaptiveSleepPreferenceController.java52 private final SensorPrivacyManager mPrivacyManager; field in AdaptiveSleepPreferenceController
66 mPrivacyManager = SensorPrivacyManager.getInstance(context); in AdaptiveSleepPreferenceController()
133 return mPrivacyManager.isSensorPrivacyEnabled(CAMERA); in isCameraLocked()
DScreenTimeoutSettings.java77 private SensorPrivacyManager mPrivacyManager; field in ScreenTimeoutSettings
139 mPrivacyManager = SensorPrivacyManager.getInstance(context); in onAttach()
172 mPrivacyManager.addSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStart()
182 mPrivacyManager.removeSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStop()