Home
last modified time | relevance | path

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

123

/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
DPhoneNumberHelper.java230 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/
DContactInfoCache.java106 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 …]
DNumberWithCountryIso.java31 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()
DContactInfoRequest.java37 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/
DCallLogNotificationsQueryHelper.java68 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 …]
DBlockReportSpamListener.java70 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()
DCallLogListItemViewHolder.java191 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/
DContactInfoHelper.java190 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/
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()
/packages/services/Telephony/src/com/android/phone/
DShortcutViewUtils.java128 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/
DTelephonyManagerUtils.java53 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/
DTelecomUtils.java132 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/
DBlockNumberDialogFragment.java55 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()
DBlocking.java71 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);
DFilteredNumberAsyncQueryHandler.java119 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/
DSpam.java84 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/
DSpamStub.java77 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/
DBlockedNumbersUtil.java50 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/
DNumbersAdapter.java59 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()
DBlockedNumbersAdapter.java56 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/
DSpamNotificationService.java102 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()
DSpamCallListListener.java93 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/
DPhoneNumberGeoUtilImpl.java38 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/
DDisconnectedCallNotifier.java294 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/
DGeoUtil.java34 String countryIso = CountryDetector.getInstance(context).getCurrentCountryIso(); in getCurrentCountryIso() local
36 return countryIso; in getCurrentCountryIso()

123