/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | SensorBlockedBannerTest.kt | 19 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/ |
D | CameraPrivacyChipViewControllerTest.java | 19 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/ |
D | AdaptiveSleepCameraStatePreferenceController.java | 19 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()
|
D | SmartAutoRotateCameraStateController.java | 19 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()
|
D | SmartAutoRotateController.java | 18 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()
|
D | SmartAutoRotatePreferenceController.java | 19 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/ |
D | SafetyCenterQsViewModel.kt | 20 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()
|
D | PrivacyControlsViewModel.kt | 66 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/ |
D | CameraTogglePreferenceController.java | 61 SensorPrivacyManager.Sensors.CAMERA); in handlePreferenceChanged() 65 SensorPrivacyManager.Sensors.CAMERA, in handlePreferenceChanged() 74 .supportsSensorToggle(SensorPrivacyManager.Sensors.CAMERA)) { in getDefaultAvailabilityStatus() 86 SensorPrivacyManager.Sensors.CAMERA)); in updateState()
|
D | CameraRequiredAppsTogglePreferenceController.java | 82 SensorPrivacyManager.Sensors.CAMERA); in handlePreferenceChanged() 94 SensorPrivacyManager.Sensors.CAMERA, in handlePreferenceChanged() 104 SensorPrivacyManager.Sensors.CAMERA); in updateState()
|
D | CameraInfotainmentAppsPreferenceController.java | 81 getContext(), Manifest.permission_group.CAMERA, userHandle, in loadInfotainmentAppsWithCameraPermission() 85 SensorPrivacyManager.Sensors.CAMERA); in loadInfotainmentAppsWithCameraPermission() 96 Manifest.permission_group.CAMERA, showSummary); in loadInfotainmentAppsWithCameraPermission()
|
D | ManageCameraPermissionsPreferenceController.java | 80 SensorPrivacyManager.Sensors.CAMERA)) { in updateState() 110 Collections.singletonList(Manifest.permission.CAMERA), /* flags= */ 0, in updateState() 118 Collections.singletonList(Manifest.permission.CAMERA), in updateState()
|
D | CameraPrivacyBasePreferenceController.java | 62 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/ |
D | CameraTogglePreferenceControllerTest.java | 159 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/ |
D | UndefinedGroupPermissionTest.kt | 18 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/ |
D | RequestCameraPermission.java | 19 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/ |
D | TvUnblockSensorActivity.java | 107 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/ |
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()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | PermissionMapping.kt | 45 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()
|
D | Utils.java | 22 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/ |
D | FlashNotificationsUtil.java | 52 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/ |
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/AvatarPicker/src/main/java/com/android/avatarpicker/ui/details/items/ |
D | ItemViewComposerImpl.kt | 20 import com.android.avatarpicker.domain.CAMERA 35 CAMERA -> CameraIcon(viewModel, resultHandler) in ItemView()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | CameraPrivacyChipViewController.java | 19 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/ |
D | ManagePermissionsFragmentTest.kt | 19 import android.Manifest.permission.CAMERA 54 grantTestAppPermission(CAMERA) in test_camera_permissionGroup_isShown_whenUsed()
|