Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/database/
DCursorWrapper.java33 protected final Cursor mCursor; field in CursorWrapper
40 mCursor = cursor; in CursorWrapper()
49 return mCursor; in getWrappedCursor()
54 mCursor.close(); in close()
59 return mCursor.isClosed(); in isClosed()
64 return mCursor.getCount(); in getCount()
70 mCursor.deactivate(); in deactivate()
75 return mCursor.moveToFirst(); in moveToFirst()
80 return mCursor.getColumnCount(); in getColumnCount()
85 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.java533 WeakReference<AbstractCursor> mCursor; field in AbstractCursor.SelfContentObserver
537 mCursor = new WeakReference<AbstractCursor>(cursor); in SelfContentObserver()
547 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.java59 protected Cursor mCursor; field in CursorAdapter
184 mCursor = c; in init()
234 return mCursor; in getCursor()
241 if (mDataValid && mCursor != null) { in getCount()
242 return mCursor.getCount(); in getCount()
252 if (mDataValid && mCursor != null) { in getItem()
253 mCursor.moveToPosition(position); in getItem()
254 return mCursor; in getItem()
264 if (mDataValid && mCursor != null) { in getItemId()
265 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 …]
DSuggestionsAdapter.java495 View v = newView(mContext, mCursor, parent); in getView()
519 final View v = newDropDownView(context, mCursor, parent); in getDropDownView()
/frameworks/base/core/java/com/android/internal/database/
DSortCursor.java33 private Cursor mCursor; // updated in onMove field in SortCursor
76 mCursor = null; in SortCursor()
82 if (mCursor == null || current.compareToIgnoreCase(smallest) < 0) { in SortCursor()
84 mCursor = mCursors[j]; in SortCursor()
125 mCursor = mCursors[which]; in onMove()
126 if (mCursor == null) { in onMove()
130 mCursor.moveToPosition(mCurRowNumCache[cache_entry][which]); in onMove()
135 mCursor = null; in onMove()
176 mCursor = mCursors[smallestIdx]; in onMove()
191 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.java29 private final Cursor mCursor; field in CursorEntityIterator
40 mCursor = cursor; in CursorEntityIterator()
41 mCursor.moveToFirst(); in CursorEntityIterator()
65 return !mCursor.isAfterLast(); in hasNext()
86 return getEntityAndIncrementCursor(mCursor); in next()
100 mCursor.moveToFirst(); in reset()
112 mCursor.close(); in close()
DCursorLoader.java57 Cursor mCursor; field in CursorLoader
112 Cursor oldCursor = mCursor; in deliverResult()
113 mCursor = cursor; in deliverResult()
160 if (mCursor != null) { in onStartLoading()
161 deliverResult(mCursor); in onStartLoading()
163 if (takeContentChanged() || mCursor == null) { in onStartLoading()
191 if (mCursor != null && !mCursor.isClosed()) { in onReset()
192 mCursor.close(); in onReset()
194 mCursor = null; in onReset()
247 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/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/base/core/java/com/android/internal/util/
DRingBuffer.java36 private long mCursor = 0; field in RingBuffer
45 return (int) Math.min(mBuffer.length, (long) mCursor); in size()
56 mCursor = 0; in clear()
60 mBuffer[indexOf(mCursor++)] = t; in append()
69 final int nextSlotIdx = indexOf(mCursor++); in getNextSlot()
91 long inCursor = mCursor - 1; in toArray()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardComposer.java141 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/compile/slang/
Dslang_rs_reflection_state.h508 …ArrayWithCursor() : mState(S_Initial), mMembers(nullptr), mCapacity(0), mSize(0), mCursor(~size_t(… in ArrayWithCursor()
524 slangAssert((mState == S_Collecting) && (mCursor + 1 == mSize) && (mSize < mCapacity)); in CollectNext()
526 return mMembers[++mCursor]; in CollectNext()
530 slangAssert((mState == S_Collecting) && (mCursor + 1 == mSize) && (mSize == mCapacity)); in BeginUsing()
532 mCursor = ~size_t(0); in BeginUsing()
537 slangAssert((mState == S_Using) && (mCursor + 1 < mSize)); in UseNext()
538 return mMembers[++mCursor]; in UseNext()
543 return mCursor + 1 == mSize; in isFinished()
550 slangAssert(mCursor < mSize); in Current()
551 return mMembers[mCursor]; in Current()
[all …]
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
DSequencePusher.java48 private int mCursor = 0; field in SequencePusher
72 Log.d(TAG, "Next step: " + mCursor); in next()
76 switch (mCursor) { in next()
138 mCursor++; in next()
139 if (mCursor > 15) { in next()
140 mCursor = 0; in next()
/frameworks/base/media/java/android/media/
DRingtoneManager.java248 private Cursor mCursor; field in RingtoneManager
326 if (mCursor != null) { in setType()
431 if (mCursor != null && mCursor.requery()) { in getCursor()
432 return mCursor; in getCursor()
446 return mCursor = new SortCursor(ringtoneCursors.toArray(new Cursor[ringtoneCursors.size()]), in getCursor()
492 if (mCursor == null || !mCursor.moveToPosition(position)) { in getRingtoneUri()
496 return getUriFromCursor(mContext, mCursor); in getRingtoneUri()
/frameworks/av/media/libaaudio/examples/loopback/src/
DLoopbackAnalyzer.h106 mX[mCursor] = input; in filter()
108 int xIndex = mCursor + FILTER_TAP_NUM; in filter()
114 if (++mCursor >= FILTER_TAP_NUM) { in filter()
115 mCursor = 0; in filter()
152 int32_t mCursor = 0; variable
/frameworks/base/core/java/android/app/
DAlertDialog.java799 P.mCursor = cursor; in setCursor()
879 P.mCursor = cursor; in setMultiChoiceItems()
929 P.mCursor = cursor; in setSingleChoiceItems()
DActivity.java887 mCursor = cursor; in ManagedCursor()
892 private final Cursor mCursor; field in Activity.ManagedCursor
2539 c.mCursor.close(); in onDestroy()
3182 if (mc.mCursor == c) { in stopManagingCursor()
7910 if (!mc.mCursor.requery()) { in performRestart()
7915 + mc.mCursor); in performRestart()
8050 mc.mCursor.deactivate(); in performStop()
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java1046 public Cursor mCursor; field in AlertController.AlertParams
1115 if ((mItems != null) || (mCursor != null) || (mAdapter != null)) { in apply()
1144 if (mCursor == null) { in createListView()
1160 adapter = new CursorAdapter(mContext, mCursor, false) { in createListView()
1195 if (mCursor != null) { in createListView()
1196 adapter = new SimpleCursorAdapter(mContext, layout, mCursor, in createListView()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt1270 Landroid/app/Activity$ManagedCursor;->mCursor:Landroid/database/Cursor;
13049 Landroid/content/ContentQueryMap;->mCursor:Landroid/database/Cursor;
13198 Landroid/content/CursorEntityIterator;->mCursor:Landroid/database/Cursor;
13200 Landroid/content/CursorLoader;->mCursor:Landroid/database/Cursor;
17154 Landroid/database/AbstractCursor$SelfContentObserver;->mCursor:Ljava/lang/ref/WeakReference;
17218 Landroid/database/CursorToBulkCursorAdaptor;->mCursor:Landroid/database/CrossProcessCursor;
17314 Landroid/database/MergeCursor;->mCursor:Landroid/database/Cursor;
81003 Landroid/widget/CursorTreeAdapter$MyCursorHelper;->mCursor:Landroid/database/Cursor;