Home
last modified time | relevance | path

Searched refs:mVolumeName (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreTrashedTest.java57 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()
DMediaStore_Audio_GenresTest.java56 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()
DMediaStore_Audio_Genres_MembersTest.java60 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 …]
DMediaStore_FilesTest.java73 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 …]
DMediaStore_Audio_AlbumsTest.java64 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()
DMediaStore_DownloadsTest.java85 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 …]
DMediaStore_Audio_MediaTest.java71 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 …]
DMediaStore_VideoTest.java56 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()
DMediaStoreIntentsTest.java55 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()
DMediaStore_Audio_ArtistsTest.java54 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()
DMediaStore_Audio_PlaylistsTest.java54 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()
DMediaStore_Audio_Artists_AlbumsTest.java61 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 …]
DMediaStorePlacementTest.java68 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()
DMediaStore_Audio_Playlists_MembersTest.java124 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 …]
DMediaStore_Video_ThumbnailsTest.java83 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()
DMediaStoreMatchTest.java55 public String mVolumeName; field in MediaStoreMatchTest
67 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
68 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
DMediaStoreNotificationTest.java59 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()
DMediaStore_Video_MediaTest.java83 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()
DMediaStore_Images_ThumbnailsTest.java85 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()
DMediaStore_Images_MediaTest.java90 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 …]
DMediaStoreTest.java76 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/
DStorageManagerCrossProfileSDCardTest.java55 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()
DStorageManagerCrossProfileUSBTest.java55 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/
DBypassDatabaseOperationsTest.java123 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/
DStableUrisTest.java92 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()

12