Home
last modified time | relevance | path

Searched refs:nameCursor (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/util/
DContactUtil.java448 Cursor nameCursor = null; in lookupFirstName() local
450 nameCursor = ContactUtil.lookupStructuredName(context, contactId, true) in lookupFirstName()
452 if (nameCursor != null && nameCursor.moveToFirst()) { in lookupFirstName()
453 firstName = nameCursor.getString(ContactUtil.INDEX_STRUCTURED_NAME_GIVEN_NAME); in lookupFirstName()
456 if (nameCursor != null) { in lookupFirstName()
457 nameCursor.close(); in lookupFirstName()
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java620 void insertNamePrefixes(SQLiteDatabase db, Cursor nameCursor) { in insertNamePrefixes() argument
621 final int columnIndexName = nameCursor.getColumnIndex(SmartDialDbColumns.DISPLAY_NAME_PRIMARY); in insertNamePrefixes()
622 final int columnIndexContactId = nameCursor.getColumnIndex(SmartDialDbColumns.CONTACT_ID); in insertNamePrefixes()
637 while (nameCursor.moveToNext()) { in insertNamePrefixes()
638 if (nameCursor.isNull(columnIndexContactId)) { in insertNamePrefixes()
647 SmartDialPrefix.generateNamePrefixes(context, nameCursor.getString(columnIndexName)); in insertNamePrefixes()
650 insert.bindLong(1, nameCursor.getLong(columnIndexContactId)); in insertNamePrefixes()
781 final Cursor nameCursor = in updateSmartDialDatabase() local
794 if (nameCursor != null) { in updateSmartDialDatabase()
801 insertNamePrefixes(db, nameCursor); in updateSmartDialDatabase()
[all …]