Searched refs:countryIso (Results 1 - 25 of 42) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/
H A DNumberWithCountryIso.java31 public final String countryIso; field in class:NumberWithCountryIso
33 public NumberWithCountryIso(String number, String countryIso) { argument
35 this.countryIso = countryIso;
47 return TextUtils.equals(number, other.number) && TextUtils.equals(countryIso, other.countryIso);
53 int countryHashCode = countryIso == null ? 0 : countryIso.hashCode();
H A DContactInfoRequest.java37 public final String countryIso; field in class:ContactInfoRequest
62 String number, String countryIso, ContactInfo callLogInfo, @TYPE int type) {
65 this.countryIso = countryIso;
87 if (!TextUtils.equals(countryIso, other.countryIso)) {
107 return Objects.hash(sequenceNumber, number, countryIso, callLogInfo, type);
61 ContactInfoRequest( String number, String countryIso, ContactInfo callLogInfo, @TYPE int type) argument
H A DContactInfoCache.java106 String countryIso,
109 NumberWithCountryIso numberCountryIso = new NumberWithCountryIso(number, countryIso);
122 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ true, requestType);
128 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ false, requestType);
134 enqueueRequest(number, countryIso, callLogContactInfo, /* immediate */ false, requestType);
164 info = mContactInfoHelper.lookupNumber(request.number, request.countryIso);
178 request.countryIso,
186 info = mContactInfoHelper.lookupNumberInRemoteDirectory(request.number, request.countryIso);
197 new NumberWithCountryIso(request.number, request.countryIso);
218 request.number, request.countryIso, inf
104 getValue( String number, String countryIso, ContactInfo callLogContactInfo, boolean remoteLookupIfNotFoundLocally) argument
295 enqueueRequest( String number, String countryIso, ContactInfo callLogInfo, boolean immediate, @ContactInfoRequest.TYPE int type) argument
325 injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/spam/
H A DSpamBindings.java45 * @param countryIso The country ISO of the call.
48 void checkSpamStatus(String number, String countryIso, Listener listener); argument
52 * @param countryIso The country ISO of the call.
56 String number, @Nullable String countryIso, @NonNull Listener listener);
60 * @param countryIso The country ISO of the call.
64 String number, @Nullable String countryIso, @NonNull Listener listener);
68 * @param countryIso The country ISO of the call.
72 String number, @Nullable String countryIso, @NonNull Listener listener);
78 * @param countryIso The country ISO of the call.
81 boolean checkSpamStatusSynchronous(String number, String countryIso); argument
55 checkUserMarkedNonSpamStatus( String number, @Nullable String countryIso, @NonNull Listener listener) argument
63 checkUserMarkedSpamStatus( String number, @Nullable String countryIso, @NonNull Listener listener) argument
71 checkGlobalSpamListStatus( String number, @Nullable String countryIso, @NonNull Listener listener) argument
95 reportSpamFromAfterCallNotification( String number, String countryIso, int callType, ReportingLocation.Type from, ContactLookupResult.Type contactLookupResultType) argument
114 reportSpamFromCallHistory( String number, String countryIso, int callType, ReportingLocation.Type from, ContactSource.Type contactSourceType) argument
133 reportNotSpamFromAfterCallNotification( String number, String countryIso, int callType, ReportingLocation.Type from, ContactLookupResult.Type contactLookupResultType) argument
152 reportNotSpamFromCallHistory( String number, String countryIso, int callType, ReportingLocation.Type from, ContactSource.Type contactSourceType) argument
[all...]
H A DSpamBindingsStub.java57 public void checkSpamStatus(String number, String countryIso, Listener listener) { argument
62 public void checkUserMarkedNonSpamStatus(String number, String countryIso, Listener listener) { argument
67 public void checkUserMarkedSpamStatus(String number, String countryIso, Listener listener) { argument
72 public void checkGlobalSpamListStatus(String number, String countryIso, Listener listener) { argument
77 public boolean checkSpamStatusSynchronous(String number, String countryIso) { argument
84 String countryIso,
92 String countryIso,
100 String countryIso,
108 String countryIso,
82 reportSpamFromAfterCallNotification( String number, String countryIso, int callType, ReportingLocation.Type from, ContactLookupResult.Type contactLookupResultType) argument
90 reportSpamFromCallHistory( String number, String countryIso, int callType, ReportingLocation.Type from, ContactSource.Type contactSourceType) argument
98 reportNotSpamFromAfterCallNotification( String number, String countryIso, int callType, ReportingLocation.Type from, ContactLookupResult.Type contactLookupResultType) argument
106 reportNotSpamFromCallHistory( String number, String countryIso, int callType, ReportingLocation.Type from, ContactSource.Type contactSourceType) argument
/packages/apps/Contacts/src/com/android/contacts/util/
H A DTelephonyManagerUtils.java53 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase();
55 if (countryIso == null) {
56 countryIso = locale.getCountry();
57 Log.w(LOG_TAG, "No CountryDetector; falling back to countryIso based on locale: "
58 + countryIso);
60 return countryIso;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DCallLogInsertionHelper.java28 public String getGeocodedLocationFor(String number, String countryIso); argument
H A DDefaultCallLogInsertionHelper.java68 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) { argument
103 return getPhoneNumberUtil().parse(number, countryIso);
117 public String getGeocodedLocationFor(String number, String countryIso) { argument
118 PhoneNumber structuredPhoneNumber = parsePhoneNumber(number, countryIso);
/packages/services/Telecomm/src/com/android/server/telecom/settings/
H A DBlockedNumbersUtil.java35 String countryIso = Locale.getDefault().getCountry();
36 if (countryIso == null || countryIso.length() != 2) {
37 countryIso = "US";
39 return countryIso;
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
H A DCallLogNotificationsQueryHelper.java57 String countryIso) {
61 mCurrentCountryIso = countryIso;
67 String countryIso = GeoUtil.getCurrentCountryIso(context);
71 new ContactInfoHelper(context, countryIso),
72 countryIso);
163 @Nullable String number, int numberPresentation, @Nullable String countryIso) {
164 return getContactInfo(number, numberPresentation, countryIso).name;
173 @Nullable String number, int numberPresentation, @Nullable String countryIso) {
174 if (countryIso == null) {
175 countryIso
53 CallLogNotificationsQueryHelper( Context context, NewCallsQuery newCallsQuery, ContactInfoHelper contactInfoHelper, String countryIso) argument
162 getName( @ullable String number, int numberPresentation, @Nullable String countryIso) argument
172 getContactInfo( @ullable String number, int numberPresentation, @Nullable String countryIso) argument
231 public final String countryIso; field in class:CallLogNotificationsQueryHelper.NewCall
234 NewCall( Uri callsUri, @Nullable Uri voicemailUri, String number, int numberPresentation, String accountComponentName, String accountId, String transcription, String countryIso, long dateMs) argument
[all...]
H A DBlockReportSpamListener.java57 final String countryIso,
75 countryIso,
90 countryIso);
101 final String countryIso,
119 countryIso,
134 countryIso);
145 final String countryIso,
163 countryIso,
188 final String countryIso,
203 countryIso,
54 onBlockReportSpam( String displayNumber, final String number, final String countryIso, final int callType, @NonNull final ContactSource.Type contactSourceType) argument
98 onBlock( String displayNumber, final String number, final String countryIso, final int callType, @NonNull final ContactSource.Type contactSourceType) argument
142 onUnblock( String displayNumber, final String number, final String countryIso, final int callType, final ContactSource.Type contactSourceType, final boolean isSpam, final Integer blockId) argument
185 onReportNotSpam( String displayNumber, final String number, final String countryIso, final int callType, final ContactSource.Type contactSourceType) argument
[all...]
H A DVisualVoicemailUpdateTask.java80 newCall.number, newCall.numberPresentation, newCall.countryIso);
109 if (queryHandler.getBlockedIdSynchronous(newCall.number, newCall.countryIso) != null) {
/packages/apps/Dialer/java/com/android/incallui/spam/
H A DNumberInCallHistoryTask.java48 private final String countryIso; field in class:NumberInCallHistoryTask
51 @NonNull Context context, @NonNull Listener listener, String number, String countryIso) {
55 this.countryIso = countryIso;
71 String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso);
50 NumberInCallHistoryTask( @onNull Context context, @NonNull Listener listener, String number, String countryIso) argument
H A DSpamNotificationService.java84 String countryIso = GeoUtil.getCurrentCountryIso(this);
98 countryIso,
102 new FilteredNumberAsyncQueryHandler(this).blockNumber(null, number, countryIso);
110 countryIso,
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
H A DPhoneNumberHelper.java112 String countryIso = getCurrentCountryIso(context, locale);
117 "parsing '" + LogUtil.sanitizePii(number) + "' for countryIso '" + countryIso + "'...");
118 pn = util.parse(number, countryIso);
148 String countryIso = telephonyManager.getNetworkCountryIso();
149 if (TextUtils.isEmpty(countryIso)) {
150 countryIso = locale.getCountry();
153 "No CountryDetector; falling back to countryIso based on locale: " + countryIso);
155 countryIso
[all...]
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/
H A DBlockedNumbersAdapter.java55 final String countryIso =
67 countryIso,
68 PhoneNumberUtils.formatNumber(number, countryIso),
87 updateView(view, number, countryIso);
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
H A DContactInfoHelper.java207 public ContactInfo lookupNumber(String number, String countryIso) { argument
208 return lookupNumber(number, countryIso, -1);
220 * @param countryIso the country associated with this number
225 public ContactInfo lookupNumber(String number, String countryIso, long directoryId) { argument
241 info = queryContactInfoForPhoneNumber(username, countryIso, directoryId);
246 info = queryContactInfoForPhoneNumber(number, countryIso, directoryId);
258 updatedInfo = createEmptyContactInfoForNumber(number, countryIso);
266 private ContactInfo createEmptyContactInfoForNumber(String number, String countryIso) { argument
269 contactInfo.formattedNumber = formatPhoneNumber(number, null, countryIso);
270 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso);
279 lookupNumberInRemoteDirectory(String number, String countryIso) argument
416 queryContactInfoForPhoneNumber( String number, String countryIso, long directoryId) argument
459 formatPhoneNumber(String number, String normalizedNumber, String countryIso) argument
481 updateCallLogContactInfo( String number, String countryIso, ContactInfo updatedInfo, ContactInfo callLogInfo) argument
[all...]
/packages/services/Telephony/src/com/android/services/telephony/
H A DConferenceParticipantConnection.java73 String countryIso = getCountryIso(parentConnection.getCall().getPhone());
74 address = getParticipantAddress(participant.getHandle(), countryIso);
217 * @param countryIso The country ISO of the current subscription; used when formatting the
222 public static Uri getParticipantAddress(Uri address, String countryIso) { argument
259 if (!TextUtils.isEmpty(countryIso)) {
260 formattedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso);
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
H A DTelecomUtils.java213 String countryIso = getTelephonyManager(context).getSimCountryIso().toUpperCase(Locale.US);
214 if (countryIso.length() != 2) {
215 countryIso = Locale.getDefault().getCountry();
216 if (countryIso == null || countryIso.length() != 2) {
217 countryIso = "US";
221 + number + ", country: " + countryIso);
222 String e164 = PhoneNumberUtils.formatNumberToE164(number, countryIso);
223 String formattedNumber = PhoneNumberUtils.formatNumber(number, e164, countryIso);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DCallLogProviderTestable.java48 public String getGeocodedLocationFor(String number, String countryIso) {
/packages/apps/Car/Stream/src/com/android/car/stream/telecom/
H A DTelecomUtils.java332 String countryIso = getSimRegionCode(context);
333 String e164 = PhoneNumberUtils.formatNumberToE164(number, countryIso);
334 String formattedNumber = PhoneNumberUtils.formatNumber(number, e164, countryIso);
349 String countryIso = telephonyManager.getSimCountryIso();
350 if (TextUtils.isEmpty(countryIso) || countryIso.length() != 2) {
351 countryIso = Locale.getDefault().getCountry();
352 if (countryIso == null || countryIso.length() != 2) {
353 countryIso
[all...]
/packages/apps/Dialer/java/com/android/dialer/app/list/
H A DBlockedListSearchAdapter.java72 final String countryIso = GeoUtil.getCurrentCountryIso(mContext);
82 mFilteredNumberAsyncQueryHandler.isBlockedNumber(onCheckListener, number, countryIso);
H A DBlockedListSearchFragment.java166 final String countryIso = GeoUtil.getCurrentCountryIso(getContext());
175 countryIso,
176 PhoneNumberUtils.formatNumber(number, countryIso),
197 mFilteredNumberAsyncQueryHandler.isBlockedNumber(onCheckListener, number, countryIso);
/packages/apps/Dialer/java/com/android/dialer/blocking/
H A DFilteredNumberAsyncQueryHandler.java119 final OnCheckBlockedListener listener, @Nullable final String number, String countryIso) {
148 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso);
204 public Integer getBlockedIdSynchronous(@Nullable String number, String countryIso) { argument
220 String e164Number = PhoneNumberUtils.formatNumberToE164(number, countryIso);
277 final OnBlockNumberListener listener, String number, @Nullable String countryIso) {
278 blockNumber(listener, null, number, countryIso);
286 @Nullable String countryIso) {
290 context, number, normalizedNumber, countryIso));
118 isBlockedNumber( final OnCheckBlockedListener listener, @Nullable final String number, String countryIso) argument
276 blockNumber( final OnBlockNumberListener listener, String number, @Nullable String countryIso) argument
282 blockNumber( final OnBlockNumberListener listener, @Nullable String normalizedNumber, String number, @Nullable String countryIso) argument
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
H A DTelecomUtils.java189 String countryIso = getTelephonyManager(context).getSimCountryIso().toUpperCase(Locale.US);
190 if (countryIso.length() != 2) {
191 countryIso = Locale.getDefault().getCountry();
192 if (countryIso == null || countryIso.length() != 2) {
193 countryIso = "US";
198 + number + ", country: " + countryIso);
200 String e164 = PhoneNumberUtils.formatNumberToE164(number, countryIso);
201 String formattedNumber = PhoneNumberUtils.formatNumber(number, e164, countryIso);

Completed in 785 milliseconds

12