Home | History | Annotate | Download | only in calllog

Lines Matching refs:contactInfo

39 import com.android.dialer.phonenumbercache.ContactInfo;
168 * Given a number and number information (presentation and country ISO), get {@link ContactInfo}.
172 public ContactInfo getContactInfo(
179 ContactInfo contactInfo = new ContactInfo();
180 contactInfo.number = number;
181 contactInfo.formattedNumber = PhoneNumberUtils.formatNumber(number, countryIso);
182 // contactInfo.normalizedNumber is not PhoneNumberUtils.normalizeNumber. Read ContactInfo.
183 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso);
186 contactInfo.name =
189 if (!TextUtils.isEmpty(contactInfo.name)) {
190 return contactInfo;
194 ContactInfo cachedContactInfo = mContactInfoHelper.lookupNumber(number, countryIso);
200 if (!TextUtils.isEmpty(contactInfo.formattedNumber)) {
202 contactInfo.name = contactInfo.formattedNumber;
205 contactInfo.name = number;
208 contactInfo.name = mContext.getResources().getString(R.string.unknown);
210 return contactInfo;