Home
last modified time | relevance | path

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

/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java209 assertFalse(f.canWrite()); in testDevDiagSane()
219 assertFalse(f.canWrite()); in testProcInterruptsNotReadable()
229 assertFalse(f.canWrite()); in testProcStatNotReadable()
259 assertFalse(f.canWrite()); in testPn544Sane()
271 assertFalse(f.canWrite()); in testBcm2079xSane()
283 assertFalse(f.canWrite()); in testBcm2079xi2cSane()
295 assertFalse(f.canWrite()); in testDevQtaguidSane()
307 assertFalse(f.canWrite()); in testProcQtaguidCtrlSane()
319 assertFalse(f.canWrite()); in testProcQtaguidStatsSane()
339 assertFalse(f.canWrite()); in procNetSane()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java57 assertFalse(file.canWrite()); in testSystemDirAccess()
70 assertFalse(file.canWrite()); in testSystemDirAccess()
75 assertFalse(f.canWrite()); in testSystemDirAccess()
105 assertFalse(file.canWrite()); in testAccessAppDataDir()
112 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.java73 assertFalse(absPath + " must not writable", font.getFile().canWrite()); in testAvailableFonts_ReadOnlyFile()
DNativeSystemFontTest.java142 assertFalse(fontFile.canWrite()); in testMatchFamilyStyleCharacter_notCrash()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java1004 private static void assertDirectoryAccess(File dir, boolean exists, boolean canWrite) in assertDirectoryAccess() argument
1011 assertAccess(dir, exists, exists, exists && canWrite); in assertDirectoryAccess()
1014 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
1040 assertThat(file.canWrite()).isEqualTo(canWrite); in assertAccess()
1051 assertAccess(file, W_OK, canWrite); in assertAccess()
1052 assertAccess(file, R_OK | W_OK, canRead && canWrite); in assertAccess()
1053 assertAccess(file, W_OK | F_OK, canWrite); in assertAccess()
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateBitmapTask.java72 if (file.exists() && !file.canWrite()) { in doInBackground()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DRingtoneSyncTest.java84 assertTrue(Settings.System.canWrite(mContext)); in testSoundDisableSync()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java427 assertThat(file.canWrite()).isTrue(); in doMediaEscalation_RequestWrite_withFilePathSupport()
430 assertThat(file.canWrite()).isFalse(); in doMediaEscalation_RequestWrite_withFilePathSupport()
455 assertThat(file.canWrite()).isTrue(); in assertAccessFileAPISupport()
/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
3223 assertThat(file.canWrite()).isEqualTo(canWrite); in assertAccess()
3234 assertAccess(file, W_OK, canWrite); in assertAccess()
3235 assertAccess(file, R_OK | W_OK, canRead && canWrite); in assertAccess()
3236 assertAccess(file, W_OK | F_OK, canWrite); in assertAccess()
/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/
DScopedStorageTestHelper.java254 intent.putExtra(queryType, file.exists() && file.canRead() && file.canWrite()); in accessFile()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1040 assertThat(file.canWrite()).isTrue(); in canReadWriteFilesInDirs()
1043 assertThat(file.canWrite()).isFalse(); in canReadWriteFilesInDirs()
/cts/tools/release-parser/tests/resources/
DCtsJniTestCases.apk.pb.txt4242 name: "canWrite"