Searched refs:oldFile (Results 1 – 3 of 3) sorted by relevance
676 public void assertRenameFileAPISupport(File oldFile) throws Exception { in assertRenameFileAPISupport() argument677 final String oldName = oldFile.getAbsolutePath(); in assertRenameFileAPISupport()687 .that(oldFile.renameTo(newFile)) in assertRenameFileAPISupport()691 .that(newFile.renameTo(oldFile)) in assertRenameFileAPISupport()695 public void assertRenameAndReplaceFileAPISupport(File oldFile, Callable<Uri> create) in assertRenameAndReplaceFileAPISupport() argument697 final String oldName = oldFile.getAbsolutePath(); in assertRenameAndReplaceFileAPISupport()709 .that(oldFile.renameTo(newFile)) in assertRenameAndReplaceFileAPISupport()716 .that(oldFile.renameTo(newFile)) in assertRenameAndReplaceFileAPISupport()725 .that(newFile.renameTo(oldFile)) in assertRenameAndReplaceFileAPISupport()
1207 public static void assertCanRenameFile(File oldFile, File newFile) { in assertCanRenameFile() argument1208 assertCanRenameFile(oldFile, newFile, /* checkDB */ true); in assertCanRenameFile()1214 public static void assertCanRenameFile(File oldFile, File newFile, boolean checkDatabase) { in assertCanRenameFile() argument1215 assertThat(oldFile.renameTo(newFile)).isTrue(); in assertCanRenameFile()1216 assertThat(oldFile.exists()).isFalse(); in assertCanRenameFile()1219 assertThat(getFileRowIdFromDatabase(oldFile)).isEqualTo(-1); in assertCanRenameFile()1227 public static void assertCantRenameFile(File oldFile, File newFile) { in assertCantRenameFile() argument1228 final int rowId = getFileRowIdFromDatabase(oldFile); in assertCantRenameFile()1229 assertThat(oldFile.renameTo(newFile)).isFalse(); in assertCantRenameFile()1230 assertThat(oldFile.exists()).isTrue(); in assertCantRenameFile()[all …]
1075 File oldFile = new File(getDcimDir(), oldDisplayName); in testContentResolverUpdate() local1079 assertThat(oldFile.createNewFile()).isTrue(); in testContentResolverUpdate()1082 final Uri uri = MediaStore.scanFile(getContentResolver(), oldFile); in testContentResolverUpdate()1088 assertThat(oldFile.exists()).isFalse(); in testContentResolverUpdate()1089 assertThat(oldFile.createNewFile()).isTrue(); in testContentResolverUpdate()1093 oldFile.delete(); in testContentResolverUpdate()