Home
last modified time | relevance | path

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

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
DSensorToggleControllerTest.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
98 .when(mSensorPrivacyManager).isSensorPrivacyEnabled(eq(CAMERA)); in setUp()
102 .when(mSensorPrivacyManager).isSensorPrivacyEnabled(eq(CAMERA), anyInt()); in setUp()
116 listener.onSensorPrivacyChanged(CAMERA, mMicState.get(0)); in setUp()
119 }).when(mSensorPrivacyManager).setSensorPrivacy(anyInt(), eq(CAMERA), anyBoolean()); in setUp()
137 listener.onSensorPrivacyChanged(CAMERA, mCamState.get(0)); in setUp()
140 listener.onSensorPrivacyChanged(CAMERA, mCamState.get(10)); in setUp()
144 .setSensorPrivacyForProfileGroup(anyInt(), eq(CAMERA), anyBoolean()); in setUp()
149 .when(mSensorPrivacyManager).addSensorPrivacyListener(eq(CAMERA), any()); in setUp()
156 .addSensorPrivacyListener(eq(CAMERA), anyInt(), any()); in setUp()
[all …]
/packages/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepCameraStatePreferenceController.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
43 mPrivacyManager.addSensorPrivacyListener(CAMERA, in AdaptiveSleepCameraStatePreferenceController()
63 return mPrivacyManager.isSensorPrivacyEnabled(CAMERA); in isCameraLocked()
81 p -> mPrivacyManager.setSensorPrivacy(DIALOG, CAMERA, false)); in initializePreference()
DSmartAutoRotateCameraStateController.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
47 mPrivacyManager.addSensorPrivacyListener(CAMERA, (sensor, enabled) -> { in SmartAutoRotateCameraStateController()
57 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
67 mPrivacyManager.setSensorPrivacy(DIALOG, CAMERA, false); in displayPreference()
DSmartAutoRotateController.java18 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
73 .addSensorPrivacyListener(CAMERA, (sensor, enabled) -> updateState(mPreference)); in SmartAutoRotateController()
104 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
177 Manifest.permission.CAMERA, rotationPackage) == PackageManager.PERMISSION_GRANTED; in hasSufficientPermission()
DSmartAutoRotatePreferenceController.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
67 .addSensorPrivacyListener(CAMERA, (sensor, enabled) -> refreshSummary(mPreference)); in SmartAutoRotatePreferenceController()
116 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
DAdaptiveSleepPreferenceController.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
133 return mPrivacyManager.isSensorPrivacyEnabled(CAMERA); in isCameraLocked()
169 Manifest.permission.CAMERA, attentionPackage) == PackageManager.PERMISSION_GRANTED; in hasSufficientPermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DUtils.java22 import static android.Manifest.permission_group.CAMERA;
126 Manifest.permission_group.CAMERA,
277 PLATFORM_PERMISSIONS.put(Manifest.permission.CAMERA, CAMERA); in PLATFORM_PERMISSIONS.put() argument
279 PLATFORM_PERMISSIONS.put(Manifest.permission.BACKGROUND_CAMERA, CAMERA); in PLATFORM_PERMISSIONS.put() argument
302 ONE_TIME_PERMISSION_GROUPS.add(CAMERA);
315 PERM_GROUP_REQUEST_RES.put(CAMERA, R.string.permgrouprequest_camera); in PERM_GROUP_REQUEST_RES.put() argument
323 PERM_GROUP_REQUEST_DETAIL_RES.put(CAMERA, R.string.permgrouprequestdetail_camera); in PERM_GROUP_REQUEST_DETAIL_RES.put() argument
331 .put(CAMERA, R.string.permgroupbackgroundrequest_camera); in put() argument
339 .put(CAMERA, R.string.permgroupbackgroundrequestdetail_camera); in put() argument
344 PERM_GROUP_UPGRADE_REQUEST_RES.put(CAMERA, R.string.permgroupupgraderequest_camera); in PERM_GROUP_UPGRADE_REQUEST_RES.put() argument
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
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()
DPermissionUsageV2ControlPreference.java48 Manifest.permission_group.CAMERA,
102 } else if (groupName.equals(Manifest.permission_group.CAMERA)) { in logSensorDataTimelineViewed()
/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/Settings/src/com/android/settings/privacy/
DCameraToggleController.java21 import static com.android.settings.utils.SensorPrivacyManagerHelper.CAMERA;
36 return CAMERA; in getSensor()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/television/
DManagePermissionsFragmentTest.kt19 import android.Manifest.permission.CAMERA
54 grantTestAppPermission(CAMERA) in test_camera_permissionGroup_isShown_whenUsed()
DTelevisionUiBaseTest.kt19 import android.Manifest.permission_group.CAMERA
32 val cameraPermissionLabel by lazy { getPermGroupLabel(targetContext, CAMERA) } in <lambda>()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/handheld/
DReviewOngoingUsageFragmentTest.kt19 import android.Manifest.permission.CAMERA
44 grantTestAppPermission(CAMERA) in beforeActivityLaunched()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/
DPermissionHub2Test.kt19 import android.Manifest.permission.CAMERA
84 context.packageManager.getPermissionFlags(CAMERA, APP, myUserHandle()) and in accessCamera()
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/dialogs/
DDialogsActivity.java258 if (checkSelfPermission(Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) { in showPermissionDialog()
263 requestPermissions(new String[]{Manifest.permission.CAMERA}, 1); in showPermissionDialog()
267 if (checkSelfPermission(Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED in showMultiPermissionDialog()
277 requestPermissions(new String[]{Manifest.permission.CAMERA, in showMultiPermissionDialog()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionUsageV2FragmentTest.kt19 import android.Manifest.permission.CAMERA
65 grantPermission(APP, CAMERA) in getActivityIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DSmartAutoRotateControllerTest.java76 Manifest.permission.CAMERA, PACKAGE_NAME); in setUp()
102 Manifest.permission.CAMERA, PACKAGE_NAME); in getAvailabilityStatus_noCameraPermission_returnDisableDependentSetting()
DSmartAutoRotatePreferenceControllerTest.java81 Manifest.permission.CAMERA, PACKAGE_NAME); in setUp()
163 Manifest.permission.CAMERA, PACKAGE_NAME); in getSummary_noCameraPermission_returnsOn()
/packages/apps/Camera2/src/com/android/camera/
DPermissionsActivity.java102 if (checkSelfPermission(Manifest.permission.CAMERA) in checkPermissions()
145 permissionsToRequest[permissionsRequestIndex] = Manifest.permission.CAMERA; in buildPermissionsRequest()
/packages/apps/Settings/src/com/android/settings/utils/
DSensorPrivacyManagerHelper.java34 public static final int CAMERA = SensorPrivacyManager.Sensors.CAMERA; field in SensorPrivacyManagerHelper
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionUsageGraphicPreference.java157 getUsageCount(Manifest.permission_group.CAMERA), in onBindViewHolder()
161 ? getUsageCountExcluding(Manifest.permission_group.CAMERA, in onBindViewHolder()
DPermissionUsages.java19 import static android.Manifest.permission.CAMERA;
273 newReqPerms[telecomPackageInfo.requestedPermissions.length + 1] = CAMERA; in loadInBackground()
288 telecomPackageInfo, CAMERA, false); in loadInBackground()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DReviewOngoingUsageViewModel.kt20 import android.Manifest.permission_group.CAMERA in <lambda>()
107 listOf(CAMERA, LOCATION, MICROPHONE) in <lambda>()
109 listOf(CAMERA, MICROPHONE) in <lambda>()
/packages/services/Car/cpp/computepipe/runner/client_interface/
DPipeOptionsConverter.cpp46 case proto::InputStreamConfig::CAMERA: in ConvertInputType()
47 return PipeInputConfigInputType::CAMERA; in ConvertInputType()

123