Home
last modified time | relevance | path

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

/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStoreTest.java253 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testIsCurrentSystemGallery()
259 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testIsCurrentSystemGallery()
277 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ALLOWED, opString); in testCanManageMedia()
281 setAppOpsModeForUid(Process.myUid(), AppOpsManager.MODE_ERRORED, opString); in testCanManageMedia()
287 private void setAppOpsModeForUid(int uid, int mode, @NonNull String... ops) { in setAppOpsModeForUid() method in MediaStoreTest
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java764 setAppOpsModeForUid(uid, AppOpsManager.MODE_ALLOWED, ops); in allowAppOpsToUid()
773 setAppOpsModeForUid(uid, AppOpsManager.MODE_ERRORED, ops); in denyAppOpsToUid()
1506 public static void setAppOpsModeForUid(int uid, int mode, @NonNull String... ops) { in setAppOpsModeForUid() method in TestUtils
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java86 import static android.scopedstorage.cts.lib.TestUtils.setAppOpsModeForUid;
2744 setAppOpsModeForUid(uid, AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testInsertFromExternalDirsViaRelativePathAsSystemGallery()
2748 setAppOpsModeForUid(uid, AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testInsertFromExternalDirsViaRelativePathAsSystemGallery()
2756 setAppOpsModeForUid(uid, AppOpsManager.MODE_ALLOWED, SYSTEM_GALERY_APPOPS); in testUpdateToExternalDirsViaRelativePathAsSystemGallery()
2760 setAppOpsModeForUid(uid, AppOpsManager.MODE_ERRORED, SYSTEM_GALERY_APPOPS); in testUpdateToExternalDirsViaRelativePathAsSystemGallery()