Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java676 public void assertRenameFileAPISupport(File oldFile) throws Exception { in assertRenameFileAPISupport() argument
677 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() argument
697 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()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1207 public static void assertCanRenameFile(File oldFile, File newFile) { in assertCanRenameFile() argument
1208 assertCanRenameFile(oldFile, newFile, /* checkDB */ true); in assertCanRenameFile()
1214 public static void assertCanRenameFile(File oldFile, File newFile, boolean checkDatabase) { in assertCanRenameFile() argument
1215 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() argument
1228 final int rowId = getFileRowIdFromDatabase(oldFile); in assertCantRenameFile()
1229 assertThat(oldFile.renameTo(newFile)).isFalse(); in assertCantRenameFile()
1230 assertThat(oldFile.exists()).isTrue(); in assertCantRenameFile()
[all …]
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java1075 File oldFile = new File(getDcimDir(), oldDisplayName); in testContentResolverUpdate() local
1079 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()