/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | PhoneNumberListAdapter.java | 68 public static class PhoneQuery { class in PhoneNumberListAdapter 171 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader() 219 loader.setProjection(PhoneQuery.PROJECTION_PRIMARY); in configureLoader() 221 loader.setProjection(PhoneQuery.PROJECTION_ALTERNATIVE); in configureLoader() 282 return ((Cursor) getItem(position)).getString(PhoneQuery.DISPLAY_NAME); in getContactDisplayName() 287 return item != null ? item.getString(PhoneQuery.PHONE_NUMBER) : null; in getPhoneNumber() 305 final long phoneId = cursor.getLong(PhoneQuery.PHONE_ID); in getDataUri() 319 return item != null ? item.getString(PhoneQuery.LOOKUP_KEY) : null; in getLookupKey() 347 final long contactId = cursor.getLong(PhoneQuery.CONTACT_ID); in getResultCount() 371 final long currentContactId = cursor.getLong(PhoneQuery.CONTACT_ID); in bindView() [all …]
|
D | PhoneNumberPickerFragment.java | 357 PhoneNumberListAdapter.PhoneQuery.ANALYTICS_CATEGORY); in maybeTrackAnalytics() 359 PhoneNumberListAdapter.PhoneQuery.ANALYTICS_ACTION); in maybeTrackAnalytics() 361 PhoneNumberListAdapter.PhoneQuery.ANALYTICS_VALUE); in maybeTrackAnalytics()
|
/packages/apps/Dialer/src/com/android/dialer/database/ |
D | DialerDatabaseHelper.java | 128 public static interface PhoneQuery { interface in DialerDatabaseHelper 602 final Long contactId = updatedContactCursor.getLong(PhoneQuery.PHONE_CONTACT_ID); in removeUpdatedContacts() 658 final String number = updatedContactCursor.getString(PhoneQuery.PHONE_NUMBER); in insertUpdatedContactsAndNumberPrefix() 666 PhoneQuery.PHONE_LOOKUP_KEY); in insertUpdatedContactsAndNumberPrefix() 674 PhoneQuery.PHONE_DISPLAY_NAME); in insertUpdatedContactsAndNumberPrefix() 680 insert.bindLong(1, updatedContactCursor.getLong(PhoneQuery.PHONE_ID)); in insertUpdatedContactsAndNumberPrefix() 681 insert.bindLong(3, updatedContactCursor.getLong(PhoneQuery.PHONE_CONTACT_ID)); in insertUpdatedContactsAndNumberPrefix() 682 insert.bindLong(6, updatedContactCursor.getLong(PhoneQuery.PHONE_PHOTO_ID)); in insertUpdatedContactsAndNumberPrefix() 683 insert.bindLong(7, updatedContactCursor.getLong(PhoneQuery.PHONE_LAST_TIME_USED)); in insertUpdatedContactsAndNumberPrefix() 684 insert.bindLong(8, updatedContactCursor.getInt(PhoneQuery.PHONE_TIMES_USED)); in insertUpdatedContactsAndNumberPrefix() [all …]
|
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
D | SmartDialCursorLoader.java | 27 import com.android.contacts.common.list.PhoneNumberListAdapter.PhoneQuery; 82 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()
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | ContactInfoHelper.java | 171 mContext.getContentResolver().query(uri, PhoneQuery._PROJECTION, null, null, null); in lookupContactFromUri() 177 long contactId = phonesCursor.getLong(PhoneQuery.PERSON_ID); in lookupContactFromUri() 178 String lookupKey = phonesCursor.getString(PhoneQuery.LOOKUP_KEY); in lookupContactFromUri() 181 info.name = phonesCursor.getString(PhoneQuery.NAME); in lookupContactFromUri() 182 info.type = phonesCursor.getInt(PhoneQuery.PHONE_TYPE); in lookupContactFromUri() 183 info.label = phonesCursor.getString(PhoneQuery.LABEL); in lookupContactFromUri() 184 info.number = phonesCursor.getString(PhoneQuery.MATCHED_NUMBER); in lookupContactFromUri() 185 info.normalizedNumber = phonesCursor.getString(PhoneQuery.NORMALIZED_NUMBER); in lookupContactFromUri() 186 info.photoId = phonesCursor.getLong(PhoneQuery.PHOTO_ID); in lookupContactFromUri() 188 UriUtils.parseUriOrNull(phonesCursor.getString(PhoneQuery.PHOTO_URI)); in lookupContactFromUri()
|
D | PhoneQuery.java | 24 final class PhoneQuery { class
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | RegularSearchListAdapter.java | 48 info.name = item.getString(PhoneQuery.DISPLAY_NAME); in getContactInfo() 49 info.type = item.getInt(PhoneQuery.PHONE_TYPE); in getContactInfo() 50 info.label = item.getString(PhoneQuery.PHONE_LABEL); in getContactInfo() 51 info.number = item.getString(PhoneQuery.PHONE_NUMBER); in getContactInfo() 52 final String photoUriStr = item.getString(PhoneQuery.PHOTO_URI); in getContactInfo() 55 cacheInfo.setLookupKey(item.getString(PhoneQuery.LOOKUP_KEY)); in getContactInfo()
|
D | SmartDialNumberListAdapter.java | 82 if (mNameMatcher.matches(cursor.getString(PhoneQuery.DISPLAY_NAME))) { in setHighlight() 87 Log.v(TAG, cursor.getString(PhoneQuery.DISPLAY_NAME) + " " + in setHighlight() 94 PhoneQuery.PHONE_NUMBER)); in setHighlight() 108 long id = cursor.getLong(PhoneQuery.PHONE_ID); in getDataUri()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ContactUtil.java | 79 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() 294 return new CursorQueryData(context, uri, PhoneQuery.PROJECTION, null, null, in filterPhones() 295 PhoneQuery.SORT_KEY); in filterPhones()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | FrequentContactsCursorBuilder.java | 85 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/ |
D | TestDataFactory.java | 225 return new FakeCursor(ContactUtil.PhoneQuery.PROJECTION, sContactCursorColumns, in getAllContactListCursor() 246 return new FakeCursor(ContactUtil.PhoneQuery.PROJECTION, sContactCursorColumns, in getFrequentContactListCursor()
|