Home
last modified time | relevance | path

Searched refs:revokePermissions (Results 1 – 7 of 7) sorted by relevance

/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DScopedStorageCoreHostTest.java64 revokePermissions( in revokeStoragePermissions()
104 revokePermissions("android.permission.READ_EXTERNAL_STORAGE"); in testAccess_file()
105 revokePermissions("android.permission.READ_MEDIA_IMAGES"); in testAccess_file()
117 revokePermissions("android.permission.READ_MEDIA_IMAGES"); in testAccess_MediaFile()
118 revokePermissions("android.permission.READ_MEDIA_AUDIO"); in testAccess_MediaFile()
119 revokePermissions("android.permission.READ_MEDIA_VIDEO"); in testAccess_MediaFile()
129 revokePermissions("android.permission.READ_MEDIA_AUDIO"); in testAccess_OnlyAudioFile()
139 revokePermissions("android.permission.READ_MEDIA_VIDEO"); in testAccess_OnlyVideoFile()
149 revokePermissions("android.permission.READ_MEDIA_IMAGES"); in testAccess_OnlyImageFile()
164 revokePermissions("android.permission.READ_EXTERNAL_STORAGE"); in testAccess_MediaFileWithRES()
[all …]
DLegacyStorageHostTest.java65 private void revokePermissions(String... perms) throws Exception { in revokePermissions() method in LegacyStorageHostTest
109 revokePermissions("android.permission.WRITE_EXTERNAL_STORAGE", in tearDown()
115 revokePermissions("android.permission.READ_EXTERNAL_STORAGE"); in testCreateFilesInRandomPlaces_hasW()
162 revokePermissions("android.permission.READ_EXTERNAL_STORAGE"); in testMkdirInRandomPlaces_hasW()
169 revokePermissions("android.permission.WRITE_EXTERNAL_STORAGE"); in testReadOnlyExternalStorage_hasR()
175 revokePermissions("android.permission.WRITE_EXTERNAL_STORAGE", in testCantAccessExternalStorage()
182 revokePermissions("android.permission.WRITE_EXTERNAL_STORAGE"); in testListFiles_hasR()
203 revokePermissions("android.permission.WRITE_EXTERNAL_STORAGE"); in testCantRename_hasR()
209 revokePermissions("android.permission.WRITE_EXTERNAL_STORAGE", in testCantRename_noStoragePermission()
280 revokePermissions("android.permission.WRITE_EXTERNAL_STORAGE"); in testLegacySystemGalleryWithoutWESCannotRename()
DScopedStorageHostTest.java86 revokePermissions("android.permission.WRITE_EXTERNAL_STORAGE", in revokeStoragePermissions()
178 revokePermissions("android.permission.WRITE_EXTERNAL_STORAGE"); in testCheckInstallerAppAccessToObbDirs()
196 revokePermissions("android.permission.WRITE_EXTERNAL_STORAGE"); in testCheckInstallerAppCannotAccessDataDirs()
257 revokePermissions("android.permission.READ_EXTERNAL_STORAGE"); in testOpenOtherPendingFilesFromFuse()
267 revokePermissions("android.permission.READ_EXTERNAL_STORAGE"); in testAndroidMedia()
282 revokePermissions("android.permission.READ_EXTERNAL_STORAGE", in testNoIsolatedStorageInstrumentationFlag()
310 revokePermissions("android.permission.READ_EXTERNAL_STORAGE"); in testClearPackageData()
375 private void revokePermissions(String... perms) throws Exception { in revokePermissions() method in ScopedStorageHostTest
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssStatusTest.java45 List<String> courseLocationPackages = TestUtils.revokePermissions(ACCESS_COARSE_LOCATION); in testGnssStatusChanges()
46 List<String> fineLocationPackages = TestUtils.revokePermissions(ACCESS_FINE_LOCATION); in testGnssStatusChanges()
102 List<String> courseLocationPackages = TestUtils.revokePermissions(ACCESS_COARSE_LOCATION); in testGnssStatusValues()
103 List<String> fineLocationPackages = TestUtils.revokePermissions(ACCESS_FINE_LOCATION); in testGnssStatusValues()
DGnssAntennaInfoTest.java65 List<String> courseLocationPackages = TestUtils.revokePermissions(ACCESS_COARSE_LOCATION); in testGnssAntennaInfoValues()
66 List<String> fineLocationPackages = TestUtils.revokePermissions(ACCESS_FINE_LOCATION); in testGnssAntennaInfoValues()
DGnssLocationUpdateIntervalTest.java106 List<String> courseLocationPackages = TestUtils.revokePermissions(ACCESS_COARSE_LOCATION); in testLocationUpdatesAtVariousIntervals()
107 List<String> fineLocationPackages = TestUtils.revokePermissions(ACCESS_FINE_LOCATION); in testLocationUpdatesAtVariousIntervals()
/cts/tests/location/common/src/android/location/cts/common/
DTestUtils.java204 public static List<String> revokePermissions(String permission) { in revokePermissions() method in TestUtils