Searched refs:contactCursor (Results 1 – 2 of 2) sorted by relevance
170 Cursor contactCursor = null; in getContactsSize() local172 contactCursor = mResolver.query(myUri, new String[]{Phone.CONTACT_ID}, null, null, in getContactsSize()174 if (contactCursor == null) { in getContactsSize()177 return getDistinctContactIdSize(contactCursor) + 1; // always has the 0.vcf in getContactsSize()181 if (contactCursor != null) { in getContactsSize()182 contactCursor.close(); in getContactsSize()267 Cursor contactCursor = null; in getPhonebookNameList() local274 contactCursor = mResolver.query(myUri, PHONES_CONTACTS_PROJECTION, null, null, orderBy); in getPhonebookNameList()275 if (contactCursor != null) { in getPhonebookNameList()277 contactCursor); in getPhonebookNameList()[all …]
64 final Cursor contactCursor = resolver.query( in loadInBackground() local68 if (contactCursor == null) { in loadInBackground()72 if (contactCursor.getCount() < 1) { in loadInBackground()73 contactCursor.close(); in loadInBackground()79 contactCursor.moveToFirst(); in loadInBackground()80 result.contactId = contactCursor.getLong(/* Contacts._ID */ 0); in loadInBackground()81 result.isUserProfile = contactCursor.getInt(/* Contacts.IS_USER_PROFILE */ 1) == 1; in loadInBackground()83 contactCursor.close(); in loadInBackground()