Home
last modified time | relevance | path

Searched refs:canWrite (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DFilePathAccessTestUtils.java58 public static void assertDirectoryAccess(File dir, boolean exists, boolean canWrite) in assertDirectoryAccess() argument
65 assertAccess(dir, exists, exists, exists && canWrite); in assertDirectoryAccess()
68 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
94 assertThat(file.canWrite()).isEqualTo(canWrite); in assertAccess()
105 assertAccess(file, W_OK, canWrite); in assertAccess()
106 assertAccess(file, R_OK | W_OK, canRead && canWrite); in assertAccess()
107 assertAccess(file, W_OK | F_OK, canWrite); in assertAccess()
DTestUtils.java1516 assertThat(file.canWrite()).isTrue(); in canReadWriteFilesInDirs()
1519 assertThat(file.canWrite()).isFalse(); in canReadWriteFilesInDirs()
/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java59 assertFalse(file.canWrite()); in testSystemDirAccess()
72 assertFalse(file.canWrite()); in testSystemDirAccess()
77 assertFalse(f.canWrite()); in testSystemDirAccess()
107 assertFalse(file.canWrite()); in testAccessAppDataDir()
114 assertTrue(dir.canWrite()); in testAccessAppDataDir()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DDataDirPermissionTest.java47 assertThat(file.canWrite()).isFalse(); in testDataFontDirPermission()
60 assertThat(file.canWrite()).isFalse(); in testDataFontFilesDirPermission()
DSystemFontsTest.java92 assertFalse(absPath + " must not writable", font.getFile().canWrite()); in testAvailableFonts_ReadOnlyFile()
137 assertFalse(file.canWrite()); in testFontsFallbackUnreadable()
DNativeSystemFontTest.java142 assertFalse(fontFile.canWrite()); in testMatchFamilyStyleCharacter_notCrash()
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateBitmapTask.java72 if (file.exists() && !file.canWrite()) { in doInBackground()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java633 assertThat(file.canWrite()).isTrue(); in doMediaEscalation_RequestWrite_withFilePathSupport()
636 assertThat(file.canWrite()).isFalse(); in doMediaEscalation_RequestWrite_withFilePathSupport()
660 assertThat(file.canWrite()).isTrue(); in assertAccessFileAPISupport()
/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
3526 assertThat(file.canWrite()).isEqualTo(canWrite); 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()
/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.txt4242 name: "canWrite"
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt37567 method public static boolean canWrite(android.content.Context);