/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | MediaGrantsTest.java | 59 private ContentResolver mIsolatedResolver; field in MediaGrantsTest 85 if (mIsolatedResolver != null) { in setUp() 88 MediaStore.waitForIdle(mIsolatedResolver); in setUp() 93 mIsolatedResolver = mIsolatedContext.getContentResolver(); in setUp() 101 Long fileId1 = insertFileInResolver(mIsolatedResolver, "test_file1"); in testAddMediaGrants() 102 Long fileId2 = insertFileInResolver(mIsolatedResolver, "test_file2"); in testAddMediaGrants() 113 Long fileId1 = insertFileInResolver(mIsolatedResolver, "test_file1"); in testGetMediaGrantsForPackages() 114 Long fileId2 = insertFileInResolver(mIsolatedResolver, "test_file2"); in testGetMediaGrantsForPackages() 115 Long fileId3 = insertFileInResolver(mIsolatedResolver, "test_file3"); in testGetMediaGrantsForPackages() 154 Long fileId1 = insertFileInResolver(mIsolatedResolver, "test_file1"); in test_GetMediaGrantsForPackages_excludesIsTrashed() [all …]
|
D | ResolvePlaylistTest.java | 51 private ContentResolver mIsolatedResolver; field in ResolvePlaylistTest 68 mIsolatedResolver = mIsolatedContext.getContentResolver(); in setUp() 123 try (Cursor cursor = mIsolatedResolver.query(membersUri, new String[] { in doPlaylist() 144 try (Cursor cursor = mIsolatedResolver.query(membersUri, new String[] { in doPlaylist() 164 try (Cursor cursor = mIsolatedResolver.query(membersUri, new String[] { in doPlaylist() 202 try (Cursor cursor = mIsolatedResolver.query(membersUri, new String[] { in testBrokenPlaylistM3u() 234 MediaStore.waitForIdle(mIsolatedResolver); in testPlaylistDeletion() 238 try (Cursor cursor = mIsolatedResolver.query(membersUri, null, null, null)) { in testPlaylistDeletion() 268 MediaStore.waitForIdle(mIsolatedResolver); in testPlaylistMembersDeletion() 272 try (Cursor cursor = mIsolatedResolver.query(membersUri, null, null, null)) { in testPlaylistMembersDeletion()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | SpecialFormatDetectorTest.java | 47 private ContentResolver mIsolatedResolver; field in SpecialFormatDetectorTest 60 mIsolatedResolver = isolatedContext.getContentResolver(); in setUp() 69 final Uri uri = MediaStore.scanFile(mIsolatedResolver, file); in testDetect_gif() 75 try (Cursor cr = mIsolatedResolver.query(filesUri, in testDetect_gif() 95 final Uri uri = MediaStore.scanFile(mIsolatedResolver, file); in testDetect_motionPhoto() 101 try (Cursor cr = mIsolatedResolver.query(filesUri, in testDetect_motionPhoto() 121 final Uri uri = MediaStore.scanFile(mIsolatedResolver, file); in testDetect_animatedWebp() 127 try (Cursor cr = mIsolatedResolver.query(filesUri, in testDetect_animatedWebp() 147 final Uri uri = MediaStore.scanFile(mIsolatedResolver, file); in testDetect_nonAnimatedWebp() 153 try (Cursor cr = mIsolatedResolver.query(filesUri, in testDetect_nonAnimatedWebp() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 108 private ContentResolver mIsolatedResolver; field in ModernMediaScannerTest 125 mIsolatedResolver = mIsolatedContext.getContentResolver(); in setUp() 586 try (Cursor cursor = mIsolatedResolver in testScan_Common() 598 try (ParcelFileDescriptor pfd = mIsolatedResolver.openFile(uri, "wt", null)) { in testScan_Common() 605 MediaStore.waitForIdle(mIsolatedResolver); in testScan_Common() 607 try (Cursor cursor = mIsolatedResolver in testScan_Common() 761 try (Cursor cursor = mIsolatedResolver.query(actualUri, null, null, null, null)) { in assertQueryCount() 776 try (Cursor cursor = mIsolatedResolver in testScan_audio_empty_title() 795 try (Cursor cursor = mIsolatedResolver in testScan_audio_recording() 814 try (Cursor cursor = mIsolatedResolver in testScan_148316354() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ |
D | ItemsProviderTest.java | 105 private ContentResolver mIsolatedResolver; field in ItemsProviderTest 121 mIsolatedResolver = isolatedContext.getContentResolver(); in setUp() 125 MediaStore.waitForIdle(mIsolatedResolver); in setUp() 1165 mIsolatedResolver.call(MediaStore.AUTHORITY, MediaStore.SYNC_PROVIDERS_CALL, null, in setupCloudProvider() 1172 mIsolatedResolver.call(MediaStore.AUTHORITY, MediaStore.SET_CLOUD_PROVIDER_CALL, null, in); in setCloudProvider() 1175 .that(MediaStore.isCurrentCloudMediaProviderAuthority(mIsolatedResolver, in setCloudProvider() 1209 try (AssetFileDescriptor fd1 = mIsolatedResolver.openTypedAssetFile(uri, "image/*", in assertCategoryUriIsValid() 1213 try (ParcelFileDescriptor fd2 = mIsolatedResolver.openFileDescriptor(uri, "r")) { in assertCategoryUriIsValid() 1255 final Uri uri = MediaStore.scanFile(mIsolatedResolver, file); in setIsFavorite() 1259 assertThat(mIsolatedResolver.update(uri, values, null)).isEqualTo(1); in setIsFavorite() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/ |
D | PickerViewModelPaginationTest.java | 94 private ContentResolver mIsolatedResolver; field in PickerViewModelPaginationTest 150 mIsolatedResolver = isolatedContext.getContentResolver(); in setUp() 526 final Uri uri = MediaStore.scanFile(mIsolatedResolver, file); in prepareFileAndGetUri() 530 MediaStore.waitForIdle(mIsolatedResolver); in prepareFileAndGetUri() 543 try (Cursor c = mIsolatedResolver.query( in deleteAllFilesNoThrow()
|