Home | History | Annotate | Download | only in music

Lines Matching refs:MediaStore

44 import android.provider.MediaStore;
45 import android.provider.MediaStore.Audio.Playlists;
139 MediaStore.Audio.Media._ID,
140 MediaStore.Audio.Media.TITLE,
141 MediaStore.Audio.Media.DATA,
142 MediaStore.Audio.Media.ALBUM,
143 MediaStore.Audio.Media.ARTIST,
144 MediaStore.Audio.Media.ARTIST_ID,
145 MediaStore.Audio.Media.DURATION
148 MediaStore.Audio.Playlists.Members._ID,
149 MediaStore.Audio.Media.TITLE,
150 MediaStore.Audio.Media.DATA,
151 MediaStore.Audio.Media.ALBUM,
152 MediaStore.Audio.Media.ARTIST,
153 MediaStore.Audio.Media.ARTIST_ID,
154 MediaStore.Audio.Media.DURATION,
155 MediaStore.Audio.Playlists.Members.PLAY_ORDER,
156 MediaStore.Audio.Playlists.Members.AUDIO_ID,
157 MediaStore.Audio.Media.IS_MUSIC
404 int keyidx = mTrackCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ARTIST_ID);
442 int idx = mTrackCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ALBUM);
450 String where = MediaStore.Audio.Media.ALBUM_ID + "='" + mAlbumId +
451 "' AND " + MediaStore.Audio.Media.ARTIST_ID + "=" +
453 MediaStore.Audio.Media.ARTIST_ID));
454 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
455 new String[] {MediaStore.Audio.Media.ALBUM}, where, null, null);
463 if (fancyName == null || fancyName.equals(MediaStore.UNKNOWN_STRING)) {
480 MediaStore.Audio.Playlists.NAME
495 MediaStore.Audio.Genres.NAME
498 ContentUris.withAppendedId(MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI, Long.valueOf(mGenre)),
528 MediaStore.Audio.Playlists.Members.moveItem(getContentResolver(),
562 MediaStore.Audio.Playlists.Members._ID);
565 Uri uri = MediaStore.Audio.Playlists.Members.getContentUri("external",
617 int titleidx = c.getColumnIndex(MediaStore.Audio.Media.TITLE);
618 int albumidx = c.getColumnIndex(MediaStore.Audio.Media.ALBUM);
619 int artistidx = c.getColumnIndex(MediaStore.Audio.Media.ARTIST);
624 if (MediaStore.UNKNOWN_STRING.equals(album) &&
625 MediaStore.UNKNOWN_STRING.equals(artist) &&
632 int ismusic_idx = c.getColumnIndex(MediaStore.Audio.Media.IS_MUSIC);
655 MediaStore.Audio.Playlists.Members.AUDIO_ID);
665 MediaStore.Audio.Media.ALBUM));
667 MediaStore.Audio.Media.ARTIST));
669 MediaStore.Audio.Media.TITLE));
739 i.setAction(MediaStore.INTENT_ACTION_MEDIA_SEARCH);
743 if (MediaStore.UNKNOWN_STRING.equals(mCurrentArtistNameForAlbum)) {
747 i.putExtra(MediaStore.EXTRA_MEDIA_ARTIST, mCurrentArtistNameForAlbum);
749 if (MediaStore.UNKNOWN_STRING.equals(mCurrentAlbumName)) {
750 i.putExtra(MediaStore.EXTRA_MEDIA_ALBUM, mCurrentAlbumName);
752 i.putExtra(MediaStore.EXTRA_MEDIA_FOCUS, "audio/*");
809 MediaStore.Audio.Playlists.Members._ID);
812 Uri uri = MediaStore.Audio.Playlists.Members.getContentUri("external",
845 MediaStore.Audio.Playlists.Members.PLAY_ORDER);
848 Uri baseUri = MediaStore.Audio.Playlists.Members.getContentUri("external",
851 String where = MediaStore.Audio.Playlists.Members._ID + "=?";
855 values.put(MediaStore.Audio.Playlists.Members.PLAY_ORDER, currentplayidx - 1);
860 values.put(MediaStore.Audio.Playlists.Members.PLAY_ORDER, currentplayidx + 1);
865 values.put(MediaStore.Audio.Playlists.Members.PLAY_ORDER, currentplayidx);
936 cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
937 new String [] { MediaStore.Audio.Media._ID},
938 MediaStore.Audio.Media.IS_MUSIC + "=1", null,
939 MediaStore.Audio.Media.DEFAULT_SORT_ORDER);
1002 mSortOrder = MediaStore.Audio.Media.TITLE_KEY;
1004 where.append(MediaStore.Audio.Media.TITLE + " != ''");
1014 String key = MediaStore.Audio.keyFor(searchWords[i]);
1022 where.append(MediaStore.Audio.Media.ARTIST_KEY + "||");
1023 where.append(MediaStore.Audio.Media.TITLE_KEY + " LIKE ? ESCAPE '\\'");
1028 mSortOrder = MediaStore.Audio.Genres.Members.DEFAULT_SORT_ORDER;
1029 ret = queryhandler.doQuery(MediaStore.Audio.Genres.Members.getContentUri("external",
1043 where.append(" AND " + MediaStore.Audio.Media.IS_PODCAST + "=1");
1044 ret = queryhandler.doQuery(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
1046 MediaStore.Audio.Media.DEFAULT_SORT_ORDER, async);
1050 where.append(" AND " + MediaStore.MediaColumns.DATE_ADDED + ">");
1052 ret = queryhandler.doQuery(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
1054 MediaStore.Audio.Media.DEFAULT_SORT_ORDER, async);
1056 mSortOrder = MediaStore.Audio.Playlists.Members.DEFAULT_SORT_ORDER;
1057 ret = queryhandler.doQuery(MediaStore.Audio.Playlists.Members.getContentUri("external",
1063 where.append(" AND " + MediaStore.Audio.Media.ALBUM_ID + "=" + mAlbumId);
1064 mSortOrder = MediaStore.Audio.Media.TRACK + ", " + mSortOrder;
1067 where.append(" AND " + MediaStore.Audio.Media.ARTIST_ID + "=" + mArtistId);
1069 where.append(" AND " + MediaStore.Audio.Media.IS_MUSIC + "=1");
1070 ret = queryhandler.doQuery(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
1104 where.append(MediaStore.Audio.Media._ID + " IN (");
1114 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
1115 mCols, where.toString(), null, MediaStore.Audio.Media._ID);
1125 int colidx = mCurrentPlaylistCursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID);
1413 mTitleIdx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media.TITLE);
1414 mArtistIdx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ARTIST);
1415 mDurationIdx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media.DURATION);
1418 MediaStore.Audio.Playlists.Members.AUDIO_ID);
1420 mAudioIdIdx = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID);
1474 if (name == null || name.equals(MediaStore.UNKNOWN_STRING)) {