Searched refs:getFileRowIdFromDatabase (Results 1 – 5 of 5) sorted by relevance
45 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;479 assertThat(getFileRowIdFromDatabase(mediaFile)).isNotEqualTo(-1); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()483 assertThat(getFileRowIdFromDatabase(renamedMediaFile)).isNotEqualTo(-1); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()487 assertThat(getFileRowIdFromDatabase(renamedMediaFile)).isEqualTo(-1); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()638 assertThat(getFileRowIdFromDatabase(newFile)).isEqualTo(-1); in assertCreateFileAndScanNomediaDirDoesntNoOp()641 assertThat(getFileRowIdFromDatabase(newFile)).isNotEqualTo(-1); in assertCreateFileAndScanNomediaDirDoesntNoOp()795 assertThat(getFileRowIdFromDatabase(imageFile)).isNotEqualTo(-1); in testRenameFromShell()804 assertThat(getFileRowIdFromDatabase(imageFile)).isEqualTo(-1); in testRenameFromShell()806 assertThat(getFileRowIdFromDatabase(renamedImageFile)).isNotEqualTo(-1); in testRenameFromShell()813 assertThat(getFileRowIdFromDatabase(renamedImageFile)).isEqualTo(-1); in testRenameFromShell()[all …]
665 final int id = getFileRowIdFromDatabase(file); in getFileUri()673 public static int getFileRowIdFromDatabase(@NonNull File file) { in getFileRowIdFromDatabase() method in TestUtils674 return getFileRowIdFromDatabase(getContentResolver(), file); in getFileRowIdFromDatabase()681 public static int getFileRowIdFromDatabase(ContentResolver cr, @NonNull File file) { in getFileRowIdFromDatabase() method in TestUtils937 assertThat(getFileRowIdFromDatabase(oldFile)).isEqualTo(-1); in assertCanRenameFile()938 assertThat(getFileRowIdFromDatabase(newFile)).isNotEqualTo(-1); in assertCanRenameFile()946 final int rowId = getFileRowIdFromDatabase(oldFile); in assertCantRenameFile()949 assertThat(getFileRowIdFromDatabase(oldFile)).isEqualTo(rowId); in assertCantRenameFile()962 assertThat(getFileRowIdFromDatabase(file)).isEqualTo(-1); in assertCanRenameDirectory()966 assertThat(getFileRowIdFromDatabase(file)).isNotEqualTo(-1); in assertCanRenameDirectory()[all …]
42 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;545 assertThat(getFileRowIdFromDatabase(videoFile)).isNotEqualTo(-1); in testCanDeleteAllFiles_hasRW()549 assertThat(getFileRowIdFromDatabase(videoFile)).isEqualTo(-1); in testCanDeleteAllFiles_hasRW()552 assertThat(getFileRowIdFromDatabase(otherAppPdfFile)).isNotEqualTo(-1); in testCanDeleteAllFiles_hasRW()583 assertNotEquals(-1, getFileRowIdFromDatabase(videoFile)); in testLegacyAppCanOwnAFile_hasW()588 assertEquals(-1, getFileRowIdFromDatabase(videoFile)); in testLegacyAppCanOwnAFile_hasW()846 assertThat(getFileRowIdFromDatabase(otherAppVideoFile)).isNotEqualTo(-1); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()847 assertThat(getFileRowIdFromDatabase(videoFile)).isEqualTo(-1); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()
43 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;317 getFileRowIdFromDatabase(getContentResolver(), new File(filePath)) != -1; in checkDatabaseRowExists()
63 import static android.scopedstorage.cts.lib.TestUtils.getFileRowIdFromDatabase;516 assertThat(getFileRowIdFromDatabase(imageFile)).isEqualTo(-1); in testContributeMediaFile()1531 assertThat(getFileRowIdFromDatabase(musicFile)).isEqualTo(-1); in testSystemGalleryCanRenameImagesAndVideos()1832 assertThat(getFileRowIdFromDatabase(hiddenImageFile)).isNotEqualTo(-1); in testCanCreateHiddenFile()2281 assertThat(getFileRowIdFromDatabase(otherAppPdfFile1)).isEqualTo(-1); in testSystemGalleryCanRenameImageAndVideoDirs()2282 assertThat(getFileRowIdFromDatabase(otherAppPdfFile2)).isEqualTo(-1); in testSystemGalleryCanRenameImageAndVideoDirs()2310 final long oldRowId = getFileRowIdFromDatabase(imageFile); in testCreateCanRestoreDeletedRowId()2318 assertThat(getFileRowIdFromDatabase(imageFile)).isEqualTo(oldRowId); in testCreateCanRestoreDeletedRowId()