HomeSort by relevance Sort by last modified time
    Searched defs:mCursor (Results 1 - 25 of 118) sorted by null

1 2 3 4 5

  /frameworks/base/core/java/android/content/
CursorEntityIterator.java 28 private final Cursor mCursor;
38 mCursor = cursor;
39 mCursor.moveToFirst();
63 return !mCursor.isAfterLast();
84 return getEntityAndIncrementCursor(mCursor);
98 mCursor.moveToFirst();
110 mCursor.close();
ContentQueryMap.java 36 private volatile Cursor mCursor;
64 mCursor = cursor;
65 mColumnNames = mCursor.getColumnNames();
66 mKeyColumn = mCursor.getColumnIndexOrThrow(columnNameOfKey);
91 mCursor.unregisterContentObserver(mContentObserver);
112 mCursor.registerContentObserver(mContentObserver);
131 final Cursor cursor = mCursor;
133 // If mCursor is null then it means there was a requery() in flight
134 // while another thread called close(), which nulls out mCursor.
170 mCursor.unregisterContentObserver(mContentObserver)
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SuggestionCursorWrapper.java 28 private final SuggestionCursor mCursor;
32 mCursor = cursor;
36 if (mCursor != null) {
37 mCursor.close();
42 return mCursor == null ? 0 : mCursor.getCount();
46 return mCursor == null ? 0 : mCursor.getPosition();
50 if (mCursor != null) {
51 mCursor.moveTo(pos)
    [all...]
SuggestionPosition.java 26 private final SuggestionCursor mCursor;
35 mCursor = cursor;
40 return mCursor;
48 mCursor.moveTo(mPosition);
49 return mCursor;
58 return mCursor + ":" + mPosition;
  /development/samples/NotePad/src/com/example/android/notepad/
TitleEditor.java 53 private Cursor mCursor;
85 mCursor = managedQuery(
108 // Cursor object is not null. If it is *empty*, then mCursor.getCount() == 0.
109 if (mCursor != null) {
113 mCursor.moveToFirst();
116 mText.setText(mCursor.getString(COLUMN_INDEX_TITLE));
136 // Cursor object is not null. If it is *empty*, then mCursor.getCount() == 0.
138 if (mCursor != null) {
NoteEditor.java 77 private Cursor mCursor;
208 mCursor = managedQuery(
217 // (Must be done after mCursor is initialized.)
253 * mCursor is initialized, since onCreate() always precedes onResume for any running
256 if (mCursor != null) {
258 mCursor.requery();
265 mCursor.moveToFirst();
270 int colTitleIndex = mCursor.getColumnIndex(NotePad.Notes.COLUMN_NAME_TITLE);
271 String title = mCursor.getString(colTitleIndex);
289 int colNoteIndex = mCursor.getColumnIndex(NotePad.Notes.COLUMN_NAME_NOTE)
    [all...]
  /cts/tests/tests/database/src/android/database/cts/
AbstractWindowedCursorTest.java 34 private MockAbstractWindowedCursor mCursor;
41 mCursor = new MockAbstractWindowedCursor();
47 mCursor.close();
53 mCursor.setWindow(mWindow);
56 mCursor.moveToFirst();
57 assertTrue(mCursor.isNull(COLUMN_INDEX0));
62 assertFalse(mCursor.isNull(COLUMN_INDEX0));
66 mCursor.setWindow(mWindow);
70 mCursor.moveToFirst();
71 assertFalse(mCursor.isBlob(COLUMN_INDEX0))
    [all...]
  /frameworks/base/core/java/android/database/
CursorToBulkCursorAdaptor.java 49 private CrossProcessCursor mCursor;
94 mCursor = (CrossProcessCursor)cursor;
96 mCursor = new CrossProcessCursorWrapper(cursor);
113 if (mCursor != null) {
115 mCursor.close();
116 mCursor = null;
123 if (mCursor == null) {
146 d.columnNames = mCursor.getColumnNames();
147 d.wantsAllOnMoveCalls = mCursor.getWantsAllOnMoveCalls();
148 d.count = mCursor.getCount()
    [all...]
CursorWrapper.java 29 protected final Cursor mCursor;
36 mCursor = cursor;
45 return mCursor;
49 mCursor.close();
53 return mCursor.isClosed();
57 return mCursor.getCount();
61 mCursor.deactivate();
65 return mCursor.moveToFirst();
69 return mCursor.getColumnCount();
73 return mCursor.getColumnIndex(columnName)
    [all...]
  /development/apps/Development/src/com/android/development/
DataList.java 40 mCursor = getContentResolver().query(intent.getData(), null, null, null, null);
46 if (mCursor != null) {
50 mCursor,
60 if (mCursor != null) {
61 mCursor.deactivate();
69 if (mCursor != null) {
70 mCursor.requery();
85 mCursor.moveToPosition(position);
89 String[] columnNames = mCursor.getColumnNames();
91 String str = mCursor.getString(i)
    [all...]
  /packages/apps/Music/src/com/android/music/
VideoBrowserActivity.java 56 if (mCursor == null) {
61 if (mCursor.getCount() > 0) {
71 mCursor,
82 mCursor.moveToPosition(position);
83 String type = mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Video.Media.MIME_TYPE));
103 mCursor = resolver.query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI,
110 if (mCursor != null) {
111 mCursor.close();
116 private Cursor mCursor;
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
ReorderingCursorWrapper.java 26 private final Cursor mCursor;
41 mCursor = cursor;
48 mCursor.close();
53 return mCursor.moveToPosition(mPositionMap[newPosition]);
58 return mCursor.getColumnNames();
63 return mCursor.getCount();
68 return mCursor.getDouble(column);
73 return mCursor.getFloat(column);
78 return mCursor.getInt(column);
83 return mCursor.getLong(column)
    [all...]
  /packages/apps/Gallery/src/com/android/camera/gallery/
BaseImageList.java 44 protected Cursor mCursor;
54 mCursor = createCursor();
56 if (mCursor == null) {
74 if (mCursor != null) {
75 mCursor.close();
76 mCursor = null;
109 if (mCursor == null) return null;
111 mCursor.requery();
114 return mCursor;
157 if (mCursor == null) return
    [all...]
  /development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
WeatherWidgetService.java 47 private Cursor mCursor;
62 if (mCursor != null) {
63 mCursor.close();
68 return mCursor.getCount();
75 if (mCursor.moveToPosition(position)) {
76 final int dayColIndex = mCursor.getColumnIndex(WeatherDataProvider.Columns.DAY);
77 final int tempColIndex = mCursor.getColumnIndex(
79 day = mCursor.getString(dayColIndex);
80 temp = mCursor.getInt(tempColIndex);
118 if (mCursor != null)
    [all...]
  /development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/
NotesDbAdapter.java 159 Cursor mCursor =
164 if (mCursor != null) {
165 mCursor.moveToFirst();
167 return mCursor;
  /development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/
NotesDbAdapter.java 159 Cursor mCursor =
164 if (mCursor != null) {
165 mCursor.moveToFirst();
167 return mCursor;
  /development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/
NotesDbAdapter.java 159 Cursor mCursor =
164 if (mCursor != null) {
165 mCursor.moveToFirst();
167 return mCursor;
  /development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/
NotesDbAdapter.java 159 Cursor mCursor =
164 if (mCursor != null) {
165 mCursor.moveToFirst();
167 return mCursor;
  /development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/
NotesDbAdapter.java 159 Cursor mCursor =
164 if (mCursor != null) {
165 mCursor.moveToFirst();
167 return mCursor;
  /development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/
NotesDbAdapter.java 159 Cursor mCursor =
164 if (mCursor != null) {
165 mCursor.moveToFirst();
167 return mCursor;
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowCursorAdapter.java 51 if (this.mCursor == null || views.size() == 0 ) {
86 protected Cursor mCursor;
146 mCursor = c;
164 return mCursor;
172 if (mDataValid && mCursor != null) {
173 return mCursor.getCount();
184 if (mDataValid && mCursor != null) {
185 mCursor.moveToPosition(position);
186 return mCursor;
197 if (mDataValid && mCursor != null)
    [all...]
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
FilteringCursorWrapper.java 31 private final Cursor mCursor;
46 mCursor = cursor;
73 return mCursor.getExtras();
79 mCursor.close();
84 return mCursor.moveToPosition(mPosition[newPosition]);
89 return mCursor.getColumnNames();
99 return mCursor.getDouble(column);
104 return mCursor.getFloat(column);
109 return mCursor.getInt(column);
114 return mCursor.getLong(column)
    [all...]
RootCursorWrapper.java 30 private final Cursor mCursor;
44 mCursor = cursor;
68 return mCursor.getExtras();
74 mCursor.close();
79 return mCursor.moveToPosition(newPosition);
94 return mCursor.getDouble(column);
99 return mCursor.getFloat(column);
104 return mCursor.getInt(column);
109 return mCursor.getLong(column);
114 return mCursor.getShort(column)
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/
ShortcutManager.java 48 private Cursor mCursor;
61 mCursor = mContext.getContentResolver().query(
63 mCursor.registerContentObserver(this);
73 Cursor c = mCursor;
  /frameworks/ex/common/tests/src/com/android/common/widget/
GroupingListAdapterTests.java 48 private MatrixCursor mCursor;
108 mCursor = new MatrixCursor(PROJECTION);
111 mCursor.addRow(new Object[]{mNextId, number});
118 mAdapter.changeCursor(mCursor);
128 mAdapter.changeCursor(mCursor);
137 mAdapter.changeCursor(mCursor);
149 mAdapter.changeCursor(mCursor);
160 mAdapter.changeCursor(mCursor);
170 mAdapter.changeCursor(mCursor);
184 mAdapter.changeCursor(mCursor);
    [all...]

Completed in 689 milliseconds

1 2 3 4 5