Home
last modified time | relevance | path

Searched refs:canRead (Results 1 – 21 of 21) sorted by relevance

/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DFilePathAccessTestUtils.java68 public static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess() argument
70 assertAccess(file, exists, canRead, canWrite, true /* checkExists */); in assertAccess()
88 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite, in assertAccess() argument
93 assertThat(file.canRead()).isEqualTo(canRead); in assertAccess()
104 assertAccess(file, R_OK, canRead); in assertAccess()
106 assertAccess(file, R_OK | W_OK, canRead && canWrite); in assertAccess()
DTestUtils.java1515 assertThat(file.canRead()).isTrue(); in canReadWriteFilesInDirs()
1518 assertThat(file.canRead()).isFalse(); in canReadWriteFilesInDirs()
/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java58 assertTrue(file.canRead()); in testSystemDirAccess()
71 assertTrue(file.canRead()); in testSystemDirAccess()
95 assertTrue(f.canRead()); in testApksAlwaysReadable()
106 assertFalse(file.canRead()); in testAccessAppDataDir()
113 assertTrue(dir.canRead()); in testAccessAppDataDir()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DDataDirPermissionTest.java46 assertThat(file.canRead()).isFalse(); in testDataFontDirPermission()
59 assertThat(file.canRead()).isFalse(); in testDataFontFilesDirPermission()
DSystemFontsTest.java90 assertTrue(absPath + " must be readable", font.getFile().canRead()); in testAvailableFonts_ReadOnlyFile()
136 assertFalse(file.canRead()); in testFontsFallbackUnreadable()
DNativeSystemFontTest.java140 assertTrue(fontFile.canRead()); in testMatchFamilyStyleCharacter_notCrash()
DFontManagerTest.java117 assertThat(font.getFile().canRead()).isTrue(); in fontManager_getFontConfig_checkFamilies()
/cts/tools/cfassembler/src/dxconvext/util/
DFileUtils.java62 if (!file.canRead()) { in readFile()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DLocaleDeviceInfo.java134 .filter((f) -> f.canRead() && f.isDirectory()) in collectLocaleDataFilesInfo()
146 .filter((f) -> f != null && f.canRead() && isIcuFile(f)) in collectLocaleDataFilesInfo()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBusinessLogicTestCase.java106 if (businessLogicFile.canRead()) { in loadBusinessLogic()
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java117 assertEquals(expectedAllowed, dex2oatBinary.canRead()); in checkDex2oatBinaryAccess()
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DPermissionTestService.java152 if (!f.canRead()) { in testFileReadAccess()
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
DAccessPrivateDataTest.java145 new File(QTAGUID_STATS_FILE).canRead()); in testAccessProcQtaguidTrafficStatsFailed()
/cts/tests/filesystem/src/android/filesystem/cts/
DFileUtil.java195 boolean measureIo = procIo.exists() && procIo.canRead(); in measureIO()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java3515 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess() argument
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() argument
3525 assertThat(file.canRead()).isEqualTo(canRead); in assertAccess()
3536 assertAccess(file, R_OK, canRead); in assertAccess()
3538 assertAccess(file, R_OK | W_OK, canRead && canWrite); in assertAccess()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java291 assertTrue("read", path.canRead()); in assertDirReadWriteAccess()
/cts/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/
DDalvikTest.java376 if (!mIncludeTestFile.isFile() || !mIncludeTestFile.canRead()) { in run()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java632 assertThat(file.canRead()).isTrue(); in doMediaEscalation_RequestWrite_withFilePathSupport()
659 assertThat(file.canRead()).isTrue(); in assertAccessFileAPISupport()
/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/
DScopedStorageTestHelper.java455 intent.putExtra(queryType, file.exists() && file.canRead() && file.canWrite()); in accessFile()
/cts/tools/release-parser/tests/resources/
DCtsJniTestCases.apk.pb.txt4238 name: "canRead"
DShell.apk.pb.txt6212 name: "canRead"