Home
last modified time | relevance | path

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

12

/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogNotificationsQueryHelper.java59 String countryIso) { in CallLogNotificationsQueryHelper() argument
63 mCurrentCountryIso = countryIso; in CallLogNotificationsQueryHelper()
69 String countryIso = GeoUtil.getCurrentCountryIso(context); in getInstance() local
73 new ContactInfoHelper(context, countryIso), in getInstance()
74 countryIso); in getInstance()
151 @Nullable String number, int numberPresentation, @Nullable String countryIso) { in getName() argument
152 return getContactInfo(number, numberPresentation, countryIso).name; in getName()
161 @Nullable String number, int numberPresentation, @Nullable String countryIso) { in getContactInfo() argument
162 if (countryIso == null) { in getContactInfo()
163 countryIso = mCurrentCountryIso; in getContactInfo()
[all …]
DBlockReportSpamListener.java57 final String countryIso, in onBlockReportSpam() argument
75 countryIso, in onBlockReportSpam()
90 countryIso); in onBlockReportSpam()
101 final String countryIso, in onBlock() argument
119 countryIso, in onBlock()
134 countryIso); in onBlock()
145 final String countryIso, in onUnblock() argument
163 countryIso, in onUnblock()
188 final String countryIso, in onReportNotSpam() argument
203 countryIso, in onReportNotSpam()
DCallLogListItemViewHolder.java163 public String countryIso; field in CallLogListItemViewHolder
352 displayNumber, number, countryIso, callType, info.sourceType); in onMenuItemClick()
362 displayNumber, number, countryIso, callType, info.sourceType); in onMenuItemClick()
369 displayNumber, number, countryIso, callType, info.sourceType, isSpam, blockId); in onMenuItemClick()
374 displayNumber, number, countryIso, callType, info.sourceType); in onMenuItemClick()
765 displayNumber, number, countryIso, callType, info.sourceType); in onClick()
775 displayNumber, number, countryIso, callType, info.sourceType); in onClick()
781 displayNumber, number, countryIso, callType, info.sourceType, isSpam, blockId); in onClick()
785 displayNumber, number, countryIso, callType, info.sourceType); in onClick()
855 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); in updateBlockReportActions()
[all …]
DCallLogAdapter.java641 views.number, views.countryIso); in loadAndRender()
653 .checkSpamStatusSynchronous(views.number, views.countryIso); in loadAndRender()
750 details.countryIso = cursor.getString(CallLogQuery.COUNTRY_ISO); in createPhoneCallDetails()
773 views.countryIso = details.countryIso; in createPhoneCallDetails()
840 details.countryIso, in loadData()
1118 void injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) { in injectContactInfoForTest() argument
1120 mContactInfoCache.injectContactInfoForTest(number, countryIso, contactInfo); in injectContactInfoForTest()
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/
DContactInfoCache.java100 String countryIso, in getValue() argument
103 NumberWithCountryIso numberCountryIso = new NumberWithCountryIso(number, countryIso); in getValue()
116 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ true, requestType); in getValue()
122 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ false, requestType); in getValue()
128 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ false, requestType); in getValue()
158 info = mContactInfoHelper.lookupNumber(request.number, request.countryIso); in queryContactInfo()
172 request.countryIso, in queryContactInfo()
180 info = mContactInfoHelper.lookupNumberInRemoteDirectory(request.number, request.countryIso); in queryContactInfo()
191 new NumberWithCountryIso(request.number, request.countryIso); in queryContactInfo()
212 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/phonenumbercache/
DContactInfoHelper.java206 public ContactInfo lookupNumber(String number, String countryIso) { in lookupNumber() argument
207 return lookupNumber(number, countryIso, -1); in lookupNumber()
224 public ContactInfo lookupNumber(String number, String countryIso, long directoryId) { in lookupNumber() argument
238 info = queryContactInfoForPhoneNumber(username, countryIso, directoryId); in lookupNumber()
243 info = queryContactInfoForPhoneNumber(number, countryIso, directoryId); in lookupNumber()
254 updatedInfo = createEmptyContactInfoForNumber(number, countryIso); in lookupNumber()
262 private ContactInfo createEmptyContactInfoForNumber(String number, String countryIso) { in createEmptyContactInfoForNumber() argument
265 contactInfo.formattedNumber = formatPhoneNumber(number, null, countryIso); in createEmptyContactInfoForNumber()
266 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in createEmptyContactInfoForNumber()
275 public ContactInfo lookupNumberInRemoteDirectory(String number, String countryIso) { in lookupNumberInRemoteDirectory() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/spam/
DSpamBindings.java48 void checkSpamStatus(String number, String countryIso, Listener listener); in checkSpamStatus() argument
56 String number, @Nullable String countryIso, @NonNull Listener listener); in checkUserMarkedNonSpamStatus() argument
64 String number, @Nullable String countryIso, @NonNull Listener listener); in checkUserMarkedSpamStatus() argument
72 String number, @Nullable String countryIso, @NonNull Listener listener); in checkGlobalSpamListStatus() argument
81 boolean checkSpamStatusSynchronous(String number, String countryIso); in checkSpamStatusSynchronous() argument
97 String countryIso, in reportSpamFromAfterCallNotification() argument
116 String countryIso, in reportSpamFromCallHistory() argument
135 String countryIso, in reportNotSpamFromAfterCallNotification() argument
154 String countryIso, in reportNotSpamFromCallHistory() argument
DSpamBindingsStub.java57 public void checkSpamStatus(String number, String countryIso, Listener listener) { in checkSpamStatus() argument
62 public void checkUserMarkedNonSpamStatus(String number, String countryIso, Listener listener) { in checkUserMarkedNonSpamStatus() argument
67 public void checkUserMarkedSpamStatus(String number, String countryIso, Listener listener) { in checkUserMarkedSpamStatus() argument
72 public void checkGlobalSpamListStatus(String number, String countryIso, Listener listener) { in checkGlobalSpamListStatus() argument
77 public boolean checkSpamStatusSynchronous(String number, String countryIso) { in checkSpamStatusSynchronous() argument
84 String countryIso, in reportSpamFromAfterCallNotification() argument
92 String countryIso, in reportSpamFromCallHistory() argument
100 String countryIso, in reportNotSpamFromAfterCallNotification() argument
108 String countryIso, in reportNotSpamFromCallHistory() argument
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
DPhoneNumberHelper.java112 String countryIso = getCurrentCountryIso(context, locale); in getGeoDescription() local
117 "parsing '" + LogUtil.sanitizePii(number) + "' for countryIso '" + countryIso + "'..."); in getGeoDescription()
118 pn = util.parse(number, countryIso); in getGeoDescription()
148 String countryIso = telephonyManager.getNetworkCountryIso(); in getCurrentCountryIso() local
149 if (TextUtils.isEmpty(countryIso)) { in getCurrentCountryIso()
150 countryIso = locale.getCountry(); in getCurrentCountryIso()
153 "No CountryDetector; falling back to countryIso based on locale: " + countryIso); in getCurrentCountryIso()
155 countryIso = countryIso.toUpperCase(); in getCurrentCountryIso()
157 return countryIso; in getCurrentCountryIso()
/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/apps/Car/Stream/src/com/android/car/stream/telecom/
DTelecomUtils.java332 String countryIso = getSimRegionCode(context); in getFormattedNumber() local
333 String e164 = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getFormattedNumber()
334 String formattedNumber = PhoneNumberUtils.formatNumber(number, e164, countryIso); in getFormattedNumber()
349 String countryIso = telephonyManager.getSimCountryIso(); in getSimRegionCode() local
350 if (TextUtils.isEmpty(countryIso) || countryIso.length() != 2) { in getSimRegionCode()
351 countryIso = Locale.getDefault().getCountry(); in getSimRegionCode()
352 if (countryIso == null || countryIso.length() != 2) { in getSimRegionCode()
353 countryIso = "US"; in getSimRegionCode()
357 return countryIso.toUpperCase(Locale.US); in getSimRegionCode()
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
DTelecomUtils.java213 String countryIso = getTelephonyManager(context).getSimCountryIso().toUpperCase(Locale.US); in getFormattedNumber() local
214 if (countryIso.length() != 2) { in getFormattedNumber()
215 countryIso = Locale.getDefault().getCountry(); in getFormattedNumber()
216 if (countryIso == null || countryIso.length() != 2) { in getFormattedNumber()
217 countryIso = "US"; in getFormattedNumber()
221 + number + ", country: " + countryIso); in getFormattedNumber()
222 String e164 = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getFormattedNumber()
223 String formattedNumber = PhoneNumberUtils.formatNumber(number, e164, countryIso); in getFormattedNumber()
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DTelecomUtils.java189 String countryIso = getTelephonyManager(context).getSimCountryIso().toUpperCase(Locale.US); in getFormattedNumber() local
190 if (countryIso.length() != 2) { in getFormattedNumber()
191 countryIso = Locale.getDefault().getCountry(); in getFormattedNumber()
192 if (countryIso == null || countryIso.length() != 2) { in getFormattedNumber()
193 countryIso = "US"; in getFormattedNumber()
198 + number + ", country: " + countryIso); in getFormattedNumber()
200 String e164 = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getFormattedNumber()
201 String formattedNumber = PhoneNumberUtils.formatNumber(number, e164, countryIso); in getFormattedNumber()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumberAsyncQueryHandler.java119 final OnCheckBlockedListener listener, @Nullable final String number, String countryIso) { in isBlockedNumber() argument
148 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); in isBlockedNumber()
204 public Integer getBlockedIdSynchronous(@Nullable String number, String countryIso) { in getBlockedIdSynchronous() argument
220 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getBlockedIdSynchronous()
277 final OnBlockNumberListener listener, String number, @Nullable String countryIso) { in blockNumber() argument
278 blockNumber(listener, null, number, countryIso); in blockNumber()
286 @Nullable String countryIso) { in blockNumber() argument
290 context, number, normalizedNumber, countryIso)); in blockNumber()
DBlockNumberDialogFragment.java63 String countryIso, in show() argument
70 blockId, number, countryIso, displayNumber, parentViewId); in show()
80 String countryIso, in newInstance() argument
92 args.putString(ARG_COUNTRY_ISO, countryIso); in newInstance()
/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/services/Telecomm/src/com/android/server/telecom/settings/
DBlockedNumbersUtil.java35 String countryIso = Locale.getDefault().getCountry(); in getLocaleDefaultToUS() local
36 if (countryIso == null || countryIso.length() != 2) { in getLocaleDefaultToUS()
37 countryIso = "US"; in getLocaleDefaultToUS()
39 return countryIso; in getLocaleDefaultToUS()
/packages/apps/Dialer/java/com/android/incallui/spam/
DNumberInCallHistoryTask.java48 private final String countryIso; field in NumberInCallHistoryTask
51 @NonNull Context context, @NonNull Listener listener, String number, String countryIso) { in NumberInCallHistoryTask() argument
55 this.countryIso = countryIso; in NumberInCallHistoryTask()
71 String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in doInBackground()
DSpamNotificationService.java84 String countryIso = GeoUtil.getCurrentCountryIso(this); in onStartCommand() local
98 countryIso, in onStartCommand()
102 new FilteredNumberAsyncQueryHandler(this).blockNumber(null, number, countryIso); in onStartCommand()
110 countryIso, in onStartCommand()
/packages/services/Telephony/src/com/android/services/telephony/
DConferenceParticipantConnection.java73 String countryIso = getCountryIso(parentConnection.getCall().getPhone()); in ConferenceParticipantConnection() local
74 address = getParticipantAddress(participant.getHandle(), countryIso); in ConferenceParticipantConnection()
222 public static Uri getParticipantAddress(Uri address, String countryIso) { in getParticipantAddress() argument
259 if (!TextUtils.isEmpty(countryIso)) { in getParticipantAddress()
260 formattedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getParticipantAddress()
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/
DBlockedNumbersAdapter.java55 final String countryIso = in bindView() local
67 countryIso, in bindView()
68 PhoneNumberUtils.formatNumber(number, countryIso), in bindView()
87 updateView(view, number, countryIso); in bindView()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DBlockedListSearchFragment.java166 final String countryIso = GeoUtil.getCurrentCountryIso(getContext()); in blockNumber() local
175 countryIso, in blockNumber()
176 PhoneNumberUtils.formatNumber(number, countryIso), in blockNumber()
197 mFilteredNumberAsyncQueryHandler.isBlockedNumber(onCheckListener, number, countryIso); in blockNumber()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DMissedCallNotifierImpl.java450 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase(); in getCurrentCountryIso() local
452 if (countryIso == null) { in getCurrentCountryIso()
453 countryIso = Locale.getDefault().getCountry(); in getCurrentCountryIso()
455 + countryIso); in getCurrentCountryIso()
457 return countryIso; in getCurrentCountryIso()

12