Home
last modified time | relevance | path

Searched refs:getFileRowIdFromDatabase (Results 1 – 5 of 5) sorted by relevance

/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java54 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;
746 assertThat(getFileRowIdFromDatabase(mediaFile)).isNotEqualTo(-1); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
750 assertThat(getFileRowIdFromDatabase(renamedMediaFile)).isNotEqualTo(-1); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
754 assertThat(getFileRowIdFromDatabase(renamedMediaFile)).isEqualTo(-1); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
918 assertThat(getFileRowIdFromDatabase(newFile)).isEqualTo(-1); in assertCreateFileAndScanNomediaDirDoesntNoOp()
921 assertThat(getFileRowIdFromDatabase(newFile)).isNotEqualTo(-1); in assertCreateFileAndScanNomediaDirDoesntNoOp()
1078 assertThat(getFileRowIdFromDatabase(imageFile)).isNotEqualTo(-1); in testRenameFromShell()
1087 assertThat(getFileRowIdFromDatabase(imageFile)).isEqualTo(-1); in testRenameFromShell()
1089 assertThat(getFileRowIdFromDatabase(renamedImageFile)).isNotEqualTo(-1); in testRenameFromShell()
1096 assertThat(getFileRowIdFromDatabase(renamedImageFile)).isEqualTo(-1); in testRenameFromShell()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java46 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;
572 assertThat(getFileRowIdFromDatabase(videoFile)).isNotEqualTo(-1); in testCanDeleteAllFiles_hasRW()
576 assertThat(getFileRowIdFromDatabase(videoFile)).isEqualTo(-1); in testCanDeleteAllFiles_hasRW()
579 assertThat(getFileRowIdFromDatabase(otherAppPdfFile)).isNotEqualTo(-1); in testCanDeleteAllFiles_hasRW()
610 assertNotEquals(-1, getFileRowIdFromDatabase(videoFile)); in testLegacyAppCanOwnAFile_hasW()
615 assertEquals(-1, getFileRowIdFromDatabase(videoFile)); in testLegacyAppCanOwnAFile_hasW()
878 assertThat(getFileRowIdFromDatabase(otherAppVideoFile)).isNotEqualTo(-1); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()
879 assertThat(getFileRowIdFromDatabase(videoFile)).isEqualTo(-1); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java838 final int id = getFileRowIdFromDatabase(file); in getFileUri()
846 public static int getFileRowIdFromDatabase(@NonNull File file) { in getFileRowIdFromDatabase() method in TestUtils
847 return getFileRowIdFromDatabase(getContentResolver(), file); in getFileRowIdFromDatabase()
854 public static int getFileRowIdFromDatabase(ContentResolver cr, @NonNull File file) { in getFileRowIdFromDatabase() method in TestUtils
1219 assertThat(getFileRowIdFromDatabase(oldFile)).isEqualTo(-1); in assertCanRenameFile()
1220 assertThat(getFileRowIdFromDatabase(newFile)).isNotEqualTo(-1); in assertCanRenameFile()
1228 final int rowId = getFileRowIdFromDatabase(oldFile); in assertCantRenameFile()
1231 assertThat(getFileRowIdFromDatabase(oldFile)).isEqualTo(rowId); in assertCantRenameFile()
1438 assertThat(getFileRowIdFromDatabase(file)).isEqualTo(-1); in assertCanRenameDirectory()
1442 assertThat(getFileRowIdFromDatabase(file)).isNotEqualTo(-1); in assertCanRenameDirectory()
[all …]
/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/
DScopedStorageTestHelper.java55 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;
544 getFileRowIdFromDatabase(getContentResolver(), new File(filePath)) != -1; in checkDatabaseRowExists()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java68 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;
537 assertThat(getFileRowIdFromDatabase(imageFile)).isEqualTo(-1); in testContributeMediaFile()
1622 assertThat(getFileRowIdFromDatabase(musicFile)).isEqualTo(-1); in testSystemGalleryCanRenameImagesAndVideos()
1962 assertThat(getFileRowIdFromDatabase(hiddenImageFile)).isNotEqualTo(-1); in testCanCreateHiddenFile()
2470 assertThat(getFileRowIdFromDatabase(otherAppPdfFile1)).isEqualTo(-1); in testSystemGalleryCanRenameImageAndVideoDirs()
2471 assertThat(getFileRowIdFromDatabase(otherAppPdfFile2)).isEqualTo(-1); in testSystemGalleryCanRenameImageAndVideoDirs()
2499 final long oldRowId = getFileRowIdFromDatabase(imageFile); in testCreateCanRestoreDeletedRowId()
2507 assertThat(getFileRowIdFromDatabase(imageFile)).isEqualTo(oldRowId); in testCreateCanRestoreDeletedRowId()