/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_AudioTest.java | 23 import android.provider.MediaStore.Audio; 27 @TestTargetClass(Audio.class) 34 mKeyForBeatles = Audio.keyFor("beatles"); 43 assertEquals(mKeyForBeatles, Audio.keyFor("[beatles]")); 44 assertEquals(mKeyForBeatles, Audio.keyFor("(beatles)")); 45 assertEquals(mKeyForBeatles, Audio.keyFor("beatles!")); 46 assertEquals(mKeyForBeatles, Audio.keyFor("beatles?")); 47 assertEquals(mKeyForBeatles, Audio.keyFor("'beatles'")); 48 assertEquals(mKeyForBeatles, Audio.keyFor("beatles.")); 49 assertEquals(mKeyForBeatles, Audio.keyFor("beatles,")) [all...] |
MediaStore_Audio_Artists_AlbumsTest.java | 29 import android.provider.MediaStore.Audio.Media; 30 import android.provider.MediaStore.Audio.Artists.Albums; 54 Uri contentUri = MediaStore.Audio.Artists.Albums.getContentUri( 57 contentUri = MediaStore.Audio.Artists.Albums.getContentUri( 63 assertNull(mContentResolver.query(MediaStore.Audio.Artists.Albums.getContentUri(volume, 1), 80 // the album item is inserted when inserting audio media 89 Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(isInternal ? 144 // the album items are deleted when deleting the audio media which belongs to the album
|
/packages/apps/Music/src/com/android/music/ |
MediaPickerActivity.java | 100 MediaStore.Audio.Media.MIME_TYPE)); 112 uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 114 MediaStore.Audio.Media._ID)); 122 // Need to stop the playbackservice, in case it is busy playing audio 131 intent.setDataAndType(ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, id), type); 138 MediaStore.Audio.Media._ID, 139 MediaStore.Audio.Media.ARTIST, 140 MediaStore.Audio.Media.ALBUM, 141 MediaStore.Audio.Media.TITLE, 142 MediaStore.Audio.Media.DATA [all...] |
MusicAlphabetIndexer.java | 36 String wordKey = MediaStore.Audio.keyFor(word); 37 String letterKey = MediaStore.Audio.keyFor(letter);
|
CreatePlaylist.java | 102 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 103 new String[] { MediaStore.Audio.Playlists._ID }, 104 MediaStore.Audio.Playlists.NAME + "=?", 106 MediaStore.Audio.Playlists.NAME); 134 MediaStore.Audio.Playlists.NAME 137 String whereclause = MediaStore.Audio.Playlists.NAME + " != ''"; 138 Cursor c = resolver.query(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 140 MediaStore.Audio.Playlists.NAME); 179 uri = ContentUris.withAppendedId(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, id); 183 values.put(MediaStore.Audio.Playlists.NAME, name) [all...] |
RenamePlaylist.java | 122 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 123 new String[] { MediaStore.Audio.Playlists._ID }, 124 MediaStore.Audio.Playlists.NAME + "=?", 126 MediaStore.Audio.Playlists.NAME); 139 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 140 new String[] { MediaStore.Audio.Playlists.NAME }, 141 MediaStore.Audio.Playlists._ID + "=?", 143 MediaStore.Audio.Playlists.NAME); 173 values.put(MediaStore.Audio.Playlists.NAME, name); 174 resolver.update(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI [all...] |
MusicPicker.java | 91 MediaStore.Audio.Media._ID, 92 MediaStore.Audio.Media.TITLE, 93 MediaStore.Audio.Media.TITLE_KEY, 94 MediaStore.Audio.Media.DATA, 95 MediaStore.Audio.Media.ALBUM, 96 MediaStore.Audio.Media.ARTIST, 97 MediaStore.Audio.Media.ARTIST_ID, 98 MediaStore.Audio.Media.DURATION, 99 MediaStore.Audio.Media.TRACK 302 mIdIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID) [all...] |
TrackBrowserActivity.java | 45 import android.provider.MediaStore.Audio.Playlists; 140 MediaStore.Audio.Media._ID, 141 MediaStore.Audio.Media.TITLE, 142 MediaStore.Audio.Media.DATA, 143 MediaStore.Audio.Media.ALBUM, 144 MediaStore.Audio.Media.ARTIST, 145 MediaStore.Audio.Media.ARTIST_ID, 146 MediaStore.Audio.Media.DURATION 149 MediaStore.Audio.Playlists.Members._ID, 150 MediaStore.Audio.Media.TITLE [all...] |
ArtistAlbumBrowserActivity.java | 272 String album = c.getString(c.getColumnIndex(MediaStore.Audio.Albums.ALBUM)); 276 mCurrentArtistId = mArtistCursor.getString(mArtistCursor.getColumnIndex(MediaStore.Audio.Artists._ID)); 307 cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 308 new String [] { MediaStore.Audio.Media._ID}, 309 MediaStore.Audio.Media.IS_MUSIC + "=1", null, 310 MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 340 mCurrentArtistId = mArtistCursor.getString(mArtistCursor.getColumnIndexOrThrow(MediaStore.Audio.Artists._ID)); 341 mCurrentArtistName = mArtistCursor.getString(mArtistCursor.getColumnIndexOrThrow(MediaStore.Audio.Artists.ARTIST)); 363 mCurrentAlbumName = c.getString(c.getColumnIndexOrThrow(MediaStore.Audio.Albums.ALBUM)); 367 mArtistCursor.getColumnIndexOrThrow(MediaStore.Audio.Artists.ARTIST)) [all...] |
PlaylistBrowserActivity.java | 154 new String[] { MediaStore.Audio.Playlists.NAME}, 316 MediaStore.Audio.Playlists.NAME))); 334 MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, mi.id); 414 final String[] ccols = new String[] { MediaStore.Audio.Media._ID}; 416 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 417 ccols, where, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 439 final String[] ccols = new String[] { MediaStore.Audio.Media._ID}; 440 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 441 ccols, MediaStore.Audio.Media.IS_PODCAST + "=1", 442 null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER) [all...] |
MusicUtils.java | 318 colidx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Playlists.Members.AUDIO_ID); 320 colidx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID); 330 final String[] ccols = new String[] { MediaStore.Audio.Media._ID }; 331 String where = MediaStore.Audio.Media.ARTIST_ID + "=" + id + " AND " + 332 MediaStore.Audio.Media.IS_MUSIC + "=1"; 333 Cursor cursor = query(context, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 335 MediaStore.Audio.Media.ALBUM_KEY + "," + MediaStore.Audio.Media.TRACK); 346 final String[] ccols = new String[] { MediaStore.Audio.Media._ID }; 347 String where = MediaStore.Audio.Media.ALBUM_ID + "=" + id + " AND " + [all...] |
AudioPreview.java | 135 int titleIdx = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE); 136 int artistIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST); 137 int idIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID); 173 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ARTIST}, 185 mAsyncQueryHandler.startQuery(0, null, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 186 new String [] {MediaStore.Audio.Media._ID, 187 MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ARTIST}, 188 MediaStore.Audio.Media.DATA + "=?", new String [] {path}, null) [all...] |
AlbumBrowserActivity.java | 260 mAlbumCursor.getColumnIndex(MediaStore.Audio.Albums.ARTIST)); 280 mCurrentAlbumId = mAlbumCursor.getString(mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums._ID)); 281 mCurrentAlbumName = mAlbumCursor.getString(mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums.ALBUM)); 283 mAlbumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums.ARTIST)); 374 i.putExtra(MediaStore.EXTRA_MEDIA_FOCUS, MediaStore.Audio.Albums.ENTRY_CONTENT_TYPE); 438 cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 439 new String [] { MediaStore.Audio.Media._ID}, 440 MediaStore.Audio.Media.IS_MUSIC + "=1", null, 441 MediaStore.Audio.Media.DEFAULT_SORT_ORDER); 453 MediaStore.Audio.Albums._ID [all...] |
QueryBrowserActivity.java | 103 if (path.startsWith("content://media/external/audio/media/")) { 110 } else if (path.startsWith("content://media/external/audio/albums/")) { 118 } else if (path.startsWith("content://media/external/audio/artists/")) { 136 if (focus.startsWith("audio/") && title != null) { 138 } else if (focus.equals(MediaStore.Audio.Albums.ENTRY_CONTENT_TYPE)) { 145 } else if (focus.equals(MediaStore.Audio.Artists.ENTRY_CONTENT_TYPE)) { 281 MediaStore.Audio.Media.MIME_TYPE)); 322 MediaStore.Audio.Media.MIME_TYPE, // mimetype of audio file, or "artist" or "album" 323 MediaStore.Audio.Artists.ARTIST [all...] |
MediaPlaybackService.java | 63 * Provides "background" audio playback capabilities, allowing the 125 "audio._id AS _id", // index must match IDCOLIDX below 126 MediaStore.Audio.Media.ARTIST, 127 MediaStore.Audio.Media.ALBUM, 128 MediaStore.Audio.Media.TITLE, 129 MediaStore.Audio.Media.DATA, 130 MediaStore.Audio.Media.MIME_TYPE, 131 MediaStore.Audio.Media.ALBUM_ID, 132 MediaStore.Audio.Media.ARTIST_ID, 133 MediaStore.Audio.Media.IS_PODCAST, // index must match PODCASTCOLIDX belo [all...] |
/frameworks/base/media/java/android/media/ |
RingtoneManager.java | 181 MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, 182 "\"" + MediaStore.Audio.Media.INTERNAL_CONTENT_URI + "\"", 183 MediaStore.Audio.Media.TITLE_KEY 187 DrmStore.Audio._ID, DrmStore.Audio.TITLE, 188 "\"" + DrmStore.Audio.CONTENT_URI + "\"", 189 DrmStore.Audio.TITLE + " AS " + MediaStore.Audio.Media.TITLE_KEY 193 MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE [all...] |
Ringtone.java | 47 MediaStore.Audio.Media._ID, 48 MediaStore.Audio.Media.DATA, 49 MediaStore.Audio.Media.TITLE 53 DrmStore.Audio._ID, 54 DrmStore.Audio.DATA, 55 DrmStore.Audio.TITLE
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicRetriever.java | 55 Uri uri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 60 // want to query for all audio media on external storage (e.g. SD card) 62 MediaStore.Audio.Media.IS_MUSIC + " = 1", null, null); 79 int artistColumn = cur.getColumnIndex(MediaStore.Audio.Media.ARTIST); 80 int titleColumn = cur.getColumnIndex(MediaStore.Audio.Media.TITLE); 81 int albumColumn = cur.getColumnIndex(MediaStore.Audio.Media.ALBUM); 82 int durationColumn = cur.getColumnIndex(MediaStore.Audio.Media.DURATION); 83 int idColumn = cur.getColumnIndex(MediaStore.Audio.Media._ID); 149 android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, id);
|
/development/apps/Development/src/com/android/development/ |
MediaScannerActivity.java | 33 import android.provider.MediaStore.Audio; 94 mAudioUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; 182 map.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3"); 184 map.put(Audio.Media.ARTIST, artist); 186 map.put(Audio.Media.ALBUM, albumName); 187 map.put(Audio.Media.TRACK, i + 1); 188 map.put(Audio.Media.DURATION, 4*60*1000); 189 map.put(Audio.Media.IS_MUSIC, 1); 190 map.put(Audio.Media.YEAR, baseYear + mRandom.nextInt(10));
|
/packages/apps/Music/tests/src/com/android/music/functional/ |
TestSongs.java | 125 MediaStore.Audio.Playlists.NAME 131 String whereclause = MediaStore.Audio.Playlists.NAME + " != ''"; 132 mCursor = resolver.query(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 134 MediaStore.Audio.Playlists.NAME); 149 * Verification: The count of audio.media.is_ringtone equal to 1. 161 String whereclause = MediaStore.Audio.Media.IS_RINGTONE + " = 1"; 162 mCursor = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 209 String whereclause = MediaStore.Audio.Media.DISPLAY_NAME + " = '" + 211 mCursor = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
|
TestPlaylist.java | 131 MediaStore.Audio.Playlists.NAME 138 String whereclause = MediaStore.Audio.Playlists.NAME + " = '" + playlistname +"'"; 139 mCursor = resolver.query(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, 141 MediaStore.Audio.Playlists.NAME);
|
/frameworks/base/media/java/android/mtp/ |
MtpPropertyGroup.java | 24 import android.provider.MediaStore.Audio; 128 column = Audio.AudioColumns.YEAR; 141 column = Audio.AudioColumns.DURATION; 145 column = Audio.AudioColumns.TRACK; 159 column = Audio.AudioColumns.ALBUM_ARTIST; 167 column = Audio.AudioColumns.COMPOSER; 212 c = mProvider.query(Audio.Media.getContentUri(mVolumeName), 232 Uri uri = Audio.Genres.getContentUriForAudioId(mVolumeName, id); 234 new String [] { Files.FileColumns._ID, Audio.GenresColumns.NAME }, 369 name = queryString(handle, Audio.PlaylistsColumns.NAME) [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaProvider.java | 66 import android.provider.MediaStore.Audio; 98 private static final Uri ALBUMART_URI = Uri.parse("content://media/external/audio/albumart"); 124 MediaStore.Audio.Media.MIME_TYPE, 143 MediaStore.Audio.Media.MIME_TYPE, 144 MediaStore.Audio.Artists.ARTIST, 145 MediaStore.Audio.Albums.ALBUM, 146 MediaStore.Audio.Media.TITLE, 153 MediaStore.Audio.Media.MIME_TYPE, 174 private Uri mAlbumArtBaseUri = Uri.parse("content://media/external/audio/albumart"); 217 Audio.Media.getContentUri(EXTERNAL_VOLUME), null) [all...] |
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
SoundRecorder.java | 202 static final String AUDIO_3GPP = "audio/3gpp"; 203 static final String AUDIO_AMR = "audio/amr"; 204 static final String AUDIO_ANY = "audio/*"; 261 = android.provider.MediaStore.Audio.Media.EXTRA_MAX_BYTES; 541 Uri uri = MediaStore.Audio.Playlists.Members.getContentUri("external", playlistId); 547 values.put(MediaStore.Audio.Playlists.Members.PLAY_ORDER, Integer.valueOf(base + audioId)); 548 values.put(MediaStore.Audio.Playlists.Members.AUDIO_ID, audioId); 556 Uri uri = MediaStore.Audio.Playlists.getContentUri("external"); 557 final String[] ids = new String[] { MediaStore.Audio.Playlists._ID }; 558 final String where = MediaStore.Audio.Playlists.NAME + "=?" [all...] |
/packages/apps/Mms/src/com/android/mms/model/ |
AudioModel.java | 33 import android.provider.MediaStore.Audio; 77 // of the audio, one is the media store, the other is 83 path = c.getString(c.getColumnIndexOrThrow(Audio.Media.DATA)); 85 Audio.Media.MIME_TYPE)); 138 // if the Music player app is playing audio, we should pause that so it won't 139 // interfere with us playing audio here.
|