/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStoreTrashedTest.java | 57 public String mVolumeName; field in MediaStoreTrashedTest 69 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 70 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 78 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testOwned() 80 final File dir = MediaProviderTestUtils.getVolumePath(mVolumeName); in testOwned() 94 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testUnowned() 96 final File dir = MediaProviderTestUtils.getVolumePath(mVolumeName); in testUnowned() 110 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testAtypical() 112 final File dir = MediaProviderTestUtils.getVolumePath(mVolumeName); in testAtypical()
|
D | MediaStore_Audio_GenresTest.java | 56 public String mVolumeName; field in MediaStore_Audio_GenresTest 68 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 75 Genres.getContentUri(mVolumeName), null, null, in testGetContentUri() 86 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresExternal() 106 Uri audioUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testGetContentUriForAudioId() 114 Uri genreUri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testGetContentUriForAudioId() 122 Uri audioGenresUri = Genres.getContentUriForAudioId(mVolumeName, (int) audioId); in testGetContentUriForAudioId() 129 Uri membersUri = Members.getContentUri(mVolumeName, genreId); in testGetContentUriForAudioId()
|
D | MediaStore_Audio_Genres_MembersTest.java | 60 public String mVolumeName; field in MediaStore_Audio_Genres_MembersTest 76 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 78 Uri uri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in setUp() 84 uri = Audio2.getInstance().insert(mContentResolver, mVolumeName); in setUp() 95 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown() 97 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown() 105 Members.getContentUri(mVolumeName, 1), null, in testGetContentUri() 115 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresMembersExternal() 124 assertEquals(ContentUris.withAppendedId(Genres.getContentUri(mVolumeName), genreId), in testStoreAudioGenresMembersExternal() 130 Uri membersUri = Members.getContentUri(mVolumeName, genreId); in testStoreAudioGenresMembersExternal() [all …]
|
D | MediaStore_FilesTest.java | 73 public String mVolumeName; field in MediaStore_FilesTest 85 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 86 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp() 87 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 88 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp() 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() 170 assertEquals(ContentUris.withAppendedId(MediaStore.Files.getContentUri(mVolumeName), 42), in testGetContentUri() 171 MediaStore.Files.getContentUri(mVolumeName, 42)); in testGetContentUri() [all …]
|
D | MediaStore_Audio_AlbumsTest.java | 64 public String mVolumeName; field in MediaStore_Audio_AlbumsTest 76 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 83 Albums.getContentUri(mVolumeName), null, null, in testGetContentUri() 91 Uri audioAlbumsUri = Albums.getContentUri(mVolumeName); in testStoreAudioAlbums() 101 Uri audioMediaUri = audio1.insert(mContentResolver, mVolumeName); in testStoreAudioAlbums() 167 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in testAlbumArt() 178 .insert(MediaStore.Audio.Media.getContentUri(mVolumeName), v); in testAlbumArt() 188 .withAppendedId(MediaStore.Audio.Albums.getContentUri(mVolumeName), albumId); in testAlbumArt() 195 final Uri byMedia = MediaStore.AUTHORITY_URI.buildUpon().appendPath(mVolumeName) in testAlbumArt() 198 final Uri byAlbum = MediaStore.AUTHORITY_URI.buildUpon().appendPath(mVolumeName) in testAlbumArt()
|
D | MediaStore_DownloadsTest.java | 85 public String mVolumeName; field in MediaStore_DownloadsTest 97 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 98 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp() 99 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 100 mExternalDownloads = MediaStore.Downloads.getContentUri(mVolumeName); in setUp() 103 MediaProviderTestUtils.getVolumePath(resolveVolumeName(mVolumeName)), in setUp() 106 MediaProviderTestUtils.getVolumePath(resolveVolumeName(mVolumeName)), in setUp() 115 Assume.assumeTrue(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName) in testScannedDownload() 116 || MediaStore.VOLUME_EXTERNAL_PRIMARY.equals(mVolumeName)); in testScannedDownload() 129 Assume.assumeTrue(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName) in testScannedMediaDownload() [all …]
|
D | MediaStore_Audio_MediaTest.java | 71 public String mVolumeName; field in MediaStore_Audio_MediaTest 83 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 84 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp() 85 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp() 92 Media.getContentUri(mVolumeName), null, null, in testGetContentUri() 96 assertEquals(ContentUris.withAppendedId(Media.getContentUri(mVolumeName), 42), in testGetContentUri() 97 Media.getContentUri(mVolumeName, 42)); in testGetContentUri() 123 ContentValues values = audio1.getContentValues(mVolumeName); in testStoreAudioMedia() 125 Uri mediaUri = Media.getContentUri(mVolumeName); in testStoreAudioMedia() 139 String expected = audio1.getContentValues(mVolumeName).getAsString(Media.DATA); in testStoreAudioMedia() [all …]
|
D | MediaStore_VideoTest.java | 56 public String mVolumeName; field in MediaStore_VideoTest 68 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 69 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 76 final File file = new File(MediaProviderTestUtils.stageDir(mVolumeName), in testQuery()
|
D | MediaStoreIntentsTest.java | 55 public String mVolumeName; field in MediaStoreIntentsTest 64 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 65 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp() 66 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 67 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
|
D | MediaStore_Audio_ArtistsTest.java | 54 public String mVolumeName; field in MediaStore_Audio_ArtistsTest 66 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 73 Artists.getContentUri(mVolumeName), null, null, in testGetContentUri() 80 Uri artistsUri = Artists.getContentUri(mVolumeName); in testStoreAudioArtists() 89 Uri uri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtists()
|
D | MediaStore_Audio_PlaylistsTest.java | 54 public String mVolumeName; field in MediaStore_Audio_PlaylistsTest 66 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 73 Playlists.getContentUri(mVolumeName), null, null, in testGetContentUri() 86 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsExternal() 126 .insert(MediaStore.Audio.Playlists.getContentUri(mVolumeName), values); in testName()
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 61 public String mVolumeName; field in MediaStore_Audio_Artists_AlbumsTest 73 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 79 Uri contentUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, 1); in testGetContentUri() 87 Uri audioMediaUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtistsAlbums() 94 Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, artistId); in testStoreAudioArtistsAlbums() 151 final Uri audioMediaUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testDifferentArtistInSameAlbum() 156 mVolumeName); in testDifferentArtistInSameAlbum() 161 mVolumeName); in testDifferentArtistInSameAlbum() 169 final Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, in testDifferentArtistInSameAlbum() 178 mVolumeName, artistId); in testDifferentArtistInSameAlbum() [all …]
|
D | MediaStorePlacementTest.java | 68 public String mVolumeName; field in MediaStorePlacementTest 80 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 81 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 82 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 213 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testDirectory_InsideSandbox() 215 final File dir = MediaProviderTestUtils.getVolumePath(mVolumeName); in testDirectory_InsideSandbox() 232 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testDirectory_OutsideSandbox() 315 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in stageImageInAudio() 318 final File file = Environment.buildPath(MediaProviderTestUtils.getVolumePath(mVolumeName), in stageImageInAudio()
|
D | MediaStore_Audio_Playlists_MembersTest.java | 124 public String mVolumeName; field in MediaStore_Audio_Playlists_MembersTest 132 Uri uri = which.insert(mContentResolver, mVolumeName); in insertAudioItem() 145 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 156 final Uri uri = Media.getContentUri(mVolumeName); in tearDown() 218 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testStoreAudioPlaylistsMembersExternal() 227 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsMembersExternal() 235 assertEquals(ContentUris.withAppendedId(Playlists.getContentUri(mVolumeName), playlistId), in testStoreAudioPlaylistsMembersExternal() 239 Uri membersUri = Members.getContentUri(mVolumeName, playlistId); in testStoreAudioPlaylistsMembersExternal() 252 final String expected1 = Audio1.getInstance().getContentValues(mVolumeName) in testStoreAudioPlaylistsMembersExternal() 297 final String expected2 = Audio2.getInstance().getContentValues(mVolumeName) in testStoreAudioPlaylistsMembersExternal() [all …]
|
D | MediaStore_Video_ThumbnailsTest.java | 83 public String mVolumeName; field in MediaStore_Video_ThumbnailsTest 95 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 96 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 109 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testGetThumbnail() 137 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailGenerationAndCleanup() 236 if (MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) { in testInsertUpdateDelete()
|
D | MediaStoreMatchTest.java | 55 public String mVolumeName; field in MediaStoreMatchTest 67 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 68 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
|
D | MediaStoreNotificationTest.java | 59 public String mVolumeName; field in MediaStoreNotificationTest 71 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 72 mSpecificImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 73 mSpecificFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp()
|
D | MediaStore_Video_MediaTest.java | 83 public String mVolumeName; field in MediaStore_Video_MediaTest 95 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 96 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 97 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp() 107 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri() 111 assertEquals(ContentUris.withAppendedId(Media.getContentUri(mVolumeName), 42), in testGetContentUri() 112 Media.getContentUri(mVolumeName, 42)); in testGetContentUri() 122 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in testStoreVideoMediaExternal() 198 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in insertVideo() 361 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in testCanonicalize()
|
D | MediaStore_Images_ThumbnailsTest.java | 85 public String mVolumeName; field in MediaStore_Images_ThumbnailsTest 116 Log.d(TAG, "Using volume " + mVolumeName + " for user " + mContext.getUserId()); in setUp() 117 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 139 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testQueryExternalThumbnails() 185 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testQueryExternalMiniThumbnails() 247 assertNotNull(c = mContentResolver.query(Thumbnails.getContentUri(mVolumeName), null, null, in testGetContentUri() 254 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testStoreImagesMediaExternal() 300 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailGenerationAndCleanup() 364 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailOrderedQuery() 452 if (MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) { in testInsertUpdateDelete()
|
D | MediaStore_Images_MediaTest.java | 90 public String mVolumeName; field in MediaStore_Images_MediaTest 102 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 103 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 104 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp() 110 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testInsertImageWithImagePath() 226 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri() 230 assertEquals(ContentUris.withAppendedId(Media.getContentUri(mVolumeName), 42), in testGetContentUri() 231 Media.getContentUri(mVolumeName, 42)); in testGetContentUri() 241 final File dir = MediaProviderTestUtils.stageDir(mVolumeName); in testStoreImagesMediaExternal() 312 assumeFalse(MediaStore.VOLUME_EXTERNAL.equalsIgnoreCase(mVolumeName)); [all …]
|
D | MediaStoreTest.java | 76 public String mVolumeName; field in MediaStoreTest 92 Log.d(TAG, "Using volume " + mVolumeName + " for user " + mContext.getUserId()); in setUp() 93 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 178 if (MediaStore.VOLUME_EXTERNAL_PRIMARY.equals(mVolumeName)) { in testGetStorageVolume()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerCrossProfileSDCardTest.java | 55 private String mVolumeName; field in StorageManagerCrossProfileSDCardTest 63 mVolumeName = StorageManagerHelper.createSDCardVirtualDisk(); in setUp() 79 mVolumeName)).findFirst(); in testGetStorageVolumeSDCardWorkProfile() 80 assertWithMessage("The SdCard storage volume " + mVolumeName in testGetStorageVolumeSDCardWorkProfile()
|
D | StorageManagerCrossProfileUSBTest.java | 55 private String mVolumeName; field in StorageManagerCrossProfileUSBTest 63 mVolumeName = StorageManagerHelper.createUSBVirtualDisk(); in setUp() 78 storageVolumes.stream().filter(sv->sv.getPath().contains(mVolumeName)).findFirst(); in testGetStorageVolumeUSBWorkProfile() 79 assertWithMessage("The USB storage volume: " + mVolumeName in testGetStorageVolumeUSBWorkProfile()
|
/cts/hostsidetests/scopedstorage/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/ |
D | BypassDatabaseOperationsTest.java | 123 public String mVolumeName; field in BypassDatabaseOperationsTest 132 super.setupExternalStorage(mVolumeName); in setupExternalStorage() 133 Log.i(TAG, "Using volume : " + mVolumeName); in setupExternalStorage()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | StableUrisTest.java | 92 public String mVolumeName; field in StableUrisTest 102 super.setupExternalStorage(mVolumeName); in setUp() 181 MediaStore.scanVolume(mContentResolver, mVolumeName); in testScenario() 314 try (Cursor c = mContentResolver.query(MediaStore.Files.getContentUri(mVolumeName), in getMediaFilesCount()
|