HomeSort by relevance Sort by last modified time
    Searched refs:countryIso (Results 1 - 25 of 27) sorted by null

1 2

  /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/
CallLogInsertionHelper.java 28 public String getGeocodedLocationFor(String number, String countryIso);
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);
  /packages/apps/Dialer/src/com/android/dialer/
PhoneCallDetails.java 38 public final String countryIso;
94 CharSequence formattedNumber, String countryIso, String geocode,
96 this (number, numberPresentation, formattedNumber, countryIso, geocode,
102 CharSequence formattedNumber, String countryIso, String geocode,
105 this(number, numberPresentation, formattedNumber, countryIso, geocode, callTypes, date,
112 CharSequence formattedNumber, String countryIso, String geocode,
120 this.countryIso = countryIso;
CallDetailActivity.java 539 String countryIso = callCursor.getString(COUNTRY_ISO_COLUMN_INDEX);
547 if (TextUtils.isEmpty(countryIso)) {
548 countryIso = mDefaultCountryIso;
564 ? mContactInfoHelper.lookupNumber(number, countryIso)
590 formattedNumber, countryIso, geocode,
    [all...]
  /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/
ContactInfoHelper.java 64 * @param countryIso the country associated with this number
66 public ContactInfo lookupNumber(String number, String countryIso) {
78 sipInfo = queryContactInfoForPhoneNumber(username, countryIso);
84 ContactInfo phoneInfo = queryContactInfoForPhoneNumber(number, countryIso);
103 updatedInfo.formattedNumber = formatPhoneNumber(number, null, countryIso);
105 number, countryIso);
214 private ContactInfo queryContactInfoForPhoneNumber(String number, String countryIso) {
216 if (!TextUtils.isEmpty(countryIso)) {
219 String numberE164 = PhoneNumberUtils.formatNumberToE164(number, countryIso);
230 info.formattedNumber = formatPhoneNumber(number, null, countryIso);
    [all...]
CallLogAdapter.java 119 public final String countryIso;
121 public NumberWithCountryIso(String number, String countryIso) {
123 this.countryIso = countryIso;
132 && TextUtils.equals(countryIso, other.countryIso);
138 ^ (countryIso == null ? 0 : countryIso.hashCode());
200 public final String countryIso;
204 public ContactInfoRequest(String number, String countryIso, ContactInfo callLogInfo)
    [all...]
  /packages/apps/Dialer/tests/src/com/android/dialer/calllog/
CallLogAdapterTest.java 59 public ContactInfo lookupNumber(String number, String countryIso) {
97 assertEquals(TEST_COUNTRY_ISO, request.countryIso);
199 public final String countryIso;
203 public Request(String number, String countryIso, ContactInfo callLogInfo,
206 this.countryIso = countryIso;
220 protected void enqueueRequest(String number, String countryIso, ContactInfo callLogInfo,
222 requests.add(new Request(number, countryIso, callLogInfo, immediate));
  /frameworks/base/services/core/java/com/android/server/location/
LocationBasedCountryDetector.java 230 String countryIso = null;
232 countryIso = getCountryFromLocation(location);
234 if (countryIso != null) {
235 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() + ")")
  /frameworks/base/telephony/java/com/android/internal/telephony/
CallerInfo.java 564 String countryIso = getCurrentCountryIso(context, locale);
568 + "' for countryIso '" + countryIso + "'...");
569 pn = util.parse(number, countryIso);
589 String countryIso = null;
595 countryIso = country.getCountryIso();
600 if (countryIso == null) {
601 countryIso = locale.getCountry();
602 Rlog.w(TAG, "No CountryDetector; falling back to countryIso based on locale: "
603 + countryIso);
    [all...]
  /external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
PhoneNumberDetectionTest.java 29 * @param countryIso 2-letter ISO country code. If set to null only international numbers
32 private void startActivityWithTestUrlAndCountryIso(String testUrl, String countryIso)
34 final String[] cmdlineArgs = countryIso == null ? null : new String[] {
35 "--" + ContentSwitches.NETWORK_COUNTRY_ISO + "=" + countryIso };
  /frameworks/base/telephony/java/android/telephony/
SubscriptionInfo.java 116 Bitmap icon, int mcc, int mnc, String countryIso) {
129 this.mCountryIso = countryIso;
300 String countryIso = source.readString();
304 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso);
PhoneNumberUtils.java     [all...]
  /frameworks/base/core/java/android/provider/
CallLog.java 212 public static final String COUNTRY_ISO = "countryiso";
606 final String countryIso = getCurrentCountryIso(context);
607 if (TextUtils.isEmpty(countryIso)) {
621 String countryIso = null;
627 countryIso = country.getCountryIso();
630 return countryIso;
  /cts/tests/tests/telephony/src/android/telephony/cts/
SmsUsageMonitorShortCodeTest.java 59 final String countryIso;
63 ShortCodeTest(String countryIso, String destAddress, int category) {
64 this.countryIso = countryIso;
499 assertEquals("country: " + test.countryIso + " number: " + test.address,
500 test.category, monitor.checkDestination(test.address, test.countryIso));
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
SmsUsageMonitorShortCodeTest.java 34 final String countryIso;
38 ShortCodeTest(String countryIso, String destAddress, int category) {
39 this.countryIso = countryIso;
462 assertEquals("country: " + test.countryIso + " number: " + test.address,
463 test.category, monitor.checkDestination(test.address, test.countryIso));
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
SmsUsageMonitor.java 391 public int checkDestination(String destAddress, String countryIso) {
394 if (PhoneNumberUtils.isEmergencyNumber(destAddress, countryIso)) {
404 if (countryIso != null) {
405 if (mCurrentCountry == null || !countryIso.equals(mCurrentCountry) ||
409 mCurrentPatternMatcher = getPatternMatcherFromFile(countryIso);
412 mCurrentPatternMatcher = getPatternMatcherFromResource(countryIso);
414 mCurrentCountry = countryIso;
422 Rlog.e(TAG, "No patterns for \"" + countryIso + "\": using generic short code rule");
SubscriptionController.java 274 String countryIso = getSubscriptionCountryIso(id);
280 + " mcc:" + mcc + " mnc:" + mnc + " countIso:" + countryIso);
289 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso);
    [all...]
  /packages/apps/InCallUI/src/com/android/incallui/
CallerInfo.java 484 String countryIso = TelephonyManagerUtils.getCurrentCountryIso(context, locale);
488 + "' for countryIso '" + countryIso + "'...");
489 pn = util.parse(number, countryIso);
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
BaseVoicemailProviderTest.java 188 public String getGeocodedLocationFor(String number, String countryIso) {
CallLogProviderTest.java 465 public String getGeocodedLocationFor(String number, String countryIso) {
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/
ContactLoader.java     [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ContactListItemView.java     [all...]

Completed in 1058 milliseconds

1 2