Home
last modified time | relevance | path

Searched refs:mCursor (Results 1 – 25 of 34) 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.java49 private CrossProcessCursor mCursor; field in CursorToBulkCursorAdaptor
94 mCursor = (CrossProcessCursor)cursor; in CursorToBulkCursorAdaptor()
96 mCursor = new CrossProcessCursorWrapper(cursor); in CursorToBulkCursorAdaptor()
113 if (mCursor != null) { in disposeLocked()
115 mCursor.close(); in disposeLocked()
116 mCursor = null; in disposeLocked()
123 if (mCursor == null) { in throwIfCursorIsClosed()
146 d.columnNames = mCursor.getColumnNames(); in getBulkCursorDescriptor()
147 d.wantsAllOnMoveCalls = mCursor.getWantsAllOnMoveCalls(); in getBulkCursorDescriptor()
148 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/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/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 …]
DSimpleCursorAdapter.java310 if (mCursor != null) { in findColumns()
317 mFrom[i] = mCursor.getColumnIndexOrThrow(from[i]); in findColumns()
/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.java35 private final Cursor mCursor; field in SortingCursorWrapper
42 mCursor = cursor; in SortingCursorWrapper()
101 return mCursor.getExtras(); in getExtras()
107 mCursor.close(); in close()
112 return mCursor.moveToPosition(mPosition[newPosition]); in onMove()
117 return mCursor.getColumnNames(); in getColumnNames()
122 return mCursor.getCount(); in getCount()
127 return mCursor.getDouble(column); in getDouble()
132 return mCursor.getFloat(column); in getFloat()
137 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.java52 Cursor mCursor; field in CursorLoader
106 Cursor oldCursor = mCursor; in deliverResult()
107 mCursor = cursor; in deliverResult()
154 if (mCursor != null) { in onStartLoading()
155 deliverResult(mCursor); in onStartLoading()
157 if (takeContentChanged() || mCursor == null) { in onStartLoading()
185 if (mCursor != null && !mCursor.isClosed()) { in onReset()
186 mCursor.close(); in onReset()
188 mCursor = null; in onReset()
241 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/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
414 mCursor = cursor; in init()
436 mCursor = mContentResolver.query( in initInterCursorCreationPart()
438 if (mCursor == null) { in initInterCursorCreationPart()
447 if (mCursor.getCount() == 0 || !mCursor.moveToFirst()) { in initInterMainPart()
450 String.format("mCursor has an error (getCount: %d): ", mCursor.getCount())); in initInterMainPart()
455 mIdColumn = mCursor.getColumnIndex(Contacts._ID); in initInterMainPart()
485 final String vcard = createOneEntryInternal(mCursor.getString(mIdColumn), in createOneEntry()
487 if (!mCursor.moveToNext()) { in createOneEntry()
614 if (!mCursorSuppliedFromOutside && mCursor != null) { in closeCursorIfAppropriate()
[all …]
/frameworks/base/policy/src/com/android/internal/policy/impl/
DShortcutManager.java48 private Cursor mCursor; field in ShortcutManager
61 mCursor = mContext.getContentResolver().query( in observe()
63 mCursor.registerContentObserver(this); in observe()
73 Cursor c = mCursor; in updateShortcuts()
/frameworks/base/media/java/android/media/
DRingtoneManager.java213 private Cursor mCursor; field in RingtoneManager
259 if (mCursor != null) { in setType()
361 if (mCursor != null && mCursor.requery()) { in getCursor()
362 return mCursor; in getCursor()
368 return mCursor = new SortCursor(new Cursor[] { internalCursor, mediaCursor }, in getCursor()
397 if (mCursor == null || !mCursor.moveToPosition(position)) { in getRingtoneUri()
401 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 …]
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java783 public Cursor mCursor; field in AlertController.AlertParams
847 if ((mItems != null) || (mCursor != null) || (mAdapter != null)) { in apply()
874 if (mCursor == null) { in createListView()
890 adapter = new CursorAdapter(mContext, mCursor, false) { in createListView()
919 if (mCursor == null) { in createListView()
924 mCursor, new String[]{mLabelColumn}, new int[]{R.id.text1}); in createListView()

12