Home
last modified time | relevance | path

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

/aosp_15_r20/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
H A DScopedStorageTest.java54 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;
748 assertThat(getFileRowIdFromDatabase(mediaFile)).isNotEqualTo(-1); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
752 assertThat(getFileRowIdFromDatabase(renamedMediaFile)).isNotEqualTo(-1); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
756 assertThat(getFileRowIdFromDatabase(renamedMediaFile)).isEqualTo(-1); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
920 assertThat(getFileRowIdFromDatabase(newFile)).isEqualTo(-1); in assertCreateFileAndScanNomediaDirDoesntNoOp()
923 assertThat(getFileRowIdFromDatabase(newFile)).isNotEqualTo(-1); in assertCreateFileAndScanNomediaDirDoesntNoOp()
1080 assertThat(getFileRowIdFromDatabase(imageFile)).isNotEqualTo(-1); in testRenameFromShell()
1089 assertThat(getFileRowIdFromDatabase(imageFile)).isEqualTo(-1); in testRenameFromShell()
1091 assertThat(getFileRowIdFromDatabase(renamedImageFile)).isNotEqualTo(-1); in testRenameFromShell()
1098 assertThat(getFileRowIdFromDatabase(renamedImageFile)).isEqualTo(-1); in testRenameFromShell()
[all …]
/aosp_15_r20/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
H A 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()
/aosp_15_r20/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
H A DTestUtils.java860 final int id = getFileRowIdFromDatabase(file); in getFileUri()
868 public static int getFileRowIdFromDatabase(@NonNull File file) { in getFileRowIdFromDatabase() method in TestUtils
869 return getFileRowIdFromDatabase(getContentResolver(), file); in getFileRowIdFromDatabase()
876 public static int getFileRowIdFromDatabase(ContentResolver cr, @NonNull File file) { in getFileRowIdFromDatabase() method in TestUtils
1241 assertThat(getFileRowIdFromDatabase(oldFile)).isEqualTo(-1); in assertCanRenameFile()
1242 assertThat(getFileRowIdFromDatabase(newFile)).isNotEqualTo(-1); in assertCanRenameFile()
1250 final int rowId = getFileRowIdFromDatabase(oldFile); in assertCantRenameFile()
1253 assertThat(getFileRowIdFromDatabase(oldFile)).isEqualTo(rowId); in assertCantRenameFile()
1460 assertThat(getFileRowIdFromDatabase(file)).isEqualTo(-1); in assertCanRenameDirectory()
1464 assertThat(getFileRowIdFromDatabase(file)).isNotEqualTo(-1); in assertCanRenameDirectory()
[all …]
/aosp_15_r20/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
H A DScopedStorageDeviceTest.java68 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;
539 assertThat(getFileRowIdFromDatabase(imageFile)).isEqualTo(-1); in testContributeMediaFile()
1647 assertThat(getFileRowIdFromDatabase(musicFile)).isEqualTo(-1); in testSystemGalleryCanRenameImagesAndVideos()
2003 assertThat(getFileRowIdFromDatabase(hiddenImageFile)).isNotEqualTo(-1); in testCanCreateHiddenFile()
2511 assertThat(getFileRowIdFromDatabase(otherAppPdfFile1)).isEqualTo(-1); in testSystemGalleryCanRenameImageAndVideoDirs()
2512 assertThat(getFileRowIdFromDatabase(otherAppPdfFile2)).isEqualTo(-1); in testSystemGalleryCanRenameImageAndVideoDirs()
2540 final long oldRowId = getFileRowIdFromDatabase(imageFile); in testCreateCanRestoreDeletedRowId()
2548 assertThat(getFileRowIdFromDatabase(imageFile)).isEqualTo(oldRowId); in testCreateCanRestoreDeletedRowId()
/aosp_15_r20/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/
H A DScopedStorageTestHelper.java57 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;
565 getFileRowIdFromDatabase(getContentResolver(), new File(filePath)) != -1; in checkDatabaseRowExists()