/frameworks/base/core/java/android/database/ |
D | CursorWrapper.java | 29 protected final Cursor mCursor; field in CursorWrapper 36 mCursor = cursor; in CursorWrapper() 45 return mCursor; in getWrappedCursor() 49 mCursor.close(); in close() 53 return mCursor.isClosed(); in isClosed() 57 return mCursor.getCount(); in getCount() 61 mCursor.deactivate(); in deactivate() 65 return mCursor.moveToFirst(); in moveToFirst() 69 return mCursor.getColumnCount(); in getColumnCount() 73 return mCursor.getColumnIndex(columnName); in getColumnIndex() [all …]
|
D | CursorToBulkCursorAdaptor.java | 46 private CrossProcessCursor mCursor; field in CursorToBulkCursorAdaptor 91 mCursor = (CrossProcessCursor)cursor; in CursorToBulkCursorAdaptor() 93 mCursor = new CrossProcessCursorWrapper(cursor); in CursorToBulkCursorAdaptor() 110 if (mCursor != null) { in disposeLocked() 112 mCursor.close(); in disposeLocked() 113 mCursor = null; in disposeLocked() 120 if (mCursor == null) { in throwIfCursorIsClosed() 143 d.columnNames = mCursor.getColumnNames(); in getBulkCursorDescriptor() 144 d.wantsAllOnMoveCalls = mCursor.getWantsAllOnMoveCalls(); in getBulkCursorDescriptor() 145 d.count = mCursor.getCount(); in getBulkCursorDescriptor() [all …]
|
D | MergeCursor.java | 45 mCursor = cursors[0]; in MergeCursor() 71 mCursor = null; in onMove() 80 mCursor = mCursors[i]; in onMove() 88 if (mCursor != null) { in onMove() 89 boolean ret = mCursor.moveToPosition(newPosition - cursorStartPos); in onMove() 98 return mCursor.getString(column); in getString() 104 return mCursor.getShort(column); in getShort() 110 return mCursor.getInt(column); in getInt() 116 return mCursor.getLong(column); in getLong() 122 return mCursor.getFloat(column); in getFloat() [all …]
|
D | CrossProcessCursorWrapper.java | 47 if (mCursor instanceof CrossProcessCursor) { in fillWindow() 48 final CrossProcessCursor crossProcessCursor = (CrossProcessCursor)mCursor; in fillWindow() 53 DatabaseUtils.cursorFillWindow(mCursor, position, window); in fillWindow() 58 if (mCursor instanceof CrossProcessCursor) { in getWindow() 59 final CrossProcessCursor crossProcessCursor = (CrossProcessCursor)mCursor; in getWindow() 68 if (mCursor instanceof CrossProcessCursor) { in onMove() 69 final CrossProcessCursor crossProcessCursor = (CrossProcessCursor)mCursor; in onMove()
|
D | AbstractCursor.java | 444 WeakReference<AbstractCursor> mCursor; field in AbstractCursor.SelfContentObserver 448 mCursor = new WeakReference<AbstractCursor>(cursor); in SelfContentObserver() 458 AbstractCursor cursor = mCursor.get(); in onChange()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
D | BaseCursorPagerAdapter.java | 41 protected Cursor mCursor; field in BaseCursorPagerAdapter 73 if (mCursor != null && moveCursorTo(position)) { in getItem() 74 return getItem(mContext, mCursor, position); in getItem() 81 if (mCursor != null) { in getCount() 82 return mCursor.getCount(); in getCount() 90 if (mCursor == null) { in instantiateItem() 96 rowId = mCursor.getString(mRowIDColumn).hashCode(); in instantiateItem() 131 return mCursor != null; in isDataValid() 138 return mCursor; in getCursor() 145 if (mCursor != null && moveCursorTo(position)) { in getDataItem() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | CursorObjectAdapter.java | 25 private Cursor mCursor; field in CursorObjectAdapter 58 if (cursor == mCursor) { in changeCursor() 61 if (mCursor != null) { in changeCursor() 62 mCursor.close(); in changeCursor() 64 mCursor = cursor; in changeCursor() 76 if (cursor == mCursor) { in swapCursor() 77 return mCursor; in swapCursor() 79 Cursor oldCursor = mCursor; in swapCursor() 80 mCursor = cursor; in swapCursor() 97 return mCursor; in getCursor() [all …]
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | CursorAdapter.java | 55 protected Cursor mCursor; field in CursorAdapter 171 mCursor = c; in init() 194 return mCursor; in getCursor() 201 if (mDataValid && mCursor != null) { in getCount() 202 return mCursor.getCount(); in getCount() 212 if (mDataValid && mCursor != null) { in getItem() 213 mCursor.moveToPosition(position); in getItem() 214 return mCursor; in getItem() 224 if (mDataValid && mCursor != null) { in getItemId() 225 if (mCursor.moveToPosition(position)) { in getItemId() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | CursorAdapter.java | 53 protected Cursor mCursor; field in CursorAdapter 169 mCursor = c; in init() 192 return mCursor; in getCursor() 199 if (mDataValid && mCursor != null) { in getCount() 200 return mCursor.getCount(); in getCount() 210 if (mDataValid && mCursor != null) { in getItem() 211 mCursor.moveToPosition(position); in getItem() 212 return mCursor; in getItem() 222 if (mDataValid && mCursor != null) { in getItemId() 223 if (mCursor.moveToPosition(position)) { in getItemId() [all …]
|
D | CursorTreeAdapter.java | 402 private Cursor mCursor; field in CursorTreeAdapter.MyCursorHelper 410 mCursor = cursor; in MyCursorHelper() 422 return mCursor; in getCursor() 426 if (mDataValid && mCursor != null) { in getCount() 427 return mCursor.getCount(); in getCount() 434 if (mDataValid && mCursor != null) { in getId() 435 if (mCursor.moveToPosition(position)) { in getId() 436 return mCursor.getLong(mRowIDColumn); in getId() 446 if (mDataValid && (mCursor != null) && mCursor.moveToPosition(position)) { in moveTo() 447 return mCursor; in moveTo() [all …]
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | RootCursorWrapper.java | 30 private final Cursor mCursor; field in RootCursorWrapper 44 mCursor = cursor; in RootCursorWrapper() 68 return mCursor.getExtras(); in getExtras() 74 mCursor.close(); in close() 79 return mCursor.moveToPosition(newPosition); in onMove() 94 return mCursor.getDouble(column); in getDouble() 99 return mCursor.getFloat(column); in getFloat() 104 return mCursor.getInt(column); in getInt() 109 return mCursor.getLong(column); in getLong() 114 return mCursor.getShort(column); in getShort() [all …]
|
D | FilteringCursorWrapper.java | 33 private final Cursor mCursor; field in FilteringCursorWrapper 48 mCursor = cursor; in FilteringCursorWrapper() 73 return mCursor.getExtras(); in getExtras() 79 mCursor.close(); in close() 84 return mCursor.moveToPosition(mPosition[newPosition]); in onMove() 89 return mCursor.getColumnNames(); in getColumnNames() 99 return mCursor.getDouble(column); in getDouble() 104 return mCursor.getFloat(column); in getFloat() 109 return mCursor.getInt(column); in getInt() 114 return mCursor.getLong(column); in getLong() [all …]
|
D | SortingCursorWrapper.java | 37 private final Cursor mCursor; field in SortingCursorWrapper 44 mCursor = cursor; in SortingCursorWrapper() 103 return mCursor.getExtras(); in getExtras() 109 mCursor.close(); in close() 114 return mCursor.moveToPosition(mPosition[newPosition]); in onMove() 119 return mCursor.getColumnNames(); in getColumnNames() 124 return mCursor.getCount(); in getCount() 129 return mCursor.getDouble(column); in getDouble() 134 return mCursor.getFloat(column); in getFloat() 139 return mCursor.getInt(column); in getInt() [all …]
|
/frameworks/base/core/java/com/android/internal/database/ |
D | SortCursor.java | 31 private Cursor mCursor; // updated in onMove field in SortCursor 72 mCursor = null; in SortCursor() 78 if (mCursor == null || current.compareToIgnoreCase(smallest) < 0) { in SortCursor() 80 mCursor = mCursors[j]; in SortCursor() 121 mCursor = mCursors[which]; in onMove() 122 if (mCursor == null) { in onMove() 126 mCursor.moveToPosition(mCurRowNumCache[cache_entry][which]); in onMove() 131 mCursor = null; in onMove() 172 mCursor = mCursors[smallestIdx]; in onMove() 187 return mCursor.getString(column); in getString() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContentQueryMap.java | 36 private volatile Cursor mCursor; field in ContentQueryMap 64 mCursor = cursor; in ContentQueryMap() 65 mColumnNames = mCursor.getColumnNames(); in ContentQueryMap() 66 mKeyColumn = mCursor.getColumnIndexOrThrow(columnNameOfKey); in ContentQueryMap() 91 mCursor.unregisterContentObserver(mContentObserver); in setKeepUpdated() 112 mCursor.registerContentObserver(mContentObserver); in setKeepUpdated() 131 final Cursor cursor = mCursor; in requery() 170 mCursor.unregisterContentObserver(mContentObserver); in close() 173 mCursor.close(); in close() 174 mCursor = null; in close() [all …]
|
D | CursorEntityIterator.java | 28 private final Cursor mCursor; field in CursorEntityIterator 38 mCursor = cursor; in CursorEntityIterator() 39 mCursor.moveToFirst(); in CursorEntityIterator() 63 return !mCursor.isAfterLast(); in hasNext() 84 return getEntityAndIncrementCursor(mCursor); in next() 98 mCursor.moveToFirst(); in reset() 110 mCursor.close(); in close()
|
D | CursorLoader.java | 51 Cursor mCursor; field in CursorLoader 105 Cursor oldCursor = mCursor; in deliverResult() 106 mCursor = cursor; in deliverResult() 153 if (mCursor != null) { in onStartLoading() 154 deliverResult(mCursor); in onStartLoading() 156 if (takeContentChanged() || mCursor == null) { in onStartLoading() 184 if (mCursor != null && !mCursor.isClosed()) { in onReset() 185 mCursor.close(); in onReset() 187 mCursor = null; in onReset() 240 writer.print(prefix); writer.print("mCursor="); writer.println(mCursor); in dump()
|
/frameworks/ex/common/java/com/android/common/widget/ |
D | GroupingListAdapter.java | 60 private Cursor mCursor; field in GroupingListAdapter 153 if (cursor == mCursor) { in changeCursor() 157 if (mCursor != null) { in changeCursor() 158 mCursor.unregisterContentObserver(mChangeObserver); in changeCursor() 159 mCursor.unregisterDataSetObserver(mDataSetObserver); in changeCursor() 160 mCursor.close(); in changeCursor() 162 mCursor = cursor; in changeCursor() 179 return mCursor; in getCursor() 190 if (mCursor == null) { in findGroups() 194 addGroups(mCursor); in findGroups() [all …]
|
/frameworks/support/v4/java/android/support/v4/content/ |
D | CursorLoader.java | 44 Cursor mCursor; field in CursorLoader 69 Cursor oldCursor = mCursor; in deliverResult() 70 mCursor = cursor; in deliverResult() 117 if (mCursor != null) { in onStartLoading() 118 deliverResult(mCursor); in onStartLoading() 120 if (takeContentChanged() || mCursor == null) { in onStartLoading() 148 if (mCursor != null && !mCursor.isClosed()) { in onReset() 149 mCursor.close(); in onReset() 151 mCursor = null; in onReset() 204 writer.print(prefix); writer.print("mCursor="); writer.println(mCursor); in dump()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/database/ |
D | CursorMapper.java | 24 private Cursor mCursor; field in CursorMapper 44 if (cursor != mCursor) { in convert() 45 mCursor = cursor; in convert() 46 bindColumns(mCursor); in convert() 48 return bind(mCursor); in convert()
|
/frameworks/ex/common/tests/src/com/android/common/widget/ |
D | GroupingListAdapterTests.java | 48 private MatrixCursor mCursor; field in GroupingListAdapterTests 108 mCursor = new MatrixCursor(PROJECTION); in buildCursor() 111 mCursor.addRow(new Object[]{mNextId, number}); in buildCursor() 118 mAdapter.changeCursor(mCursor); in testGroupingWithoutGroups() 128 mAdapter.changeCursor(mCursor); in testGroupingWithCollapsedGroupAtTheBeginning() 137 mAdapter.changeCursor(mCursor); in testGroupingWithExpandedGroupAtTheBeginning() 149 mAdapter.changeCursor(mCursor); in testGroupingWithExpandCollapseCycleAtTheBeginning() 160 mAdapter.changeCursor(mCursor); in testGroupingWithCollapsedGroupInTheMiddle() 170 mAdapter.changeCursor(mCursor); in testGroupingWithExpandedGroupInTheMiddle() 184 mAdapter.changeCursor(mCursor); in testGroupingWithCollapsedGroupAtTheEnd() [all …]
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardComposer.java | 141 private Cursor mCursor; field in VCardComposer 379 mCursor = cursor; in init() 401 mCursor = mContentResolver.query( in initInterCursorCreationPart() 403 if (mCursor == null) { in initInterCursorCreationPart() 412 if (mCursor.getCount() == 0 || !mCursor.moveToFirst()) { in initInterMainPart() 415 String.format("mCursor has an error (getCount: %d): ", mCursor.getCount())); in initInterMainPart() 420 mIdColumn = mCursor.getColumnIndex(Contacts._ID); in initInterMainPart() 450 final String vcard = createOneEntryInternal(mCursor.getString(mIdColumn), in createOneEntry() 452 if (!mCursor.moveToNext()) { in createOneEntry() 579 if (!mCursorSuppliedFromOutside && mCursor != null) { in closeCursorIfAppropriate() [all …]
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | ShortcutManager.java | 47 private Cursor mCursor; field in ShortcutManager 60 mCursor = mContext.getContentResolver().query( in observe() 62 mCursor.registerContentObserver(this); in observe() 72 Cursor c = mCursor; in updateShortcuts()
|
/frameworks/base/media/java/android/media/ |
D | RingtoneManager.java | 212 private Cursor mCursor; field in RingtoneManager 258 if (mCursor != null) { in setType() 360 if (mCursor != null && mCursor.requery()) { in getCursor() 361 return mCursor; in getCursor() 367 return mCursor = new SortCursor(new Cursor[] { internalCursor, mediaCursor }, in getCursor() 396 if (mCursor == null || !mCursor.moveToPosition(position)) { in getRingtoneUri() 400 return getUriFromCursor(mCursor); in getRingtoneUri()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabasePerformanceTests.java | 159 private Cursor mCursor; field in DatabasePerformanceTests.ContactReadingTest1 162 mCursor = c.getContentResolver().query(People.CONTENT_URI, PEOPLE_PROJECTION, null, in setUp() 167 mCursor.close(); in tearDown() 180 while (mCursor.moveToNext()) { in run() 182 mCursor.getLong(0); in run() 183 mCursor.getLong(1); in run() 184 mCursor.getLong(2); in run() 185 mCursor.getString(3); in run() 186 mCursor.getString(4); in run() 187 mCursor.getString(5); in run() [all …]
|