/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionCursorWrapper.java | 28 private final SuggestionCursor mCursor; field in SuggestionCursorWrapper 32 mCursor = cursor; in SuggestionCursorWrapper() 36 if (mCursor != null) { in close() 37 mCursor.close(); in close() 42 return mCursor == null ? 0 : mCursor.getCount(); in getCount() 46 return mCursor == null ? 0 : mCursor.getPosition(); in getPosition() 50 if (mCursor != null) { in moveTo() 51 mCursor.moveTo(pos); in moveTo() 56 if (mCursor != null) { in moveToNext() 57 return mCursor.moveToNext(); in moveToNext() [all …]
|
D | CursorBackedSuggestionCursor.java | 37 protected final Cursor mCursor; field in CursorBackedSuggestionCursor 67 mCursor = cursor; in CursorBackedSuggestionCursor() 93 if (mCursor != null) { in close() 95 mCursor.close(); in close() 114 if (mCursor == null) return 0; in getCount() 116 return mCursor.getCount(); in getCount() 129 if (!mCursor.moveToPosition(pos)) { in moveTo() 143 return mCursor.moveToNext(); in moveToNext() 156 return mCursor.getPosition(); in getPosition() 247 if (mCursor == null) return -1; in getColumnIndex() [all …]
|
D | SuggestionPosition.java | 26 private final SuggestionCursor mCursor; field in SuggestionPosition 35 mCursor = cursor; in SuggestionPosition() 40 return mCursor; in getCursor() 48 mCursor.moveTo(mPosition); in current() 49 return mCursor; in current() 58 return mCursor + ":" + mPosition; in toString()
|
D | SuggestionCursorBackedCursor.java | 60 private final SuggestionCursor mCursor; field in SuggestionCursorBackedCursor 64 mCursor = cursor; in SuggestionCursorBackedCursor() 70 mCursor.close(); in close() 75 Collection<String> extraColumns = mCursor.getExtraColumns(); in getColumnNames() 90 return mCursor.getCount(); in getCount() 94 mCursor.moveTo(getPosition()); in get() 95 return mCursor; in get()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapCallLogComposer.java | 83 private Cursor mCursor; field in BluetoothPbapCallLogComposer 104 mCursor = in init() 107 if (mCursor == null) { in init() 112 if (mCursor.getCount() == 0 || !mCursor.moveToFirst()) { in init() 114 mCursor.close(); in init() 119 mCursor = null; in init() 128 if (mCursor == null || mCursor.isAfterLast()) { in createOneEntry() 135 mCursor.moveToNext(); in createOneEntry() 144 String name = mCursor.getString(CALLER_NAME_COLUMN_INDEX); in createOneCallLogEntryInternal() 145 String number = mCursor.getString(NUMBER_COLUMN_INDEX); in createOneCallLogEntryInternal() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CursorRecyclerAdapter.java | 51 protected Cursor mCursor; field in CursorRecyclerAdapter 121 mCursor = c; in init() 148 return mCursor; in getCursor() 153 if (mDataValid && mCursor != null) { in getItemCount() 154 return mCursor.getCount(); in getItemCount() 164 if (mDataValid && mCursor != null) { in getItem() 165 mCursor.moveToPosition(position); in getItem() 166 return mCursor; in getItem() 177 if (mDataValid && mCursor != null) { in getItemId() 178 if (mCursor.moveToPosition(position)) { in getItemId() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ReorderingCursorWrapper.java | 26 private final Cursor mCursor; field in ReorderingCursorWrapper 41 mCursor = cursor; in ReorderingCursorWrapper() 48 mCursor.close(); in close() 53 return mCursor.moveToPosition(mPositionMap[newPosition]); in onMove() 58 return mCursor.getColumnNames(); in getColumnNames() 63 return mCursor.getCount(); in getCount() 68 return mCursor.getDouble(column); in getDouble() 73 return mCursor.getFloat(column); in getFloat() 78 return mCursor.getInt(column); in getInt() 83 return mCursor.getLong(column); in getLong() [all …]
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListItemViewTest.java | 46 private FakeCursor mCursor; field in ConversationListItemViewTest 55 mCursor = TestDataFactory.getConversationListCursor(); in setUp() 135 mCursor.moveToPosition(messageIndex); in testBindUnread() 136 assertFalse(isRead(mCursor, messageIndex)); in testBindUnread() 137 view.bind(mCursor, mockHost); in testBindUnread() 138 verifyContent(view, mCursor, messageIndex); in testBindUnread() 145 mCursor.moveToPosition(messageIndex); in testBindRead() 146 assertTrue(isRead(mCursor, messageIndex)); in testBindRead() 147 view.bind(mCursor, mockHost); in testBindRead() 148 verifyContent(view, mCursor, messageIndex); in testBindRead() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | BindWidgetTest.java | 75 private Cursor mCursor; field in BindWidgetTest 94 if (mCursor != null) { in tearDown() 95 mCursor.close(); in tearDown() 131 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testUnboundWidget_removed() 133 assertEquals(0, mCursor.getCount()); in testUnboundWidget_removed() 165 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testPendingWidget_withConfigScreen() 167 mCursor.moveToNext(); in testPendingWidget_withConfigScreen() 170 assertEquals(0, mCursor.getInt(mCursor.getColumnIndex(LauncherSettings.Favorites.RESTORED)) in testPendingWidget_withConfigScreen() 173 .getAppWidgetInfo(mCursor.getInt(mCursor.getColumnIndex( in testPendingWidget_withConfigScreen() 188 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testPendingWidget_notRestored_removed() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortingCursorWrapper.java | 36 private final Cursor mCursor; field in SortingCursorWrapper 42 mCursor = cursor; in SortingCursorWrapper() 68 final String mimeType = getCursorString(mCursor, Document.COLUMN_MIME_TYPE); in SortingCursorWrapper() 70 ids[i] = getCursorString(mCursor, Document.COLUMN_DOCUMENT_ID); in SortingCursorWrapper() 75 mCursor, Document.COLUMN_DISPLAY_NAME); in SortingCursorWrapper() 82 longValues[i] = getLastModified(mCursor); in SortingCursorWrapper() 85 longValues[i] = getCursorLong(mCursor, Document.COLUMN_SIZE); in SortingCursorWrapper() 107 mCursor.close(); in close() 112 return mCursor.moveToPosition(mPosition[newPosition]); in onMove() 117 return mCursor.getColumnNames(); in getColumnNames() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
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 …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | RootCursorWrapper.java | 33 private final Cursor mCursor; field in RootCursorWrapper 48 mCursor = cursor; in RootCursorWrapper() 72 Bundle extras = mCursor.getExtras(); in getExtras() 85 mCursor.close(); in close() 90 return mCursor.moveToPosition(newPosition); in onMove() 105 return mCursor.getDouble(column); in getDouble() 110 return mCursor.getFloat(column); in getFloat() 115 return mCursor.getInt(column); in getInt() 120 return mCursor.getLong(column); in getLong() 125 return mCursor.getShort(column); in getShort() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
D | BaseWidgetFactory.java | 59 protected Cursor mCursor; field in BaseWidgetFactory 90 if (mCursor != null && !mCursor.isClosed()) { in onDestroy() 91 mCursor.close(); in onDestroy() 92 mCursor = null; in onDestroy() 103 if (mCursor != null) { in onDataSetChanged() 104 mCursor.close(); in onDataSetChanged() 105 mCursor = null; in onDataSetChanged() 109 mCursor = doQuery(); in onDataSetChanged() 127 if (mCursor == null) { in getCount() 137 mShouldShowViewMore = count < mCursor.getCount(); in getCount() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/content/ |
D | ObjectCursorLoader.java | 48 ObjectCursor<T> mCursor; field in ObjectCursorLoader 113 final Cursor oldCursor = mCursor; in deliverResult() 114 mCursor = cursor; in deliverResult() 134 if (mCursor != null) { in onStartLoading() 135 deliverResult(mCursor); in onStartLoading() 137 if (takeContentChanged() || mCursor == null) { in onStartLoading() 165 if (mCursor != null && !mCursor.isClosed()) { in onReset() 166 mCursor.close(); in onReset() 168 mCursor = null; in onReset() 181 writer.print(prefix); writer.print("mCursor="); writer.println(mCursor); in dump()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | BaseImageList.java | 44 protected Cursor mCursor; field in BaseImageList 54 mCursor = createCursor(); in BaseImageList() 56 if (mCursor == null) { in BaseImageList() 74 if (mCursor != null) { in close() 75 mCursor.close(); in close() 76 mCursor = null; in close() 109 if (mCursor == null) return null; in getCursor() 111 mCursor.requery(); in getCursor() 114 return mCursor; in getCursor() 157 if (mCursor == null) return; in invalidateCursor() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/ |
D | UserDictionarySettings.java | 66 private Cursor mCursor; field in UserDictionarySettings 139 R.layout.user_dictionary_item, mCursor, in createAdapter() 202 if (null == mCursor) return null; in getWord() 203 mCursor.moveToPosition(position); in getWord() 205 if (mCursor.isAfterLast()) return null; in getWord() 207 return mCursor.getString( in getWord() 208 mCursor.getColumnIndexOrThrow(UserDictionary.Words.WORD)); in getWord() 212 if (null == mCursor) return null; in getShortcut() 213 mCursor.moveToPosition(position); in getShortcut() 215 if (mCursor.isAfterLast()) return null; in getShortcut() [all …]
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionarySettings.java | 66 private Cursor mCursor; field in UserDictionarySettings 139 R.layout.user_dictionary_item, mCursor, in createAdapter() 202 if (null == mCursor) return null; in getWord() 203 mCursor.moveToPosition(position); in getWord() 205 if (mCursor.isAfterLast()) return null; in getWord() 207 return mCursor.getString( in getWord() 208 mCursor.getColumnIndexOrThrow(UserDictionary.Words.WORD)); in getWord() 212 if (null == mCursor) return null; in getShortcut() 213 mCursor.moveToPosition(position); in getShortcut() 215 if (mCursor.isAfterLast()) return null; in getShortcut() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
D | UserDictionarySettings.java | 104 private Cursor mCursor; field in UserDictionarySettings 148 mCursor = createCursor(locale); in onActivityCreated() 201 return new MyAdapter(getActivity(), R.layout.user_dictionary_item, mCursor, in createAdapter() 261 if (null == mCursor) return null; in getWord() 262 mCursor.moveToPosition(position); in getWord() 264 if (mCursor.isAfterLast()) return null; in getWord() 266 return mCursor.getString( in getWord() 267 mCursor.getColumnIndexOrThrow(UserDictionary.Words.WORD)); in getWord() 272 if (null == mCursor) return null; in getShortcut() 273 mCursor.moveToPosition(position); in getShortcut() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
D | ApnEditorActivity.java | 137 private Cursor mCursor; field in ApnEditorActivity.ApnEditorFragment 211 mCursor = mDatabase.query(ApnDatabase.APN_TABLE, sProjection, selection, in onActivityCreated() 219 if (mCursor == null) { in onActivityCreated() 223 mCursor.moveToFirst(); in onActivityCreated() 234 if (mCursor != null) { in onDestroy() 235 mCursor.close(); in onDestroy() 236 mCursor = null; in onDestroy() 282 mName.setText(mCursor.getString(NAME_INDEX)); in fillUi() 283 mMmsProxy.setText(mCursor.getString(MMSPROXY_INDEX)); in fillUi() 284 mMmsPort.setText(mCursor.getString(MMSPORT_INDEX)); in fillUi() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | Model.java | 71 private @Nullable Cursor mCursor; field in Model 101 mCursor = null; in reset() 127 mCursor = result.cursor; in update() 128 mCursorCount = mCursor.getCount(); in update() 133 final Bundle extras = mCursor.getExtras(); in update() 155 mCursor.moveToPosition(-1); in updateModelData() 157 if (!mCursor.moveToNext()) { in updateModelData() 164 mIds[pos] = ModelId.build(mCursor); in updateModelData() 165 mFileNames.add(getCursorString(mCursor, Document.COLUMN_DISPLAY_NAME)); in updateModelData() 188 if (!mCursor.moveToPosition(pos)) { in getItem() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | SimContacts.java | 113 mCursor.moveToPosition(-1); in run() 114 while (!mCanceled && mCursor.moveToNext()) { in run() 115 actuallyImportOneSimContact(mCursor, resolver, mAccount); in run() 213 if (mCursor.moveToPosition(position)) { in importOneSimContact() 214 if (actuallyImportOneSimContact(mCursor, resolver, mAccount)){ in importOneSimContact() 254 return new SimpleCursorAdapter(this, R.layout.sim_import_list_entry, mCursor, in newAdapter() 288 item.setVisible(mCursor != null && mCursor.getCount() > 0); in onPrepareOptionsMenu() 306 if (mCursor == null) { in onOptionsItemSelected() 317 mProgressDialog.setMax(mCursor.getCount()); in onOptionsItemSelected() 364 if (mCursor != null && mCursor.moveToPosition(getSelectedItemPosition())) { in onKeyDown() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | ApnEditorTest.java | 97 private Cursor mCursor; field in ApnEditorTest 389 final ApnData data = new ApnData(mApnUri, mCursor); in testApnData_invalidIntegerType_throwsInvalidTypeException() 400 final ApnData data = new ApnData(mApnUri, mCursor); in testApnData_invalidStringType_throwsInvalidTypeException() 411 final ApnData data = new ApnData(mApnUri, mCursor); in testApnData_validIntegerType_returnCorrectValue() 417 assertThat(val).isEqualTo(mCursor.getInt(CURSOR_INTEGER_INDEX)); in testApnData_validIntegerType_returnCorrectValue() 424 final ApnData data = new ApnData(mApnUri, mCursor); in testApnData_validStringType_returnCorrectValue() 430 assertThat(str).isEqualTo(mCursor.getString(CURSOR_STRING_INDEX)); in testApnData_validStringType_returnCorrectValue() 467 doReturn(2).when(mCursor).getColumnCount(); in initCursor() 468 doReturn(2).when(mCursor).getInt(CURSOR_INTEGER_INDEX); in initCursor() 469 doReturn("str").when(mCursor).getString(CURSOR_STRING_INDEX); in initCursor() [all …]
|
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/ |
D | AsyncQueryLiveData.java | 85 private final Cursor mCursor; field in AsyncQueryLiveData.CursorRunnable 89 mCursor = cursor; in CursorRunnable() 98 T entity = mCursor == null ? null : convertToEntity(mCursor); in run() 107 if (!mIsActive && mCursor != null) { in closeCursorIfNecessary() 108 mCursor.close(); in closeCursorIfNecessary()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | SyncCursorPair.java | 370 private Cursor mCursor; field in SyncCursorPair.LocalCursorIterator 381 mCursor = mDatabase.query( in LocalCursorIterator() 399 if (mCursor != null && mCursor.moveToNext()) { in next() 400 return getLocalDatabaseMessage(mCursor); in next() 407 return (mCursor == null ? 0 : mCursor.getCount()); in getCount() 412 return (mCursor == null ? 0 : mCursor.getPosition()); in getPosition() 417 if (mCursor != null) { in close() 418 mCursor.close(); in close() 419 mCursor = null; in close()
|
/packages/services/Telephony/src/com/android/phone/settings/fdn/ |
D | FdnList.java | 220 if (mCursor.moveToPosition(position)) { in editSelected() 221 String name = mCursor.getString(NAME_COLUMN); in editSelected() 222 String number = mCursor.getString(NUMBER_COLUMN); in editSelected() 236 if (mCursor.moveToPosition(position)) { in deleteSelected() 237 String name = mCursor.getString(NAME_COLUMN); in deleteSelected() 238 String number = mCursor.getString(NUMBER_COLUMN); in deleteSelected() 252 if (mCursor.moveToPosition(position)) { in dialSelected() 253 String number = mCursor.getString(NUMBER_COLUMN); in dialSelected()
|