Home
last modified time | relevance | path

Searched refs:assertAccess (Results 1 – 7 of 7) 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/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DFilePathAccessTestUtils.java45 assertAccess(file, true /* file exists */, false /* can read */, false /* can write */); in assertFileAccess_existsOnly()
50 assertAccess(file, true /* file exists */, true /* can read */, false /* can write */); in assertFileAccess_readOnly()
55 assertAccess(file, true/* file exists */, true /* can read */, true /* can write */); in assertFileAccess_readWrite()
65 assertAccess(dir, exists, exists, exists && canWrite); in assertDirectoryAccess()
68 public static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess() method in FilePathAccessTestUtils
70 assertAccess(file, exists, canRead, canWrite, true /* checkExists */); in assertAccess()
78 assertAccess(file, false /* value is moot */, false /* canRead */, in assertCannotReadOrWrite()
84 assertAccess(file, true, true /* canRead */, in assertCanAccessMyAppFile()
88 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite, in assertAccess() method in FilePathAccessTestUtils
104 assertAccess(file, R_OK, canRead); in assertAccess()
[all …]
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java19 import static android.scopedstorage.cts.lib.FilePathAccessTestUtils.assertAccess;
543 assertAccess(doesntExistPdf, false, false, false); in testAccess_file()
603 assertAccess(new File("/storage/emulated"), true, false, false); in testAccess_directory()
607 assertAccess(new File("/storage/emulated/" + userId), true, true, false); in testAccess_directory()
611 assertAccess(new File("/storage/emulated/" + otherUserId), false, false, false); in testAccess_directory()
614 assertAccess(new File("/storage/emulated/100000000000"), false, false, false); in testAccess_directory()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java3511 assertAccess(file, false /* value is moot */, false /* canRead */, in assertCannotReadOrWrite()
3515 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess() method in ScopedStorageDeviceTest
3517 assertAccess(file, exists, canRead, canWrite, true /* checkExists */); in assertAccess()
3520 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite, in assertAccess() method in ScopedStorageDeviceTest
3536 assertAccess(file, R_OK, canRead); in assertAccess()
3537 assertAccess(file, W_OK, canWrite); in assertAccess()
3538 assertAccess(file, R_OK | W_OK, canRead && canWrite); in assertAccess()
3539 assertAccess(file, W_OK | F_OK, canWrite); in assertAccess()
3542 assertAccess(file, F_OK, exists); in assertAccess()
3546 private static void assertAccess(File file, int mask, boolean expected) throws Exception { in assertAccess() method in ScopedStorageDeviceTest