/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | FilePathAccessTestUtils.java | 58 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()
|
D | TestUtils.java | 1516 assertThat(file.canWrite()).isTrue(); in canReadWriteFilesInDirs() 1519 assertThat(file.canWrite()).isFalse(); in canReadWriteFilesInDirs()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | FileAccessPermissionTest.java | 59 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/ |
D | DataDirPermissionTest.java | 47 assertThat(file.canWrite()).isFalse(); in testDataFontDirPermission() 60 assertThat(file.canWrite()).isFalse(); in testDataFontFilesDirPermission()
|
D | SystemFontsTest.java | 92 assertFalse(absPath + " must not writable", font.getFile().canWrite()); in testAvailableFonts_ReadOnlyFile() 137 assertFalse(file.canWrite()); in testFontsFallbackUnreadable()
|
D | NativeSystemFontTest.java | 142 assertFalse(fontFile.canWrite()); in testMatchFamilyStyleCharacter_notCrash()
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | GenerateBitmapTask.java | 72 if (file.exists() && !file.canWrite()) { in doInBackground()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 633 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/ |
D | ScopedStorageDeviceTest.java | 3515 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/ |
D | ScopedStorageTestHelper.java | 455 intent.putExtra(queryType, file.exists() && file.canRead() && file.canWrite()); in accessFile()
|
/cts/tools/release-parser/tests/resources/ |
D | CtsJniTestCases.apk.pb.txt | 4242 name: "canWrite"
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | current.txt | 37567 method public static boolean canWrite(android.content.Context);
|