Lines Matching defs:cursor

89     /** These are the columns in the music cursor that we are interested in. */
122 /** The current cursor on the music that is being displayed. */
130 * when done loading the initial cursor. */
133 * loading the initial cursor. */
157 * our cursor data to our list item structure, and takes care of other
216 public View newView(Context context, Cursor cursor, ViewGroup parent) {
217 View v = super.newView(context, cursor, parent);
231 public void bindView(View view, Context context, Cursor cursor) {
234 cursor.copyStringToBuffer(mTitleIdx, vh.buffer1);
237 int secs = cursor.getInt(mDurationIdx) / 1000;
247 String name = cursor.getString(mAlbumIdx);
254 name = cursor.getString(mArtistIdx);
271 final long id = cursor.getLong(mIdIdx);
274 + " playing=" + mPlayingId + " cursor=" + cursor);
288 * This method is called whenever we receive a new cursor due to
293 public void changeCursor(Cursor cursor) {
294 super.changeCursor(cursor);
295 if (DBG) Log.v(TAG, "Setting cursor to: " + cursor
298 MusicPicker.this.mCursor = cursor;
300 if (cursor != null) {
302 mIdIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID);
303 mTitleIdx = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE);
304 mArtistIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST);
305 mAlbumIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ALBUM);
306 mDurationIdx = cursor.getColumnIndex(MediaStore.Audio.Media.DURATION);
322 mIndexer = new MusicAlphabetIndexer(cursor, idx,
325 // If we have a valid indexer, but the cursor has changed since
326 // its last use, then point it to the current cursor.
328 mIndexer.setCursor(cursor);
333 // hidden) in case this is the first cursor we have gotten.
345 if (DBG) Log.v(TAG, "Getting new cursor...");
350 Cursor cursor = getCursor();
351 if (cursor == null) {
352 // No cursor, the section doesn't exist so just return 0
381 protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
384 // a new cursor for it.
386 mAdapter.changeCursor(cursor);
389 // Now that the cursor is populated again, it's possible to restore the list state
399 cursor.close();
587 * resulting cursor returned. If false, it will be done asynchronously and
628 + ") in cursor " + mCursor