Home
last modified time | relevance | path

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

/cts/hostsidetests/scopedstorage/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/
DBypassDatabaseOperationsTest.java20 import static android.scopedstorage.cts.lib.TestUtils.allowAppOpsToUid;
119 allowAppOpsToUid(fmUid, OPSTR_MANAGE_EXTERNAL_STORAGE); in setupApps()
157 allowAppOpsToUid(fmUid, OPSTR_MANAGE_EXTERNAL_STORAGE); in testManageExternalStorage_WithBypassFlag_BypassesDatabase()
169 allowAppOpsToUid(fmUid, OPSTR_MANAGE_EXTERNAL_STORAGE); in testManageExternalStorage_targets30_BypassesDatabase()
183 allowAppOpsToUid(sgUid, SYSTEM_GALLERY_APPOPS); in testSystemGallery_DoesntBypassDatabase()
201 allowAppOpsToUid(sgUid, SYSTEM_GALLERY_APPOPS); in testSystemGallery_WithBypassFlag_BypassesDatabase()
213 allowAppOpsToUid(sgUid, SYSTEM_GALLERY_APPOPS); in testSystemGallery_targets30_DoesntBypassDatabase()
227 allowAppOpsToUid(sgUid, SYSTEM_GALLERY_APPOPS); in testSystemGallery_targets30_WithBypassFlag_BypassesDatabase()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DStableUrisTest.java22 import static android.scopedstorage.cts.lib.TestUtils.allowAppOpsToUid;
167 allowAppOpsToUid(fmUid, OPSTR_MANAGE_EXTERNAL_STORAGE); in testScenario()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java29 import static android.scopedstorage.cts.lib.TestUtils.allowAppOpsToUid;
262 allowAppOpsToUid(fmUid, OPSTR_MANAGE_EXTERNAL_STORAGE); in setupApps()
1460 allowAppOpsToUid(uid, opstr); in assertAppOpInvalidation()
1483 allowAppOpsToUid(Process.myUid(), SYSTEM_GALERY_APPOPS); in testDisableOpResetForSystemGallery()
1517 allowAppOpsToUid(Process.myUid(), SYSTEM_GALERY_APPOPS); in testSystemGalleryAppHasFullAccessToImages()
1559 allowAppOpsToUid(Process.myUid(), SYSTEM_GALERY_APPOPS); in testSystemGalleryAppHasNoFullAccessToAudio()
1597 allowAppOpsToUid(Process.myUid(), SYSTEM_GALERY_APPOPS); in testSystemGalleryCanRenameImagesAndVideos()
2136 allowAppOpsToUid(resAppUid, SYSTEM_GALERY_APPOPS); in testListHiddenFile()
2311 allowAppOpsToUid(resAppUid, SYSTEM_GALERY_APPOPS); in testDeletePendingAndTrashed_systemGalleryCanDeleteMedia()
2335 allowAppOpsToUid(Process.myUid(), SYSTEM_GALERY_APPOPS); in testSystemGalleryCanTrashOtherAndroidMediaFiles()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java23 import static android.scopedstorage.cts.lib.TestUtils.allowAppOpsToUid;
866 allowAppOpsToUid(Process.myUid(), SYSTEM_GALERY_APPOPS); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()
906 allowAppOpsToUid(Process.myUid(), SYSTEM_GALERY_APPOPS); in testLegacySystemGalleryCanUpdateToExistingDirectory()
930 allowAppOpsToUid(Process.myUid(), SYSTEM_GALERY_APPOPS); in testLegacySystemGalleryWithoutWESCannotRename()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java947 public static void allowAppOpsToUid(int uid, @NonNull String... ops) { in allowAppOpsToUid() method in TestUtils