/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStorePlacementTest.java | 72 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 …]
|
D | MediaStoreTrashedTest.java | 61 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 …]
|
D | MediaStore_Video_ThumbnailsTest.java | 21 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 …]
|
D | MediaStore_Video_MediaTest.java | 87 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 …]
|
D | MediaStore_FilesTest.java | 19 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 …]
|
D | MediaStore_Images_ThumbnailsTest.java | 19 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 …]
|
D | MediaStore_Images_MediaTest.java | 94 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 …]
|
D | MediaStoreMatchTest.java | 19 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()
|
D | MediaStore_VideoTest.java | 60 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()
|
D | MediaStore_Audio_MediaTest.java | 75 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 …]
|
D | MediaStore_DownloadsTest.java | 19 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()
|
D | MediaStore_Audio_AlbumsTest.java | 68 return MediaProviderTestUtils.getSharedVolumeNames(); in data() 167 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in testAlbumArt() 170 MediaProviderTestUtils.stageFile(R.raw.testmp3, path); in testAlbumArt()
|
D | MediaStorePendingTest.java | 19 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()
|
D | MediaStoreAudioTestHelper.java | 117 data = new File(MediaProviderTestUtils.stageDir(volumeName), FILE_NAME); in getContentValues() 179 data = new File(MediaProviderTestUtils.stageDir(volumeName), FILE_NAME); in getContentValues()
|
D | MediaStoreTest.java | 80 return MediaProviderTestUtils.getSharedVolumeNames(); in data() 170 final Uri uri = MediaProviderTestUtils.stageMedia(R.raw.volantis, mExternalImages); in testGetStorageVolume()
|
D | MediaStoreIntentsTest.java | 59 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_Audio_GenresTest.java | 60 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_Audio_ArtistsTest.java | 58 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_Audio_PlaylistsTest.java | 58 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaProviderTestUtils.java | 75 public class MediaProviderTestUtils { class 82 private MediaProviderTestUtils() { in MediaProviderTestUtils() method in MediaProviderTestUtils
|
D | MediaStoreNotificationTest.java | 63 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 65 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
|
/cts/tests/mediaprovider/ |
D | Android.bp | 56 "src/android/provider/cts/media/MediaProviderTestUtils.java",
|
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/ |
D | PhotoPickerFilesUtils.java | 27 import android.provider.cts.media.MediaProviderTestUtils; 132 MediaProviderTestUtils.setOwner(uri, context.getPackageName()); in deleteMedia()
|
/cts/tests/providerui/src/android/providerui/cts/ |
D | MediaStoreUiTest.java | 19 import static android.provider.cts.media.MediaProviderTestUtils.resolveVolumeName; 46 import android.provider.cts.media.MediaProviderTestUtils; 107 return MediaProviderTestUtils.getSharedVolumeNames(); in data()
|