Home
last modified time | relevance | path

Searched refs:isSensorPrivacyEnabled (Results 1 – 25 of 49) sorted by relevance

12

/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
H A DPrivacyChipViewControllerTest.java144 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 DMicTogglePreferenceController.java74 boolean isMicMuted = mSensorPrivacyManager.isSensorPrivacyEnabled( in handlePreferenceChanged()
95 preference.setChecked(!mSensorPrivacyManager.isSensorPrivacyEnabled( in updateState()
H A DManageMicPermissionsPreferenceController.java96 if (mSensorPrivacyManager.isSensorPrivacyEnabled( in updateState()
H A DMicrophoneRecentAccessesPreferenceController.java91 if (mSensorPrivacyManager.isSensorPrivacyEnabled( in updateState()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
H A DSensorToggleControllerTest.java96 .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 DSensorPrivacyManager.java384 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 DSensorPrivacyManagerInternal.java49 public abstract boolean isSensorPrivacyEnabled(int userId, int sensor); in isSensorPrivacyEnabled() method in SensorPrivacyManagerInternal
H A DISensorPrivacyManager.aidl38 boolean isSensorPrivacyEnabled(); in isSensorPrivacyEnabled() method
/aosp12/frameworks/native/libs/sensorprivacy/
H A DSensorPrivacyManager.cpp112 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 DSensorPrivacyController.java33 boolean isSensorPrivacyEnabled(); in isSensorPrivacyEnabled() method
H A DSensorPrivacyControllerImpl.java56 public boolean isSensorPrivacyEnabled() { in isSensorPrivacyEnabled() method in SensorPrivacyControllerImpl
H A DIndividualSensorPrivacyControllerImpl.java51 mState.put(sensor, mSensorPrivacyManager.isSensorPrivacyEnabled(sensor)); in init()
/aosp12/packages/apps/Settings/src/com/android/settings/utils/
H A DSensorPrivacyManagerHelper.java125 blocked = mSensorPrivacyManager.isSensorPrivacyEnabled(sensor); in isSensorBlocked()
146 blocked = mSensorPrivacyManager.isSensorPrivacyEnabled(sensor); in isSensorBlocked()
/aosp12/frameworks/native/libs/sensorprivacy/aidl/android/hardware/
H A DISensorPrivacyManager.aidl33 boolean isSensorPrivacyEnabled(); in isSensorPrivacyEnabled() method
/aosp12/frameworks/native/libs/sensorprivacy/include/sensorprivacy/
H A DSensorPrivacyManager.h47 bool isSensorPrivacyEnabled();
/aosp12/packages/apps/Settings/src/com/android/settings/display/
H A DAdaptiveSleepCameraStatePreferenceController.java63 return mPrivacyManager.isSensorPrivacyEnabled(CAMERA); in isCameraLocked()
H A DSmartAutoRotateCameraStateController.java57 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
H A DSmartAutoRotatePreferenceController.java143 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
H A DAdaptiveSleepPreferenceController.java133 return mPrivacyManager.isSensorPrivacyEnabled(CAMERA); in isCameraLocked()
H A DSmartAutoRotateController.java105 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/
H A DSensorToggleInfoFragment.java83 updateTitle(!mSensorPrivacyManager.isSensorPrivacyEnabled(mToggle.sensor)); in onCreateView()
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
H A DFaceDetectClient.java82 .isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA, getTargetUserId())) { in startHalOperation()
/aosp12/frameworks/native/services/sensorservice/
H A DSensorService.cpp345 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 DPreAuthInfo.java197 .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 DMicTogglePreferenceControllerTest.java173 when(mMockSensorPrivacyManager.isSensorPrivacyEnabled( in setIsSensorPrivacyEnabled()

12