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_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_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_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()
DMediaStore_FilesTest.java67 public String mVolumeName; field in MediaStore_FilesTest
79 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
80 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
81 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
82 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp()
93 String dataPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri()
111 String updatedPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri()
136 File stageDir = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri()
168 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCaseSensitivity()
215 final String path = MediaStore.getVolumePath(resolveVolumeName(mVolumeName)) in testAccess()
[all …]
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_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_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()
177 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCanonicalize()
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 …]
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()
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_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()
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()
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.java81 public String mVolumeName; field in MediaStore_Video_ThumbnailsTest
93 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
94 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
107 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testGetThumbnail()
135 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailGenerationAndCleanup()
234 if (MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) { in testInsertUpdateDelete()
DMediaStore_Video_MediaTest.java78 public String mVolumeName; field in MediaStore_Video_MediaTest
90 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
91 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
100 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri()
112 final String externalVideoPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreVideoMediaExternal()
114 final String externalVideoPath2 = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreVideoMediaExternal()
189 File videofile = new File(ProviderTestUtils.stageDir(mVolumeName), "testVideo.3gp"); in testStoreVideoMediaExternal()
196 final File dir = ProviderTestUtils.stageDir(mVolumeName); in insertVideo()
349 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCanonicalize()
DMediaStore_Images_ThumbnailsTest.java83 public String mVolumeName; field in MediaStore_Images_ThumbnailsTest
114 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
115 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
138 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testQueryExternalThumbnails()
184 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testQueryExternalMiniThumbnails()
246 assertNotNull(c = mContentResolver.query(Thumbnails.getContentUri(mVolumeName), null, null, in testGetContentUri()
253 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testStoreImagesMediaExternal()
299 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailGenerationAndCleanup()
363 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailOrderedQuery()
451 if (MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) { in testInsertUpdateDelete()
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()
DMediaStore_Images_MediaTest.java79 public String mVolumeName; field in MediaStore_Images_MediaTest
91 Log.d(TAG, "Using volume " + mVolumeName); in setUp()
92 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
98 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testInsertImageWithImagePath()
213 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri()
225 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testStoreImagesMediaExternal()
435 final File dir = ProviderTestUtils.stageDir(mVolumeName);
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java89 public String mVolumeName; field in MediaStoreUiTest
196 final File dir = new File(MediaStore.getVolumePath(mVolumeName), in prepareFile()