/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SlicesIndexerTest.java | 88 assertThat(cursor.getString(cursor.getColumnIndex(IndexColumns.KEY))).isEqualTo(newKey); in testAlreadyIndexed_doesNotIndexAgain() 89 assertThat(cursor.getString(cursor.getColumnIndex(IndexColumns.TITLE))) in testAlreadyIndexed_doesNotIndexAgain() 120 assertThat(cursor.getString(cursor.getColumnIndex(IndexColumns.KEY))) in testInsertSliceData_nonPublicSlice_mockDataInserted() 122 assertThat(cursor.getString(cursor.getColumnIndex(IndexColumns.TITLE))) in testInsertSliceData_nonPublicSlice_mockDataInserted() 125 cursor.getString(cursor.getColumnIndex(IndexColumns.FRAGMENT))) in testInsertSliceData_nonPublicSlice_mockDataInserted() 128 cursor.getColumnIndex(IndexColumns.SCREENTITLE))).isEqualTo(SCREEN_TITLE); in testInsertSliceData_nonPublicSlice_mockDataInserted() 130 cursor.getString(cursor.getColumnIndex(IndexColumns.KEYWORDS))) in testInsertSliceData_nonPublicSlice_mockDataInserted() 133 cursor.getInt(cursor.getColumnIndex(IndexColumns.ICON_RESOURCE))) in testInsertSliceData_nonPublicSlice_mockDataInserted() 136 cursor.getString(cursor.getColumnIndex(IndexColumns.CONTROLLER))) in testInsertSliceData_nonPublicSlice_mockDataInserted() 138 assertThat(cursor.getInt(cursor.getColumnIndex(IndexColumns.SLICE_TYPE))) in testInsertSliceData_nonPublicSlice_mockDataInserted() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | MetadataHandler.java | 50 final int localeColumn = results.getColumnIndex(MetadataDbHelper.LOCALE_COLUMN); in makeMetadataObject() 51 final int typeColumn = results.getColumnIndex(MetadataDbHelper.TYPE_COLUMN); in makeMetadataObject() 53 results.getColumnIndex(MetadataDbHelper.DESCRIPTION_COLUMN); in makeMetadataObject() 54 final int idIndex = results.getColumnIndex(MetadataDbHelper.WORDLISTID_COLUMN); in makeMetadataObject() 55 final int updateIndex = results.getColumnIndex(MetadataDbHelper.DATE_COLUMN); in makeMetadataObject() 56 final int fileSizeIndex = results.getColumnIndex(MetadataDbHelper.FILESIZE_COLUMN); in makeMetadataObject() 58 results.getColumnIndex(MetadataDbHelper.RAW_CHECKSUM_COLUMN); in makeMetadataObject() 59 final int checksumIndex = results.getColumnIndex(MetadataDbHelper.CHECKSUM_COLUMN); in makeMetadataObject() 60 final int retryCountIndex = results.getColumnIndex(MetadataDbHelper.RETRY_COUNT_COLUMN); in makeMetadataObject() 62 results.getColumnIndex(MetadataDbHelper.LOCAL_FILENAME_COLUMN); in makeMetadataObject() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContent.java | 326 mMessageColId = c.getColumnIndex(BluetoothMapContract.MessageColumns._ID); in setMessageColumns() 327 mMessageColDate = c.getColumnIndex(BluetoothMapContract.MessageColumns.DATE); in setMessageColumns() 328 mMessageColSubject = c.getColumnIndex(BluetoothMapContract.MessageColumns.SUBJECT); in setMessageColumns() 329 mMessageColFolder = c.getColumnIndex(BluetoothMapContract.MessageColumns.FOLDER_ID); in setMessageColumns() 330 mMessageColRead = c.getColumnIndex(BluetoothMapContract.MessageColumns.FLAG_READ); in setMessageColumns() 331 mMessageColSize = c.getColumnIndex(BluetoothMapContract.MessageColumns.MESSAGE_SIZE); in setMessageColumns() 333 c.getColumnIndex(BluetoothMapContract.MessageColumns.FROM_LIST); in setMessageColumns() 334 mMessageColToAddress = c.getColumnIndex(BluetoothMapContract.MessageColumns.TO_LIST); in setMessageColumns() 336 c.getColumnIndex(BluetoothMapContract.MessageColumns.FLAG_ATTACHMENT); in setMessageColumns() 338 c.getColumnIndex(BluetoothMapContract.MessageColumns.ATTACHMENT_SIZE); in setMessageColumns() [all …]
|
D | BluetoothMapContentObserver.java | 569 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.CONVO_ID); in setConvoColunms() 570 mContactColName = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NAME); in setConvoColunms() 572 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NICKNAME); in setConvoColunms() 573 mContactColBtUid = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.X_BT_UID); in setConvoColunms() 575 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.CHAT_STATE); in setConvoColunms() 576 mContactColUci = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.UCI); in setConvoColunms() 578 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NICKNAME); in setConvoColunms() 580 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.LAST_ACTIVE); in setConvoColunms() 581 mContactColName = c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.NAME); in setConvoColunms() 583 c.getColumnIndex(BluetoothMapContract.ConvoContactColumns.PRESENCE_STATE); in setConvoColunms() [all …]
|
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/ |
D | Contact.java | 236 int accountNameColumn = cursor.getColumnIndex(ContactsContract.RawContacts.ACCOUNT_NAME); in fromCursor() 237 int lookupKeyColumn = cursor.getColumnIndex(ContactsContract.Data.LOOKUP_KEY); in fromCursor() 253 int mimetypeColumn = cursor.getColumnIndex(ContactsContract.Data.MIMETYPE); in fromCursor() 279 int contactIdColumn = cursor.getColumnIndex(ContactsContract.RawContacts.CONTACT_ID); in loadBasicInfo() 280 int rawContactIdColumn = cursor.getColumnIndex(ContactsContract.Data.RAW_CONTACT_ID); in loadBasicInfo() 281 int accountNameColumn = cursor.getColumnIndex(ContactsContract.RawContacts.ACCOUNT_NAME); in loadBasicInfo() 282 int displayNameColumn = cursor.getColumnIndex(ContactsContract.Data.DISPLAY_NAME); in loadBasicInfo() 283 int displayNameAltColumn = cursor.getColumnIndex( in loadBasicInfo() 285 int phoneBookLabelColumn = cursor.getColumnIndex(PHONEBOOK_LABEL); in loadBasicInfo() 286 int phoneBookLabelAltColumn = cursor.getColumnIndex(PHONEBOOK_LABEL_ALT); in loadBasicInfo() [all …]
|
D | PhoneNumber.java | 55 int typeColumn = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE); in fromCursor() 56 int labelColumn = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.LABEL); in fromCursor() 57 int numberColumn = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER); in fromCursor() 58 int rawDataIdColumn = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone._ID); in fromCursor() 59 int dataVersionColumn = cursor.getColumnIndex( in fromCursor() 64 int isPrimaryColumn = cursor.getColumnIndex( in fromCursor() 66 int accountNameColumn = cursor.getColumnIndex(ContactsContract.RawContacts.ACCOUNT_NAME); in fromCursor() 67 int accountTypeColumn = cursor.getColumnIndex(ContactsContract.RawContacts.ACCOUNT_TYPE); in fromCursor()
|
D | PhoneCallLog.java | 80 int idColumn = cursor.getColumnIndex(CallLog.Calls._ID); in fromCursor() 81 int numberColumn = cursor.getColumnIndex(CallLog.Calls.NUMBER); in fromCursor() 82 int dateColumn = cursor.getColumnIndex(CallLog.Calls.DATE); in fromCursor() 83 int callTypeColumn = cursor.getColumnIndex(CallLog.Calls.TYPE); in fromCursor() 84 int accountNameColumn = cursor.getColumnIndex(CallLog.Calls.PHONE_ACCOUNT_ID); in fromCursor()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastCursorAdapter.java | 88 int plmnColumn = cursor.getColumnIndex(Telephony.CellBroadcasts.PLMN); in createFromCursor() 96 int lacColumn = cursor.getColumnIndex(Telephony.CellBroadcasts.LAC); in createFromCursor() 104 int cidColumn = cursor.getColumnIndex(Telephony.CellBroadcasts.CID); in createFromCursor() 114 int etwsWarningTypeColumn = cursor.getColumnIndex( in createFromCursor() 124 int cmasMessageClassColumn = cursor.getColumnIndex( in createFromCursor() 130 int cmasCategoryColumn = cursor.getColumnIndex( in createFromCursor() 139 int cmasResponseTypeColumn = cursor.getColumnIndex( in createFromCursor() 148 int cmasSeverityColumn = cursor.getColumnIndex( in createFromCursor() 157 int cmasUrgencyColumn = cursor.getColumnIndex( in createFromCursor() 166 int cmasCertaintyColumn = cursor.getColumnIndex( in createFromCursor() [all …]
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/util/ |
D | SmsUtils.java | 41 int threadIdIndex = cursor.getColumnIndex(Sms.THREAD_ID); in parseSms() 42 int recipientsIndex = cursor.getColumnIndex(Sms.ADDRESS); in parseSms() 43 int bodyIndex = cursor.getColumnIndex(Sms.BODY); in parseSms() 44 int subscriptionIdIndex = cursor.getColumnIndex(Sms.SUBSCRIPTION_ID); in parseSms() 45 int dateIndex = cursor.getColumnIndex(Sms.DATE); in parseSms() 46 int typeIndex = cursor.getColumnIndex(Sms.TYPE); in parseSms() 47 int readIndex = cursor.getColumnIndex(Sms.READ); in parseSms() 57 message.mId = cursor.getString(cursor.getColumnIndex(_ID)); in parseSms()
|
D | MmsUtils.java | 52 String contentType = cursor.getString(cursor.getColumnIndex(CONTENT_TYPE)); in isMms() 65 message.mId = cursor.getString(cursor.getColumnIndex(_ID)); in parseMms() 66 message.mThreadId = cursor.getInt(cursor.getColumnIndex(Sms.THREAD_ID)); in parseMms() 67 message.mType = cursor.getInt(cursor.getColumnIndex(Telephony.Mms.MESSAGE_BOX)); in parseMms() 68 message.mSubscriptionId = cursor.getInt(cursor.getColumnIndex(Sms.SUBSCRIPTION_ID)); in parseMms() 69 message.mDate = Instant.ofEpochSecond(cursor.getLong(cursor.getColumnIndex(Sms.DATE))); in parseMms() 70 message.mRead = cursor.getInt(cursor.getColumnIndex(Sms.READ)) == 1; in parseMms() 82 stringBuilder.append(cursor.getString(cursor.getColumnIndex(Part.TEXT))); in getMmsBody() 97 phoneNum = cursor.getString(cursor.getColumnIndex(Addr.ADDRESS)); in getOriginator()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | CursorBackedSuggestionCursor.java | 68 mFormatCol = getColumnIndex(SearchManager.SUGGEST_COLUMN_FORMAT); in CursorBackedSuggestionCursor() 69 mText1Col = getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_1); in CursorBackedSuggestionCursor() 70 mText2Col = getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_2); in CursorBackedSuggestionCursor() 71 mText2UrlCol = getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_2_URL); in CursorBackedSuggestionCursor() 72 mIcon1Col = getColumnIndex(SearchManager.SUGGEST_COLUMN_ICON_1); in CursorBackedSuggestionCursor() 73 mIcon2Col = getColumnIndex(SearchManager.SUGGEST_COLUMN_ICON_2); in CursorBackedSuggestionCursor() 74 mRefreshSpinnerCol = getColumnIndex(SearchManager.SUGGEST_COLUMN_SPINNER_WHILE_REFRESHING); in CursorBackedSuggestionCursor() 246 protected int getColumnIndex(String colName) { in getColumnIndex() method in CursorBackedSuggestionCursor 249 return mCursor.getColumnIndex(colName); in getColumnIndex() 284 int col = getColumnIndex(colName); in getStringOrNull()
|
/packages/providers/CallLogProvider/src/com/android/calllogbackup/ |
D | CallLogBackupAgent.java | 396 call.id = cursor.getInt(cursor.getColumnIndex(CallLog.Calls._ID)); in readCallFromCursor() 397 call.date = cursor.getLong(cursor.getColumnIndex(CallLog.Calls.DATE)); in readCallFromCursor() 398 call.duration = cursor.getLong(cursor.getColumnIndex(CallLog.Calls.DURATION)); in readCallFromCursor() 399 call.number = cursor.getString(cursor.getColumnIndex(CallLog.Calls.NUMBER)); in readCallFromCursor() 401 cursor.getColumnIndex(CallLog.Calls.POST_DIAL_DIGITS)); in readCallFromCursor() 402 call.viaNumber = cursor.getString(cursor.getColumnIndex(CallLog.Calls.VIA_NUMBER)); in readCallFromCursor() 403 call.type = cursor.getInt(cursor.getColumnIndex(CallLog.Calls.TYPE)); in readCallFromCursor() 405 cursor.getInt(cursor.getColumnIndex(CallLog.Calls.NUMBER_PRESENTATION)); in readCallFromCursor() 407 cursor.getString(cursor.getColumnIndex(CallLog.Calls.PHONE_ACCOUNT_COMPONENT_NAME)); in readCallFromCursor() 409 cursor.getString(cursor.getColumnIndex(CallLog.Calls.PHONE_ACCOUNT_ID)); in readCallFromCursor() [all …]
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SlicesDatabaseAccessor.java | 151 final String key = cursor.getString(cursor.getColumnIndex(IndexColumns.KEY)); in buildSliceData() 152 final String title = cursor.getString(cursor.getColumnIndex(IndexColumns.TITLE)); in buildSliceData() 153 final String summary = cursor.getString(cursor.getColumnIndex(IndexColumns.SUMMARY)); in buildSliceData() 155 cursor.getColumnIndex(IndexColumns.SCREENTITLE)); in buildSliceData() 156 final String keywords = cursor.getString(cursor.getColumnIndex(IndexColumns.KEYWORDS)); in buildSliceData() 157 final int iconResource = cursor.getInt(cursor.getColumnIndex(IndexColumns.ICON_RESOURCE)); in buildSliceData() 159 cursor.getColumnIndex(IndexColumns.FRAGMENT)); in buildSliceData() 161 cursor.getColumnIndex(IndexColumns.CONTROLLER)); in buildSliceData() 163 cursor.getColumnIndex(IndexColumns.SLICE_TYPE)); in buildSliceData() 165 cursor.getColumnIndex(IndexColumns.UNAVAILABLE_SLICE_SUBTITLE)); in buildSliceData()
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | SmsProviderTest.java | 201 assertEquals(mFakePdu, cursor.getString(cursor.getColumnIndex("pdu"))); in testRawTableInsert() 202 assertEquals(mFakeAddress, cursor.getString(cursor.getColumnIndex("address"))); in testRawTableInsert() 204 cursor.getString(cursor.getColumnIndex("display_originating_addr"))); in testRawTableInsert() 205 assertEquals(mFakeMessageBody, cursor.getString(cursor.getColumnIndex("message_body"))); in testRawTableInsert() 206 assertEquals(mDate, cursor.getInt(cursor.getColumnIndex("date"))); in testRawTableInsert() 207 assertEquals(mFakePort, cursor.getInt(cursor.getColumnIndex("destination_port"))); in testRawTableInsert() 208 assertEquals(mFakeRefNumber, cursor.getInt(cursor.getColumnIndex("reference_number"))); in testRawTableInsert() 209 assertEquals(mFakeSequence, cursor.getInt(cursor.getColumnIndex("sequence"))); in testRawTableInsert() 210 assertEquals(mFakeCount, cursor.getInt(cursor.getColumnIndex("count"))); in testRawTableInsert() 211 assertEquals(0, cursor.getInt(cursor.getColumnIndex("deleted"))); in testRawTableInsert() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/oem/ |
D | CequintCallerIdManager.java | 215 String city = getString(cursor, cursor.getColumnIndex(CequintColumnNames.CITY_NAME)); in lookup() 216 String state = getString(cursor, cursor.getColumnIndex(CequintColumnNames.STATE_NAME)); in lookup() 217 String stateAbbr = getString(cursor, cursor.getColumnIndex(CequintColumnNames.STATE_ABBR)); in lookup() 218 String country = getString(cursor, cursor.getColumnIndex(CequintColumnNames.COUNTRY_NAME)); in lookup() 219 String company = getString(cursor, cursor.getColumnIndex(CequintColumnNames.COMPANY)); in lookup() 220 String name = getString(cursor, cursor.getColumnIndex(CequintColumnNames.NAME)); in lookup() 221 String firstName = getString(cursor, cursor.getColumnIndex(CequintColumnNames.FIRST_NAME)); in lookup() 222 String lastName = getString(cursor, cursor.getColumnIndex(CequintColumnNames.LAST_NAME)); in lookup() 223 String photoUri = getString(cursor, cursor.getColumnIndex(CequintColumnNames.PHOTO_URI)); in lookup() 225 getString(cursor, cursor.getColumnIndex(CequintColumnNames.DISPLAY_NAME)); in lookup()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PicasaSource.java | 125 int idIndex = data.cursor.getColumnIndex(PICASA_ID); in findPosition() 146 int idIndex = cursor.getColumnIndex(PICASA_ID); in unpackImageData() 147 int urlIndex = cursor.getColumnIndex(PICASA_URL); in unpackImageData() 148 int bucketIndex = cursor.getColumnIndex(PICASA_ALBUM_ID); in unpackImageData() 228 int idIndex = cursor.getColumnIndex(PICASA_ID); in findImages() 268 int accountIndex = cursor.getColumnIndex(PICASA_ACCOUNT); in resolveAccount() 304 int idIndex = cursor.getColumnIndex(PICASA_ID); in resolveAlbumIds() 344 int idIndex = cursor.getColumnIndex(PICASA_ID); in findAlbums() 345 int thumbIndex = cursor.getColumnIndex(PICASA_THUMB); in findAlbums() 346 int titleIndex = cursor.getColumnIndex(PICASA_TITLE); in findAlbums() [all …]
|
D | LocalSource.java | 80 int dataIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATA); in findAlbums() 81 int bucketIndex = cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_ID); in findAlbums() 82 int nameIndex = cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_DISPLAY_NAME); in findAlbums() 83 int updatedIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATE_TAKEN); in findAlbums() 143 int dataIndex = data.cursor.getColumnIndex(MediaStore.Images.Media.DATA); in findPosition() 164 int dataIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATA); in unpackImageData() 165 int orientationIndex = cursor.getColumnIndex(MediaStore.Images.Media.ORIENTATION); in unpackImageData() 166 int bucketIndex = cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_ID); in unpackImageData() 210 int dataIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATA); in findImages()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | CallerInfo.java | 200 columnIndex = cursor.getColumnIndex(PhoneLookup.NUMBER); in getCallerInfo() 216 columnIndex = cursor.getColumnIndex(PhoneLookup.DISPLAY_NAME); in getCallerInfo() 222 columnIndex = cursor.getColumnIndex(PhoneLookup.NORMALIZED_NUMBER); in getCallerInfo() 228 columnIndex = cursor.getColumnIndex(PhoneLookup.LABEL); in getCallerInfo() 230 int typeColumnIndex = cursor.getColumnIndex(PhoneLookup.TYPE); in getCallerInfo() 241 columnIndex = cursor.getColumnIndex(PhoneLookup.LOOKUP_KEY); in getCallerInfo() 263 columnIndex = cursor.getColumnIndex(PhoneLookup.PHOTO_URI); in getCallerInfo() 272 columnIndex = cursor.getColumnIndex(PhoneLookup.CUSTOM_RINGTONE); in getCallerInfo() 286 columnIndex = cursor.getColumnIndex(PhoneLookup.SEND_TO_VOICEMAIL); in getCallerInfo() 429 int columnIndex = (columnName != null) ? cursor.getColumnIndex(columnName) : -1; in getColumnIndexForPersonId()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupUtil.java | 307 groupId = cursor.getColumnIndex(Groups._ID); in GroupsProjection() 308 title = cursor.getColumnIndex(Groups.TITLE); in GroupsProjection() 309 summaryCount = cursor.getColumnIndex(Groups.SUMMARY_COUNT); in GroupsProjection() 310 systemId = cursor.getColumnIndex(Groups.SYSTEM_ID); in GroupsProjection() 311 accountName = cursor.getColumnIndex(Groups.ACCOUNT_NAME); in GroupsProjection() 312 accountType = cursor.getColumnIndex(Groups.ACCOUNT_TYPE); in GroupsProjection() 313 dataSet = cursor.getColumnIndex(Groups.DATA_SET); in GroupsProjection() 314 autoAdd = cursor.getColumnIndex(Groups.AUTO_ADD); in GroupsProjection() 315 favorites = cursor.getColumnIndex(Groups.FAVORITES); in GroupsProjection() 316 isReadOnly = cursor.getColumnIndex(Groups.GROUP_IS_READ_ONLY); in GroupsProjection() [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarInstancesHelper.java | 168 int statusColumn = entries.getColumnIndex(Events.STATUS); in performInstanceExpansion() 169 int dtstartColumn = entries.getColumnIndex(Events.DTSTART); in performInstanceExpansion() 170 int dtendColumn = entries.getColumnIndex(Events.DTEND); in performInstanceExpansion() 171 int eventTimezoneColumn = entries.getColumnIndex(Events.EVENT_TIMEZONE); in performInstanceExpansion() 172 int durationColumn = entries.getColumnIndex(Events.DURATION); in performInstanceExpansion() 173 int rruleColumn = entries.getColumnIndex(Events.RRULE); in performInstanceExpansion() 174 int rdateColumn = entries.getColumnIndex(Events.RDATE); in performInstanceExpansion() 175 int exruleColumn = entries.getColumnIndex(Events.EXRULE); in performInstanceExpansion() 176 int exdateColumn = entries.getColumnIndex(Events.EXDATE); in performInstanceExpansion() 177 int allDayColumn = entries.getColumnIndex(Events.ALL_DAY); in performInstanceExpansion() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/core/ |
D | SearchResultsProviderTest.java | 107 assertEquals("1", cursor.getString(cursor.getColumnIndex(ITEM_ID))); in query_shouldHaveValidData() 108 assertEquals("1", cursor.getString(cursor.getColumnIndex(SECONDARY_IMAGE_ID))); in query_shouldHaveValidData() 109 assertNotNull(cursor.getBlob(cursor.getColumnIndex(PRIMARY_IMAGE_BLOB))); in query_shouldHaveValidData() 110 assertNotNull(cursor.getBlob(cursor.getColumnIndex(SECONDARY_IMAGE_BLOB))); in query_shouldHaveValidData() 111 assertEquals("Title", cursor.getString(cursor.getColumnIndex(TITLE))); in query_shouldHaveValidData() 112 assertEquals("SubTitle", cursor.getString(cursor.getColumnIndex(SUBTITLE))); in query_shouldHaveValidData()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCard.java | 161 mName = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.NAME)); in ContextualCard() 163 mCardType = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.TYPE)); in ContextualCard() 165 mRankingScore = c.getDouble(c.getColumnIndex(CardDatabaseHelper.CardColumns.SCORE)); in ContextualCard() 167 mSliceUri = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.SLICE_URI)); in ContextualCard() 169 mCategory = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.CATEGORY)); in ContextualCard() 171 mPackageName = c.getString(c.getColumnIndex(CardDatabaseHelper.CardColumns.PACKAGE_NAME)); in ContextualCard() 173 mAppVersion = c.getLong(c.getColumnIndex(CardDatabaseHelper.CardColumns.APP_VERSION)); in ContextualCard()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactDirectoryManagerTest.java | 578 assertEquals("[f1, f2]", cursor.getString(cursor.getColumnIndex("projection"))); in testForwardingToDirectoryProvider() 579 assertEquals("query", cursor.getString(cursor.getColumnIndex("selection"))); in testForwardingToDirectoryProvider() 580 assertEquals("[s1, s2]", cursor.getString(cursor.getColumnIndex("selectionArgs"))); in testForwardingToDirectoryProvider() 581 assertEquals("so", cursor.getString(cursor.getColumnIndex("sortOrder"))); in testForwardingToDirectoryProvider() 582 assertEquals("account-name1", cursor.getString(cursor.getColumnIndex("accountName"))); in testForwardingToDirectoryProvider() 583 assertEquals("account-type1", cursor.getString(cursor.getColumnIndex("accountType"))); in testForwardingToDirectoryProvider() 664 row[cursor.getColumnIndex(Directory.ACCOUNT_NAME)] = accountName; in addDirectoryRow() 665 row[cursor.getColumnIndex(Directory.ACCOUNT_TYPE)] = accountType; in addDirectoryRow() 666 row[cursor.getColumnIndex(Directory.DISPLAY_NAME)] = displayName; in addDirectoryRow() 667 row[cursor.getColumnIndex(Directory.TYPE_RESOURCE_ID)] = typeResourceId; in addDirectoryRow() [all …]
|
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | DataModel.java | 157 int title = cursor.getColumnIndex(AudioColumns.TITLE); in getMetadata() 158 int artist = cursor.getColumnIndex(AudioColumns.ARTIST); in getMetadata() 159 int album = cursor.getColumnIndex(AudioColumns.ALBUM); in getMetadata() 160 int albumId = cursor.getColumnIndex(AudioColumns.ALBUM_ID); in getMetadata() 161 int duration = cursor.getColumnIndex(AudioColumns.DURATION); in getMetadata() 262 int pathColumn = cursor.getColumnIndex(AudioColumns.DATA); in doInBackground() 342 int keyColumn = cursor.getColumnIndex(mKeyColumn); in doInBackground() 343 int titleColumn = cursor.getColumnIndex(mTitleColumn); in doInBackground() 344 int pathColumn = cursor.getColumnIndex(AudioColumns.DATA); in doInBackground() 347 subtitleColumn = cursor.getColumnIndex(mSubtitleColumn); in doInBackground()
|
/packages/apps/ThemePicker/src/com/android/customization/model/grid/ |
D | LauncherGridOptionsProvider.java | 86 String name = c.getString(c.getColumnIndex(COL_NAME)); in fetch() 87 int rows = c.getInt(c.getColumnIndex(COL_ROWS)); in fetch() 88 int cols = c.getInt(c.getColumnIndex(COL_COLS)); in fetch() 89 int previewCount = c.getInt(c.getColumnIndex(COL_PREVIEW_COUNT)); in fetch() 90 boolean isSet = Boolean.parseBoolean(c.getString(c.getColumnIndex(COL_IS_DEFAULT))); in fetch()
|