/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/ |
H A D | PrivacyChipViewControllerTest.java | 144 when(mSensorPrivacyManager.isSensorPrivacyEnabled(MICROPHONE, /* userId= */ 0)) in addPrivacyChipView_privacyChipViewPresent_micStatusSet() 299 when(mSensorPrivacyManager.isSensorPrivacyEnabled(MICROPHONE, /* userId= */ 1)) in onUserUpdateReceive_setMicrophoneEnabledCalled() 318 when(mSensorPrivacyManager.isSensorPrivacyEnabled(MICROPHONE, /* userId= */ 1)) in onUserChangeReceive_setMicrophoneEnabledCalled() 337 when(mSensorPrivacyManager.isSensorPrivacyEnabled(eq(MICROPHONE), anyInt())) in isMicEnabled_sensorPrivacyEnabled_returnFalse() 345 when(mSensorPrivacyManager.isSensorPrivacyEnabled(eq(MICROPHONE), anyInt())) in isMicEnabled_sensorPrivacyDisabled_returnTrue() 353 when(mSensorPrivacyManager.isSensorPrivacyEnabled(eq(MICROPHONE), anyInt())) in toggleMic_micTurnedOn_sensorPrivacyEnabled() 364 when(mSensorPrivacyManager.isSensorPrivacyEnabled(eq(MICROPHONE), anyInt())) in toggleMic_micTurnedOff_sensorPrivacyDisabled()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/privacy/ |
H A D | MicTogglePreferenceController.java | 74 boolean isMicMuted = mSensorPrivacyManager.isSensorPrivacyEnabled( in handlePreferenceChanged() 95 preference.setChecked(!mSensorPrivacyManager.isSensorPrivacyEnabled( in updateState()
|
H A D | ManageMicPermissionsPreferenceController.java | 96 if (mSensorPrivacyManager.isSensorPrivacyEnabled( in updateState()
|
H A D | MicrophoneRecentAccessesPreferenceController.java | 91 if (mSensorPrivacyManager.isSensorPrivacyEnabled( in updateState()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/ |
H A D | SensorToggleControllerTest.java | 96 .when(mSensorPrivacyManager).isSensorPrivacyEnabled(eq(MICROPHONE)); in setUp() 98 .when(mSensorPrivacyManager).isSensorPrivacyEnabled(eq(CAMERA)); in setUp() 100 .when(mSensorPrivacyManager).isSensorPrivacyEnabled(eq(MICROPHONE), anyInt()); in setUp() 102 .when(mSensorPrivacyManager).isSensorPrivacyEnabled(eq(CAMERA), anyInt()); in setUp()
|
/aosp12/frameworks/base/core/java/android/hardware/ |
H A D | SensorPrivacyManager.java | 384 public boolean isSensorPrivacyEnabled(@Sensors.Sensor int sensor) { in isSensorPrivacyEnabled() method in SensorPrivacyManager 385 return isSensorPrivacyEnabled(sensor, UserHandle.USER_CURRENT); in isSensorPrivacyEnabled() 396 public boolean isSensorPrivacyEnabled(@Sensors.Sensor int sensor, @UserIdInt int userId) { in isSensorPrivacyEnabled() method in SensorPrivacyManager 628 return mService.isSensorPrivacyEnabled(); in isAllSensorPrivacyEnabled()
|
H A D | SensorPrivacyManagerInternal.java | 49 public abstract boolean isSensorPrivacyEnabled(int userId, int sensor); in isSensorPrivacyEnabled() method in SensorPrivacyManagerInternal
|
H A D | ISensorPrivacyManager.aidl | 38 boolean isSensorPrivacyEnabled(); in isSensorPrivacyEnabled() method
|
/aosp12/frameworks/native/libs/sensorprivacy/ |
H A D | SensorPrivacyManager.cpp | 112 bool SensorPrivacyManager::isSensorPrivacyEnabled() in isSensorPrivacyEnabled() function in android::SensorPrivacyManager 117 service->isSensorPrivacyEnabled(&result); in isSensorPrivacyEnabled()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | SensorPrivacyController.java | 33 boolean isSensorPrivacyEnabled(); in isSensorPrivacyEnabled() method
|
H A D | SensorPrivacyControllerImpl.java | 56 public boolean isSensorPrivacyEnabled() { in isSensorPrivacyEnabled() method in SensorPrivacyControllerImpl
|
H A D | IndividualSensorPrivacyControllerImpl.java | 51 mState.put(sensor, mSensorPrivacyManager.isSensorPrivacyEnabled(sensor)); in init()
|
/aosp12/packages/apps/Settings/src/com/android/settings/utils/ |
H A D | SensorPrivacyManagerHelper.java | 125 blocked = mSensorPrivacyManager.isSensorPrivacyEnabled(sensor); in isSensorBlocked() 146 blocked = mSensorPrivacyManager.isSensorPrivacyEnabled(sensor); in isSensorBlocked()
|
/aosp12/frameworks/native/libs/sensorprivacy/aidl/android/hardware/ |
H A D | ISensorPrivacyManager.aidl | 33 boolean isSensorPrivacyEnabled(); in isSensorPrivacyEnabled() method
|
/aosp12/frameworks/native/libs/sensorprivacy/include/sensorprivacy/ |
H A D | SensorPrivacyManager.h | 47 bool isSensorPrivacyEnabled();
|
/aosp12/packages/apps/Settings/src/com/android/settings/display/ |
H A D | AdaptiveSleepCameraStatePreferenceController.java | 63 return mPrivacyManager.isSensorPrivacyEnabled(CAMERA); in isCameraLocked()
|
H A D | SmartAutoRotateCameraStateController.java | 57 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
|
H A D | SmartAutoRotatePreferenceController.java | 143 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
|
H A D | AdaptiveSleepPreferenceController.java | 133 return mPrivacyManager.isSensorPrivacyEnabled(CAMERA); in isCameraLocked()
|
H A D | SmartAutoRotateController.java | 105 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/ |
H A D | SensorToggleInfoFragment.java | 83 updateTitle(!mSensorPrivacyManager.isSensorPrivacyEnabled(mToggle.sensor)); in onCreateView()
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/ |
H A D | FaceDetectClient.java | 82 .isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA, getTargetUserId())) { in startHalOperation()
|
/aosp12/frameworks/native/services/sensorservice/ |
H A D | SensorService.cpp | 345 return !mSensorPrivacyPolicy->isSensorPrivacyEnabled() in hasSensorAccessLocked() 514 mSensorPrivacyPolicy->isSensorPrivacyEnabled() ? "enabled" : "disabled"); in dump() 638 proto.write(SENSOR_PRIVACY, mSensorPrivacyPolicy->isSensorPrivacyEnabled()); in dumpProtoLocked() 704 if (mCurrentOperatingMode == RESTRICTED || mSensorPrivacyPolicy->isSensorPrivacyEnabled()) { in enableAllSensorsLocked() 707 mSensorPrivacyPolicy->isSensorPrivacyEnabled() ? "enabled" : "disabled"); in enableAllSensorsLocked() 1346 if (mSensorPrivacyPolicy->isSensorPrivacyEnabled()) { in createSensorDirectConnection() 2228 mSensorPrivacyEnabled = spm.isSensorPrivacyEnabled(); in registerSelf() 2243 bool SensorService::SensorPrivacyPolicy::isSensorPrivacyEnabled() { in isSensorPrivacyEnabled() function in android::SensorService::SensorPrivacyPolicy 2297 return mMicSensorPrivacyPolicies[userId]->isSensorPrivacyEnabled(); in isMicSensorPrivacyEnabledForUid()
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | PreAuthInfo.java | 197 .isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA, userId)) { in getStatusForBiometricAuthenticator() 317 .isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA, userId); in getInternalStatus()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/ |
H A D | MicTogglePreferenceControllerTest.java | 173 when(mMockSensorPrivacyManager.isSensorPrivacyEnabled( in setIsSensorPrivacyEnabled()
|