Home
last modified time | relevance | path

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

123456

/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DSensorBlockedBannerTest.kt19 import android.Manifest.permission_group.CAMERA as CAMERA_PERMISSION_GROUP
24 import android.hardware.SensorPrivacyManager.Sensors.CAMERA
57 CAMERA to CAMERA_PERMISSION_GROUP,
64 CAMERA to "blocked_camera_title",
108 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(CAMERA)) in testCameraCardDisplayed()
109 runSensorTest(CAMERA) in testCameraCardDisplayed()
126 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(CAMERA)) in testCardClickOpenPrivacyControls()
136 val blocked = isSensorPrivacyEnabled(CAMERA) in testCardClickOpenPrivacyControls()
138 setSensor(CAMERA, true) in testCardClickOpenPrivacyControls()
141 navigateAndTest(CAMERA) in testCardClickOpenPrivacyControls()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DCameraPrivacyChipViewControllerTest.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
124 when(mSensorPrivacyManager.isSensorPrivacyEnabled(anyInt(), eq(CAMERA))) in addPrivacyChipView_privacyChipViewPresent_sensorStatusSet()
144 when(mSensorPrivacyManager.isSensorPrivacyEnabled(anyInt(), eq(CAMERA))) in onUserChanged_cameraStatusSet()
245 verify(mSensorPrivacyManager).addSensorPrivacyListener(eq(CAMERA), in onSensorPrivacyChanged_argTrue_setSensorEnabledWithFalseCalled()
250 .onSensorPrivacyChanged(CAMERA, /* enabled= */ true); in onSensorPrivacyChanged_argTrue_setSensorEnabledWithFalseCalled()
261 verify(mSensorPrivacyManager).addSensorPrivacyListener(eq(CAMERA), in onSensorPrivacyChanged_argFalse_setSensorEnabledWithTrueCalled()
266 .onSensorPrivacyChanged(CAMERA, /* enabled= */ false); in onSensorPrivacyChanged_argFalse_setSensorEnabledWithTrueCalled()
278 verify(mSensorPrivacyManager).addSensorPrivacyListener(eq(CAMERA), in onSensorPrivacyChanged_qsTileNotifyUpdateRunnableExecuted()
283 .onSensorPrivacyChanged(CAMERA, /* enabled= */ true); in onSensorPrivacyChanged_qsTileNotifyUpdateRunnableExecuted()
293 when(mSensorPrivacyManager.isSensorPrivacyEnabled(anyInt(), eq(CAMERA))) in isSensorEnabled_sensorPrivacyEnabled_returnFalse()
[all …]
/packages/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepCameraStatePreferenceController.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
63 mPrivacyManager.addSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStart()
68 mPrivacyManager.removeSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStop()
86 return mPrivacyManager.isSensorPrivacyEnabled(CAMERA); in isCameraLocked()
104 p -> mPrivacyManager.setSensorPrivacy(DIALOG, CAMERA, false)); in initializePreference()
DSmartAutoRotateCameraStateController.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
68 mPrivacyManager.addSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStart()
74 mPrivacyManager.removeSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStop()
79 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
89 mPrivacyManager.setSensorPrivacy(DIALOG, CAMERA, false); in displayPreference()
DSmartAutoRotateController.java18 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
121 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
144 mPrivacyManager.addSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStart()
156 mPrivacyManager.removeSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStop()
212 Manifest.permission.CAMERA, rotationPackage) == PackageManager.PERMISSION_GRANTED; in hasSufficientPermission()
DSmartAutoRotatePreferenceController.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
135 mPrivacyManager.addSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStart()
145 mPrivacyManager.removeSensorPrivacyListener(CAMERA, mPrivacyChangedListener); in onStop()
154 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DSafetyCenterQsViewModel.kt20 import android.Manifest.permission_group.CAMERA
150 CAMERA -> { in toggleSensor()
151 val blocked = sensorPrivacyManager.isSensorPrivacyEnabled(Sensors.CAMERA) in toggleSensor()
152 sensorPrivacyManager.setSensorPrivacy(Sensors.CAMERA, !blocked) in toggleSensor()
182 CAMERA to in onUpdate()
184 Sensors.CAMERA, in onUpdate()
209 sensorPrivacyManager.addSensorPrivacyListener(Sensors.CAMERA, this) in onActive()
217 sensorPrivacyManager.removeSensorPrivacyListener(Sensors.CAMERA, this) in onInactive()
DPrivacyControlsViewModel.kt66 CAMERA("privacy_camera_toggle", R.string.camera_toggle_title),
85 shownPrefs[Pref.CAMERA] = in onUpdate()
87 Sensors.CAMERA, in onUpdate()
128 Pref.CAMERA -> toggleSensorOrShowAdmin(fragment, Sensors.CAMERA, admin) in handlePrefClick()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DCameraTogglePreferenceController.java61 SensorPrivacyManager.Sensors.CAMERA); in handlePreferenceChanged()
65 SensorPrivacyManager.Sensors.CAMERA, in handlePreferenceChanged()
74 .supportsSensorToggle(SensorPrivacyManager.Sensors.CAMERA)) { in getDefaultAvailabilityStatus()
86 SensorPrivacyManager.Sensors.CAMERA)); in updateState()
DCameraRequiredAppsTogglePreferenceController.java82 SensorPrivacyManager.Sensors.CAMERA); in handlePreferenceChanged()
94 SensorPrivacyManager.Sensors.CAMERA, in handlePreferenceChanged()
104 SensorPrivacyManager.Sensors.CAMERA); in updateState()
DCameraInfotainmentAppsPreferenceController.java81 getContext(), Manifest.permission_group.CAMERA, userHandle, in loadInfotainmentAppsWithCameraPermission()
85 SensorPrivacyManager.Sensors.CAMERA); in loadInfotainmentAppsWithCameraPermission()
96 Manifest.permission_group.CAMERA, showSummary); in loadInfotainmentAppsWithCameraPermission()
DManageCameraPermissionsPreferenceController.java80 SensorPrivacyManager.Sensors.CAMERA)) { in updateState()
110 Collections.singletonList(Manifest.permission.CAMERA), /* flags= */ 0, in updateState()
118 Collections.singletonList(Manifest.permission.CAMERA), in updateState()
DCameraPrivacyBasePreferenceController.java62 SensorPrivacyManager.Sensors.CAMERA, mListener); in onStartInternal()
68 mSensorPrivacyManager.removeSensorPrivacyListener(SensorPrivacyManager.Sensors.CAMERA, in onStopInternal()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
DCameraTogglePreferenceControllerTest.java159 eq(SensorPrivacyManager.Sensors.CAMERA), in onPreferenceClicked_clickCameraEnabled_shouldSetPrivacySensor()
177 eq(SensorPrivacyManager.Sensors.CAMERA), in onPreferenceClicked_clickCameraDisabled_shouldClearPrivacySensor()
211 SensorPrivacyManager.Sensors.CAMERA, mListener.getValue()); in onStop_removesSensorPrivacyListener()
220 eq(SensorPrivacyManager.Sensors.CAMERA), mListener.capture()); in initializePreference()
226 eq(SensorPrivacyManager.Sensors.CAMERA))).thenReturn(isMuted); in setIsSensorPrivacyEnabled()
231 .supportsSensorToggle(eq(SensorPrivacyManager.Sensors.CAMERA))) in setCameraMuteFeatureAvailable()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DUndefinedGroupPermissionTest.kt18 import android.Manifest.permission.CAMERA
114 testOtherGroupPermissionsNotGranted(CAMERA, RECORD_AUDIO) in testOtherGroupPermissionsNotGranted_1()
124 testOtherGroupPermissionsNotGranted(CAMERA, TEST) in testOtherGroupPermissionsNotGranted_3()
132 mPm!!.checkPermission(CAMERA, APP_PKG_NAME) in testCustomPermissionGrantedAlone()
151 mPm!!.checkPermission(CAMERA, APP_PKG_NAME) in testCustomPermissionGrantedAlone()
/packages/modules/Permission/tests/cts/permission/AppThatRequestCustomCameraPermission/src/android/permission/cts/appthatrequestcustomcamerapermission/
DRequestCameraPermission.java19 import static android.Manifest.permission.CAMERA;
43 checkSelfPermission(CAMERA) == PERMISSION_GRANTED; in onCreate()
50 requestPermissions(new String[] {CAMERA}, 0); in onCreate()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/sensorprivacy/
DTvUnblockSensorActivity.java107 if (mSensor == ALL_SENSORS && !mSensorPrivacyController.isSensorBlocked(Sensors.CAMERA) in onCreate()
126 case Sensors.CAMERA: in showToastAndFinish()
144 return mSensorPrivacyController.isSensorBlockedByHardwareToggle(Sensors.CAMERA) in isBlockedByHardwareToggle()
182 boolean cameraBlocked = (mSensor == Sensors.CAMERA || mSensor == ALL_SENSORS) in updateUiForHardwareToggle()
183 && mSensorPrivacyController.isSensorBlockedByHardwareToggle(Sensors.CAMERA); in updateUiForHardwareToggle()
240 case Sensors.CAMERA: in updateUiForSoftwareToggle()
260 mSensorPrivacyController.setSensorBlocked(Sources.OTHER, Sensors.CAMERA, false); in updateUiForSoftwareToggle()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DReviewOngoingUsageFragment.java19 import static android.Manifest.permission_group.CAMERA;
131 } else if (numGroups == 2 && groups.containsKey(MICROPHONE) && groups.containsKey(CAMERA)) { in getListOfPermissionLabels()
208 usedGroups.put(CAMERA, KotlinUtils.INSTANCE.getPermGroupLabel(context, CAMERA)); in updateDialogView()
281 } else if (usedGroups.size() == 1 && usedGroups.keyAt(0).equals(CAMERA)) { in getTitle()
284 && usedGroups.containsKey(CAMERA)) { in getTitle()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DPermissionMapping.kt45 Manifest.permission_group.CAMERA,
171 PLATFORM_PERMISSIONS[Manifest.permission.CAMERA] = Manifest.permission_group.CAMERA
174 Manifest.permission_group.CAMERA
191 ONE_TIME_PERMISSION_GROUPS.add(Manifest.permission_group.CAMERA)
375 return Manifest.permission_group.CAMERA in getPlatformPermissionGroupForOp()
DUtils.java22 import static android.Manifest.permission_group.CAMERA;
279 PERM_GROUP_REQUEST_RES.put(CAMERA, R.string.permgrouprequest_camera); in PERM_GROUP_REQUEST_RES.put() argument
306 PERM_GROUP_REQUEST_DEVICE_AWARE_RES.put(CAMERA, in PERM_GROUP_REQUEST_DEVICE_AWARE_RES.put() argument
320 PERM_GROUP_REQUEST_DETAIL_RES.put(CAMERA, R.string.permgrouprequestdetail_camera); in PERM_GROUP_REQUEST_DETAIL_RES.put() argument
328 .put(CAMERA, R.string.permgroupbackgroundrequest_camera); in put() argument
338 .put(CAMERA, R.string.permgroupbackgroundrequest_device_aware_camera); in put() argument
348 .put(CAMERA, R.string.permgroupbackgroundrequestdetail_camera); in put() argument
355 PERM_GROUP_UPGRADE_REQUEST_RES.put(CAMERA, R.string.permgroupupgraderequest_camera); in PERM_GROUP_UPGRADE_REQUEST_RES.put() argument
363 PERM_GROUP_UPGRADE_REQUEST_DEVICE_AWARE_RES.put(CAMERA, in PERM_GROUP_UPGRADE_REQUEST_DEVICE_AWARE_RES.put() argument
374 .put(CAMERA, R.string.permgroupupgraderequestdetail_camera); in put() argument
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DFlashNotificationsUtil.java52 FlashNotificationsUtil.State.CAMERA,
58 int CAMERA = 1; field
124 return ((isTorchAvailable && isCameraFlashEnabled) ? State.CAMERA : State.OFF) in getFlashNotificationsState()
/packages/services/Car/cpp/computepipe/tests/runner/client_interface/
DPipeOptionsConverterTest.cpp88 EXPECT_EQ(desc.inputConfig[0].inputSources[0].type, PipeInputConfigInputType::CAMERA); in TEST()
94 EXPECT_EQ(desc.inputConfig[1].inputSources[0].type, PipeInputConfigInputType::CAMERA); in TEST()
100 EXPECT_EQ(desc.inputConfig[2].inputSources[0].type, PipeInputConfigInputType::CAMERA); in TEST()
106 EXPECT_EQ(desc.inputConfig[3].inputSources[0].type, PipeInputConfigInputType::CAMERA); in TEST()
/packages/apps/AvatarPicker/src/main/java/com/android/avatarpicker/ui/details/items/
DItemViewComposerImpl.kt20 import com.android.avatarpicker.domain.CAMERA
35 CAMERA -> CameraIcon(viewModel, resultHandler) in ItemView()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DCameraPrivacyChipViewController.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
48 return CAMERA; in getChipSensor()
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/television/
DManagePermissionsFragmentTest.kt19 import android.Manifest.permission.CAMERA
54 grantTestAppPermission(CAMERA) in test_camera_permissionGroup_isShown_whenUsed()

123456