Searched refs:nameCursor (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Dialer/tests/src/com/android/dialer/database/ |
D | SmartDialPrefixTest.java | 99 final MatrixCursor nameCursor = constructNewNameCursor(); in testPutForFullName() local 101 final ContactNumber jasonsmith = constructNewContactWithDummyIds(contactCursor, nameCursor, in testPutForFullName() 103 final ContactNumber jasonsmitt = constructNewContactWithDummyIds(contactCursor, nameCursor, in testPutForFullName() 105 final ContactNumber alphabet = constructNewContactWithDummyIds(contactCursor, nameCursor, in testPutForFullName() 109 mTestHelper.insertNamePrefixes(db, nameCursor); in testPutForFullName() 111 nameCursor.close(); in testPutForFullName() 137 final MatrixCursor nameCursor = constructNewNameCursor(); in testPutForPartialName() local 139 final ContactNumber maryjane = constructNewContactWithDummyIds(contactCursor, nameCursor, in testPutForPartialName() 141 final ContactNumber sarahsmith = constructNewContactWithDummyIds(contactCursor, nameCursor, in testPutForPartialName() 143 final ContactNumber jasonsmitt = constructNewContactWithDummyIds(contactCursor, nameCursor, in testPutForPartialName() [all …]
|
D | DialerDatabaseHelperTest.java | 66 final MatrixCursor nameCursor = constructNewNameCursor(); in testForNewContacts() local 70 mTestHelper.insertNamePrefixes(mDb, nameCursor); in testForNewContacts() 74 constructNewContactWithDummyIds(contactCursor, nameCursor, in testForNewContacts() 77 mTestHelper.insertNamePrefixes(mDb, nameCursor); in testForNewContacts() 85 final MatrixCursor nameCursor = constructNewNameCursor(); in testForUpdatedContacts() local 87 constructNewContactWithDummyIds(contactCursor, nameCursor, in testForUpdatedContacts() 90 mTestHelper.insertNamePrefixes(mDb, nameCursor); in testForUpdatedContacts() 112 final MatrixCursor nameCursor = constructNewNameCursor(); in testForDeletedContacts() local 114 constructNewContactWithDummyIds(contactCursor, nameCursor, in testForDeletedContacts() 117 mTestHelper.insertNamePrefixes(mDb, nameCursor); in testForDeletedContacts() [all …]
|
D | DatabaseTestUtils.java | 56 MatrixCursor nameCursor, String number, int id, String displayName) { in constructNewContactWithDummyIds() argument 57 return constructNewContact(contactCursor, nameCursor, id, number, id, String.valueOf(id), in constructNewContactWithDummyIds() 62 MatrixCursor nameCursor, int id, String number, int contactId, String lookupKey, in constructNewContact() argument 65 if (contactCursor == null || nameCursor == null) { in constructNewContact() 78 nameCursor.addRow(new Object[]{displayName, contactId}); in constructNewContact()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ContactUtil.java | 448 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/src/com/android/dialer/database/ |
D | DialerDatabaseHelper.java | 851 void insertNamePrefixes(SQLiteDatabase db, Cursor nameCursor) { in insertNamePrefixes() argument 852 final int columnIndexName = nameCursor.getColumnIndex( in insertNamePrefixes() 854 final int columnIndexContactId = nameCursor.getColumnIndex(SmartDialDbColumns.CONTACT_ID); in insertNamePrefixes() 864 while (nameCursor.moveToNext()) { in insertNamePrefixes() 867 SmartDialPrefix.generateNamePrefixes(nameCursor.getString(columnIndexName)); in insertNamePrefixes() 870 insert.bindLong(1, nameCursor.getLong(columnIndexContactId)); in insertNamePrefixes() 982 final Cursor nameCursor = db.rawQuery( in updateSmartDialDatabase() local 989 if (nameCursor != null) { in updateSmartDialDatabase() 996 insertNamePrefixes(db, nameCursor); in updateSmartDialDatabase() 1001 nameCursor.close(); in updateSmartDialDatabase()
|