/packages/apps/Dialer/src/com/android/dialer/contactinfo/ |
D | ContactInfoCache.java | 79 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 …]
|
D | NumberWithCountryIso.java | 30 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()
|
D | ContactInfoRequest.java | 31 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/ |
D | ContactInfoHelper.java | 74 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 …]
|
D | CallLogAsyncTaskUtil.java | 143 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()
|
D | CallLogAdapter.java | 482 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/ |
D | DefaultCallLogInsertionHelper.java | 68 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()
|
D | CallLogInsertionHelper.java | 28 public String getGeocodedLocationFor(String number, String countryIso); in getGeocodedLocationFor() argument
|
D | ContactsDatabaseHelper.java | 4249 final String countryIso = c.getString(2); in upgradeToVersion903() local 4253 .formatNumberToE164(unNormalizedNumber, countryIso); in upgradeToVersion903()
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
D | CallLogAdapterTest.java | 63 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()
|
D | CallLogListItemHelperTest.java | 317 details.countryIso = TEST_COUNTRY_ISO; in setDefaultDetails()
|
D | PhoneCallDetailsHelperTest.java | 388 details.countryIso = TEST_COUNTRY_ISO; in setDefaultDetails()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | TelephonyManagerUtils.java | 55 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/ |
D | MissedCallNotifierImpl.java | 297 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/ |
D | CallerInfo.java | 490 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/ |
D | PhoneCallDetails.java | 37 public String countryIso; field in PhoneCallDetails
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | ContactLoader.java | 876 final String countryIso = GeoUtil.getCurrentCountryIso(getContext()); in computeFormattedPhoneNumbers() local 887 phoneDataItem.computeFormattedPhoneNumber(countryIso); in computeFormattedPhoneNumbers()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseVoicemailProviderTest.java | 200 public String getGeocodedLocationFor(String number, String countryIso) {
|
D | CallLogProviderTest.java | 468 public String getGeocodedLocationFor(String number, String countryIso) { in createCallLogInsertionHelper()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactListItemView.java | 1003 public void setPhoneNumber(String text, String countryIso) { in setPhoneNumber() argument
|