/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() 50 mCursor.close(); in close() 55 return mCursor.isClosed(); in isClosed() 60 return mCursor.getCount(); in getCount() 66 mCursor.deactivate(); in deactivate() 71 return mCursor.moveToFirst(); in moveToFirst() 76 return mCursor.getColumnCount(); in getColumnCount() 81 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 | 478 WeakReference<AbstractCursor> mCursor; field in AbstractCursor.SelfContentObserver 482 mCursor = new WeakReference<AbstractCursor>(cursor); in SelfContentObserver() 492 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/base/core/java/android/widget/ |
D | CursorAdapter.java | 56 protected Cursor mCursor; field in CursorAdapter 177 mCursor = c; in init() 227 return mCursor; in getCursor() 234 if (mDataValid && mCursor != null) { in getCount() 235 return mCursor.getCount(); in getCount() 245 if (mDataValid && mCursor != null) { in getItem() 246 mCursor.moveToPosition(position); in getItem() 247 return mCursor; in getItem() 257 if (mDataValid && mCursor != null) { in getItemId() 258 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/support/core-ui/java/android/support/v4/widget/ |
D | CursorAdapter.java | 61 protected Cursor mCursor; field in CursorAdapter 183 mCursor = c; in init() 207 return mCursor; in getCursor() 215 if (mDataValid && mCursor != null) { in getCount() 216 return mCursor.getCount(); in getCount() 227 if (mDataValid && mCursor != null) { in getItem() 228 mCursor.moveToPosition(position); in getItem() 229 return mCursor; in getItem() 240 if (mDataValid && mCursor != null) { in getItemId() 241 if (mCursor.moveToPosition(position)) { in getItemId() [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 | 34 private final Cursor mCursor; field in FilteringCursorWrapper 49 mCursor = cursor; in FilteringCursorWrapper() 76 return mCursor.getExtras(); in getExtras() 82 mCursor.close(); in close() 87 return mCursor.moveToPosition(mPosition[newPosition]); in onMove() 92 return mCursor.getColumnNames(); in getColumnNames() 102 return mCursor.getDouble(column); in getDouble() 107 return mCursor.getFloat(column); in getFloat() 112 return mCursor.getInt(column); in getInt() 117 return mCursor.getLong(column); in getLong() [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/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/support/core-utils/java/android/support/v4/content/ |
D | CursorLoader.java | 46 Cursor mCursor; field in CursorLoader 101 Cursor oldCursor = mCursor; in deliverResult() 102 mCursor = cursor; in deliverResult() 149 if (mCursor != null) { in onStartLoading() 150 deliverResult(mCursor); in onStartLoading() 152 if (takeContentChanged() || mCursor == null) { in onStartLoading() 180 if (mCursor != null && !mCursor.isClosed()) { in onReset() 181 mCursor.close(); in onReset() 183 mCursor = null; in onReset() 236 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/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | Model.java | 56 @Nullable private Cursor mCursor; field in Model 87 mCursor = null; in update() 105 mCursor = result.cursor; in update() 106 mCursorCount = mCursor.getCount(); in update() 118 final Bundle extras = mCursor.getExtras(); in update() 156 mCursor.moveToPosition(-1); in updateModelData() 158 if (!mCursor.moveToNext()) { in updateModelData() 168 if (mCursor instanceof MergeCursor) { in updateModelData() 169 mIds[pos] = getCursorString(mCursor, RootCursorWrapper.COLUMN_AUTHORITY) + "|" + in updateModelData() 170 getCursorString(mCursor, Document.COLUMN_DOCUMENT_ID); in updateModelData() [all …]
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardComposer.java | 141 private Cursor mCursor; field in VCardComposer 393 mCursor = cursor; in initWithCallback() 416 mCursor = mContentResolver.query( in initInterCursorCreationPart() 418 if (mCursor == null) { in initInterCursorCreationPart() 427 if (mCursor.getCount() == 0 || !mCursor.moveToFirst()) { in initInterMainPart() 430 String.format("mCursor has an error (getCount: %d): ", mCursor.getCount())); in initInterMainPart() 435 mIdColumn = mCursor.getColumnIndex(Data.CONTACT_ID); in initInterMainPart() 437 mIdColumn = mCursor.getColumnIndex(Contacts._ID); in initInterMainPart() 468 final String vcard = createOneEntryInternal(mCursor.getLong(mIdColumn), in createOneEntry() 470 if (!mCursor.moveToNext()) { in createOneEntry() [all …]
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
D | AlertDialogCursorTest.java | 72 private Cursor mCursor; field in AlertDialogCursorTest 121 if (mCursor != null) { in tearDown() 127 mCursor.close(); in tearDown() 128 mCursor = null; in tearDown() 186 mCursor = mDatabase.query("test", mProjectionWithoutChecked, in testSimpleItemsFromCursor() 188 assertNotNull(mCursor); in testSimpleItemsFromCursor() 194 .setCursor(mCursor, mockClickListener, "text"); in testSimpleItemsFromCursor() 285 mCursor = mDatabase.query("test", mProjectionWithChecked, in testMultiChoiceItemsFromCursor() 287 assertNotNull(mCursor); in testMultiChoiceItemsFromCursor() 292 .setMultiChoiceItems(mCursor, CHECKED_COLUMN_NAME, TEXT_COLUMN_NAME, in testMultiChoiceItemsFromCursor() [all …]
|
/frameworks/base/media/java/android/media/ |
D | RingtoneManager.java | 230 private Cursor mCursor; field in RingtoneManager 277 if (mCursor != null) { in setType() 382 if (mCursor != null && mCursor.requery()) { in getCursor() 383 return mCursor; in getCursor() 389 return mCursor = new SortCursor(new Cursor[] { internalCursor, mediaCursor }, in getCursor() 418 if (mCursor == null || !mCursor.moveToPosition(position)) { in getRingtoneUri() 422 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 …]
|