Home
last modified time | relevance | path

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

/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Audio_GenresTest.java57 public String mVolumeName; field in MediaStore_Audio_GenresTest
69 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
76 Genres.getContentUri(mVolumeName), null, null, in testGetContentUri()
86 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresExternal()
105 Uri audioUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testGetContentUriForAudioId()
113 Uri genreUri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testGetContentUriForAudioId()
121 Uri audioGenresUri = Genres.getContentUriForAudioId(mVolumeName, (int) audioId); in testGetContentUriForAudioId()
128 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()
114 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresMembersExternal()
123 assertEquals(ContentUris.withAppendedId(Genres.getContentUri(mVolumeName), genreId), in testStoreAudioGenresMembersExternal()
129 Uri membersUri = Members.getContentUri(mVolumeName, genreId); in testStoreAudioGenresMembersExternal()
[all …]
DMediaStore_Audio_AlbumsTest.java63 public String mVolumeName; field in MediaStore_Audio_AlbumsTest
75 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
82 Albums.getContentUri(mVolumeName), null, null, in testGetContentUri()
90 Uri audioAlbumsUri = Albums.getContentUri(mVolumeName); in testStoreAudioAlbums()
100 Uri audioMediaUri = audio1.insert(mContentResolver, mVolumeName); in testStoreAudioAlbums()
166 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testAlbumArt()
177 .insert(MediaStore.Audio.Media.getContentUri(mVolumeName), v); in testAlbumArt()
187 .withAppendedId(MediaStore.Audio.Albums.getContentUri(mVolumeName), albumId); in testAlbumArt()
194 final Uri byMedia = MediaStore.AUTHORITY_URI.buildUpon().appendPath(mVolumeName) in testAlbumArt()
197 final Uri byAlbum = MediaStore.AUTHORITY_URI.buildUpon().appendPath(mVolumeName) in testAlbumArt()
DMediaStoreTest.java69 public String mVolumeName; field in MediaStoreTest
85 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
86 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
123 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testGetStorageVolume()
133 if (MediaStore.VOLUME_EXTERNAL_PRIMARY.equals(mVolumeName)) { in testGetStorageVolume()
152 Assume.assumeTrue(MediaStore.VOLUME_EXTERNAL_PRIMARY.equals(mVolumeName)); in testContributedMedia()
181 final File file = new File(ProviderTestUtils.stageDir(mVolumeName), in testContributedMedia()
233 final UUID externalUuid = storage.getUuidForPath(MediaStore.getVolumePath(mVolumeName)); in getExternalPackageSize()
242 final UUID externalUuid = storage.getUuidForPath(MediaStore.getVolumePath(mVolumeName)); in getExternalTotalSize()
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()
80 final String externalPlaylistPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreAudioPlaylistsExternal()
89 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsExternal()
DMediaStore_VideoTest.java55 public String mVolumeName; field in MediaStore_VideoTest
67 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
68 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
75 final File file = new File(ProviderTestUtils.stageDir(mVolumeName), in testQuery()
DMediaStore_Audio_MediaTest.java58 public String mVolumeName; field in MediaStore_Audio_MediaTest
70 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
71 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
78 Media.getContentUri(mVolumeName), null, null, in testGetContentUri()
100 ContentValues values = audio1.getContentValues(mVolumeName); in testStoreAudioMedia()
102 Uri mediaUri = Media.getContentUri(mVolumeName); in testStoreAudioMedia()
116 String expected = audio1.getContentValues(mVolumeName).getAsString(Media.DATA); in testStoreAudioMedia()
147 Uri baseUri = Media.getContentUri(mVolumeName); in testStoreAudioMedia()
176 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCanonicalize()
DMediaStore_FilesTest.java66 public String mVolumeName; field in MediaStore_FilesTest
78 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
79 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
80 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp()
91 String dataPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri()
109 String updatedPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri()
134 File stageDir = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri()
166 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCaseSensitivity()
213 final String path = MediaStore.getVolumePath(resolveVolumeName(mVolumeName)) in testAccess()
256 final File file = new File(ProviderTestUtils.stageDir(mVolumeName), in testUpdateMediaType()
[all …]
DMediaStore_Audio_Playlists_MembersTest.java123 public String mVolumeName; field in MediaStore_Audio_Playlists_MembersTest
131 Uri uri = which.insert(mContentResolver, mVolumeName); in insertAudioItem()
144 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
155 final Uri uri = Media.getContentUri(mVolumeName); in tearDown()
217 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_DownloadsTest.java82 public String mVolumeName; field in MediaStore_DownloadsTest
94 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
95 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
96 mExternalDownloads = MediaStore.Downloads.getContentUri(mVolumeName); in setUp()
98 mDownloadsDir = new File(MediaStore.getVolumePath(resolveVolumeName(mVolumeName)), in setUp()
100 mPicturesDir = new File(MediaStore.getVolumePath(resolveVolumeName(mVolumeName)), in setUp()
109 Assume.assumeTrue(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName) in testScannedDownload()
110 || MediaStore.VOLUME_EXTERNAL_PRIMARY.equals(mVolumeName)); in testScannedDownload()
123 Assume.assumeTrue(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName) in testScannedMediaDownload()
124 || MediaStore.VOLUME_EXTERNAL_PRIMARY.equals(mVolumeName)); in testScannedMediaDownload()
[all …]
DMediaStoreIntentsTest.java52 public String mVolumeName; field in MediaStoreIntentsTest
61 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
62 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
63 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
64 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
DMediaStore_Audio_Artists_AlbumsTest.java56 public String mVolumeName; field in MediaStore_Audio_Artists_AlbumsTest
68 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
74 Uri contentUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, 1); in testGetContentUri()
82 Uri audioMediaUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtistsAlbums()
89 Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, artistId); in testStoreAudioArtistsAlbums()
DMediaStore_Audio_ArtistsTest.java53 public String mVolumeName; field in MediaStore_Audio_ArtistsTest
65 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
72 Artists.getContentUri(mVolumeName), null, null, in testGetContentUri()
79 Uri artistsUri = Artists.getContentUri(mVolumeName); in testStoreAudioArtists()
88 Uri uri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtists()
DMediaStorePlacementTest.java58 public String mVolumeName; field in MediaStorePlacementTest
70 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
71 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
199 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testDirectory_InsideSandbox()
201 final File dir = MediaStore.getVolumePath(mVolumeName); in testDirectory_InsideSandbox()
216 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testDirectory_OutsideSandbox()
DMediaStore_Video_ThumbnailsTest.java82 public String mVolumeName; field in MediaStore_Video_ThumbnailsTest
94 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
95 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
108 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testGetThumbnail()
134 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailGenerationAndCleanup()
230 if (MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) { in testInsertUpdateDelete()
DMediaStore_Video_MediaTest.java75 public String mVolumeName; field in MediaStore_Video_MediaTest
87 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
88 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
97 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri()
109 final String externalVideoPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreVideoMediaExternal()
111 final String externalVideoPath2 = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreVideoMediaExternal()
186 File videofile = new File(ProviderTestUtils.stageDir(mVolumeName), "testVideo.3gp"); in testStoreVideoMediaExternal()
193 final File dir = ProviderTestUtils.stageDir(mVolumeName); in insertVideo()
324 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCanonicalize()
DMediaStore_Images_ThumbnailsTest.java84 public String mVolumeName; field in MediaStore_Images_ThumbnailsTest
115 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
116 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()
245 assertNotNull(c = mContentResolver.query(Thumbnails.getContentUri(mVolumeName), null, null, in testGetContentUri()
252 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testStoreImagesMediaExternal()
298 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailGenerationAndCleanup()
366 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailOrderedQuery()
451 if (MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) { in testInsertUpdateDelete()
DMediaStore_Images_MediaTest.java76 public String mVolumeName; field in MediaStore_Images_MediaTest
88 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
89 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
95 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testInsertImageWithImagePath()
210 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri()
222 final String externalPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreImagesMediaExternal()
224 final String externalPath2 = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreImagesMediaExternal()
413 final File dir = ProviderTestUtils.stageDir(mVolumeName);
DMediaStorePendingTest.java77 public String mVolumeName; field in MediaStorePendingTest
89 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
90 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
91 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
92 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
93 mExternalDownloads = MediaStore.Downloads.getContentUri(mVolumeName); in setUp()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java113 public String mVolumeName; field in MediaStoreUiTest
390 final File dir = new File(MediaStore.getVolumePath(mVolumeName), in prepareFile()