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.java165 assertFalse(parentDir.toString(), isDirectoryWritable(parentDir)); in testApplicationParentDirectoryNotWritable()
171 assertFalse(isDirectoryWritable(Environment.getDataDirectory())); in testDataDirectoryNotWritable()
177 assertFalse(isDirectoryWritable(Environment.getRootDirectory())); in testAndroidRootDirectoryNotWritable()
183 assertFalse(isDirectoryWritable(Environment.getDownloadCacheDirectory())); in testDownloadCacheDirectoryNotWritable()
189 assertFalse(isDirectoryWritable(new File("/"))); in testRootDirectoryNotWritable()
195 assertFalse(isDirectoryWritable(new File("/dev"))); in testDevDirectoryNotWritable()
201 assertFalse(isDirectoryWritable(new File("/proc"))); in testProcDirectoryNotWritable()
625 private static boolean isDirectoryWritable(File directory) { in isDirectoryWritable() method in FileSystemPermissionTest
1256 if (isDirectoryWritable(dir)) { in getWritableDirectoriesAndSubdirectoriesOf()