/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/ |
D | SensorToggleControllerTest.java | 19 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/ |
D | AdaptiveSleepCameraStatePreferenceController.java | 19 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()
|
D | SmartAutoRotateCameraStateController.java | 19 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()
|
D | SmartAutoRotateController.java | 18 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()
|
D | SmartAutoRotatePreferenceController.java | 19 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()
|
D | AdaptiveSleepPreferenceController.java | 19 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/ |
D | Utils.java | 22 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/ |
D | ReviewOngoingUsageFragment.java | 19 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()
|
D | PermissionUsageV2ControlPreference.java | 48 Manifest.permission_group.CAMERA, 102 } else if (groupName.equals(Manifest.permission_group.CAMERA)) { in logSensorDataTimelineViewed()
|
/packages/services/Car/cpp/computepipe/tests/runner/client_interface/ |
D | PipeOptionsConverterTest.cpp | 88 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/ |
D | CameraToggleController.java | 21 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/ |
D | ManagePermissionsFragmentTest.kt | 19 import android.Manifest.permission.CAMERA 54 grantTestAppPermission(CAMERA) in test_camera_permissionGroup_isShown_whenUsed()
|
D | TelevisionUiBaseTest.kt | 19 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/ |
D | ReviewOngoingUsageFragmentTest.kt | 19 import android.Manifest.permission.CAMERA 44 grantTestAppPermission(CAMERA) in beforeActivityLaunched()
|
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ |
D | PermissionHub2Test.kt | 19 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/ |
D | DialogsActivity.java | 258 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/ |
D | PermissionUsageV2FragmentTest.kt | 19 import android.Manifest.permission.CAMERA 65 grantPermission(APP, CAMERA) in getActivityIntent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | SmartAutoRotateControllerTest.java | 76 Manifest.permission.CAMERA, PACKAGE_NAME); in setUp() 102 Manifest.permission.CAMERA, PACKAGE_NAME); in getAvailabilityStatus_noCameraPermission_returnDisableDependentSetting()
|
D | SmartAutoRotatePreferenceControllerTest.java | 81 Manifest.permission.CAMERA, PACKAGE_NAME); in setUp() 163 Manifest.permission.CAMERA, PACKAGE_NAME); in getSummary_noCameraPermission_returnsOn()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | PermissionsActivity.java | 102 if (checkSelfPermission(Manifest.permission.CAMERA) in checkPermissions() 145 permissionsToRequest[permissionsRequestIndex] = Manifest.permission.CAMERA; in buildPermissionsRequest()
|
/packages/apps/Settings/src/com/android/settings/utils/ |
D | SensorPrivacyManagerHelper.java | 34 public static final int CAMERA = SensorPrivacyManager.Sensors.CAMERA; field in SensorPrivacyManagerHelper
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/ |
D | PermissionUsageGraphicPreference.java | 157 getUsageCount(Manifest.permission_group.CAMERA), in onBindViewHolder() 161 ? getUsageCountExcluding(Manifest.permission_group.CAMERA, in onBindViewHolder()
|
D | PermissionUsages.java | 19 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/ |
D | ReviewOngoingUsageViewModel.kt | 20 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/ |
D | PipeOptionsConverter.cpp | 46 case proto::InputStreamConfig::CAMERA: in ConvertInputType() 47 return PipeInputConfigInputType::CAMERA; in ConvertInputType()
|