/packages/apps/Dialer/src/com/android/dialer/contactinfo/ |
NumberWithCountryIso.java | 30 public final String countryIso; 32 public NumberWithCountryIso(String number, String countryIso) { 34 this.countryIso = countryIso; 43 && TextUtils.equals(countryIso, other.countryIso); 49 int countryHashCode = countryIso == null ? 0 : countryIso.hashCode();
|
ContactInfoRequest.java | 31 public final String countryIso; 35 public ContactInfoRequest(String number, String countryIso, ContactInfo callLogInfo) { 37 this.countryIso = countryIso; 50 if (!TextUtils.equals(countryIso, other.countryIso)) return false; 61 result = prime * result + ((countryIso == null) ? 0 : countryIso.hashCode());
|
ContactInfoCache.java | 79 needRedraw |= queryContactInfo(req.number, req.countryIso, req.callLogInfo); 147 public ContactInfo getValue(String number, String countryIso, ContactInfo cachedContactInfo) { 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) { 193 final ContactInfo info = mContactInfoHelper.lookupNumber(number, countryIso); 202 NumberWithCountryIso numberCountryIso = new NumberWithCountryIso(number, countryIso); 222 mContactInfoHelper.updateCallLogContactInfo(number, countryIso, info, callLogInfo) [all...] |
/packages/apps/Dialer/src/com/android/dialer/service/ |
ExtendedBlockingButtonRenderer.java | 38 public final String countryIso; 50 String countryIso, 58 this.countryIso = countryIso; 65 void onBlockedNumber(String number, @Nullable String countryIso); 66 void onUnblockedNumber(String number, @Nullable String countryIso); 80 * @param countryIso Two-letter country code. 85 String number, String countryIso, QuickContactBadge badge, TextView view);
|
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
BlockedNumbersUtil.java | 35 String countryIso = Locale.getDefault().getCountry(); 36 if (countryIso == null || countryIso.length() != 2) { 37 countryIso = "US"; 39 return countryIso;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
TelephonyManagerUtils.java | 55 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/ |
DefaultCallLogInsertionHelper.java | 68 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) { 103 return getPhoneNumberUtil().parse(number, countryIso); 117 public String getGeocodedLocationFor(String number, String countryIso) { 118 PhoneNumber structuredPhoneNumber = parsePhoneNumber(number, countryIso);
|
CallLogInsertionHelper.java | 28 public String getGeocodedLocationFor(String number, String countryIso);
|
/frameworks/base/location/java/android/location/ |
Country.java | 70 * @param countryIso the ISO 3166-1 two letters country code. 71 * @param source where the countryIso came from, could be one of below 81 public Country(final String countryIso, final int source) { 82 if (countryIso == null || source < COUNTRY_SOURCE_NETWORK 86 mCountryIso = countryIso.toUpperCase(Locale.US); 91 private Country(final String countryIso, final int source, long timestamp) { 92 if (countryIso == null || source < COUNTRY_SOURCE_NETWORK 96 mCountryIso = countryIso.toUpperCase(Locale.US); 158 * the timestamp value and just checks for equivalence of countryIso and source values. 188 * and timestamp fields, return true if the countryIso fields are equa [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallLogNotificationsHelper.java | 54 String countryIso = GeoUtil.getCurrentCountryIso(context); 58 new ContactInfoHelper(context, countryIso), 59 countryIso); 72 String countryIso) { 77 mCurrentCountryIso = countryIso; 107 @Nullable String countryIso) { 108 return getContactInfo(number, numberPresentation, countryIso).name; 118 @Nullable String countryIso) { 119 if (countryIso == null) { 120 countryIso = mCurrentCountryIso [all...] |
ContactInfoHelper.java | 75 * @param countryIso the country associated with this number 78 public ContactInfo lookupNumber(String number, String countryIso) { 92 info = queryContactInfoForPhoneNumber(username, countryIso, true); 97 info = queryContactInfoForPhoneNumber(number, countryIso, false); 110 updatedInfo.formattedNumber = formatPhoneNumber(number, null, countryIso); 112 number, countryIso); 247 private ContactInfo queryContactInfoForPhoneNumber(String number, String countryIso, 255 info.formattedNumber = formatPhoneNumber(number, null, countryIso); 273 * @param countryIso the ISO 3166-1 two letters country code, the country's convention will be 278 private String formatPhoneNumber(String number, String normalizedNumber, String countryIso) { [all...] |
/packages/apps/Dialer/src/com/android/dialer/filterednumber/ |
BlockedNumbersAdapter.java | 55 final String countryIso = cursor.getString(cursor.getColumnIndex( 68 countryIso, 69 PhoneNumberUtils.formatNumber(number, countryIso), 88 updateView(view, number, countryIso);
|
NumbersAdapter.java | 59 public void updateView(View view, String number, String countryIso) { 69 ContactInfo info = mContactInfoHelper.lookupNumber(number, countryIso);
|
BlockNumberDialogFragment.java | 93 String countryIso, 99 blockId, number, countryIso, displayNumber, parentViewId); 108 String countryIso, 120 args.putString(ARG_COUNTRY_ISO, countryIso);
|
/packages/apps/Dialer/src/com/android/dialer/compat/ |
FilteredNumberCompat.java | 229 * @param countryIso (optional) The country iso to use to format the number. 234 @Nullable String e164Number, @Nullable String countryIso) { 239 e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); 242 contentValues.put(getCountryIsoColumnName(), countryIso); 254 * @param countryIso The countryIso used to format the given number. 262 final Integer blockId, final String number, final String countryIso, 272 DialerApplication.getContext().getContentResolver(), number, countryIso, 279 .show(blockId, number, countryIso, displayNumber, parentViewId, fragmentManager, 288 final ContentResolver contentResolver, final String number, final String countryIso, [all...] |
/packages/apps/Dialer/src/com/android/dialer/database/ |
FilteredNumberAsyncQueryHandler.java | 151 final OnCheckBlockedListener listener, String number, String countryIso) { 152 final String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); 194 final OnBlockNumberListener listener, String number, @Nullable String countryIso) { 195 blockNumber(listener, null, number, countryIso); 205 @Nullable String countryIso) { 207 normalizedNumber, countryIso));
|
/packages/services/Car/car-cluster-demo-renderer/src/android/car/cluster/demorenderer/ |
PhoneBook.java | 92 String countryIso = Locale.getDefault().getCountry(); 93 if (countryIso == null || countryIso.length() != 2) { 94 countryIso = "US"; 96 String e164 = PhoneNumberUtils.formatNumberToE164(number, countryIso); 97 String formattedNumber = PhoneNumberUtils.formatNumber(number, e164, countryIso);
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
BlockedListSearchAdapter.java | 77 final String countryIso = GeoUtil.getCurrentCountryIso(mContext); 88 onCheckListener, number, countryIso);
|
/frameworks/base/services/core/java/com/android/server/location/ |
LocationBasedCountryDetector.java | 246 String countryIso = null; 248 countryIso = getCountryFromLocation(location); 250 if (countryIso != null) { 251 mDetectedCountry = new Country(countryIso, Country.COUNTRY_SOURCE_LOCATION);
|
ComprehensiveCountryDetector.java | 222 String countryIso = null; 224 countryIso = mTelephonyManager.getNetworkCountryIso(); 225 if (!TextUtils.isEmpty(countryIso)) { 226 return new Country(countryIso, Country.COUNTRY_SOURCE_NETWORK); 243 String countryIso = null; 244 countryIso = mTelephonyManager.getSimCountryIso(); 245 if (!TextUtils.isEmpty(countryIso)) { 246 return new Country(countryIso, Country.COUNTRY_SOURCE_SIM); 321 + ", countryISO: " + detectedCountry.getCountryIso() + ")")
|
/packages/apps/Dialer/src/com/android/dialer/util/ |
PhoneNumberUtil.java | 114 String countryIso = TelephonyManagerUtils.getCurrentCountryIso(context, locale); 118 + "' for countryIso '" + countryIso + "'..."); 119 pn = util.parse(number, countryIso);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
CallLogProviderTestable.java | 48 public String getGeocodedLocationFor(String number, String countryIso) {
|
/packages/services/Telephony/src/com/android/services/telephony/ |
ConferenceParticipantConnection.java | 72 String countryIso = getCountryIso(parentConnection.getCall().getPhone()); 73 address = getParticipantAddress(participant, countryIso); 216 * @param countryIso The country ISO of the current subscription; used when formatting the 220 private Uri getParticipantAddress(ConferenceParticipant participant, String countryIso) { 260 if (!TextUtils.isEmpty(countryIso)) { 261 formattedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso);
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
CallLogNotificationsHelperTest.java | 134 private ContactInfo getContactInfo(String number, int presentation, String countryIso) { 135 return mCallLogNotificationsHelper.getContactInfo(number, presentation, countryIso);
|
/frameworks/base/telephony/java/android/telephony/ |
SubscriptionInfo.java | 117 Bitmap icon, int mcc, int mnc, String countryIso) { 130 this.mCountryIso = countryIso; 301 String countryIso = source.readString(); 305 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso);
|