Home
last modified time | relevance | path

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

/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java56 assertTrue(file.canRead()); in testSystemDirAccess()
69 assertTrue(file.canRead()); in testSystemDirAccess()
93 assertTrue(f.canRead()); in testApksAlwaysReadable()
104 assertFalse(file.canRead()); in testAccessAppDataDir()
111 assertTrue(dir.canRead()); in testAccessAppDataDir()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java208 assertFalse(f.canRead()); in testDevDiagSane()
218 assertFalse(f.canRead()); in testProcInterruptsNotReadable()
228 assertFalse(f.canRead()); in testProcStatNotReadable()
258 assertFalse(f.canRead()); in testPn544Sane()
270 assertFalse(f.canRead()); in testBcm2079xSane()
282 assertFalse(f.canRead()); in testBcm2079xi2cSane()
294 assertFalse(f.canRead()); in testDevQtaguidSane()
306 assertFalse(f.canRead()); in testProcQtaguidCtrlSane()
318 assertFalse(f.canRead()); in testProcQtaguidStatsSane()
338 assertFalse(f.canRead()); in procNetSane()
[all …]
/cts/tests/tests/graphics/src/android/graphics/fonts/
DDataDirPermissionTest.java46 assertThat(file.canRead()).isFalse(); in testDataFontDirPermission()
59 assertThat(file.canRead()).isFalse(); in testDataFontFilesDirPermission()
DSystemFontsTest.java71 assertTrue(absPath + " must be readable", font.getFile().canRead()); in testAvailableFonts_ReadOnlyFile()
DNativeSystemFontTest.java140 assertTrue(fontFile.canRead()); in testMatchFamilyStyleCharacter_notCrash()
DFontManagerTest.java108 assertThat(font.getFile().canRead()).isTrue(); in fontManager_getFontConfig_checkFamilies()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DLocaleDeviceInfo.java77 .filter((f) -> f.canRead() && f.isDirectory()) in collectLocaleDataFilesInfo()
86 .filter((f) -> f != null && f.canRead() && f.getName().endsWith(".dat")) in collectLocaleDataFilesInfo()
/cts/tools/cfassembler/src/dxconvext/util/
DFileUtils.java62 if (!file.canRead()) { in readFile()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java1014 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess() argument
1016 assertAccess(file, exists, canRead, canWrite, true /* checkExists */); in assertAccess()
1034 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite, in assertAccess() argument
1039 assertThat(file.canRead()).isEqualTo(canRead); in assertAccess()
1050 assertAccess(file, R_OK, canRead); in assertAccess()
1052 assertAccess(file, R_OK | W_OK, canRead && canWrite); in assertAccess()
/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.java113 assertEquals(expectedAllowed, dex2oatBinary.canRead()); in checkDex2oatBinaryAccess()
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DPermissionTestService.java151 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/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/
DScopedStorageTestHelper.java254 intent.putExtra(queryType, file.exists() && file.canRead() && file.canWrite()); in accessFile()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java3212 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess() argument
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() argument
3222 assertThat(file.canRead()).isEqualTo(canRead); in assertAccess()
3233 assertAccess(file, R_OK, canRead); in assertAccess()
3235 assertAccess(file, R_OK | W_OK, canRead && canWrite); in assertAccess()
/cts/tests/filesystem/src/android/filesystem/cts/
DFileUtil.java195 boolean measureIo = procIo.exists() && procIo.canRead(); in measureIO()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java426 assertThat(file.canRead()).isTrue(); in doMediaEscalation_RequestWrite_withFilePathSupport()
454 assertThat(file.canRead()).isTrue(); in assertAccessFileAPISupport()
/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/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1039 assertThat(file.canRead()).isTrue(); in canReadWriteFilesInDirs()
1042 assertThat(file.canRead()).isFalse(); in canReadWriteFilesInDirs()
/cts/tools/release-parser/tests/resources/
DCtsJniTestCases.apk.pb.txt4238 name: "canRead"
DShell.apk.pb.txt6212 name: "canRead"