Home
last modified time | relevance | path

Searched refs:setAppOpsModeForUid (Results 1 – 4 of 4) sorted by relevance

/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreTest.java251 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testIsCurrentSystemGallery()
257 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testIsCurrentSystemGallery()
275 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ALLOWED, opString); in testCanManageMedia()
279 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ERRORED, opString); in testCanManageMedia()
285 private void setAppOpsModeForUid(int uid, int mode, @NonNull String... ops) { in setAppOpsModeForUid() method in MediaStoreTest
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java56 import static android.scopedstorage.cts.lib.TestUtils.setAppOpsModeForUid;
1061 setAppOpsModeForUid(uid, AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testCantInsertFilesInOtherAppPrivateDir_hasSystemGallery()
1065 setAppOpsModeForUid(uid, AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testCantInsertFilesInOtherAppPrivateDir_hasSystemGallery()
1076 setAppOpsModeForUid(uid, AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testCantUpdateFilesInOtherAppPrivateDir_hasSystemGallery()
1080 setAppOpsModeForUid(uid, AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testCantUpdateFilesInOtherAppPrivateDir_hasSystemGallery()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java92 import static android.scopedstorage.cts.lib.TestUtils.setAppOpsModeForUid;
2929 setAppOpsModeForUid(uid, AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testCantInsertFilesInOtherAppPrivateDir_hasSystemGallery()
2933 setAppOpsModeForUid(uid, AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testCantInsertFilesInOtherAppPrivateDir_hasSystemGallery()
2944 setAppOpsModeForUid(uid, AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testCantUpdateFilesInOtherAppPrivateDir_hasSystemGallery()
2948 setAppOpsModeForUid(uid, AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testCantUpdateFilesInOtherAppPrivateDir_hasSystemGallery()
2977 setAppOpsModeForUid(uid, AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testInsertFromExternalDirsViaRelativePathAsSystemGallery()
2981 setAppOpsModeForUid(uid, AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testInsertFromExternalDirsViaRelativePathAsSystemGallery()
2992 setAppOpsModeForUid(uid, AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testUpdateToExternalDirsViaRelativePathAsSystemGallery()
2996 setAppOpsModeForUid(uid, AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testUpdateToExternalDirsViaRelativePathAsSystemGallery()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java948 setAppOpsModeForUid(uid, AppOpsManager.MODE_ALLOWED, ops); in allowAppOpsToUid()
957 setAppOpsModeForUid(uid, AppOpsManager.MODE_ERRORED, ops); in denyAppOpsToUid()
2055 public static void setAppOpsModeForUid(int uid, int mode, @NonNull String... ops) { in setAppOpsModeForUid() method in TestUtils