/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/ |
D | PhoneNumberHelper.java | 230 Context context, String number, @Nullable String countryIso) { in getGeoDescription() argument 233 .getGeoDescription(context, number, countryIso); in getGeoDescription() 248 String countryIso = in getCurrentCountryIso() local 251 if (TextUtils.isEmpty(countryIso)) { in getCurrentCountryIso() 252 countryIso = LocaleUtils.getLocale(context).getCountry(); in getCurrentCountryIso() 255 "No CountryDetector; falling back to countryIso based on locale: " + countryIso); in getCurrentCountryIso() 257 countryIso = countryIso.toUpperCase(); in getCurrentCountryIso() 260 return countryIso; in getCurrentCountryIso() 272 Context context, @Nullable String number, @Nullable String numberE164, String countryIso) { in formatNumber() argument 282 String formattedNumber = PhoneNumberUtils.formatNumber(number, numberE164, countryIso); in formatNumber() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/ |
D | ContactInfoCache.java | 106 String countryIso, in getValue() argument 109 NumberWithCountryIso numberCountryIso = new NumberWithCountryIso(number, countryIso); in getValue() 122 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ true, requestType); in getValue() 128 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ false, requestType); in getValue() 134 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ false, requestType); in getValue() 164 info = contactInfoHelper.lookupNumber(request.number, request.countryIso); in queryContactInfo() 178 request.countryIso, in queryContactInfo() 186 info = contactInfoHelper.lookupNumberInRemoteDirectory(request.number, request.countryIso); in queryContactInfo() 197 new NumberWithCountryIso(request.number, request.countryIso); in queryContactInfo() 218 request.number, request.countryIso, info, request.callLogInfo); in queryContactInfo() [all …]
|
D | NumberWithCountryIso.java | 31 public final String countryIso; field in NumberWithCountryIso 33 public NumberWithCountryIso(String number, String countryIso) { in NumberWithCountryIso() argument 35 this.countryIso = countryIso; in NumberWithCountryIso() 47 return TextUtils.equals(number, other.number) && TextUtils.equals(countryIso, other.countryIso); in equals() 53 int countryHashCode = countryIso == null ? 0 : countryIso.hashCode(); in hashCode()
|
D | ContactInfoRequest.java | 37 public final String countryIso; field in ContactInfoRequest 62 String number, String countryIso, ContactInfo callLogInfo, @TYPE int type) { in ContactInfoRequest() argument 65 this.countryIso = countryIso; in ContactInfoRequest() 87 if (!TextUtils.equals(countryIso, other.countryIso)) { in equals() 107 return Objects.hash(sequenceNumber, number, countryIso, callLogInfo, type); in hashCode()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogNotificationsQueryHelper.java | 68 String countryIso) { in CallLogNotificationsQueryHelper() argument 72 currentCountryIso = countryIso; in CallLogNotificationsQueryHelper() 78 String countryIso = GeoUtil.getCurrentCountryIso(context); in getInstance() local 82 new ContactInfoHelper(context, countryIso), in getInstance() 83 countryIso); in getInstance() 191 @Nullable String number, int numberPresentation, @Nullable String countryIso) { in getName() argument 192 return getContactInfo(number, numberPresentation, countryIso).name; in getName() 201 @Nullable String number, int numberPresentation, @Nullable String countryIso) { in getContactInfo() argument 202 if (countryIso == null) { in getContactInfo() 203 countryIso = currentCountryIso; in getContactInfo() [all …]
|
D | BlockReportSpamListener.java | 70 final String countryIso, in onBlockReportSpam() argument 85 countryIso, in onBlockReportSpam() 97 countryIso); in onBlockReportSpam() 111 final String countryIso, in onBlock() argument 126 countryIso, in onBlock() 138 countryIso); in onBlock() 149 final String countryIso, in onUnblock() argument 164 countryIso, in onUnblock() 185 final String countryIso, in onReportNotSpam() argument 197 countryIso, in onReportNotSpam()
|
D | CallLogListItemViewHolder.java | 191 public String countryIso; field in CallLogListItemViewHolder 414 displayNumber, number, countryIso, callType, info.sourceType); in onMenuItemClick() 424 displayNumber, number, countryIso, callType, info.sourceType); in onMenuItemClick() 430 displayNumber, number, countryIso, callType, info.sourceType, isSpam, blockId); in onMenuItemClick() 435 displayNumber, number, countryIso, callType, info.sourceType); in onMenuItemClick() 1000 displayNumber, number, countryIso, callType, info.sourceType); in onClick() 1013 displayNumber, number, countryIso, callType, info.sourceType); in onClick() 1022 displayNumber, number, countryIso, callType, info.sourceType, isSpam, blockId); in onClick() 1029 displayNumber, number, countryIso, callType, info.sourceType); in onClick() 1173 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); in updateBlockReportActions() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/ |
D | ContactInfoHelper.java | 190 public ContactInfo lookupNumber(String number, String countryIso) { in lookupNumber() argument 191 return lookupNumber(number, countryIso, -1); in lookupNumber() 208 public ContactInfo lookupNumber(String number, String countryIso, long directoryId) { in lookupNumber() argument 224 info = queryContactInfoForPhoneNumber(username, countryIso, directoryId); in lookupNumber() 229 info = queryContactInfoForPhoneNumber(number, countryIso, directoryId); in lookupNumber() 241 updatedInfo = createEmptyContactInfoForNumber(number, countryIso); in lookupNumber() 249 private ContactInfo createEmptyContactInfoForNumber(String number, String countryIso) { in createEmptyContactInfoForNumber() argument 252 contactInfo.formattedNumber = formatPhoneNumber(number, null, countryIso); in createEmptyContactInfoForNumber() 253 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in createEmptyContactInfoForNumber() 262 public ContactInfo lookupNumberInRemoteDirectory(String number, String countryIso) { in lookupNumberInRemoteDirectory() argument [all …]
|
/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()
|
/packages/services/Telephony/src/com/android/phone/ |
D | ShortcutViewUtils.java | 128 private PhoneInfo(int subId, String countryIso, in PhoneInfo() argument 130 this(null, true, subId, countryIso, promotedEmergencyNumbers); in PhoneInfo() 134 String countryIso, List<EmergencyNumber> promotedEmergencyNumbers) { in PhoneInfo() argument 138 mCountryIso = countryIso; in PhoneInfo() 262 private static boolean isSupportedCountry(@NonNull Context context, String countryIso) { in isSupportedCountry() argument 263 if (TextUtils.isEmpty(countryIso)) { in isSupportedCountry() 270 if (countryIso.equalsIgnoreCase(supportedCountry)) { in isSupportedCountry() 285 String countryIso = null; in loadPhoneInfo() local 297 countryIso = subTelephonyManager.getNetworkCountryIso(); in loadPhoneInfo() 305 return new PhoneInfo(handle, canPlaceEmergencyCall, subId, countryIso, emergencyNumberList); in loadPhoneInfo()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | TelephonyManagerUtils.java | 53 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase(); in getCurrentCountryIso() local 55 if (countryIso == null) { in getCurrentCountryIso() 56 countryIso = locale.getCountry(); in getCurrentCountryIso() 58 + countryIso); in getCurrentCountryIso() 60 return countryIso; in getCurrentCountryIso()
|
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/ |
D | TelecomUtils.java | 132 String countryIso = getCurrentCountryIsoFromLocale(context); in getFormattedNumber() local 134 + ", country: " + countryIso); in getFormattedNumber() 136 String formattedNumber = PhoneNumberUtils.formatNumber(number, countryIso); in getFormattedNumber() 147 String countryIso = locale.getCountry(); in getCurrentCountryIso() local 148 if (countryIso == null || countryIso.length() != 2) { in getCurrentCountryIso() 150 countryIso = COUNTRY_US; in getCurrentCountryIso() 152 return countryIso; in getCurrentCountryIso() 160 String countryIso; in getCurrentCountryIsoFromLocale() local 161 countryIso = context.getResources().getConfiguration().getLocales().get(0).getCountry(); in getCurrentCountryIsoFromLocale() 163 if (countryIso == null) { in getCurrentCountryIsoFromLocale() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | BlockNumberDialogFragment.java | 55 private String countryIso; field in BlockNumberDialogFragment 64 String countryIso, in show() argument 71 blockId, number, countryIso, displayNumber, parentViewId); in show() 81 String countryIso, in newInstance() argument 93 args.putString(ARG_COUNTRY_ISO, countryIso); in newInstance() 116 countryIso = getArguments().getString(ARG_COUNTRY_ISO); in onCreateDialog() 175 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); in onActivityCreated() 262 handler.blockNumber(onBlockNumberListener, number, countryIso); in blockNumber()
|
D | Blocking.java | 71 Context context, ImmutableCollection<String> numbers, @Nullable String countryIso) { in block() argument 80 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); in block() 103 Context context, ImmutableCollection<String> numbers, @Nullable String countryIso) { in unblock() argument 112 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); in unblock() 141 Context context, ImmutableCollection<String> numbers, @Nullable String countryIso) { 152 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso);
|
D | FilteredNumberAsyncQueryHandler.java | 119 final OnCheckBlockedListener listener, @Nullable final String number, String countryIso) { in isBlockedNumber() argument 148 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); in isBlockedNumber() 203 public Integer getBlockedIdSynchronous(@Nullable String number, String countryIso) { in getBlockedIdSynchronous() argument 219 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getBlockedIdSynchronous() 276 final OnBlockNumberListener listener, String number, @Nullable String countryIso) { in blockNumber() argument 277 blockNumber(listener, null, number, countryIso); in blockNumber() 285 @Nullable String countryIso) { in blockNumber() argument 289 context, number, normalizedNumber, countryIso)); in blockNumber()
|
/packages/apps/Dialer/java/com/android/dialer/spam/ |
D | Spam.java | 84 boolean checkSpamStatusSynchronous(String number, String countryIso); in checkSpamStatusSynchronous() argument 109 String countryIso, in reportSpamFromAfterCallNotification() argument 128 String countryIso, in reportSpamFromCallHistory() argument 147 String countryIso, in reportNotSpamFromAfterCallNotification() argument 166 String countryIso, in reportNotSpamFromCallHistory() argument
|
/packages/apps/Dialer/java/com/android/dialer/spam/stub/ |
D | SpamStub.java | 77 public boolean checkSpamStatusSynchronous(String number, String countryIso) { in checkSpamStatusSynchronous() argument 89 String countryIso, in reportSpamFromAfterCallNotification() argument 97 String countryIso, in reportSpamFromCallHistory() argument 105 String countryIso, in reportNotSpamFromAfterCallNotification() argument 113 String countryIso, in reportNotSpamFromCallHistory() argument
|
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
D | BlockedNumbersUtil.java | 50 String countryIso = Locale.getDefault().getCountry(); in getLocaleDefaultToUS() local 51 if (countryIso == null || countryIso.length() != 2) { in getLocaleDefaultToUS() 52 countryIso = "US"; in getLocaleDefaultToUS() 54 return countryIso; in getLocaleDefaultToUS()
|
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/ |
D | NumbersAdapter.java | 59 public void updateView(View view, String number, String countryIso) { in updateView() argument 67 ContactInfo info = contactInfoHelper.lookupNumber(number, countryIso); in updateView() 72 final CharSequence locationOrType = getNumberTypeOrLocation(info, countryIso); in updateView() 121 private CharSequence getNumberTypeOrLocation(ContactInfo info, String countryIso) { in getNumberTypeOrLocation() argument 126 return PhoneNumberHelper.getGeoDescription(context, info.number, countryIso); in getNumberTypeOrLocation()
|
D | BlockedNumbersAdapter.java | 56 final String countryIso = in bindView() local 68 countryIso, in bindView() 69 PhoneNumberHelper.formatNumber(getContext(), number, countryIso), in bindView() 88 updateView(view, number, countryIso); in bindView()
|
/packages/apps/Dialer/java/com/android/incallui/spam/ |
D | SpamNotificationService.java | 102 String countryIso = GeoUtil.getCurrentCountryIso(this); in onStartCommand() local 127 countryIso, in onStartCommand() 131 new FilteredNumberAsyncQueryHandler(this).blockNumber(null, number, countryIso); in onStartCommand() 147 countryIso, in onStartCommand()
|
D | SpamCallListListener.java | 93 private final String countryIso; field in SpamCallListListener.NumberInCallHistoryWorker 96 @NonNull Context appContext, String number, String countryIso) { in NumberInCallHistoryWorker() argument 99 this.countryIso = countryIso; in NumberInCallHistoryWorker() 108 String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in doInBackground()
|
/packages/apps/Dialer/java/com/android/dialer/phonenumbergeoutil/impl/ |
D | PhoneNumberGeoUtilImpl.java | 38 public String getGeoDescription(Context context, String number, String countryIso) { in getGeoDescription() argument 53 "parsing '" + LogUtil.sanitizePii(number) + "' for countryIso '" + countryIso + "'..."); in getGeoDescription() 54 pn = util.parse(number, countryIso); in getGeoDescription()
|
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | DisconnectedCallNotifier.java | 294 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase(); in getCurrentCountryIso() local 296 if (countryIso == null) { in getCurrentCountryIso() 297 countryIso = Locale.getDefault().getCountry(); in getCurrentCountryIso() 299 + countryIso); in getCurrentCountryIso() 301 return countryIso; in getCurrentCountryIso()
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
D | GeoUtil.java | 34 String countryIso = CountryDetector.getInstance(context).getCurrentCountryIso(); in getCurrentCountryIso() local 36 return countryIso; in getCurrentCountryIso()
|