Home
last modified time | relevance | path

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

/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java49 import static android.scopedstorage.cts.lib.TestUtils.pollForPermission;
183 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ false); in testCreateFilesInRandomPlaces_hasW()
184 pollForPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, /*granted*/ true); in testCreateFilesInRandomPlaces_hasW()
213 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ false); in testMkdirInRandomPlaces_hasW()
214 pollForPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, /*granted*/ true); in testMkdirInRandomPlaces_hasW()
235 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ false); in testCantAccessExternalStorage()
236 pollForPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, /*granted*/ false); in testCantAccessExternalStorage()
304 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testReadOnlyExternalStorage_hasR()
305 pollForPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, /*granted*/ false); in testReadOnlyExternalStorage_hasR()
353 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testListFiles_hasR()
[all …]
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java53 import static android.scopedstorage.cts.lib.TestUtils.pollForPermission;
255 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testAccess_file()
294 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testAccess_directory()
295 pollForPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, /*granted*/ true); in testAccess_directory()
543 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testAndroidMedia()
568 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testWallpaperApisReadExternalStorage()
674 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testOpenOtherPendingFilesFromFuse()
833 pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, /*granted*/ true); in testClearPackageData()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java173 pollForPermission(packageName, permission, true); in grantPermission()
192 pollForPermission(packageName, permission, false); in revokePermission()
1064 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() method in TestUtils
1073 public static void pollForPermission(TestApp app, String perm, boolean granted) in pollForPermission() method in TestUtils
1075 pollForPermission(app.getPackageName(), perm, granted); in pollForPermission()
1081 public static void pollForPermission(String packageName, String perm, boolean granted) in pollForPermission() method in TestUtils
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java247 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() method in TranscodeTestUtils
DTranscodeTest.java120 TranscodeTestUtils.pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, true); in setUp()