Lines Matching refs:mTrackCursor
90 private Cursor mTrackCursor; field in TrackBrowserActivity
216 mTrackCursor = mAdapter.getCursor(); in onServiceConnected()
223 if (mTrackCursor != null) { in onServiceConnected()
224 init(mTrackCursor, false); in onServiceConnected()
309 if (mTrackCursor != null) { in onResume()
368 if (mTrackCursor == null) { in init()
407 int keyidx = mTrackCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ARTIST_ID); in init()
408 mTrackCursor.moveToFirst(); in init()
409 while (! mTrackCursor.isAfterLast()) { in init()
410 String artist = mTrackCursor.getString(keyidx); in init()
412 setSelection(mTrackCursor.getPosition()); in init()
415 mTrackCursor.moveToNext(); in init()
444 int numresults = mTrackCursor != null ? mTrackCursor.getCount() : 0; in setTitle()
446 mTrackCursor.moveToFirst(); in setTitle()
447 int idx = mTrackCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ALBUM); in setTitle()
448 fancyName = mTrackCursor.getString(idx); in setTitle()
457 mTrackCursor.getLong(mTrackCursor.getColumnIndexOrThrow( in setTitle()
464 fancyName = mTrackCursor.getString(idx); in setTitle()
524 if (mTrackCursor instanceof NowPlayingCursor) {
526 NowPlayingCursor c = (NowPlayingCursor) mTrackCursor;
563 if (mTrackCursor instanceof NowPlayingCursor) { in removePlaylistItem()
564 ((NowPlayingCursor)mTrackCursor).removeItem(which); in removePlaylistItem()
566 int colidx = mTrackCursor.getColumnIndexOrThrow( in removePlaylistItem()
568 mTrackCursor.moveToPosition(which); in removePlaylistItem()
569 long id = mTrackCursor.getLong(colidx); in removePlaylistItem()
642 ismusic = mTrackCursor.getInt(ismusic_idx) != 0; in isMusic()
659 mTrackCursor.moveToPosition(mSelectedPosition); in onCreateContextMenu()
661 int id_idx = mTrackCursor.getColumnIndexOrThrow( in onCreateContextMenu()
663 mSelectedId = mTrackCursor.getLong(id_idx); in onCreateContextMenu()
668 if (isMusic(mTrackCursor)) { in onCreateContextMenu()
671 mCurrentAlbumName = mTrackCursor.getString(mTrackCursor.getColumnIndexOrThrow( in onCreateContextMenu()
673 mCurrentArtistNameForAlbum = mTrackCursor.getString(mTrackCursor.getColumnIndexOrThrow( in onCreateContextMenu()
675 mCurrentTrackName = mTrackCursor.getString(mTrackCursor.getColumnIndexOrThrow( in onCreateContextMenu()
686 MusicUtils.playAll(this, mTrackCursor, position); in onContextItemSelected()
796 int curcount = mTrackCursor.getCount(); in removeItem()
816 ((NowPlayingCursor)mTrackCursor).removeItem(curpos); in removeItem()
821 int colidx = mTrackCursor.getColumnIndexOrThrow( in removeItem()
823 mTrackCursor.moveToPosition(curpos); in removeItem()
824 long id = mTrackCursor.getLong(colidx); in removeItem()
839 int curcount = mTrackCursor.getCount();
845 if (mTrackCursor instanceof NowPlayingCursor) {
846 NowPlayingCursor c = (NowPlayingCursor) mTrackCursor;
857 int colidx = mTrackCursor.getColumnIndexOrThrow(
859 mTrackCursor.moveToPosition(curpos);
860 int currentplayidx = mTrackCursor.getInt(colidx);
869 wherearg[0] = mTrackCursor.getString(0);
871 mTrackCursor.moveToPrevious();
874 wherearg[0] = mTrackCursor.getString(0);
876 mTrackCursor.moveToNext();
879 wherearg[0] = mTrackCursor.getString(0);
887 if (mTrackCursor.getCount() == 0) {
893 if (mTrackCursor instanceof NowPlayingCursor) {
902 MusicUtils.playAll(this, mTrackCursor, position);
939 MusicUtils.playAll(this, mTrackCursor);
998 long [] list = MusicUtils.getSongListForCursor(mTrackCursor);
1539 if (cursor != mActivity.mTrackCursor) {
1540 mActivity.mTrackCursor = cursor;