Searched refs:hiddenImageFile (Results 1 – 2 of 2) sorted by relevance
1950 final File hiddenImageFile = new File(getDownloadDir(), ".hiddenFile" + IMAGE_FILE_NAME); in testCanCreateHiddenFile() local1952 assertThat(hiddenImageFile.createNewFile()).isTrue(); in testCanCreateHiddenFile()1954 try (FileOutputStream fos = new FileOutputStream(hiddenImageFile)) { in testCanCreateHiddenFile()1957 assertFileContent(hiddenImageFile, BYTES_DATA1); in testCanCreateHiddenFile()1959 assertNotMediaTypeImage(hiddenImageFile); in testCanCreateHiddenFile()1961 assertDirectoryContains(getDownloadDir(), hiddenImageFile); in testCanCreateHiddenFile() local1962 assertThat(getFileRowIdFromDatabase(hiddenImageFile)).isNotEqualTo(-1); in testCanCreateHiddenFile()1965 assertThat(hiddenImageFile.delete()).isTrue(); in testCanCreateHiddenFile()1966 assertThat(hiddenImageFile.exists()).isFalse(); in testCanCreateHiddenFile()1968 hiddenImageFile.delete(); in testCanCreateHiddenFile()[all …]
382 final File hiddenImageFile = new File(dcimDir, hiddenImageFileName); in testInsertHiddenFile() local385 values.put(MediaStore.MediaColumns.DATA, hiddenImageFile.getAbsolutePath()); in testInsertHiddenFile()390 MediaStore.scanFile(getContentResolver(), hiddenImageFile); in testInsertHiddenFile() local397 hiddenImageFile.delete(); in testInsertHiddenFile()