Home
last modified time | relevance | path

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

123

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DReadableArchiveTest.java109 cursor.getColumnIndexOrThrow(Document.COLUMN_DOCUMENT_ID)))) { in assertRowExist()
127 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testQueryChildDocument()
129 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE))); in testQueryChildDocument()
131 cursor.getInt(cursor.getColumnIndexOrThrow(Document.COLUMN_SIZE))); in testQueryChildDocument()
135 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testQueryChildDocument()
137 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE))); in testQueryChildDocument()
139 cursor.getInt(cursor.getColumnIndexOrThrow(Document.COLUMN_SIZE))); in testQueryChildDocument()
143 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testQueryChildDocument()
145 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE))); in testQueryChildDocument()
147 cursor.getInt(cursor.getColumnIndexOrThrow(Document.COLUMN_SIZE))); in testQueryChildDocument()
[all …]
DWriteableArchiveTest.java156 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DOCUMENT_ID))); in testAddDirectory()
158 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testAddDirectory()
160 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE))); in testAddDirectory()
162 cursor.getInt(cursor.getColumnIndexOrThrow(Document.COLUMN_SIZE))); in testAddDirectory()
171 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DOCUMENT_ID))); in testAddDirectory()
173 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testAddDirectory()
175 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE))); in testAddDirectory()
177 cursor.getInt(cursor.getColumnIndexOrThrow(Document.COLUMN_SIZE))); in testAddDirectory()
206 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DOCUMENT_ID))); in testAddFile()
208 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testAddFile()
[all …]
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastProviderTest.java117 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.RECEIVED_TIME))) in testUpdate()
119 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.MESSAGE_DISPLAYED))) in testUpdate()
265 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.GEOGRAPHICAL_SCOPE))) in testInsertAndQuery()
267 assertThat(cursor.getString(cursor.getColumnIndexOrThrow(CellBroadcasts.PLMN))) in testInsertAndQuery()
269 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.LAC))).isEqualTo(LAC); in testInsertAndQuery()
270 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.CID))).isEqualTo(CID); in testInsertAndQuery()
271 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SERIAL_NUMBER))) in testInsertAndQuery()
273 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SERVICE_CATEGORY))) in testInsertAndQuery()
275 assertThat(cursor.getString(cursor.getColumnIndexOrThrow(CellBroadcasts.LANGUAGE_CODE))) in testInsertAndQuery()
277 assertThat(cursor.getString(cursor.getColumnIndexOrThrow(CellBroadcasts.MESSAGE_BODY))) in testInsertAndQuery()
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastContentProviderTest.java240 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.GEOGRAPHICAL_SCOPE))) in testInsertQuery()
242 assertThat(cursor.getString(cursor.getColumnIndexOrThrow(CellBroadcasts.PLMN))) in testInsertQuery()
244 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.LAC))).isEqualTo(LAC); in testInsertQuery()
245 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.CID))).isEqualTo(CID); in testInsertQuery()
246 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SERIAL_NUMBER))) in testInsertQuery()
248 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SERVICE_CATEGORY))) in testInsertQuery()
250 assertThat(cursor.getString(cursor.getColumnIndexOrThrow(CellBroadcasts.LANGUAGE_CODE))) in testInsertQuery()
252 assertThat(cursor.getString(cursor.getColumnIndexOrThrow(CellBroadcasts.MESSAGE_BODY))) in testInsertQuery()
254 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.MESSAGE_PRIORITY))) in testInsertQuery()
256 assertThat(cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.ETWS_WARNING_TYPE))) in testInsertQuery()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DCoalescer.java183 idColumn = annotatedCallLogRow.getColumnIndexOrThrow(AnnotatedCallLog._ID); in RowCombiner()
184 timestampColumn = annotatedCallLogRow.getColumnIndexOrThrow(AnnotatedCallLog.TIMESTAMP); in RowCombiner()
185 numberColumn = annotatedCallLogRow.getColumnIndexOrThrow(AnnotatedCallLog.NUMBER); in RowCombiner()
187 annotatedCallLogRow.getColumnIndexOrThrow(AnnotatedCallLog.FORMATTED_NUMBER); in RowCombiner()
189 annotatedCallLogRow.getColumnIndexOrThrow(AnnotatedCallLog.NUMBER_PRESENTATION); in RowCombiner()
190 isReadColumn = annotatedCallLogRow.getColumnIndexOrThrow(AnnotatedCallLog.IS_READ); in RowCombiner()
191 isNewColumn = annotatedCallLogRow.getColumnIndexOrThrow(AnnotatedCallLog.NEW); in RowCombiner()
193 annotatedCallLogRow.getColumnIndexOrThrow(AnnotatedCallLog.GEOCODED_LOCATION); in RowCombiner()
195 annotatedCallLogRow.getColumnIndexOrThrow(AnnotatedCallLog.PHONE_ACCOUNT_COMPONENT_NAME); in RowCombiner()
197 annotatedCallLogRow.getColumnIndexOrThrow(AnnotatedCallLog.PHONE_ACCOUNT_ID); in RowCombiner()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java263 int idColumn = cursor.getColumnIndexOrThrow(Calls._ID); in handleInsertsAndUpdates()
264 int dateColumn = cursor.getColumnIndexOrThrow(Calls.DATE); in handleInsertsAndUpdates()
265 int lastModifiedColumn = cursor.getColumnIndexOrThrow(Calls.LAST_MODIFIED); in handleInsertsAndUpdates()
266 int numberColumn = cursor.getColumnIndexOrThrow(Calls.NUMBER); in handleInsertsAndUpdates()
267 int presentationColumn = cursor.getColumnIndexOrThrow(Calls.NUMBER_PRESENTATION); in handleInsertsAndUpdates()
268 int typeColumn = cursor.getColumnIndexOrThrow(Calls.TYPE); in handleInsertsAndUpdates()
269 int countryIsoColumn = cursor.getColumnIndexOrThrow(Calls.COUNTRY_ISO); in handleInsertsAndUpdates()
270 int durationsColumn = cursor.getColumnIndexOrThrow(Calls.DURATION); in handleInsertsAndUpdates()
271 int dataUsageColumn = cursor.getColumnIndexOrThrow(Calls.DATA_USAGE); in handleInsertsAndUpdates()
272 int transcriptionColumn = cursor.getColumnIndexOrThrow(Calls.TRANSCRIPTION); in handleInsertsAndUpdates()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java90 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Artists._ID); in load()
115 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Albums._ID); in load()
116 int artistIdColumn = cursor.getColumnIndexOrThrow( in load()
152 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID); in load()
153 … int mimeTypeColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media.MIME_TYPE); in load()
154 … int artistIdColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ARTIST_ID); in load()
155 … int albumIdColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ALBUM_ID); in load()
195 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Playlists._ID); in load()
219 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Genres._ID); in load()
255 int titleColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media.TITLE); in loadData()
[all …]
DVideoStore.java123 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Video.Media._ID); in load()
127 int mimeTypeColumn = cursor.getColumnIndexOrThrow( in load()
132 relativePathColumn = cursor.getColumnIndexOrThrow(RELATIVE_PATH); in load()
133 displayNameColumn = cursor.getColumnIndexOrThrow( in load()
136 dataColumn = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA); in load()
241 int titleColumn = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.TITLE); in loadData()
242 int durationColumn = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DURATION); in loadData()
243 … int dateTakenColumn = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATE_TAKEN); in loadData()
244 int latitudeColumn = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.LATITUDE); in loadData()
245 … int longitudeColumn = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.LONGITUDE); in loadData()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppService.java626 int idColumn = cursor.getColumnIndexOrThrow(BluetoothShare._ID); in run()
710 String uriString = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.URI)); in insertShare()
720 cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID)), uri, in insertShare()
721 cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT)), in insertShare()
722 cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare._DATA)), in insertShare()
723 cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.MIMETYPE)), in insertShare()
724 cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION)), in insertShare()
725 cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.DESTINATION)), in insertShare()
726 cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.VISIBILITY)), in insertShare()
727 cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.USER_CONFIRMATION)), in insertShare()
[all …]
DBluetoothOppUtility.java99 info.mID = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID)); in fillRecord()
100 info.mStatus = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS)); in fillRecord()
101 info.mDirection = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION)); in fillRecord()
102 info.mTotalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in fillRecord()
104 cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES)); in fillRecord()
105 info.mTimeStamp = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP)); in fillRecord()
106 info.mDestAddr = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.DESTINATION)); in fillRecord()
108 info.mFileName = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare._DATA)); in fillRecord()
111 cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT)); in fillRecord()
117 info.mFileUri = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.URI)); in fillRecord()
[all …]
DBluetoothOppTransferAdapter.java71 int status = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS)); in bindView()
72 int dir = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION)); in bindView()
85 String title = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT)); in bindView()
94 int destinationColumnId = cursor.getColumnIndexOrThrow(BluetoothShare.DESTINATION); in bindView()
101 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in bindView()
119 int dateColumnId = cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP); in bindView()
DBluetoothOppNotification.java267 final int timestampIndex = cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP); in updateActiveNotification()
268 final int directionIndex = cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION); in updateActiveNotification()
269 final int idIndex = cursor.getColumnIndexOrThrow(BluetoothShare._ID); in updateActiveNotification()
270 final int totalBytesIndex = cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES); in updateActiveNotification()
271 final int currentBytesIndex = cursor.getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES); in updateActiveNotification()
272 final int dataIndex = cursor.getColumnIndexOrThrow(BluetoothShare._DATA); in updateActiveNotification()
273 final int filenameHintIndex = cursor.getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT); in updateActiveNotification()
274 final int confirmIndex = cursor.getColumnIndexOrThrow(BluetoothShare.USER_CONFIRMATION); in updateActiveNotification()
275 final int destinationIndex = cursor.getColumnIndexOrThrow(BluetoothShare.DESTINATION); in updateActiveNotification()
418 final int timestampIndex = cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP); in updateCompletedNotification()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DImportDataTask.java139 final int idIndex = c.getColumnIndexOrThrow(Favorites._ID); in importWorkspaceItems()
140 final int intentIndex = c.getColumnIndexOrThrow(Favorites.INTENT); in importWorkspaceItems()
141 final int titleIndex = c.getColumnIndexOrThrow(Favorites.TITLE); in importWorkspaceItems()
142 final int containerIndex = c.getColumnIndexOrThrow(Favorites.CONTAINER); in importWorkspaceItems()
143 final int itemTypeIndex = c.getColumnIndexOrThrow(Favorites.ITEM_TYPE); in importWorkspaceItems()
144 final int widgetProviderIndex = c.getColumnIndexOrThrow(Favorites.APPWIDGET_PROVIDER); in importWorkspaceItems()
145 final int screenIndex = c.getColumnIndexOrThrow(Favorites.SCREEN); in importWorkspaceItems()
146 final int cellXIndex = c.getColumnIndexOrThrow(Favorites.CELLX); in importWorkspaceItems()
147 final int cellYIndex = c.getColumnIndexOrThrow(Favorites.CELLY); in importWorkspaceItems()
148 final int spanXIndex = c.getColumnIndexOrThrow(Favorites.SPANX); in importWorkspaceItems()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastCursorAdapter.java71 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.GEOGRAPHICAL_SCOPE)); in createFromCursor()
73 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.SERIAL_NUMBER)); in createFromCursor()
75 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.SERVICE_CATEGORY)); in createFromCursor()
77 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.LANGUAGE_CODE)); in createFromCursor()
79 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.MESSAGE_BODY)); in createFromCursor()
81 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.MESSAGE_FORMAT)); in createFromCursor()
83 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.MESSAGE_PRIORITY)); in createFromCursor()
85 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.SLOT_INDEX)); in createFromCursor()
187 long time = cursor.getLong(cursor.getColumnIndexOrThrow(timeColumn)); in createFromCursor()
191 dcs = cursor.getInt(cursor.getColumnIndexOrThrow( in createFromCursor()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderCursor.java121 iconIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.ICON); in LoaderCursor()
122 iconPackageIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_PACKAGE); in LoaderCursor()
123 iconResourceIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_RESOURCE); in LoaderCursor()
124 titleIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.TITLE); in LoaderCursor()
126 idIndex = getColumnIndexOrThrow(LauncherSettings.Favorites._ID); in LoaderCursor()
127 containerIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.CONTAINER); in LoaderCursor()
128 itemTypeIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.ITEM_TYPE); in LoaderCursor()
129 screenIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.SCREEN); in LoaderCursor()
130 cellXIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.CELLX); in LoaderCursor()
131 cellYIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.CELLY); in LoaderCursor()
[all …]
DGridSizeMigrationTaskV2.java521 final int indexId = c.getColumnIndexOrThrow(LauncherSettings.Favorites._ID); in loadHotseatEntries()
522 final int indexItemType = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ITEM_TYPE); in loadHotseatEntries()
523 final int indexIntent = c.getColumnIndexOrThrow(LauncherSettings.Favorites.INTENT); in loadHotseatEntries()
524 final int indexScreen = c.getColumnIndexOrThrow(LauncherSettings.Favorites.SCREEN); in loadHotseatEntries()
591 final int indexId = c.getColumnIndexOrThrow(LauncherSettings.Favorites._ID); in loadWorkspaceEntries()
592 final int indexItemType = c.getColumnIndexOrThrow(LauncherSettings.Favorites.ITEM_TYPE); in loadWorkspaceEntries()
593 final int indexScreen = c.getColumnIndexOrThrow(LauncherSettings.Favorites.SCREEN); in loadWorkspaceEntries()
594 final int indexCellX = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CELLX); in loadWorkspaceEntries()
595 final int indexCellY = c.getColumnIndexOrThrow(LauncherSettings.Favorites.CELLY); in loadWorkspaceEntries()
596 final int indexSpanX = c.getColumnIndexOrThrow(LauncherSettings.Favorites.SPANX); in loadWorkspaceEntries()
[all …]
DGridSizeMigrationTask.java620 final int indexId = c.getColumnIndexOrThrow(Favorites._ID);
621 final int indexItemType = c.getColumnIndexOrThrow(Favorites.ITEM_TYPE);
622 final int indexIntent = c.getColumnIndexOrThrow(Favorites.INTENT);
623 final int indexScreen = c.getColumnIndexOrThrow(Favorites.SCREEN);
691 final int indexId = c.getColumnIndexOrThrow(Favorites._ID);
692 final int indexItemType = c.getColumnIndexOrThrow(Favorites.ITEM_TYPE);
693 final int indexCellX = c.getColumnIndexOrThrow(Favorites.CELLX);
694 final int indexCellY = c.getColumnIndexOrThrow(Favorites.CELLY);
695 final int indexSpanX = c.getColumnIndexOrThrow(Favorites.SPANX);
696 final int indexSpanY = c.getColumnIndexOrThrow(Favorites.SPANY);
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DCursorToSearchResultConverter.java124 final String pkgName = cursor.getString(cursor.getColumnIndexOrThrow( in buildSingleSearchResultFromCursor()
126 final String title = cursor.getString(cursor.getColumnIndexOrThrow( in buildSingleSearchResultFromCursor()
130 final String key = cursor.getString(cursor.getColumnIndexOrThrow( in buildSingleSearchResultFromCursor()
132 final String iconResStr = cursor.getString(cursor.getColumnIndexOrThrow( in buildSingleSearchResultFromCursor()
134 final int payloadType = cursor.getInt(cursor.getColumnIndexOrThrow( in buildSingleSearchResultFromCursor()
136 final byte[] marshalledPayload = cursor.getBlob(cursor.getColumnIndexOrThrow( in buildSingleSearchResultFromCursor()
189 final String screenTitle = cursor.getString(cursor.getColumnIndexOrThrow( in getBreadcrumbs()
191 final String screenClass = cursor.getString(cursor.getColumnIndexOrThrow( in getBreadcrumbs()
/packages/providers/PartnerBookmarksProvider/tests/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProviderTest.java48 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.ID)); in countBookmarksInFolder()
50 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.PARENT)); in countBookmarksInFolder()
52 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.TYPE)) in countBookmarksInFolder()
55 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.URL)); in countBookmarksInFolder()
57 cursor.getColumnIndexOrThrow(PartnerBookmarksContract.Bookmarks.TITLE)); in countBookmarksInFolder()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DPhoneFavoritesTileAdapter.java200 int starredColumn = cursor.getColumnIndexOrThrow(Contacts.STARRED); in saveCursorToCache()
201 int contactIdColumn = cursor.getColumnIndexOrThrow(Phone.CONTACT_ID); in saveCursorToCache()
202 int photoUriColumn = cursor.getColumnIndexOrThrow(Contacts.PHOTO_URI); in saveCursorToCache()
203 int lookupKeyColumn = cursor.getColumnIndexOrThrow(Contacts.LOOKUP_KEY); in saveCursorToCache()
204 int pinnedColumn = cursor.getColumnIndexOrThrow(Contacts.PINNED); in saveCursorToCache()
205 int nameColumn = cursor.getColumnIndexOrThrow(Contacts.DISPLAY_NAME_PRIMARY); in saveCursorToCache()
206 int nameAlternativeColumn = cursor.getColumnIndexOrThrow(Contacts.DISPLAY_NAME_ALTERNATIVE); in saveCursorToCache()
207 int isDefaultNumberColumn = cursor.getColumnIndexOrThrow(Phone.IS_SUPER_PRIMARY); in saveCursorToCache()
208 int phoneTypeColumn = cursor.getColumnIndexOrThrow(Phone.TYPE); in saveCursorToCache()
209 int phoneLabelColumn = cursor.getColumnIndexOrThrow(Phone.LABEL); in saveCursorToCache()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DDatabaseHelperTest.java377 c.getString(c.getColumnIndexOrThrow(FileColumns.DATA))); in assertRecompute()
379 c.getString(c.getColumnIndexOrThrow(FileColumns.OWNER_PACKAGE_NAME))); in assertRecompute()
380 assertEquals("0", c.getString(c.getColumnIndexOrThrow(FileColumns.IS_DOWNLOAD))); in assertRecompute()
387 c.getString(c.getColumnIndexOrThrow(FileColumns.DATA))); in assertRecompute()
389 c.getString(c.getColumnIndexOrThrow(FileColumns.OWNER_PACKAGE_NAME))); in assertRecompute()
390 assertEquals("0", c.getString(c.getColumnIndexOrThrow(FileColumns.IS_DOWNLOAD))); in assertRecompute()
397 c.getString(c.getColumnIndexOrThrow(FileColumns.DATA))); in assertRecompute()
399 c.getString(c.getColumnIndexOrThrow(FileColumns.MIME_TYPE))); in assertRecompute()
401 c.getString(c.getColumnIndexOrThrow(FileColumns.OWNER_PACKAGE_NAME))); in assertRecompute()
402 assertEquals("1", c.getString(c.getColumnIndexOrThrow(FileColumns.IS_DOWNLOAD))); in assertRecompute()
[all …]
/packages/apps/Dialer/java/com/android/dialer/interactions/
DPhoneNumberInteraction.java288 int contactIdColumn = cursor.getColumnIndexOrThrow(Phone.CONTACT_ID); in onLoadComplete()
289 int isSuperPrimaryColumn = cursor.getColumnIndexOrThrow(Phone.IS_SUPER_PRIMARY); in onLoadComplete()
290 int phoneNumberColumn = cursor.getColumnIndexOrThrow(Phone.NUMBER); in onLoadComplete()
291 int phoneIdColumn = cursor.getColumnIndexOrThrow(Phone._ID); in onLoadComplete()
292 int accountTypeColumn = cursor.getColumnIndexOrThrow(RawContacts.ACCOUNT_TYPE); in onLoadComplete()
293 int dataSetColumn = cursor.getColumnIndexOrThrow(RawContacts.DATA_SET); in onLoadComplete()
294 int phoneTypeColumn = cursor.getColumnIndexOrThrow(Phone.TYPE); in onLoadComplete()
295 int phoneLabelColumn = cursor.getColumnIndexOrThrow(Phone.LABEL); in onLoadComplete()
296 int phoneMimeTpeColumn = cursor.getColumnIndexOrThrow(Phone.MIMETYPE); in onLoadComplete()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractPublicApiTest.java67 return (int) cursor.getLong(cursor.getColumnIndexOrThrow( in getStatusIfExists()
83 return cursor.getString(cursor.getColumnIndexOrThrow(field)); in getStringField()
94 return cursor.getLong(cursor.getColumnIndexOrThrow(field)); in getLongField()
184 cursor.getColumnIndexOrThrow( in runUntilProgress()
187 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_TOTAL_SIZE_BYTES)); in runUntilProgress()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java404 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_MEDIA_TYPE)); in queryRecentDocuments()
406 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_MEDIAPROVIDER_URI)); in queryRecentDocuments()
490 rawFilesCursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE)); in includeSearchFilesFromSharedStorage()
496 rawFilesCursor.getColumnIndexOrThrow(Document.COLUMN_DOCUMENT_ID)); in includeSearchFilesFromSharedStorage()
572 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_LOCAL_FILENAME)); in getFileForDocId()
617 final long id = cursor.getLong(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_ID)); in includeDownloadFromCursor()
621 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_TITLE)); in includeDownloadFromCursor()
623 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_DESCRIPTION)); in includeDownloadFromCursor()
625 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_MEDIA_TYPE)); in includeDownloadFromCursor()
636 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_MEDIAPROVIDER_URI)); in includeDownloadFromCursor()
[all …]
DOpenHelper.java173 final int uid = cursor.getInt(cursor.getColumnIndexOrThrow(Constants.UID)); in getOriginatingUid()
198 return cursor.getString(cursor.getColumnIndexOrThrow(column)); in getCursorString()
202 final String uriString = cursor.getString(cursor.getColumnIndexOrThrow(column)); in getCursorUri()
207 return new File(cursor.getString(cursor.getColumnIndexOrThrow(column))); in getCursorFile()

123