Home | History | Annotate | Download | only in music

Lines Matching full:cursor

32 import android.database.Cursor;
113 i.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/track");
121 i.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/album");
161 null, // cursor
204 // close its cursor, which we do by assigning a null cursor to it. Doing this
205 // instead of closing the cursor directly keeps the framework from accessing
206 // the closed cursor later.
238 // if the query results in a null cursor, onQueryComplete() will
257 public void init(Cursor c) {
288 intent.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/album");
294 intent.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/track");
318 private Cursor getQueryCursor(AsyncQueryHandler async, String filter) {
335 Cursor ret = null;
356 protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
357 mActivity.init(cursor);
362 int layout, Cursor cursor, String[] from, int[] to) {
363 super(context, layout, cursor, from, to);
377 public void bindView(View view, Context context, Cursor cursor) {
385 DatabaseUtils.dumpCursor(cursor);
391 String mimetype = cursor.getString(cursor.getColumnIndexOrThrow(
399 String name = cursor.getString(cursor.getColumnIndexOrThrow(
409 int numalbums = cursor.getInt(cursor.getColumnIndexOrThrow("data1"));
410 int numsongs = cursor.getInt(cursor.getColumnIndexOrThrow("data2"));
419 String name = cursor.getString(cursor.getColumnIndexOrThrow(
427 name = cursor.getString(cursor
439 String name = cursor.getString(cursor.getColumnIndexOrThrow(
443 String displayname = cursor.getString(cursor.getColumnIndexOrThrow(
448 name = cursor.getString(cursor.getColumnIndexOrThrow(
457 public void changeCursor(Cursor cursor) {
458 if (mActivity.isFinishing() && cursor != null) {
459 cursor.close();
460 cursor = null;
462 if (cursor != mActivity.mQueryCursor) {
463 mActivity.mQueryCursor = cursor;
464 super.changeCursor(cursor);
468 public Cursor runQueryOnBackgroundThread(CharSequence constraint) {
475 Cursor c = mActivity.getQueryCursor(null, s);
483 private Cursor mQueryCursor;