Home
last modified time | relevance | path

Searched refs:assertAccess (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DUriGrantsServiceTest.java23 import static com.android.cts.usespermissiondiffcertapp.Asserts.assertAccess;
71 assertAccess(uri, 0); in assertGrantableToService()
72 assertAccess(subClip, 0); in assertGrantableToService()
73 assertAccess(subUri, 0); in assertGrantableToService()
74 assertAccess(subSubUri, 0); in assertGrantableToService()
75 assertAccess(sub2Clip, 0); in assertGrantableToService()
76 assertAccess(sub2Uri, 0); in assertGrantableToService()
77 assertAccess(sub2SubUri, 0); in assertGrantableToService()
87 assertAccess(uri, 0); in assertGrantableToService()
88 assertAccess(subClip, mode); in assertGrantableToService()
[all …]
DUriGrantsActivityTest.java23 import static com.android.cts.usespermissiondiffcertapp.Asserts.assertAccess;
78 assertAccess(uri, 0); in assertGrantableToActivity()
79 assertAccess(subClip, 0); in assertGrantableToActivity()
80 assertAccess(subUri, 0); in assertGrantableToActivity()
81 assertAccess(subSubUri, 0); in assertGrantableToActivity()
82 assertAccess(sub2Clip, 0); in assertGrantableToActivity()
83 assertAccess(sub2Uri, 0); in assertGrantableToActivity()
84 assertAccess(sub2SubUri, 0); in assertGrantableToActivity()
92 assertAccess(uri, 0); in assertGrantableToActivity()
93 assertAccess(subClip, mode); in assertGrantableToActivity()
[all …]
DUriGrantsResultTest.java23 import static com.android.cts.usespermissiondiffcertapp.Asserts.assertAccess;
92 assertAccess(uri, 0); in assertGrantableToResultInternal()
93 assertAccess(subClip, 0); in assertGrantableToResultInternal()
94 assertAccess(subUri, 0); in assertGrantableToResultInternal()
95 assertAccess(subSubUri, 0); in assertGrantableToResultInternal()
103 assertAccess(uri, 0); in assertGrantableToResultInternal()
104 assertAccess(subClip, mode); in assertGrantableToResultInternal()
105 assertAccess(subUri, mode); in assertGrantableToResultInternal()
106 assertAccess(subSubUri, 0); in assertGrantableToResultInternal()
114 assertAccess(uri, 0); in assertGrantableToResultInternal()
[all …]
DAsserts.java43 static void assertAccess(ClipData clip, int mode) { in assertAccess() method in Asserts
48 assertAccess(uri, mode); in assertAccess()
53 assertAccess(uri, mode); in assertAccess()
57 assertAccess(intentClip, mode); in assertAccess()
63 static void assertAccess(Uri uri, int mode) { in assertAccess() method in Asserts
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java277 assertAccess(doesntExistPdf, false, false, false); in testAccess_file()
336 assertAccess(new File("/storage/emulated"), true, false, false); in testAccess_directory()
340 assertAccess(new File("/storage/emulated/" + userId), true, true, false); in testAccess_directory()
344 assertAccess(new File("/storage/emulated/" + otherUserId), false, false, false); in testAccess_directory()
347 assertAccess(new File("/storage/emulated/100000000000"), false, false, false); in testAccess_directory()
991 assertAccess(file, true, false, false); in assertFileAccess_existsOnly()
996 assertAccess(file, true, true, false); in assertFileAccess_readOnly()
1001 assertAccess(file, true, true, true); in assertFileAccess_readWrite()
1011 assertAccess(dir, exists, exists, exists && canWrite); in assertDirectoryAccess()
1014 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess() method in ScopedStorageTest
[all …]
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java3208 assertAccess(file, false /* value is moot */, false /* canRead */, in assertCannotReadOrWrite()
3212 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess() method in ScopedStorageDeviceTest
3214 assertAccess(file, exists, canRead, canWrite, true /* checkExists */); in assertAccess()
3217 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite, in assertAccess() method in ScopedStorageDeviceTest
3233 assertAccess(file, R_OK, canRead); in assertAccess()
3234 assertAccess(file, W_OK, canWrite); in assertAccess()
3235 assertAccess(file, R_OK | W_OK, canRead && canWrite); in assertAccess()
3236 assertAccess(file, W_OK | F_OK, canWrite); in assertAccess()
3239 assertAccess(file, F_OK, exists); in assertAccess()
3243 private static void assertAccess(File file, int mask, boolean expected) throws Exception { in assertAccess() method in ScopedStorageDeviceTest