/frameworks/base/core/java/android/database/ |
D | CursorWrapper.java | 33 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 …]
|
D | CursorToBulkCursorAdaptor.java | 53 private CrossProcessCursor mCursor; field in CursorToBulkCursorAdaptor 107 mCursor = (CrossProcessCursor)cursor; in CursorToBulkCursorAdaptor() 109 mCursor = new CrossProcessCursorWrapper(cursor); in CursorToBulkCursorAdaptor() 126 if (mCursor != null) { in disposeLocked() 128 mCursor.close(); in disposeLocked() 129 mCursor = null; in disposeLocked() 136 if (mCursor == null) { in throwIfCursorIsClosed() 159 d.columnNames = mCursor.getColumnNames(); in getBulkCursorDescriptor() 160 d.wantsAllOnMoveCalls = mCursor.getWantsAllOnMoveCalls(); in getBulkCursorDescriptor() 161 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 | 540 WeakReference<AbstractCursor> mCursor; field in AbstractCursor.SelfContentObserver 544 mCursor = new WeakReference<AbstractCursor>(cursor); in SelfContentObserver() 554 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/base/core/java/android/widget/ |
D | CursorAdapter.java | 59 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 …]
|
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/core/java/com/android/internal/database/ |
D | SortCursor.java | 33 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/ |
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 | 29 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()
|
D | CursorLoader.java | 58 Cursor mCursor; field in CursorLoader 113 Cursor oldCursor = mCursor; in deliverResult() 114 mCursor = cursor; in deliverResult() 161 if (mCursor != null) { in onStartLoading() 162 deliverResult(mCursor); in onStartLoading() 164 if (takeContentChanged() || mCursor == null) { in onStartLoading() 192 if (mCursor != null && !mCursor.isClosed()) { in onReset() 193 mCursor.close(); in onReset() 195 mCursor = null; in onReset() 248 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/base/core/java/com/android/internal/util/ |
D | RingBuffer.java | 36 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/compile/slang/ |
D | slang_rs_reflection_state.h | 508 …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/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/av/media/libaaudio/src/flowgraph/resampler/ |
D | PolyphaseResamplerMono.cpp | 31 if (--mCursor < 0) { in writeFrame() 32 mCursor = getNumTaps() - 1; in writeFrame() 34 float *dest = &mX[mCursor * MONO]; in writeFrame() 49 float *xFrame = &mX[mCursor * MONO]; in readFrame()
|
D | PolyphaseResamplerStereo.cpp | 31 if (--mCursor < 0) { in writeFrame() 32 mCursor = getNumTaps() - 1; in writeFrame() 34 float *dest = &mX[mCursor * STEREO]; in writeFrame() 53 float *xFrame = &mX[mCursor * STEREO]; in readFrame()
|
D | SincResamplerStereo.cpp | 33 if (--mCursor < 0) { in writeFrame() 34 mCursor = getNumTaps() - 1; in writeFrame() 36 float *dest = &mX[mCursor * STEREO]; in writeFrame() 65 float *xFrame = &mX[static_cast<size_t>(mCursor) * static_cast<size_t>(getChannelCount())]; in readFrame()
|
D | MultiChannelResampler.cpp | 111 if (--mCursor < 0) { in writeFrame() 112 mCursor = getNumTaps() - 1; in writeFrame() 114 float *dest = &mX[static_cast<size_t>(mCursor) * static_cast<size_t>(getChannelCount())]; in writeFrame()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | CallLogQueryHelperTest.java | 58 private MatrixCursor mCursor; field in CallLogQueryHelperTest 66 mCursor = new MatrixCursor(CALL_LOG_COLUMNS); in setUp() 84 mCursor.addRow(new Object[] { in testQueryIncomingCall() 100 mCursor.addRow(new Object[] { in testQueryOutgoingCall() 116 mCursor.addRow(new Object[] { in testQueryMissedCall() 132 mCursor.addRow(new Object[] { in testQueryMultipleCalls() 135 mCursor.addRow(new Object[] { in testQueryMultipleCalls() 166 return mCursor; in query()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | SomeProvider.java | 29 private Cursor mCursor; field in SomeProvider 39 return mCursor; in query() 70 mCursor = cursor; in update()
|
/frameworks/base/packages/SoundPicker/src/com/android/soundpicker/ |
D | RingtonePickerActivity.java | 84 private Cursor mCursor; field in RingtonePickerActivity 153 if (which == mCursor.getCount() + mStaticItemCount) { 226 mAdapter = new BadgedRingtoneAdapter(this, mCursor, in onCreate() 347 if (mCursor != null) { in onDestroy() 348 mCursor.close(); in onDestroy() 349 mCursor = null; in onDestroy() 403 mAdapter.changeCursor(mCursor); in requeryForAdapter() 473 mCursor = new LocalizedCursor(mRingtoneManager.getCursor(), getResources(), COLUMN_LABEL); in initRingtoneManager() 515 if (position >= mCursor.getCount() + mStaticItemCount) { in onItemSelected() 669 mTitleIndex = mCursor.getColumnIndex(columnLabel); in LocalizedCursor() [all …]
|
/frameworks/base/media/java/android/media/ |
D | RingtoneManager.java | 253 private Cursor mCursor; field in RingtoneManager 331 if (mCursor != null) { in setType() 436 if (mCursor != null && mCursor.requery()) { in getCursor() 437 return mCursor; in getCursor() 451 return mCursor = new SortCursor(ringtoneCursors.toArray(new Cursor[ringtoneCursors.size()]), in getCursor() 499 if (mCursor == null || !mCursor.moveToPosition(position)) { in getRingtoneUri() 507 return getUriFromCursor(mContext, mCursor); in getRingtoneUri()
|