Home
last modified time | relevance | path

Searched refs:MediaProviderTestUtils (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStorePlacementTest.java72 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
90 final Uri uri = MediaProviderTestUtils.stageMedia(R.drawable.scenery, in testDefault()
94 final File before = MediaProviderTestUtils.getRelativeFile(uri); in testDefault()
102 final Uri uri = MediaProviderTestUtils.stageMedia(R.drawable.scenery, in testIgnored()
129 final Uri uri = MediaProviderTestUtils.stageMedia(R.drawable.scenery, in testDisplayName_SameMime()
133 final File before = MediaProviderTestUtils.getRelativeFile(uri); in testDisplayName_SameMime()
137 final File after = MediaProviderTestUtils.getRelativeFile(uri); in testDisplayName_SameMime()
144 final Uri uri = MediaProviderTestUtils.stageMedia(R.drawable.scenery, in testDisplayName_DifferentMime()
147 final File before = MediaProviderTestUtils.getRelativeFile(uri); in testDisplayName_DifferentMime()
155 final File after = MediaProviderTestUtils.getRelativeFile(uri); in testDisplayName_DifferentMime()
[all …]
DMediaStoreTrashedTest.java61 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
80 final File dir = MediaProviderTestUtils.getVolumePath(mVolumeName); in testOwned()
81 final File file = MediaProviderTestUtils.stageFile(R.drawable.scenery, in testOwned()
83 final Uri uri = MediaProviderTestUtils.scanFile(file); in testOwned()
84 MediaProviderTestUtils.setOwner(uri, InstrumentationRegistry.getContext().getPackageName()); in testOwned()
96 final File dir = MediaProviderTestUtils.getVolumePath(mVolumeName); in testUnowned()
97 final File file = MediaProviderTestUtils.stageFile(R.drawable.scenery, in testUnowned()
99 final Uri uri = MediaProviderTestUtils.scanFile(file); in testUnowned()
100 MediaProviderTestUtils.clearOwner(uri); in testUnowned()
112 final File dir = MediaProviderTestUtils.getVolumePath(mVolumeName); in testAtypical()
[all …]
DMediaStore_Video_ThumbnailsTest.java21 import static android.provider.cts.media.MediaProviderTestUtils.assertColorMostlyNotEquals;
22 import static android.provider.cts.media.MediaProviderTestUtils.extractAverageColor;
87 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
121 MediaProviderTestUtils.waitForIdle(); in testGetThumbnail()
128 MediaProviderTestUtils.waitForIdle(); in testGetThumbnail()
149 MediaProviderTestUtils.waitForIdle(); in testThumbnailGenerationAndCleanup()
155 MediaProviderTestUtils.waitForIdle(); in testThumbnailGenerationAndCleanup()
163 MediaProviderTestUtils.waitForIdle(); in testThumbnailGenerationAndCleanup()
174 MediaProviderTestUtils.waitForIdle(); in testThumbnailGenerationAndCleanup()
200 File file = new File(MediaProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in insertVideo()
[all …]
DMediaStore_Video_MediaTest.java87 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
122 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in testStoreVideoMediaExternal()
123 final File videoFile = MediaProviderTestUtils.stageFile(R.raw.testvideo, in testStoreVideoMediaExternal()
129 MediaProviderTestUtils.waitUntilExists(videoFile); in testStoreVideoMediaExternal()
198 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in insertVideo()
203 MediaProviderTestUtils.stageFile(R.raw.testvideo, file); in insertVideo()
212 final Uri publishUri = MediaProviderTestUtils.stageMedia(R.raw.testvideo_meta, in testOriginalAccess()
223 MediaProviderTestUtils.revokeMediaLocationPermission(mContext); in testOriginalAccess()
224 MediaProviderTestUtils.clearOwner(publishUri); in testOriginalAccess()
235 final Uri publishUri = MediaProviderTestUtils.stageMedia(R.raw.testvideo_meta, in testXmpLocationRedaction()
[all …]
DMediaStore_FilesTest.java19 import static android.provider.cts.media.MediaProviderTestUtils.containsId;
20 import static android.provider.cts.media.MediaProviderTestUtils.resolveVolumeName;
77 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
99 String dataPath = new File(MediaProviderTestUtils.stageDir(mVolumeName), in testGetContentUri()
117 String updatedPath = new File(MediaProviderTestUtils.stageDir(mVolumeName), in testGetContentUri()
142 File stageDir = new File(MediaProviderTestUtils.stageDir(mVolumeName), in testGetContentUri()
176 assumeTrue(MediaProviderTestUtils.isDeviceInitialSdkIntR()); in testCaseSensitivity()
178 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in testCaseSensitivity()
181 MediaProviderTestUtils.stageFile(R.raw.testmp3, file); in testCaseSensitivity()
230 final String path = MediaProviderTestUtils.getVolumePath(resolveVolumeName(mVolumeName)) in testAccess()
[all …]
DMediaStore_Images_ThumbnailsTest.java19 import static android.provider.cts.media.MediaProviderTestUtils.assertColorMostlyEquals;
20 import static android.provider.cts.media.MediaProviderTestUtils.extractAverageColor;
91 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
124 mRed = MediaProviderTestUtils.stageMedia(R.raw.scenery, mExternalImages); in prepareImages()
125 mBlue = MediaProviderTestUtils.stageMedia(R.raw.scenery, mExternalImages); in prepareImages()
128 MediaProviderTestUtils.waitForIdle(); in prepareImages()
148 final File file = new File(MediaProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in testQueryExternalThumbnails()
151 MediaProviderTestUtils.stageFile(R.raw.scenery, file); in testQueryExternalThumbnails()
211 MediaProviderTestUtils.waitForIdle(); in testQueryExternalMiniThumbnails()
222 MediaProviderTestUtils.waitForIdle(); in testQueryExternalMiniThumbnails()
[all …]
DMediaStore_Images_MediaTest.java94 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
118 File file = new File(MediaProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in testInsertImageWithImagePath()
121 MediaProviderTestUtils.stageFile(R.raw.scenery, file); in testInsertImageWithImagePath()
123 file = new File(MediaProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in testInsertImageWithImagePath()
126 MediaProviderTestUtils.stageFile(R.raw.scenery, file); in testInsertImageWithImagePath()
241 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in testStoreImagesMediaExternal()
242 final File file = MediaProviderTestUtils.stageFile(R.raw.scenery, in testStoreImagesMediaExternal()
248 MediaProviderTestUtils.waitUntilExists(file); in testStoreImagesMediaExternal()
413 final Uri publishUri = MediaProviderTestUtils.stageMedia(R.raw.lg_g4_iso_800_jpg,
438 MediaProviderTestUtils.revokeMediaLocationPermission(mContext);
[all …]
DMediaStoreMatchTest.java19 import static android.provider.cts.media.MediaProviderTestUtils.containsId;
59 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
87 final Uri pos = MediaProviderTestUtils.stageMedia(R.raw.scenery, mExternalImages); in verifyMatch()
88 final Uri neg = MediaProviderTestUtils.stageMedia(R.raw.scenery, mExternalImages); in verifyMatch()
DMediaStore_VideoTest.java60 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
76 final File file = new File(MediaProviderTestUtils.stageDir(mVolumeName), in testQuery()
79 MediaProviderTestUtils.stageFile(R.raw.testvideo, file); in testQuery()
DMediaStore_Audio_MediaTest.java75 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
235 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in testCanonicalize()
236 final Uri a = MediaProviderTestUtils.scanFileFromShell( in testCanonicalize()
237 MediaProviderTestUtils.stageFile(R.raw.testmp3_2, new File(dir, "a.mp3"))); in testCanonicalize()
238 final Uri b = MediaProviderTestUtils.scanFileFromShell( in testCanonicalize()
239 MediaProviderTestUtils.stageFile(R.raw.testmp3, new File(dir, "b.mp3"))); in testCanonicalize()
240 final Uri c = MediaProviderTestUtils.scanFileFromShell( in testCanonicalize()
241 MediaProviderTestUtils.stageFile(R.raw.testmp3_2, new File(dir, "c.mp3"))); in testCanonicalize()
257 final Uri d = MediaProviderTestUtils.scanFileFromShell( in testCanonicalize()
258 MediaProviderTestUtils.stageFile(R.raw.testmp3, new File(dir, "d.mp3"))); in testCanonicalize()
[all …]
DMediaStore_DownloadsTest.java19 import static android.provider.cts.media.MediaProviderTestUtils.hash;
20 import static android.provider.cts.media.MediaProviderTestUtils.resolveVolumeName;
89 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
103 MediaProviderTestUtils.getVolumePath(resolveVolumeName(mVolumeName)), in setUp()
106 MediaProviderTestUtils.getVolumePath(resolveVolumeName(mVolumeName)), in setUp()
340 final Uri uri = MediaProviderTestUtils.stageMedia(R.raw.scenery, mExternalDownloads); in testThumbnails()
383 final Uri mediaStoreUri = MediaProviderTestUtils.scanFile(file); in verifyScannedDownload()
DMediaStore_Audio_AlbumsTest.java68 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
167 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in testAlbumArt()
170 MediaProviderTestUtils.stageFile(R.raw.testmp3, path); in testAlbumArt()
DMediaStorePendingTest.java19 import static android.provider.cts.media.MediaProviderTestUtils.containsId;
20 import static android.provider.cts.media.MediaProviderTestUtils.getRawFile;
21 import static android.provider.cts.media.MediaProviderTestUtils.getRawFileHash;
22 import static android.provider.cts.media.MediaProviderTestUtils.hash;
86 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStoreAudioTestHelper.java117 data = new File(MediaProviderTestUtils.stageDir(volumeName), FILE_NAME); in getContentValues()
179 data = new File(MediaProviderTestUtils.stageDir(volumeName), FILE_NAME); in getContentValues()
DMediaStoreTest.java80 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
170 final Uri uri = MediaProviderTestUtils.stageMedia(R.raw.volantis, mExternalImages); in testGetStorageVolume()
DMediaStoreIntentsTest.java59 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStore_Audio_GenresTest.java60 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStore_Audio_ArtistsTest.java58 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStore_Audio_PlaylistsTest.java58 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
DMediaProviderTestUtils.java75 public class MediaProviderTestUtils { class
82 private MediaProviderTestUtils() { in MediaProviderTestUtils() method in MediaProviderTestUtils
DMediaStoreNotificationTest.java63 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStore_Audio_Artists_AlbumsTest.java65 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
/cts/tests/mediaprovider/
DAndroid.bp56 "src/android/provider/cts/media/MediaProviderTestUtils.java",
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DPhotoPickerFilesUtils.java27 import android.provider.cts.media.MediaProviderTestUtils;
132 MediaProviderTestUtils.setOwner(uri, context.getPackageName()); in deleteMedia()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java19 import static android.provider.cts.media.MediaProviderTestUtils.resolveVolumeName;
46 import android.provider.cts.media.MediaProviderTestUtils;
107 return MediaProviderTestUtils.getSharedVolumeNames(); in data()

12