/packages/apps/UnifiedEmail/src/com/android/mail/ |
ContactInfo.java | 23 public class ContactInfo { 28 public ContactInfo(Uri contactUri) { 32 public ContactInfo(Uri contactUri, byte[] photoBytes) { 36 public ContactInfo(Uri contactUri, Bitmap photo) { 40 private ContactInfo(Uri contactUri, byte[] photoBytes, Bitmap photo) {
|
ContactInfoSource.java | 22 * Views that are interested in looking up ContactInfo objects should bind themselves to a 28 ContactInfo getContactInfo(String email);
|
SenderInfoLoader.java | 50 public class SenderInfoLoader extends AsyncTaskLoader<ImmutableMap<String, ContactInfo>> { 90 public ImmutableMap<String, ContactInfo> loadInBackground() { 104 * {@link ContactInfo}. Otherwise, just put the raw bytes of the photo 105 * into the {@link ContactInfo}. 106 * @return A mapping of email to {@link ContactInfo}. How to interpret the map: 110 * <li>Either {@link ContactInfo#photoBytes} or {@link ContactInfo#photo} is non-null - 112 * <li>Both {@link ContactInfo#photoBytes} and {@link ContactInfo#photo} are null - 116 public static ImmutableMap<String, ContactInfo> loadContactPhotos [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
ContactLoaderCallbacks.java | 27 import com.android.mail.ContactInfo; 39 LoaderManager.LoaderCallbacks<ImmutableMap<String, ContactInfo>> { 42 private ImmutableMap<String, ContactInfo> mContactInfoMap; 56 public Loader<ImmutableMap<String, ContactInfo>> onCreateLoader(int id, Bundle args) { 61 public void onLoadFinished(Loader<ImmutableMap<String, ContactInfo>> loader, 62 ImmutableMap<String, ContactInfo> data) { 68 public void onLoaderReset(Loader<ImmutableMap<String, ContactInfo>> loader) { 72 public ContactInfo getContactInfo(String email) {
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
ContactsTest.java | 97 private class ContactInfo { // Not static to access outer world. 105 public ContactInfo(String contactId, String displayName, String photoUri, 169 ContactInfo contactInfo = getContactInfoFromPhoneLookupUri(false /*isEnterprise*/, 171 assertNotNull(contactInfo); 172 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME, contactInfo.displayName); 173 contactInfo.assertNoPhotoUri(); 174 assertFalse(contactInfo.hasPhotoId()); 175 assertFalse(isEnterpriseContactId(contactInfo.contactId)); 177 contactInfo = getContactInfoFromEmailLookupUri(false /*isEnterprise*/ [all...] |
/development/samples/BusinessCard/src/com/example/android/businesscard/ |
ContactInfo.java | 22 public class ContactInfo {
|
BusinessCardActivity.java | 99 AsyncTask<Uri, Void, ContactInfo> task = new AsyncTask<Uri, Void, ContactInfo>() { 102 protected ContactInfo doInBackground(Uri... uris) { 107 protected void onPostExecute(ContactInfo result) { 118 protected void bindView(ContactInfo contactInfo) { 120 displayNameView.setText(contactInfo.getDisplayName()); 123 phoneNumberView.setText(contactInfo.getPhoneNumber());
|
ContactAccessorSdk3_4.java | 55 public ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri) { 56 ContactInfo contactInfo = new ContactInfo(); 61 contactInfo.setDisplayName(cursor.getString(0)); 73 contactInfo.setPhoneNumber(cursor.getString(0)); 79 return contactInfo;
|
ContactAccessorSdk5.java | 58 public ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri) { 59 ContactInfo contactInfo = new ContactInfo(); 68 contactInfo.setDisplayName(cursor.getString(1)); 80 contactInfo.setPhoneNumber(cursor.getString(0)); 86 return contactInfo;
|
ContactAccessor.java | 88 public abstract ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri);
|
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/ |
ContactInfoCache.java | 17 package com.android.dialer.app.contactinfo; 28 import com.android.dialer.phonenumbercache.ContactInfo; 54 private final ExpirableCache<NumberWithCountryIso, ContactInfo> cache; 90 @NonNull ExpirableCache<NumberWithCountryIso, ContactInfo> internalCache, 104 public ContactInfo getValue( 107 ContactInfo callLogContactInfo, 110 ExpirableCache.CachedValue<ContactInfo> cachedInfo = cache.getCachedValue(numberCountryIso); 111 ContactInfo info = cachedInfo == null ? null : cachedInfo.getValue(); 117 cache.put(numberCountryIso, ContactInfo.EMPTY); 137 if (Objects.equals(info, ContactInfo.EMPTY)) [all...] |
ExpirableCacheHeadlessFragment.java | 17 package com.android.dialer.app.contactinfo; 24 import com.android.dialer.phonenumbercache.ContactInfo; 37 private ExpirableCache<NumberWithCountryIso, ContactInfo> retainedCache; 64 public ExpirableCache<NumberWithCountryIso, ContactInfo> getRetainedCache() {
|
ContactInfoRequest.java | 17 package com.android.dialer.app.contactinfo; 21 import com.android.dialer.phonenumbercache.ContactInfo; 39 public final ContactInfo callLogInfo; 62 String number, String countryIso, ContactInfo callLogInfo, @TYPE int type) {
|
ContactPhotoLoader.java | 17 package com.android.dialer.app.contactinfo; 33 import com.android.dialer.phonenumbercache.ContactInfo; 40 * Class to create the appropriate contact icon from a ContactInfo. This class is for synchronous, 47 private final ContactInfo contactInfo; 49 public ContactPhotoLoader(Context context, ContactInfo contactInfo) { 51 this.contactInfo = Objects.requireNonNull(contactInfo); 62 /** Create a contact photo icon bitmap appropriate for the ContactInfo. * [all...] |
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/ |
ContactInfoHelper.java | 183 public static ContactInfo getContactInfo(Cursor c) { 184 ContactInfo info = new ContactInfo(); 206 public ContactInfo lookupNumber(String number, String countryIso) { 224 public ContactInfo lookupNumber(String number, String countryIso, long directoryId) { 230 ContactInfo info; 236 if (info == null || info == ContactInfo.EMPTY) { 248 final ContactInfo updatedInfo; 255 if (info == ContactInfo.EMPTY) { 265 private ContactInfo createEmptyContactInfoForNumber(String number, String countryIso) [all...] |
ContactInfo.java | 27 public class ContactInfo { 29 public static final ContactInfo EMPTY = new ContactInfo(); 45 * ContactInfo.normalizedNumber is a column value returned by PhoneLookup query. By definition, 95 ContactInfo other = (ContactInfo) obj; 143 return "ContactInfo{"
|
CachedNumberLookupService.java | 29 CachedContactInfo buildCachedContactInfo(ContactInfo info); 38 * found in the cache, {@link ContactInfo#EMPTY} if the phone number was not found in the 68 ContactInfo getContactInfo();
|
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/ |
NumbersAdapter.java | 34 import com.android.dialer.phonenumbercache.ContactInfo; 70 ContactInfo info = contactInfoHelper.lookupNumber(number, countryIso); 72 info = new ContactInfo(); 98 private void loadContactPhoto(ContactInfo info, String displayName, QuickContactBadge badge) { 114 private String getDisplayNumber(ContactInfo info) { 124 private CharSequence getNumberTypeOrLocation(ContactInfo info, String countryIso) {
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
RegularSearchListAdapter.java | 27 import com.android.dialer.phonenumbercache.ContactInfo; 43 ContactInfo info = new ContactInfo(); 63 * cache the resulting @{link ContactInfo} into local db. Set usertype to USER_TYPE_WORK
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
ContactResolver.java | 30 import com.android.mail.ContactInfo; 186 final ImmutableMap<String, ContactInfo> contactInfos = loadContactPhotos(emails); 200 final ContactInfo contactInfo = contactInfos.get(email); 201 if (contactInfo == null) { 209 final byte[] photo = contactInfo.photoBytes; 244 protected ImmutableMap<String, ContactInfo> loadContactPhotos(Set<String> emails) {
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
PhoneCallDetails.java | 31 import com.android.dialer.phonenumbercache.ContactInfo; 133 public ContactInfo cachedContactInfo;
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
VisualVoicemailUpdateTask.java | 36 import com.android.dialer.phonenumbercache.ContactInfo; 87 Map<String, ContactInfo> contactInfos = new ArrayMap<>(); 90 ContactInfo contactInfo = 93 contactInfos.put(newCall.number, contactInfo); 97 callers = contactInfo.name; 101 R.string.notification_voicemail_callers_list, callers, contactInfo.name);
|
CallLogNotificationsQueryHelper.java | 44 import com.android.dialer.phonenumbercache.ContactInfo; 190 * Given a number and number information (presentation and country ISO), get {@link ContactInfo}. 194 public ContactInfo getContactInfo( 201 ContactInfo contactInfo = new ContactInfo(); 202 contactInfo.number = number; 203 contactInfo.formattedNumber = PhoneNumberHelper.formatNumber(context, number, countryIso); 204 // contactInfo.normalizedNumber is not PhoneNumberUtils.normalizeNumber. Read ContactInfo [all...] |
VisualVoicemailNotifier.java | 40 import com.android.dialer.app.contactinfo.ContactPhotoLoader; 49 import com.android.dialer.phonenumbercache.ContactInfo; 75 @NonNull Map<String, ContactInfo> contactInfos, 157 @NonNull Map<String, ContactInfo> contactInfos) { 159 ContactInfo contactInfo = contactInfos.get(voicemail.number); 167 contactInfo.name)) 223 ContactPhotoLoader loader = new ContactPhotoLoader(context, contactInfo);
|
/packages/apps/Dialer/java/com/android/incallui/ |
CallerInfoUtils.java | 30 import com.android.dialer.phonenumbercache.ContactInfo; 129 ContactInfo info = new ContactInfo();
|