Lines Matching refs:mCursor
121 private Cursor mCursor; field in MediaPlaybackService
202 if (mCursor != null) {
203 mCursor.close();
204 mCursor = null;
207 mCursor = getCursorForId(mPlayList[mPlayPos]);
390 if (mCursor != null) { in onDestroy()
391 mCursor.close(); in onDestroy()
392 mCursor = null; in onDestroy()
869 mCursor.close(); in addToPlayList()
870 mCursor = null; in addToPlayList()
1024 if (mCursor != null) { in openCurrentAndNext()
1025 mCursor.close(); in openCurrentAndNext()
1026 mCursor = null; in openCurrentAndNext()
1034 mCursor = getCursorForId(mPlayList[mPlayPos]); in openCurrentAndNext()
1036 if (mCursor != null && mCursor.getCount() != 0 && in openCurrentAndNext()
1038 mCursor.getLong(IDCOLIDX))) { in openCurrentAndNext()
1043 if (mCursor != null) { in openCurrentAndNext()
1044 mCursor.close(); in openCurrentAndNext()
1045 mCursor = null; in openCurrentAndNext()
1060 mCursor = getCursorForId(mPlayList[mPlayPos]); in openCurrentAndNext()
1109 if (mCursor == null) { in open()
1126 mCursor = resolver.query(uri, mCursorCols, where, selectionArgs, null); in open()
1127 if (mCursor != null) { in open()
1128 if (mCursor.getCount() == 0) { in open()
1129 mCursor.close(); in open()
1130 mCursor = null; in open()
1132 mCursor.moveToNext(); in open()
1135 mPlayList[0] = mCursor.getLong(IDCOLIDX); in open()
1227 if (mCursor != null) { in stop()
1228 mCursor.close(); in stop()
1229 mCursor = null; in stop()
1462 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, mCursor.getLong(IDCOLIDX)); in saveBookmarkIfNeeded()
1612 if (mCursor != null) { in removeTracksInternal()
1613 mCursor.close(); in removeTracksInternal()
1614 mCursor = null; in removeTracksInternal()
1747 if (mCursor == null) { in getArtistName()
1750 return mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ARTIST)); in getArtistName()
1756 if (mCursor == null) { in getArtistId()
1759 return mCursor.getLong(mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ARTIST_ID)); in getArtistId()
1765 if (mCursor == null) { in getAlbumName()
1768 return mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ALBUM)); in getAlbumName()
1774 if (mCursor == null) { in getAlbumId()
1777 return mCursor.getLong(mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ALBUM_ID)); in getAlbumId()
1783 if (mCursor == null) { in getTrackName()
1786 return mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.TITLE)); in getTrackName()
1792 if (mCursor == null) { in isPodcast()
1795 return (mCursor.getInt(PODCASTCOLIDX) > 0); in isPodcast()
1801 if (mCursor == null) { in getBookmark()
1804 return mCursor.getLong(BOOKMARKCOLIDX); in getBookmark()