Home
last modified time | relevance | path

Searched refs:CAMERA (Results 1 – 25 of 75) sorted by relevance

123

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
H A DSensorPrivacyServiceMockingTest.java19 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 DSensorUseStartedActivity.kt64 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 DSensorUseDialog.kt34 SensorUseStartedActivity.CAMERA ->
48 if (sensor == SensorUseStartedActivity.CAMERA ||
59 SensorUseStartedActivity.CAMERA ->
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/television/
H A DTvUnblockSensorActivity.java20 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 DTvSensorPrivacyChangedActivity.java19 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 DCameraToggleTile.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
71 return mSensorPrivacyController.supportsSensorToggle(CAMERA) in isAvailable()
93 return CAMERA; in getSensorId()
H A DRotationLockTile.java19 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 DRotationLockTileTest.java19 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 DBiometricCameraManagerImpl.java19 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 DSensorPrivacyService.java366 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 DIndividualSensorPrivacyControllerImpl.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
35 private static final int[] SENSORS = new int[] {CAMERA, MICROPHONE};
H A DRotationLockControllerImpl.java136 Manifest.permission.CAMERA, rotationPackage) == PackageManager.PERMISSION_GRANTED; in hasSufficientPermission()
/aosp14/frameworks/base/tools/powermodel/src/com/android/powermodel/
H A DComponent.java31 CAMERA, enumConstant
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
H A DBuiltInKeyguardQuickAffordanceKeys.kt27 const val CAMERA = "camera"
H A DCameraQuickAffordanceConfig.kt53 get() = BuiltInKeyguardQuickAffordanceKeys.CAMERA
/aosp14/frameworks/base/core/proto/android/hardware/
H A Dsensorprivacy.proto75 CAMERA = 2; enumerator
101 CAMERA = 2; enumerator
/aosp14/frameworks/base/core/java/android/service/voice/
H A DVisualQueryDetector.java19 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 DPrivacyItem.kt32 android.Manifest.permission_group.CAMERA,
H A DPrivacyDialogControllerV2.kt313 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 DAppOpsControllerImpl.java19 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 DAppOpsControllerTest.java19 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 DMediaRecorderTest.java89 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 DDreamOverlayStatusBarViewControllerTest.java225 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 DSensorPrivacyManager.java97 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 DMediaRecorderStressTest.java230 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideoAndPlayback()
327 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in testStressTimeLapse()

123