Home
last modified time | relevance | path

Searched refs:READ_EXTERNAL_STORAGE (Results 1 – 25 of 34) sorted by relevance

12

/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DMediaPermissionTest.kt46 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 …]
DPermissionUpgradeTest.kt54 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()
DMediaPermissionUpgradeTest.kt19 import android.Manifest.permission.READ_EXTERNAL_STORAGE
41 READ_EXTERNAL_STORAGE to true, in testAfterUpgradeToTiramisuThenNoGrantDialogShownForMediaPerms()
DPermissionTest23.kt272 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/
DRestrictedStoragePermissionTest.java296 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 …]
DRestrictedStoragePermissionSharedUidTest.java19 import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
104 isGranted(mPkg, READ_EXTERNAL_STORAGE)).isEqualTo(expectGranted)); in assertStoragePermGranted()
DRuntimePermissionProperties.kt40 import android.Manifest.permission.READ_EXTERNAL_STORAGE
138 READ_EXTERNAL_STORAGE, in runtimePermissionsShouldHaveBeenSplitFromPreviousPermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DSoftRestrictedPermissionPolicy.java19 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/
DRuntimePermissionsUpgradeControllerTest.kt25 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/
DSplitPermissionsSystemTest.java31 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()
DStorageEscalationTest.kt20 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/
DStoragePermissionAppsFragmentTest.kt19 import android.Manifest.permission.READ_EXTERNAL_STORAGE
39 READ_EXTERNAL_STORAGE
/packages/modules/AppSearch/service/java/com/android/server/appsearch/visibilitystore/
DVisibilityCheckerImpl.java21 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/
DDialogsActivity.java19 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/
DUriRecord.java178 …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/
DPermissionUtils.java26 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/
DGalleryComposerFragment.java67 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/
DDeletionHelperSettings.java163 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/
DUtils.java27 android.Manifest.permission.READ_EXTERNAL_STORAGE
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/visibilitystore/
DVisibilityCheckerImplTest.java22 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/
DPermissionFragment.java47 Manifest.permission.READ_EXTERNAL_STORAGE,
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DSystemUpdaterActivity.java44 Manifest.permission.READ_EXTERNAL_STORAGE,
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DSetSchemaRequest.java104 READ_EXTERNAL_STORAGE,
135 public static final int READ_EXTERNAL_STORAGE = 4; field in SetSchemaRequest
/packages/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java237 return OsUtil.hasPermission(Manifest.permission.READ_EXTERNAL_STORAGE); in hasStoragePermission()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPermissionActivityTest.java23 import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
95 AppOpsManager.permissionToOp(READ_EXTERNAL_STORAGE);

12