Home
last modified time | relevance | path

Searched refs:mCursor (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/core/java/android/database/
DCursorWrapper.java29 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 …]
DCursorToBulkCursorAdaptor.java46 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 …]
DMergeCursor.java45 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 …]
DCrossProcessCursorWrapper.java47 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()
DAbstractCursor.java444 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/
DBaseCursorPagerAdapter.java41 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/
DCursorObjectAdapter.java25 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/
DCursorAdapter.java55 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/
DCursorAdapter.java53 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 …]
DCursorTreeAdapter.java402 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/
DRootCursorWrapper.java30 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 …]
DFilteringCursorWrapper.java33 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 …]
DSortingCursorWrapper.java37 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/
DSortCursor.java31 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/
DContentQueryMap.java36 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 …]
DCursorEntityIterator.java28 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()
DCursorLoader.java51 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/
DGroupingListAdapter.java60 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/
DCursorLoader.java44 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/
DCursorMapper.java24 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/
DGroupingListAdapterTests.java48 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/
DVCardComposer.java141 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/
DShortcutManager.java47 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/
DRingtoneManager.java212 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/
DDatabasePerformanceTests.java159 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 …]

12