Home
last modified time | relevance | path

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

/packages/apps/Dialer/tests/src/com/android/dialer/database/
DSmartDialPrefixTest.java138 MatrixCursor nameCursor, String number, int id, String displayName) { in constructNewContactWithDummyIds() argument
139 return constructNewContact(contactCursor, nameCursor, id, number, id, String.valueOf(id), in constructNewContactWithDummyIds()
143 private ContactNumber constructNewContact(MatrixCursor contactCursor, MatrixCursor nameCursor, in constructNewContact() argument
148 assertNotNull(nameCursor); in constructNewContact()
159 nameCursor.addRow(new Object[]{displayName, contactId}); in constructNewContact()
173 final MatrixCursor nameCursor = constructNewNameCursor(); in testPutForFullName() local
175 final ContactNumber jasonsmith = constructNewContactWithDummyIds(contactCursor, nameCursor, in testPutForFullName()
177 final ContactNumber jasonsmitt = constructNewContactWithDummyIds(contactCursor, nameCursor, in testPutForFullName()
179 final ContactNumber alphabet = constructNewContactWithDummyIds(contactCursor, nameCursor, in testPutForFullName()
183 mTestHelper.insertNamePrefixes(db, nameCursor); in testPutForFullName()
[all …]
/packages/apps/Dialer/src/com/android/dialer/database/
DDialerDatabaseHelper.java718 void insertNamePrefixes(SQLiteDatabase db, Cursor nameCursor) { in insertNamePrefixes() argument
719 final int columnIndexName = nameCursor.getColumnIndex( in insertNamePrefixes()
721 final int columnIndexContactId = nameCursor.getColumnIndex(SmartDialDbColumns.CONTACT_ID); in insertNamePrefixes()
731 while (nameCursor.moveToNext()) { in insertNamePrefixes()
734 SmartDialPrefix.generateNamePrefixes(nameCursor.getString(columnIndexName)); in insertNamePrefixes()
737 insert.bindLong(1, nameCursor.getLong(columnIndexContactId)); in insertNamePrefixes()
833 final Cursor nameCursor = db.rawQuery( in updateSmartDialDatabase() local
840 if (nameCursor != null) { in updateSmartDialDatabase()
847 insertNamePrefixes(db, nameCursor); in updateSmartDialDatabase()
852 nameCursor.close(); in updateSmartDialDatabase()
/packages/apps/Messaging/src/com/android/messaging/util/
DContactUtil.java414 Cursor nameCursor = null; in lookupFirstName() local
416 nameCursor = ContactUtil.lookupStructuredName(context, contactId, true) in lookupFirstName()
418 if (nameCursor != null && nameCursor.moveToFirst()) { in lookupFirstName()
419 firstName = nameCursor.getString(ContactUtil.INDEX_STRUCTURED_NAME_GIVEN_NAME); in lookupFirstName()
422 if (nameCursor != null) { in lookupFirstName()
423 nameCursor.close(); in lookupFirstName()