/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | MediaPermissionTest.kt | 46 requestAppPermissionsAndAssertResult(Manifest.permission.READ_EXTERNAL_STORAGE to true) { in testWhenRESIsGrantedFromGrantDialogThenShouldGrantAllPermissions() 55 grantAppPermissionsByUi(Manifest.permission.READ_EXTERNAL_STORAGE) in testWhenRESIsGrantedManuallyThenShouldGrantAllPermissions() 76 requestAppPermissionsAndAssertResult(Manifest.permission.READ_EXTERNAL_STORAGE to false) { in testWhenRESIsDeniedFromGrantDialogThenShouldDenyAllPermissions() 85 grantAppPermissionsByUi(Manifest.permission.READ_EXTERNAL_STORAGE) in testWhenRESIsDeniedManuallyThenShouldDenyAllPermissions() 87 revokeAppPermissionsByUi(Manifest.permission.READ_EXTERNAL_STORAGE) in testWhenRESIsDeniedManuallyThenShouldDenyAllPermissions() 113 Manifest.permission.READ_EXTERNAL_STORAGE, in testWhenA33AppRequestsStorageThenNoDialogAndNoGrant() 126 assertAppHasPermission(Manifest.permission.READ_EXTERNAL_STORAGE, false) in testWhenA33AppRequestsAuralThenDialogAndGrant() 146 assertAppHasPermission(Manifest.permission.READ_EXTERNAL_STORAGE, false) in testWhenA33AppRequestsVisualThenDialogAndGrant() 157 requestAppPermissionsAndAssertResult(Manifest.permission.READ_EXTERNAL_STORAGE to true) { in testWhenA30AppRequestsStorageWhenMediaPermsHaveRWRFlag() 172 Manifest.permission.READ_EXTERNAL_STORAGE to true, in testWhenA30AppRequestsStorageWhenMediaPermsHaveRWRFlag() [all …]
|
D | PermissionUpgradeTest.kt | 54 android.Manifest.permission.READ_EXTERNAL_STORAGE, in assertAllPermissionsGrantedByDefault() 105 assertAppHasPermission(android.Manifest.permission.READ_EXTERNAL_STORAGE, false) in testRevokePropagatedOnUpgradeNewToNewModel() 120 assertAppHasPermission(android.Manifest.permission.READ_EXTERNAL_STORAGE, false) in testRevokePropagatedOnUpgradeNewToNewModel() 149 android.Manifest.permission.READ_EXTERNAL_STORAGE, in assertAppHasAllOrNoPermissions()
|
D | MediaPermissionUpgradeTest.kt | 19 import android.Manifest.permission.READ_EXTERNAL_STORAGE 41 READ_EXTERNAL_STORAGE to true, in testAfterUpgradeToTiramisuThenNoGrantDialogShownForMediaPerms()
|
D | PermissionTest23.kt | 272 android.Manifest.permission.READ_EXTERNAL_STORAGE, in testNoResidualPermissionsOnUninstall() 412 android.Manifest.permission.READ_EXTERNAL_STORAGE, in assertAppHasAllOrNoPermissions()
|
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/ |
D | RestrictedStoragePermissionTest.java | 296 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isFalse(); in cannotGrantStorageTargetingSdk22NotWhitelisted() 299 assertThat(isPermissionGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)) in cannotGrantStorageTargetingSdk22NotWhitelisted() 312 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isFalse(); in cannotGrantStorageTargetingSdk22OptInNotWhitelisted() 315 assertThat(isPermissionGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)) in cannotGrantStorageTargetingSdk22OptInNotWhitelisted() 328 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk22Whitelisted() 339 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk22OptInWhitelisted() 350 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isFalse()); in cannotGrantStorageTargetingSdk28NotWhitelisted() 361 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isFalse()); in cannotGrantStorageTargetingSdk28OptInNotWhitelisted() 372 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk28Whitelisted() 383 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk28OptInWhitelisted() [all …]
|
D | RestrictedStoragePermissionSharedUidTest.java | 19 import static android.Manifest.permission.READ_EXTERNAL_STORAGE; 104 isGranted(mPkg, READ_EXTERNAL_STORAGE)).isEqualTo(expectGranted)); in assertStoragePermGranted()
|
D | RuntimePermissionProperties.kt | 40 import android.Manifest.permission.READ_EXTERNAL_STORAGE 138 READ_EXTERNAL_STORAGE, in runtimePermissionsShouldHaveBeenSplitFromPreviousPermission()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | SoftRestrictedPermissionPolicy.java | 19 import static android.Manifest.permission.READ_EXTERNAL_STORAGE; 48 case READ_EXTERNAL_STORAGE: in shouldShow() 75 case READ_EXTERNAL_STORAGE: in shouldShow()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/ |
D | RuntimePermissionsUpgradeControllerTest.kt | 25 import android.Manifest.permission.READ_EXTERNAL_STORAGE in <lambda>() 378 setPackages(Package(TEST_PKG_NAME, Permission(READ_EXTERNAL_STORAGE))) in <lambda>() 382 verifyWhitelisted(TEST_PKG_NAME, READ_EXTERNAL_STORAGE) in <lambda>() 388 setPackages(Package(TEST_PKG_NAME, Permission(READ_EXTERNAL_STORAGE))) in <lambda>() 392 verifyNotWhitelisted(TEST_PKG_NAME, READ_EXTERNAL_STORAGE) in <lambda>() 450 READ_EXTERNAL_STORAGE, in <lambda>() 470 READ_EXTERNAL_STORAGE, in <lambda>() 490 READ_EXTERNAL_STORAGE, in <lambda>() 509 READ_EXTERNAL_STORAGE, in <lambda>() 536 READ_EXTERNAL_STORAGE, in <lambda>()
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | SplitPermissionsSystemTest.java | 31 import static android.Manifest.permission.READ_EXTERNAL_STORAGE; 111 if (newPermissions.contains(READ_EXTERNAL_STORAGE)) { in validateAndroidSystem() 112 assertSplit(split, NO_TARGET, READ_EXTERNAL_STORAGE); in validateAndroidSystem() 132 case READ_EXTERNAL_STORAGE: in validateAndroidSystem()
|
D | StorageEscalationTest.kt | 20 import android.Manifest.permission.READ_EXTERNAL_STORAGE in <lambda>() 51 listOf<String>(READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, ACCESS_MEDIA_LOCATION) in <lambda>()
|
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/ |
D | StoragePermissionAppsFragmentTest.kt | 19 import android.Manifest.permission.READ_EXTERNAL_STORAGE 39 READ_EXTERNAL_STORAGE
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/visibilitystore/ |
D | VisibilityCheckerImpl.java | 21 import static android.Manifest.permission.READ_EXTERNAL_STORAGE; 318 case SetSchemaRequest.READ_EXTERNAL_STORAGE: in doesCallerHoldsAllRequiredPermissions() 371 case SetSchemaRequest.READ_EXTERNAL_STORAGE: in doesCallerHavePermissionForDataDelivery() 372 permission = READ_EXTERNAL_STORAGE; in doesCallerHavePermissionForDataDelivery()
|
/packages/providers/MediaProvider/tools/dialogs/src/com/android/providers/media/tools/dialogs/ |
D | DialogsActivity.java | 19 import static android.Manifest.permission.READ_EXTERNAL_STORAGE; 70 if (checkSelfPermission(READ_EXTERNAL_STORAGE) != PERMISSION_GRANTED in onCreate() 72 requestPermissions(new String[]{READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE}, 42); in onCreate()
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | UriRecord.java | 178 …activity.checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSI… in requestPermissionIfNeeded() 179 …tyCompat.shouldShowRequestPermissionRationale(activity, Manifest.permission.READ_EXTERNAL_STORAGE)) in requestPermissionIfNeeded() 182 … activity.requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 1); in requestPermissionIfNeeded()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | PermissionUtils.java | 26 import static android.Manifest.permission.READ_EXTERNAL_STORAGE; 146 return checkPermissionForDataDelivery(context, READ_EXTERNAL_STORAGE, pid, uid, in checkPermissionReadStorage() 229 ? READ_MEDIA_AUDIO : READ_EXTERNAL_STORAGE; in checkPermissionReadAudio() 258 ? READ_MEDIA_VIDEO : READ_EXTERNAL_STORAGE; in checkPermissionReadVideo() 288 ? READ_MEDIA_IMAGES : READ_EXTERNAL_STORAGE; in checkPermissionReadImages() 596 case READ_EXTERNAL_STORAGE: in isRuntimePermission()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | GalleryComposerFragment.java | 67 private String[] permissions = new String[] {permission.READ_EXTERNAL_STORAGE}; 87 if (!PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onCreateView() 214 && PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onActivityResult()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | DeletionHelperSettings.java | 163 if (activity.checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) in onActivityCreated() 166 new String[] {Manifest.permission.READ_EXTERNAL_STORAGE}, in onActivityCreated() 230 && getActivity().checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) in onResume()
|
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | Utils.java | 27 android.Manifest.permission.READ_EXTERNAL_STORAGE
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/visibilitystore/ |
D | VisibilityCheckerImplTest.java | 22 import static android.Manifest.permission.READ_EXTERNAL_STORAGE; 714 .addVisibleToPermissions(ImmutableSet.of(SetSchemaRequest.READ_EXTERNAL_STORAGE)) in testSetSchema_visibleToPermissions_anyCombinations() 775 mUiAutomation.adoptShellPermissionIdentity(READ_EXTERNAL_STORAGE); in testSetSchema_visibleToPermissions_anyCombinations() 809 READ_EXTERNAL_STORAGE, READ_HOME_APP_SEARCH_DATA, READ_ASSISTANT_APP_SEARCH_DATA); in testSetSchema_defaultNotVisibleToPermissions()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/ |
D | PermissionFragment.java | 47 Manifest.permission.READ_EXTERNAL_STORAGE,
|
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/ |
D | SystemUpdaterActivity.java | 44 Manifest.permission.READ_EXTERNAL_STORAGE,
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | SetSchemaRequest.java | 104 READ_EXTERNAL_STORAGE, 135 public static final int READ_EXTERNAL_STORAGE = 4; field in SetSchemaRequest
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | OsUtil.java | 237 return OsUtil.hasPermission(Manifest.permission.READ_EXTERNAL_STORAGE); in hasStoragePermission()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | PermissionActivityTest.java | 23 import static android.Manifest.permission.READ_EXTERNAL_STORAGE; 95 AppOpsManager.permissionToOp(READ_EXTERNAL_STORAGE);
|