Home
last modified time | relevance | path

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

/packages/apps/Contacts/src/com/android/contacts/editor/
DPickRawContactLoader.java94 final Cursor rawContactCursor = resolver.query( in loadInBackground() local
98 if (rawContactCursor == null) { in loadInBackground()
102 if (rawContactCursor.getCount() < 1) { in loadInBackground()
103 rawContactCursor.close(); in loadInBackground()
107 rawContactCursor.moveToPosition(-1); in loadInBackground()
111 while (rawContactCursor.moveToNext()) { in loadInBackground()
113 rawContact.id = rawContactCursor.getLong(RAW_CONTACT_ID); in loadInBackground()
115 rawContact.displayName = rawContactCursor.getString(DISPLAY_NAME_PRIMARY); in loadInBackground()
116 rawContact.displayNameAlt = rawContactCursor.getString(DISPLAY_NAME_ALTERNATIVE); in loadInBackground()
117 rawContact.accountName = rawContactCursor.getString(ACCOUNT_NAME); in loadInBackground()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java7699 Cursor rawContactCursor = mResolver.query(RawContacts.CONTENT_URI, null, null, null, null); in testCleanupDanglingContacts_noDanglingContacts() local
7703 assertEquals(2, rawContactCursor.getCount()); in testCleanupDanglingContacts_noDanglingContacts()