Home
last modified time | relevance | path

Searched refs:countryIso (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Dialer/src/com/android/dialer/contactinfo/
DContactInfoCache.java79 needRedraw |= queryContactInfo(req.number, req.countryIso, req.callLogInfo); in run()
147 public ContactInfo getValue(String number, String countryIso, ContactInfo cachedContactInfo) { in getValue() argument
148 NumberWithCountryIso numberCountryIso = new NumberWithCountryIso(number, countryIso); in getValue()
158 enqueueRequest(number, countryIso, cachedContactInfo, true); in getValue()
164 enqueueRequest(number, countryIso, cachedContactInfo, false); in getValue()
170 enqueueRequest(number, countryIso, cachedContactInfo, false); in getValue()
192 private boolean queryContactInfo(String number, String countryIso, ContactInfo callLogInfo) { in queryContactInfo() argument
193 final ContactInfo info = mContactInfoHelper.lookupNumber(number, countryIso); in queryContactInfo()
202 NumberWithCountryIso numberCountryIso = new NumberWithCountryIso(number, countryIso); in queryContactInfo()
222 mContactInfoHelper.updateCallLogContactInfo(number, countryIso, info, callLogInfo); in queryContactInfo()
[all …]
DNumberWithCountryIso.java30 public final String countryIso; field in NumberWithCountryIso
32 public NumberWithCountryIso(String number, String countryIso) { in NumberWithCountryIso() argument
34 this.countryIso = countryIso; in NumberWithCountryIso()
43 && TextUtils.equals(countryIso, other.countryIso); in equals()
49 int countryHashCode = countryIso == null ? 0 : countryIso.hashCode(); in hashCode()
DContactInfoRequest.java31 public final String countryIso; field in ContactInfoRequest
35 public ContactInfoRequest(String number, String countryIso, ContactInfo callLogInfo) { in ContactInfoRequest() argument
37 this.countryIso = countryIso; in ContactInfoRequest()
50 if (!TextUtils.equals(countryIso, other.countryIso)) return false; in equals()
61 result = prime * result + ((countryIso == null) ? 0 : countryIso.hashCode()); in hashCode()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DContactInfoHelper.java74 public ContactInfo lookupNumber(String number, String countryIso) { in lookupNumber() argument
89 sipInfo = queryContactInfoForPhoneNumber(username, countryIso); in lookupNumber()
95 ContactInfo phoneInfo = queryContactInfoForPhoneNumber(number, countryIso); in lookupNumber()
114 updatedInfo.formattedNumber = formatPhoneNumber(number, null, countryIso); in lookupNumber()
116 number, countryIso); in lookupNumber()
234 private ContactInfo queryContactInfoForPhoneNumber(String number, String countryIso) { in queryContactInfoForPhoneNumber() argument
239 if (!TextUtils.isEmpty(countryIso)) { in queryContactInfoForPhoneNumber()
242 String numberE164 = PhoneNumberUtils.formatNumberToE164(number, countryIso); in queryContactInfoForPhoneNumber()
254 info.formattedNumber = formatPhoneNumber(number, null, countryIso); in queryContactInfoForPhoneNumber()
277 private String formatPhoneNumber(String number, String normalizedNumber, String countryIso) { in formatPhoneNumber() argument
[all …]
DCallLogAsyncTaskUtil.java143 final String countryIso = cursor.getString(CallDetailQuery.COUNTRY_ISO_COLUMN_INDEX); in getPhoneCallDetailsForUri() local
161 ContactInfo lookupInfo = contactInfoHelper.lookupNumber(number, countryIso); in getPhoneCallDetailsForUri()
186 details.countryIso = !TextUtils.isEmpty(countryIso) ? countryIso in getPhoneCallDetailsForUri()
DCallLogAdapter.java482 final String countryIso = c.getString(CallLogQuery.COUNTRY_ISO); in bindCallLogListViewHolder() local
493 info = mContactInfoCache.getValue(number, countryIso, cachedContactInfo); in bindCallLogListViewHolder()
502 details.countryIso = countryIso; in bindCallLogListViewHolder()
696 void injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) { in injectContactInfoForTest() argument
698 mContactInfoCache.injectContactInfoForTest(number, countryIso, contactInfo); in injectContactInfoForTest()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDefaultCallLogInsertionHelper.java68 String countryIso = getCurrentCountryIso(); in addComputedValues() local
69 values.put(Calls.COUNTRY_ISO, countryIso); in addComputedValues()
72 getGeocodedLocationFor(values.getAsString(Calls.NUMBER), countryIso)); in addComputedValues()
83 String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in addComputedValues()
101 private PhoneNumber parsePhoneNumber(String number, String countryIso) { in parsePhoneNumber() argument
103 return getPhoneNumberUtil().parse(number, countryIso); in parsePhoneNumber()
117 public String getGeocodedLocationFor(String number, String countryIso) { in getGeocodedLocationFor() argument
118 PhoneNumber structuredPhoneNumber = parsePhoneNumber(number, countryIso); in getGeocodedLocationFor()
DCallLogInsertionHelper.java28 public String getGeocodedLocationFor(String number, String countryIso); in getGeocodedLocationFor() argument
DContactsDatabaseHelper.java4249 final String countryIso = c.getString(2); in upgradeToVersion903() local
4253 .formatNumberToE164(unNormalizedNumber, countryIso); in upgradeToVersion903()
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DCallLogAdapterTest.java63 public ContactInfo lookupNumber(String number, String countryIso) { in setUp()
103 assertEquals(TEST_COUNTRY_ISO, request.countryIso); in testBindView_NoCallLogCacheNorMemoryCache_EnqueueRequest()
220 public final String countryIso; field in CallLogAdapterTest.TestContactInfoCache.Request
224 public Request(String number, String countryIso, ContactInfo callLogInfo, in Request() argument
227 this.countryIso = countryIso; in Request()
241 protected void enqueueRequest(String number, String countryIso, ContactInfo callLogInfo, in enqueueRequest() argument
243 requests.add(new Request(number, countryIso, callLogInfo, immediate)); in enqueueRequest()
DCallLogListItemHelperTest.java317 details.countryIso = TEST_COUNTRY_ISO; in setDefaultDetails()
DPhoneCallDetailsHelperTest.java388 details.countryIso = TEST_COUNTRY_ISO; in setDefaultDetails()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DTelephonyManagerUtils.java55 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase(); in getCurrentCountryIso() local
57 if (countryIso == null) { in getCurrentCountryIso()
58 countryIso = locale.getCountry(); in getCurrentCountryIso()
60 + countryIso); in getCurrentCountryIso()
62 return countryIso; in getCurrentCountryIso()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DMissedCallNotifierImpl.java297 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase(); in getCurrentCountryIso() local
299 if (countryIso == null) { in getCurrentCountryIso()
300 countryIso = Locale.getDefault().getCountry(); in getCurrentCountryIso()
302 + countryIso); in getCurrentCountryIso()
304 return countryIso; in getCurrentCountryIso()
/packages/apps/InCallUI/src/com/android/incallui/
DCallerInfo.java490 String countryIso = TelephonyManagerUtils.getCurrentCountryIso(context, locale); in getGeoDescription() local
494 + "' for countryIso '" + countryIso + "'..."); in getGeoDescription()
495 pn = util.parse(number, countryIso); in getGeoDescription()
/packages/apps/Dialer/src/com/android/dialer/
DPhoneCallDetails.java37 public String countryIso; field in PhoneCallDetails
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java876 final String countryIso = GeoUtil.getCurrentCountryIso(getContext()); in computeFormattedPhoneNumbers() local
887 phoneDataItem.computeFormattedPhoneNumber(countryIso); in computeFormattedPhoneNumbers()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseVoicemailProviderTest.java200 public String getGeocodedLocationFor(String number, String countryIso) {
DCallLogProviderTest.java468 public String getGeocodedLocationFor(String number, String countryIso) { in createCallLogInsertionHelper()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListItemView.java1003 public void setPhoneNumber(String text, String countryIso) { in setPhoneNumber() argument