Searched refs:nomediaFile (Results 1 – 3 of 3) sorted by relevance
250 final File nomediaFile = new File(dir, ".nomedia"); in createNomediaFile() local251 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()
432 final File nomediaFile = new File(dir, ".nomedia"); in assertVisibleFolder() local434 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()
948 final File nomediaFile = new File("storage/emulated/0/Download/meow", ".nomedia"); in testIsDirectoryHidden() local950 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()