/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
H A D | SensorPrivacyServiceMockingTest.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 109 assertNull(ps.getState(TOGGLE_TYPE_SOFTWARE, 10, CAMERA)); in testMigration1() 112 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration1() 114 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 10, CAMERA)); in testMigration1() 128 assertNull(ps.getState(TOGGLE_TYPE_SOFTWARE, 11, CAMERA)); in testMigration2() 134 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration2() 154 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration3() 170 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration4() 186 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration5() 196 assertNull(ps.getState(TOGGLE_TYPE_SOFTWARE, 0, CAMERA)); in testMigration6() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/ |
H A D | SensorUseStartedActivity.kt | 64 internal const val CAMERA = SensorPrivacyManager.Sensors.CAMERA 93 !sensorPrivacyController.isSensorBlocked(CAMERA)) { 100 !sensorPrivacyController.isSensorBlocked(CAMERA)) { 210 sensorPrivacyController.setSensorBlocked(DIALOG, CAMERA, false) 223 .suppressSensorPrivacyReminders(CAMERA, suppressed)
|
H A D | SensorUseDialog.kt | 34 SensorUseStartedActivity.CAMERA -> 48 if (sensor == SensorUseStartedActivity.CAMERA || 59 SensorUseStartedActivity.CAMERA ->
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/television/ |
H A D | TvUnblockSensorActivity.java | 20 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 109 if (mSensor == ALL_SENSORS && !mSensorPrivacyController.isSensorBlocked(CAMERA) in onCreate() 128 case CAMERA: in showToastAndFinish() 146 return mSensorPrivacyController.isSensorBlockedByHardwareToggle(CAMERA) in isBlockedByHardwareToggle() 183 boolean cameraBlocked = (mSensor == CAMERA || mSensor == ALL_SENSORS) in updateUiForHardwareToggle() 184 && mSensorPrivacyController.isSensorBlockedByHardwareToggle(CAMERA); in updateUiForHardwareToggle() 235 case CAMERA: in updateUiForSoftwareToggle() 255 mSensorPrivacyController.setSensorBlocked(OTHER, CAMERA, false); in updateUiForSoftwareToggle()
|
H A D | TvSensorPrivacyChangedActivity.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 131 case CAMERA: in updateUI() 133 mSensorPrivacyController.isSensorBlockedByHardwareToggle(CAMERA)); in updateUI()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | CameraToggleTile.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 71 return mSensorPrivacyController.supportsSensorToggle(CAMERA) in isAvailable() 93 return CAMERA; in getSensorId()
|
H A D | RotationLockTile.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 115 mPrivacyManager.addSensorPrivacyListener(CAMERA, mSensorPrivacyChangedListener); in handleInitialize() 150 final boolean cameraLocked = mPrivacyManager.isSensorPrivacyEnabled(CAMERA); in handleUpdateState() 176 mPrivacyManager.removeSensorPrivacyListener(CAMERA, mSensorPrivacyChangedListener); in handleDestroy()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
H A D | RotationLockTileTest.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 141 Manifest.permission.CAMERA, PACKAGE_NAME); in setUp() 144 when(mPrivacyManager.isSensorPrivacyEnabled(CAMERA)).thenReturn(false); in setUp() 196 when(mPrivacyManager.isSensorPrivacyEnabled(CAMERA)).thenReturn(true); in testSecondaryString_cameraDisabled_isEmpty() 207 Manifest.permission.CAMERA, PACKAGE_NAME); in testSecondaryString_noCameraPermission_isEmpty()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | BiometricCameraManagerImpl.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 66 .isSensorPrivacyEnabled(SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, CAMERA); in isCameraPrivacyEnabled()
|
/aosp14/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
H A D | SensorPrivacyService.java | 366 sensor = CAMERA; in onOpNoted() 540 sensors.add(CAMERA); in enqueueSensorUseReminderDialog() 831 case CAMERA: in logSensorPrivacyToggle() 958 } else if (sensor == CAMERA) { in supportsSensorToggle() 966 } else if (sensor == CAMERA) { in supportsSensorToggle() 1087 TOGGLE_TYPE_SOFTWARE, CAMERA); in userSwitching() 1091 TOGGLE_TYPE_SOFTWARE, CAMERA); in userSwitching() 1098 TOGGLE_TYPE_HARDWARE, CAMERA); in userSwitching() 1102 TOGGLE_TYPE_HARDWARE, CAMERA); in userSwitching() 1143 case CAMERA: in setGlobalRestriction() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | IndividualSensorPrivacyControllerImpl.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 35 private static final int[] SENSORS = new int[] {CAMERA, MICROPHONE};
|
H A D | RotationLockControllerImpl.java | 136 Manifest.permission.CAMERA, rotationPackage) == PackageManager.PERMISSION_GRANTED; in hasSufficientPermission()
|
/aosp14/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
H A D | Component.java | 31 CAMERA, enumConstant
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/ |
H A D | BuiltInKeyguardQuickAffordanceKeys.kt | 27 const val CAMERA = "camera"
|
H A D | CameraQuickAffordanceConfig.kt | 53 get() = BuiltInKeyguardQuickAffordanceKeys.CAMERA
|
/aosp14/frameworks/base/core/proto/android/hardware/ |
H A D | sensorprivacy.proto | 75 CAMERA = 2; enumerator 101 CAMERA = 2; enumerator
|
/aosp14/frameworks/base/core/java/android/service/voice/ |
H A D | VisualQueryDetector.java | 19 import static android.Manifest.permission.CAMERA; 111 @RequiresPermission(allOf = {CAMERA, RECORD_AUDIO}) 135 @RequiresPermission(allOf = {CAMERA, RECORD_AUDIO})
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
H A D | PrivacyItem.kt | 32 android.Manifest.permission_group.CAMERA,
|
H A D | PrivacyDialogControllerV2.kt | 313 Manifest.permission_group.CAMERA -> PrivacyType.TYPE_CAMERA 322 Manifest.permission_group.CAMERA -> privacyItemController.micCameraAvailable
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
H A D | AppOpsControllerImpl.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 134 mCameraDisabled = mSensorPrivacyController.isSensorBlocked(CAMERA); in AppOpsControllerImpl() 160 mCameraDisabled = mSensorPrivacyController.isSensorBlocked(CAMERA); in setListening() 549 if (sensor == CAMERA) { in onSensorBlockedChanged()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
H A D | AppOpsControllerTest.java | 19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA; 131 when(mSensorPrivacyController.isSensorBlocked(CAMERA)) in setUp() 133 when(mSensorPrivacyController.isSensorBlocked(CAMERA)) in setUp() 826 mController.onSensorBlockedChanged(CAMERA, true); in testCameraFilteredWhenCameraDisabled() 835 mController.onSensorBlockedChanged(CAMERA, false); in testCameraFilteredWhenCameraDisabled() 859 mController.onSensorBlockedChanged(CAMERA, true); in testPhoneCallCameraFilteredWhenCameraDisabled() 868 mController.onSensorBlockedChanged(CAMERA, false); in testPhoneCallCameraFilteredWhenCameraDisabled()
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
H A D | MediaRecorderTest.java | 89 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideo() 139 MediaRecorder.VideoSource.CAMERA; in validateGetSurface() 349 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideoWithPara() 381 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in invalidRecordSetting()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/ |
H A D | DreamOverlayStatusBarViewControllerTest.java | 225 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testOnViewAttachedShowsMicIconWhenDisabled() 236 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testOnViewAttachedShowsCameraIconWhenDisabled() 247 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testOnViewAttachedShowsMicCameraIconWhenDisabled() 433 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA)) in testMicCameraIconShownWhenSensorsBlocked()
|
/aosp14/frameworks/base/core/java/android/hardware/ |
H A D | SensorPrivacyManager.java | 97 public static final int CAMERA = SensorPrivacySensorProto.CAMERA; field in SensorPrivacyManager.Sensors 106 CAMERA
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
H A D | MediaRecorderStressTest.java | 230 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideoAndPlayback() 327 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in testStressTimeLapse()
|