Searched refs:countryIso (Results 1 - 19 of 19) sorted by relevance

/packages/apps/Dialer/src/com/android/dialer/contactinfo/
H A DNumberWithCountryIso.java30 public final String countryIso; field in class:NumberWithCountryIso
32 public NumberWithCountryIso(String number, String countryIso) { argument
34 this.countryIso = countryIso;
43 && TextUtils.equals(countryIso, other.countryIso);
49 int countryHashCode = countryIso == null ? 0 : countryIso.hashCode();
H A DContactInfoRequest.java31 public final String countryIso; field in class:ContactInfoRequest
35 public ContactInfoRequest(String number, String countryIso, ContactInfo callLogInfo) { argument
37 this.countryIso = countryIso;
50 if (!TextUtils.equals(countryIso, other.countryIso)) return false;
61 result = prime * result + ((countryIso == null) ? 0 : countryIso.hashCode());
H A DContactInfoCache.java79 needRedraw |= queryContactInfo(req.number, req.countryIso, req.callLogInfo);
147 public ContactInfo getValue(String number, String countryIso, ContactInfo cachedContactInfo) { argument
148 NumberWithCountryIso numberCountryIso = new NumberWithCountryIso(number, countryIso);
158 enqueueRequest(number, countryIso, cachedContactInfo, true);
164 enqueueRequest(number, countryIso, cachedContactInfo, false);
170 enqueueRequest(number, countryIso, cachedContactInfo, false);
192 private boolean queryContactInfo(String number, String countryIso, ContactInfo callLogInfo) { argument
193 final ContactInfo info = mContactInfoHelper.lookupNumber(number, countryIso);
202 NumberWithCountryIso numberCountryIso = new NumberWithCountryIso(number, countryIso);
222 mContactInfoHelper.updateCallLogContactInfo(number, countryIso, inf
294 enqueueRequest(String number, String countryIso, ContactInfo callLogInfo, boolean immediate) argument
329 injectContactInfoForTest( String number, String countryIso, ContactInfo contactInfo) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DTelephonyManagerUtils.java55 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase();
57 if (countryIso == null) {
58 countryIso = locale.getCountry();
59 Log.w(LOG_TAG, "No CountryDetector; falling back to countryIso based on locale: "
60 + countryIso);
62 return countryIso;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DCallLogInsertionHelper.java28 public String getGeocodedLocationFor(String number, String countryIso); argument
H A DDefaultCallLogInsertionHelper.java68 String countryIso = getCurrentCountryIso();
69 values.put(Calls.COUNTRY_ISO, countryIso);
72 getGeocodedLocationFor(values.getAsString(Calls.NUMBER), countryIso));
83 String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso);
101 private PhoneNumber parsePhoneNumber(String number, String countryIso) { argument
103 return getPhoneNumberUtil().parse(number, countryIso);
117 public String getGeocodedLocationFor(String number, String countryIso) { argument
118 PhoneNumber structuredPhoneNumber = parsePhoneNumber(number, countryIso);
H A DContactsDatabaseHelper.java4249 final String countryIso = c.getString(2);
4253 .formatNumberToE164(unNormalizedNumber, countryIso);
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DContactInfoHelper.java72 * @param countryIso the country associated with this number
74 public ContactInfo lookupNumber(String number, String countryIso) { argument
89 sipInfo = queryContactInfoForPhoneNumber(username, countryIso);
95 ContactInfo phoneInfo = queryContactInfoForPhoneNumber(number, countryIso);
114 updatedInfo.formattedNumber = formatPhoneNumber(number, null, countryIso);
116 number, countryIso);
234 private ContactInfo queryContactInfoForPhoneNumber(String number, String countryIso) { argument
239 if (!TextUtils.isEmpty(countryIso)) {
242 String numberE164 = PhoneNumberUtils.formatNumberToE164(number, countryIso);
254 info.formattedNumber = formatPhoneNumber(number, null, countryIso);
277 formatPhoneNumber(String number, String normalizedNumber, String countryIso) argument
299 updateCallLogContactInfo(String number, String countryIso, ContactInfo updatedInfo, ContactInfo callLogInfo) argument
[all...]
H A DCallLogAsyncTaskUtil.java143 final String countryIso = cursor.getString(CallDetailQuery.COUNTRY_ISO_COLUMN_INDEX);
159 ? contactInfoHelper.lookupNumber(number, countryIso)
182 details.countryIso = !TextUtils.isEmpty(countryIso) ? countryIso
H A DCallLogAdapter.java480 final String countryIso = c.getString(CallLogQuery.COUNTRY_ISO);
491 info = mContactInfoCache.getValue(number, countryIso, cachedContactInfo);
500 details.countryIso = countryIso;
691 void injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) { argument
693 mContactInfoCache.injectContactInfoForTest(number, countryIso, contactInfo);
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
H A DCallLogAdapterTest.java63 public ContactInfo lookupNumber(String number, String countryIso) {
103 assertEquals(TEST_COUNTRY_ISO, request.countryIso);
220 public final String countryIso; field in class:CallLogAdapterTest.TestContactInfoCache.Request
224 public Request(String number, String countryIso, ContactInfo callLogInfo, argument
227 this.countryIso = countryIso;
241 protected void enqueueRequest(String number, String countryIso, ContactInfo callLogInfo, argument
243 requests.add(new Request(number, countryIso, callLogInfo, immediate));
H A DCallLogListItemHelperTest.java317 details.countryIso = TEST_COUNTRY_ISO;
H A DPhoneCallDetailsHelperTest.java388 details.countryIso = TEST_COUNTRY_ISO;
/packages/apps/Dialer/src/com/android/dialer/
H A DPhoneCallDetails.java37 public String countryIso; field in class:PhoneCallDetails
/packages/apps/InCallUI/src/com/android/incallui/
H A DCallerInfo.java484 String countryIso = TelephonyManagerUtils.getCurrentCountryIso(context, locale);
488 + "' for countryIso '" + countryIso + "'...");
489 pn = util.parse(number, countryIso);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DBaseVoicemailProviderTest.java200 public String getGeocodedLocationFor(String number, String countryIso) {
H A DCallLogProviderTest.java468 public String getGeocodedLocationFor(String number, String countryIso) {
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
H A DContactLoader.java876 final String countryIso = GeoUtil.getCurrentCountryIso(getContext());
887 phoneDataItem.computeFormattedPhoneNumber(countryIso);
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactListItemView.java1003 public void setPhoneNumber(String text, String countryIso) { argument

Completed in 322 milliseconds