Home
last modified time | relevance | path

Searched refs:PhoneQuery (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/list/
DPhoneNumberListAdapter.java79 public static class PhoneQuery { class in PhoneNumberListAdapter
212 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
261 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
263 loader.setProjection(PhoneQuery.PROJECTION_ALTERNATIVE); in configureLoader()
324 return ((Cursor) getItem(position)).getString(PhoneQuery.DISPLAY_NAME); in getContactDisplayName()
329 return item != null ? item.getString(PhoneQuery.PHONE_NUMBER) : null; in getPhoneNumber()
357 final long phoneId = cursor.getLong(PhoneQuery.PHONE_ID); in getDataUri()
370 return item != null ? item.getString(PhoneQuery.LOOKUP_KEY) : null; in getLookupKey()
398 final long contactId = cursor.getLong(PhoneQuery.CONTACT_ID); in getResultCount()
422 final long currentContactId = cursor.getLong(PhoneQuery.CONTACT_ID); in bindView()
[all …]
DMultiSelectPhoneNumbersListAdapter.java37 public static class PhoneQuery { class in MultiSelectPhoneNumbersListAdapter
77 super(context, PhoneQuery.PHONE_ID); in MultiSelectPhoneNumbersListAdapter()
109 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader()
111 loader.setProjection(PhoneQuery.PROJECTION_ALTERNATIVE); in configureLoader()
123 return ((Cursor) getItem(position)).getString(PhoneQuery.DISPLAY_NAME); in getContactDisplayName()
130 final long id = ((Cursor) getItem(position)).getLong(PhoneQuery.PHONE_ID); in getDataUri()
150 final long currentContactId = cursor.getLong(PhoneQuery.CONTACT_ID); in bindView()
152 final long previousContactId = cursor.getLong(PhoneQuery.CONTACT_ID); in bindView()
159 bindViewId(view, cursor, PhoneQuery.PHONE_ID); in bindView()
162 bindPhoto(view, cursor, PhoneQuery.PHOTO_ID, PhoneQuery.LOOKUP_KEY, in bindView()
[all …]
/packages/apps/Dialer/java/com/android/dialer/smartdial/
DSmartDialCursorLoader.java82 return new MatrixCursor(PhoneQuery.PROJECTION_PRIMARY); in loadInBackground()
96 final MatrixCursor cursor = new MatrixCursor(PhoneQuery.PROJECTION_PRIMARY); in loadInBackground()
97 Object[] row = new Object[PhoneQuery.PROJECTION_PRIMARY.length]; in loadInBackground()
99 row[PhoneQuery.PHONE_ID] = contact.dataId; in loadInBackground()
100 row[PhoneQuery.PHONE_NUMBER] = contact.phoneNumber; in loadInBackground()
101 row[PhoneQuery.CONTACT_ID] = contact.id; in loadInBackground()
102 row[PhoneQuery.LOOKUP_KEY] = contact.lookupKey; in loadInBackground()
103 row[PhoneQuery.PHOTO_ID] = contact.photoId; in loadInBackground()
104 row[PhoneQuery.DISPLAY_NAME] = contact.displayName; in loadInBackground()
105 row[PhoneQuery.CARRIER_PRESENCE] = contact.carrierPresence; in loadInBackground()
[all …]
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DContactInfoHelper.java125 .query(uri, PhoneQuery.DISPLAY_NAME_ALTERNATIVE_PROJECTION, null, null, null); in lookUpDisplayNameAlternative()
128 return cursor.getString(PhoneQuery.NAME_ALTERNATIVE); in lookUpDisplayNameAlternative()
325 PhoneQuery.getPhoneLookupProjection(), in lookupContactFromUri()
344 phoneLookupCursor, PhoneQuery.MATCHED_NUMBER, uri); in lookupContactFromUri()
349 String lookupKey = phoneLookupCursor.getString(PhoneQuery.LOOKUP_KEY); in lookupContactFromUri()
360 Contacts.getLookupUri(phoneLookupCursor.getLong(PhoneQuery.PERSON_ID), lookupKey); in createPhoneLookupContactInfo()
361 info.name = phoneLookupCursor.getString(PhoneQuery.NAME); in createPhoneLookupContactInfo()
362 info.type = phoneLookupCursor.getInt(PhoneQuery.PHONE_TYPE); in createPhoneLookupContactInfo()
363 info.label = phoneLookupCursor.getString(PhoneQuery.LABEL); in createPhoneLookupContactInfo()
364 info.number = phoneLookupCursor.getString(PhoneQuery.MATCHED_NUMBER); in createPhoneLookupContactInfo()
[all …]
DPhoneQuery.java24 final class PhoneQuery { class
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java553 if (updatedContactCursor.isNull(PhoneQuery.PHONE_ID)) { in insertUpdatedContactsAndNumberPrefix()
563 final String number = updatedContactCursor.getString(PhoneQuery.PHONE_NUMBER); in insertUpdatedContactsAndNumberPrefix()
570 final String lookupKey = updatedContactCursor.getString(PhoneQuery.PHONE_LOOKUP_KEY); in insertUpdatedContactsAndNumberPrefix()
577 final String displayName = updatedContactCursor.getString(PhoneQuery.PHONE_DISPLAY_NAME); in insertUpdatedContactsAndNumberPrefix()
583 insert.bindLong(1, updatedContactCursor.getLong(PhoneQuery.PHONE_ID)); in insertUpdatedContactsAndNumberPrefix()
584 insert.bindLong(3, updatedContactCursor.getLong(PhoneQuery.PHONE_CONTACT_ID)); in insertUpdatedContactsAndNumberPrefix()
585 insert.bindLong(6, updatedContactCursor.getLong(PhoneQuery.PHONE_PHOTO_ID)); in insertUpdatedContactsAndNumberPrefix()
586 insert.bindLong(7, updatedContactCursor.getLong(PhoneQuery.PHONE_LAST_TIME_USED)); in insertUpdatedContactsAndNumberPrefix()
587 insert.bindLong(8, updatedContactCursor.getInt(PhoneQuery.PHONE_TIMES_USED)); in insertUpdatedContactsAndNumberPrefix()
588 insert.bindLong(9, updatedContactCursor.getInt(PhoneQuery.PHONE_STARRED)); in insertUpdatedContactsAndNumberPrefix()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DContactUtil.java79 public static class PhoneQuery { class in ContactUtil
91 PhoneQuery.SORT_KEY, // 8
239 return new CursorQueryData(context, uri, PhoneQuery.PROJECTION, null, null, in getPhones()
240 PhoneQuery.SORT_KEY); in getPhones()
317 PhoneQuery.PROJECTION, null, null, in filterPhonesInternal()
318 PhoneQuery.SORT_KEY); in filterPhonesInternal()
382 PhoneQuery.PROJECTION, null, null, in filterEmailsInternal()
383 PhoneQuery.SORT_KEY); in filterEmailsInternal()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumbersUtil.java137 PhoneQuery.PROJECTION, in importSendToVoicemailContacts()
138 PhoneQuery.SELECT_SEND_TO_VOICEMAIL_TRUE, in importSendToVoicemailContacts()
149 phoneCursor.getString(PhoneQuery.NORMALIZED_NUMBER_COLUMN_INDEX); in importSendToVoicemailContacts()
150 final String number = phoneCursor.getString(PhoneQuery.NUMBER_COLUMN_INDEX); in importSendToVoicemailContacts()
341 public static class PhoneQuery { class in FilteredNumbersUtil
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/
DViewNumbersToImportFragment.java97 FilteredNumbersUtil.PhoneQuery.PROJECTION, in onCreateLoader()
98 FilteredNumbersUtil.PhoneQuery.SELECT_SEND_TO_VOICEMAIL_TRUE, in onCreateLoader()
DViewNumbersToImportAdapter.java52 final String number = cursor.getString(FilteredNumbersUtil.PhoneQuery.NUMBER_COLUMN_INDEX); in bindView()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DFrequentContactsCursorBuilder.java85 final MatrixCursor retCursor = new MatrixCursor(ContactUtil.PhoneQuery.PROJECTION); in build()
112 final Object[] row = new Object[ContactUtil.PhoneQuery.PROJECTION.length]; in build()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DTestDataFactory.java225 return new FakeCursor(ContactUtil.PhoneQuery.PROJECTION, sContactCursorColumns, in getAllContactListCursor()
246 return new FakeCursor(ContactUtil.PhoneQuery.PROJECTION, sContactCursorColumns, in getFrequentContactListCursor()