Searched refs:nameCursor (Results 1 – 2 of 2) sorted by relevance
448 Cursor nameCursor = null; in lookupFirstName() local450 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()
620 void insertNamePrefixes(SQLiteDatabase db, Cursor nameCursor) { in insertNamePrefixes() argument621 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() local794 if (nameCursor != null) { in updateSmartDialDatabase()801 insertNamePrefixes(db, nameCursor); in updateSmartDialDatabase()[all …]