/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 | 84 private Cursor mCursor; field in BluetoothPbapCallLogComposer 107 mCursor = in init() 110 if (mCursor == null) { in init() 115 if (mCursor.getCount() == 0 || !mCursor.moveToFirst()) { in init() 117 mCursor.close(); in init() 122 mCursor = null; in init() 131 if (mCursor == null || mCursor.isAfterLast()) { in createOneEntry() 138 mCursor.moveToNext(); in createOneEntry() 147 String name = mCursor.getString(CALLER_NAME_COLUMN_INDEX); in createOneCallLogEntryInternal() 148 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/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | BindWidgetTest.java | 76 private Cursor mCursor; field in BindWidgetTest 95 if (mCursor != null) { in tearDown() 96 mCursor.close(); in tearDown() 132 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testUnboundWidget_removed() 134 assertEquals(0, mCursor.getCount()); in testUnboundWidget_removed() 166 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testPendingWidget_withConfigScreen() 168 mCursor.moveToNext(); in testPendingWidget_withConfigScreen() 171 assertEquals(0, mCursor.getInt(mCursor.getColumnIndex(LauncherSettings.Favorites.RESTORED)) in testPendingWidget_withConfigScreen() 174 .getAppWidgetInfo(mCursor.getInt(mCursor.getColumnIndex( in testPendingWidget_withConfigScreen() 178 int appWidgetId = mCursor.getInt( in testPendingWidget_withConfigScreen() [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/DocumentsUI/src/com/android/documentsui/base/ |
D | FilteringCursorWrapper.java | 35 private final Cursor mCursor; field in FilteringCursorWrapper 41 mCursor = cursor; in FilteringCursorWrapper() 92 return mCursor.getExtras(); in getExtras() 98 mCursor.close(); in close() 103 return mCursor.moveToPosition(mPositions[newPosition]); in onMove() 108 return mCursor.getColumnNames(); in getColumnNames() 118 return mCursor.getDouble(column); in getDouble() 123 return mCursor.getFloat(column); in getFloat() 128 return mCursor.getInt(column); in getInt() 133 return mCursor.getLong(column); in getLong() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortingCursorWrapper.java | 37 private final Cursor mCursor; field in SortingCursorWrapper 43 mCursor = cursor; in SortingCursorWrapper() 69 final String mimeType = getCursorString(mCursor, Document.COLUMN_MIME_TYPE); in SortingCursorWrapper() 71 ids[i] = getCursorString(mCursor, Document.COLUMN_DOCUMENT_ID); in SortingCursorWrapper() 76 mCursor, Document.COLUMN_DISPLAY_NAME); in SortingCursorWrapper() 83 longValues[i] = getLastModified(mCursor); in SortingCursorWrapper() 86 longValues[i] = getCursorLong(mCursor, Document.COLUMN_SIZE); in SortingCursorWrapper() 108 mCursor.close(); in close() 113 return mCursor.moveToPosition(mPosition[newPosition]); in onMove() 118 return mCursor.getColumnNames(); in getColumnNames() [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/DocumentsUI/src/com/android/documentsui/roots/ |
D | RootCursorWrapper.java | 37 private final Cursor mCursor; field in RootCursorWrapper 56 mCursor = cursor; in RootCursorWrapper() 85 Bundle extras = mCursor.getExtras(); in getExtras() 98 mCursor.close(); in close() 103 return mCursor.moveToPosition(newPosition); in onMove() 118 return mCursor.getDouble(column); in getDouble() 123 return mCursor.getFloat(column); in getFloat() 131 return mCursor.getInt(column); in getInt() 137 return mCursor.getLong(column); in getLong() 142 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/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryResult.java | 41 private Cursor mCursor; field in DirectoryResult 47 FileUtils.closeQuietly(mCursor); in close() 59 return mCursor; in getCursor() 72 mCursor = cursor; in setCursor() 74 if (mCursor == null) { in setCursor() 85 int cursorCount = mCursor.getCount(); in loadDataFromCursor() 89 mCursor.moveToPosition(-1); in loadDataFromCursor() 91 if (!mCursor.moveToNext()) { in loadDataFromCursor() 99 modelIds[pos] = ModelId.build(mCursor); in loadDataFromCursor() 101 getCursorString(mCursor, DocumentsContract.Document.COLUMN_DISPLAY_NAME)); in loadDataFromCursor()
|
/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/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/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionarySettings.java | 66 private Cursor mCursor; field in UserDictionarySettings 140 R.layout.user_dictionary_item, mCursor, in createAdapter() 203 if (null == mCursor) return null; in getWord() 204 mCursor.moveToPosition(position); in getWord() 206 if (mCursor.isAfterLast()) return null; in getWord() 208 return mCursor.getString( in getWord() 209 mCursor.getColumnIndexOrThrow(UserDictionary.Words.WORD)); in getWord() 213 if (null == mCursor) return null; in getShortcut() 214 mCursor.moveToPosition(position); in getShortcut() 216 if (mCursor.isAfterLast()) return null; 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/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 …]
|
D | ADNList.java | 74 protected Cursor mCursor = null; field in ADNList 98 if (mCursor != null) { in onStop() 99 mCursor.deactivate(); in onStop() 154 mCursorAdapter.changeCursor(mCursor); in setAdapter() 167 mCursor, COLUMN_NAMES, VIEW_NAMES); in newAdapter() 210 mCursor = c; in onQueryComplete()
|
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/ |
D | AsyncQueryLiveData.java | 91 private final Cursor mCursor; field in AsyncQueryLiveData.CursorRunnable 95 mCursor = cursor; in CursorRunnable() 104 T entity = mCursor == null ? null : convertToEntity(mCursor); in run() 113 if (!mIsActive && mCursor != null) { in closeCursorIfNecessary() 114 mCursor.close(); in closeCursorIfNecessary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/apn/ |
D | ApnEditorTest.java | 100 private Cursor mCursor; field in ApnEditorTest 386 final ApnData data = new ApnData(APN_URI, mCursor); in testApnData_invalidIntegerType_throwsInvalidTypeException() 397 final ApnData data = new ApnData(APN_URI, mCursor); in testApnData_invalidStringType_throwsInvalidTypeException() 408 final ApnData data = new ApnData(APN_URI, mCursor); in testApnData_validIntegerType_returnCorrectValue() 414 assertThat(val).isEqualTo(mCursor.getInt(CURSOR_INTEGER_INDEX)); in testApnData_validIntegerType_returnCorrectValue() 421 final ApnData data = new ApnData(APN_URI, mCursor); in testApnData_validStringType_returnCorrectValue() 427 assertThat(str).isEqualTo(mCursor.getString(CURSOR_STRING_INDEX)); in testApnData_validStringType_returnCorrectValue() 519 doReturn(2).when(mCursor).getColumnCount(); in initCursor() 520 doReturn(2).when(mCursor).getInt(CURSOR_INTEGER_INDEX); in initCursor() 521 doReturn("str").when(mCursor).getString(CURSOR_STRING_INDEX); in initCursor() [all …]
|
/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()
|
/packages/apps/Car/Settings/src/com/android/car/settings/sound/ |
D | RingtonePickerPreferenceController.java | 64 private LocalizedCursor mCursor; field in RingtonePickerPreferenceController 128 mCursor = new LocalizedCursor(mRingtoneManager.getCursor(), getContext().getResources(), in onCreateInternal() 160 mCursor.moveToFirst(); in populateRingtones() 161 while (!mCursor.isAfterLast()) { in populateRingtones() 162 String label = mCursor.getString(mCursor.getColumnIndex(COLUMN_LABEL)); in populateRingtones() 165 mCursor.moveToNext(); in populateRingtones() 304 mTitleIndex = mCursor.getColumnIndex(columnLabel); in LocalizedCursor() 341 final String defaultName = mCursor.getString(columnIndex); in getString()
|
/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()
|