Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderForFuseTest.java250 final File nomediaFile = new File(dir, ".nomedia"); in createNomediaFile() local
251 executeShellCommand("touch " + nomediaFile.getAbsolutePath()); in createNomediaFile()
252 Truth.assertWithMessage("cannot create nomedia file: " + nomediaFile.getAbsolutePath()) in createNomediaFile()
253 .that(nomediaFile.exists()) in createNomediaFile()
255 return nomediaFile; in createNomediaFile()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java432 final File nomediaFile = new File(dir, ".nomedia"); in assertVisibleFolder() local
434 if (!nomediaFile.getParentFile().exists()) { in assertVisibleFolder()
435 assertWithMessage("cannot create dir: " + nomediaFile.getParentFile().getAbsolutePath()) in assertVisibleFolder()
436 .that(nomediaFile.getParentFile().mkdirs()) in assertVisibleFolder()
440 if (!nomediaFile.exists()) { in assertVisibleFolder()
441 executeShellCommand("touch " + nomediaFile.getAbsolutePath()); in assertVisibleFolder()
442 assertWithMessage("cannot create nomedia file: " + nomediaFile.getAbsolutePath()) in assertVisibleFolder()
443 .that(nomediaFile.exists()) in assertVisibleFolder()
448 executeShellCommand("rm " + nomediaFile.getAbsolutePath()); in assertVisibleFolder()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DFileUtilsTest.java948 final File nomediaFile = new File("storage/emulated/0/Download/meow", ".nomedia"); in testIsDirectoryHidden() local
950 assertTrue(nomediaFile.getParentFile().mkdirs()); in testIsDirectoryHidden()
951 assertTrue(nomediaFile.createNewFile()); in testIsDirectoryHidden()
953 assertDirectoryHidden(nomediaFile.getParentFile()); in testIsDirectoryHidden()
955 assertTrue(nomediaFile.delete()); in testIsDirectoryHidden()
957 assertDirectoryNotHidden(nomediaFile.getParentFile()); in testIsDirectoryHidden()
959 nomediaFile.delete(); in testIsDirectoryHidden()
960 nomediaFile.getParentFile().delete(); in testIsDirectoryHidden()