Home
last modified time | relevance | path

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

/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java148 assertFalse(parentDir.toString(), isDirectoryWritable(parentDir)); in testApplicationParentDirectoryNotWritable()
153 assertFalse(isDirectoryWritable(Environment.getDataDirectory())); in testDataDirectoryNotWritable()
158 assertFalse(isDirectoryWritable(Environment.getRootDirectory())); in testAndroidRootDirectoryNotWritable()
163 assertFalse(isDirectoryWritable(Environment.getDownloadCacheDirectory())); in testDownloadCacheDirectoryNotWritable()
168 assertFalse(isDirectoryWritable(new File("/"))); in testRootDirectoryNotWritable()
173 assertFalse(isDirectoryWritable(new File("/dev"))); in testDevDirectoryNotWritable()
178 assertFalse(isDirectoryWritable(new File("/proc"))); in testProcDirectoryNotWritable()
552 private static boolean isDirectoryWritable(File directory) { in isDirectoryWritable() method in FileSystemPermissionTest
1152 if (isDirectoryWritable(dir)) { in getWritableDirectoriesAndSubdirectoriesOf()