Home
last modified time | relevance | path

Searched refs:pollForPermission (Results 1 – 9 of 9) sorted by relevance

/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java54 import static android.scopedstorage.cts.lib.TestUtils.pollForPermission;
193 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ false); in testCreateFilesInRandomPlaces_hasW()
194 pollForPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, /*granted*/ true); in testCreateFilesInRandomPlaces_hasW()
223 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ false); in testMkdirInRandomPlaces_hasW()
224 pollForPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, /*granted*/ true); in testMkdirInRandomPlaces_hasW()
245 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ false); in testCantAccessExternalStorage()
246 pollForPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, /*granted*/ false); in testCantAccessExternalStorage()
314 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testReadOnlyExternalStorage_hasR()
315 pollForPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, /*granted*/ false); in testReadOnlyExternalStorage_hasR()
363 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testListFiles_hasR()
[all …]
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DStorageOtherFilesTest.java42 import static android.scopedstorage.cts.lib.TestUtils.pollForPermission;
118 pollForPermission(Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED, true); in init()
248 pollForPermission(Manifest.permission.ACCESS_MEDIA_LOCATION, true); in other_accessLocationMetadata()
252 pollForPermission(APP_VU_SELECTED, Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED, in other_accessLocationMetadata()
DStorageOtherAndOwnedFilesTest.java24 import static android.scopedstorage.cts.lib.TestUtils.pollForPermission;
79 pollForPermission(Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED, true); in init()
DStorageOwnedFilesTest.java37 import static android.scopedstorage.cts.lib.TestUtils.pollForPermission;
100 pollForPermission(Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED, true); in init()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java62 import static android.scopedstorage.cts.lib.TestUtils.pollForPermission;
351 pollForPermission(Manifest.permission.READ_MEDIA_IMAGES, /*granted*/ true); in testAccess_OnlyImageFile()
378 pollForPermission(Manifest.permission.READ_MEDIA_VIDEO, /*granted*/ true); in testAccess_OnlyVideoFile()
405 pollForPermission(Manifest.permission.READ_MEDIA_AUDIO, /*granted*/ true); in testAccess_OnlyAudioFile()
432 pollForPermission(Manifest.permission.READ_MEDIA_IMAGES, /*granted*/ true); in testAccess_MediaFile()
433 pollForPermission(Manifest.permission.READ_MEDIA_AUDIO, /*granted*/ true); in testAccess_MediaFile()
434 pollForPermission(Manifest.permission.READ_MEDIA_VIDEO, /*granted*/ true); in testAccess_MediaFile()
468 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testAccess_MediaFileWithRES()
517 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testAccess_file()
520 pollForPermission(Manifest.permission.READ_MEDIA_IMAGES, /*granted*/ true); in testAccess_file()
[all …]
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java207 pollForPermission(packageName, permission, true); in grantPermission()
226 pollForPermission(packageName, permission, false); in revokePermission()
1540 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() method in TestUtils
1549 public static void pollForPermission(TestApp app, String perm, boolean granted) in pollForPermission() method in TestUtils
1551 pollForPermission(app.getPackageName(), perm, granted); in pollForPermission()
1557 public static void pollForPermission(String packageName, String perm, boolean granted) in pollForPermission() method in TestUtils
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java276 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() method in TranscodeTestUtils
DTranscodeTest.java117 TranscodeTestUtils.pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, true); in setUp()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java84 import static android.scopedstorage.cts.lib.TestUtils.pollForPermission;
1345 pollForPermission(APP_GENERAL_ONLY.getPackageName(), in testAccessMediaLocationInvalidation()
1356 pollForPermission(APP_GENERAL_ONLY.getPackageName(), in testAccessMediaLocationInvalidation()
1366 pollForPermission(APP_GENERAL_ONLY.getPackageName(), in testAccessMediaLocationInvalidation()