Home
last modified time | relevance | path

Searched refs:mSensorPrivacyController (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/television/
DTvUnblockSensorActivity.java48 private final IndividualSensorPrivacyController mSensorPrivacyController; field in TvUnblockSensorActivity
54 mSensorPrivacyController = individualSensorPrivacyController; in TvUnblockSensorActivity()
77 if (!mSensorPrivacyController.isSensorBlocked(CAMERA) in onCreate()
78 && !mSensorPrivacyController.isSensorBlocked(MICROPHONE)) { in onCreate()
123 mSensorPrivacyController.setSensorBlocked(OTHER, CAMERA, false); in initUI()
124 mSensorPrivacyController.setSensorBlocked(OTHER, MICROPHONE, false); in initUI()
126 mSensorPrivacyController.setSensorBlocked(OTHER, mSensor, false); in initUI()
137 mSensorPrivacyController.addCallback(mSensorPrivacyCallback); in onResume()
142 mSensorPrivacyController.removeCallback(mSensorPrivacyCallback); in onPause()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DSensorPrivacyToggleTile.java55 protected IndividualSensorPrivacyController mSensorPrivacyController; field in SensorPrivacyToggleTile
84 mSensorPrivacyController = sensorPrivacyController; in SensorPrivacyToggleTile()
86 mSensorPrivacyController.observe(getLifecycle(), this); in SensorPrivacyToggleTile()
98 mSensorPrivacyController.setSensorBlocked(QS_TILE, getSensorId(), in handleClick()
99 !mSensorPrivacyController.isSensorBlocked(getSensorId())); in handleClick()
103 mSensorPrivacyController.setSensorBlocked(QS_TILE, getSensorId(), in handleClick()
104 !mSensorPrivacyController.isSensorBlocked(getSensorId())); in handleClick()
109 boolean isBlocked = arg == null ? mSensorPrivacyController.isSensorBlocked(getSensorId()) in handleUpdateState()
DCameraToggleTile.java66 return mSensorPrivacyController.supportsSensorToggle(CAMERA) in isAvailable()
DMicrophoneToggleTile.java66 return mSensorPrivacyController.supportsSensorToggle(MICROPHONE) in isAvailable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java82 private final IndividualSensorPrivacyController mSensorPrivacyController; field in AppOpsControllerImpl
129 mSensorPrivacyController = sensorPrivacyController; in AppOpsControllerImpl()
131 || mSensorPrivacyController.isSensorBlocked(MICROPHONE); in AppOpsControllerImpl()
132 mCameraDisabled = mSensorPrivacyController.isSensorBlocked(CAMERA); in AppOpsControllerImpl()
150 mSensorPrivacyController.addCallback(this); in setListening()
153 || mSensorPrivacyController.isSensorBlocked(MICROPHONE); in setListening()
154 mCameraDisabled = mSensorPrivacyController.isSensorBlocked(CAMERA); in setListening()
165 mSensorPrivacyController.removeCallback(this); in setListening()
513 || mSensorPrivacyController.isSensorBlocked(MICROPHONE); in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java93 private IndividualSensorPrivacyController mSensorPrivacyController; field in AppOpsControllerTest
128 when(mSensorPrivacyController.isSensorBlocked(CAMERA)) in setUp()
130 when(mSensorPrivacyController.isSensorBlocked(CAMERA)) in setUp()
138 mSensorPrivacyController, in setUp()
149 verify(mSensorPrivacyController, times(1)).addCallback(mController); in testOnlyListenForFewOps()
157 verify(mSensorPrivacyController, times(1)).removeCallback(mController); in testStopListening()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java147 private final SensorPrivacyController mSensorPrivacyController; field in PhoneStatusBarPolicy
200 mSensorPrivacyController = sensorPrivacyController; in PhoneStatusBarPolicy()
323 mSensorPrivacyController.isSensorPrivacyEnabled()); in init()
339 mSensorPrivacyController.addCallback(mSensorPrivacyListener); in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDependency.java344 @Inject Lazy<SensorPrivacyController> mSensorPrivacyController; field in Dependency
549 mProviders.put(SensorPrivacyController.class, mSensorPrivacyController::get); in start()