/packages/apps/Messaging/src/android/support/v7/mms/ |
H A D | PhoneNumberHelper.java | 32 * Given a phone number, get its national part without country code 35 * @param country the country ISO code 38 static String getNumberNoCountryCode(final String number, final String country) { argument 42 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(number, country);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
H A D | ShadowZoneGetterData.java | 49 public List<String> lookupTimeZoneIdsByCountry(String country) { argument 50 return TIME_ZONE_LOOKUP.get(country);
|
/packages/services/Mms/src/com/android/mms/service/ |
H A D | PhoneUtils.java | 44 final String country = getSimOrDefaultLocaleCountry(telephonyManager, subId); 46 final Phonenumber.PhoneNumber parsed = getParsedNumber(phoneNumberUtil, phoneText, country); 57 String phoneText, String country) { 59 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country); 64 + " for country " + country); 73 // Get the country/region either from the SIM ID or from locale 76 String country = getSimCountry(telephonyManager, subId); 77 if (TextUtils.isEmpty(country)) { 78 country 56 getParsedNumber(PhoneNumberUtil phoneNumberUtil, String phoneText, String country) argument [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
H A D | PhoneNumberTestService.java | 60 final String country = intent.getStringExtra(EXTRA_COUNTRY_CODE); 64 Log.i(TAG, "Input country code: " + country); 65 Log.i(TAG, "Current country code: " + defaultCountry); 67 // Dump for the given country, the current country, US, GB and JP. 69 if (country != null) countries.add(country); 80 private void dump(String number, String country) { argument 81 Log.i(TAG, "Result for: " + number + " / " +country); 89 dump_PhoneNumberUtils_formatNumberToE164(String number, String country) argument 94 dump_PhoneNumberUtil_format(String number, String country, PhoneNumberFormat format) argument [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
H A D | GoogleSearch.java | 78 String country = locale.getCountry(); 80 if (!TextUtils.isEmpty(country) && useLangCountryHl(language, country)) { 82 hl.append(country); 85 if (DBG) Log.d(TAG, "language " + language + ", country " + country + " -> hl=" + hl); 90 private static boolean useLangCountryHl(String language, String country) { argument 91 // lang-country is currently only supported for a small number of locales 93 return "GB".equals(country); 95 return "CN".equals(country) || "T [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | PostalSplitterTest.java | 99 String neighborhood, String city, String region, String postcode, String country) { 108 assertEquals(country, postal.country); 112 String neighborhood, String city, String region, String postcode, String country) { 120 postal.country = country; 98 assertSplitPostal(String formattedPostal, String street, String pobox, String neighborhood, String city, String region, String postcode, String country) argument 111 assertJoinedPostal(String formattedPostal, String street, String pobox, String neighborhood, String city, String region, String postcode, String country) argument
|
H A D | PostalSplitterForJapaneseTest.java | 115 String neighborhood, String city, String region, String postcode, String country) { 124 assertEquals(country, postal.country); 128 String neighborhood, String city, String region, String postcode, String country) { 136 postal.country = country; 114 assertSplitPostal(String formattedPostal, String street, String pobox, String neighborhood, String city, String region, String postcode, String country) argument 127 assertJoinedPostal(String formattedPostal, String street, String pobox, String neighborhood, String city, String region, String postcode, String country) argument
|
/packages/apps/Dialer/java/com/android/dialer/smartdial/util/ |
H A D | SmartDialPrefix.java | 34 * middle name, family name etc. Each phone number is also separated into country code, NANP area 51 /** The country code of the user's sim card obtained by calling getSimCountryIso */ 60 /** Set of country names that use NANP code. */ 62 /** Set of supported country codes in front of the phone number. */ 79 /** Updates shared preferences with the latest country obtained from getSimCountryIso. */ 82 /** Uses previously stored country code if loading fails. */ 86 /** Queries the NANP country list to find out whether user is in a NANP region. */ 190 * number, the national number if there is a country code in the phone number, and the local 227 * Parses a phone number to find out whether it has country code and NANP area code. 230 * @return a PhoneNumberToken instance with country cod 530 isCountryNanp(String country) argument [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | PostalSplitter.java | 39 public String country; field in class:PostalSplitter.Postal 48 country = values.getAsString(StructuredPostal.COUNTRY); 58 values.put(StructuredPostal.COUNTRY, country); 87 postal.region, postal.postcode, postal.country 106 final boolean hasCountry = !TextUtils.isEmpty(postal.country); 108 // First block: [country][ ][postcode] 120 builder.append(postal.country); 172 final boolean hasCountry = !TextUtils.isEmpty(postal.country); 176 // Third block: [country] 220 builder.append(postal.country); [all...] |
/packages/apps/Dialer/java/com/android/dialer/oem/ |
H A D | CequintCallerIdManager.java | 173 String country = getString(cursor, cursor.getColumnIndex(COUNTRY_NAME)); 185 String geoDescription = getGeoDescription(city, state, stateAbbr, country); 254 String city, String state, String stateAbbr, String country) { 261 } else if (!TextUtils.isEmpty(country)) { 262 geoDescription = country; 253 getGeoDescription( String city, String state, String stateAbbr, String country) argument
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | PhoneUtils.java | 71 // Each country gets its own cache. The following maps from ISO country code to 72 // the country's cache. Each cache maps from original phone number to canonicalized phone 88 * Get the SIM's country code 90 * @return the country code on the SIM 270 final String country = mTelephonyManager.getSimCountryIso(); 271 if (TextUtils.isEmpty(country)) { 274 return country.toUpperCase(); 422 final String country = subInfo.getCountryIso(); 423 if (TextUtils.isEmpty(country)) { 709 getOrAddCountryMapInCacheLocked(String country) argument 722 getCanonicalFromCache(final String phoneText, String country) argument 730 putCanonicalToCache(final String phoneText, String country, final String canonical) argument 745 getValidE164Number(final String phoneText, final String country) argument 788 getCanonicalByCountry(final String phoneText, final String country) argument [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | CallLogManager.java | 485 private String getCountryIsoFromCountry(Country country) { argument 486 if(country == null) { 488 Log.w(TAG, "Value for country was null. Falling back to Locale."); 492 return country.getCountryIso(); 496 * Get the current country code 498 * @return the ISO 3166-1 two letters country code of current country. 506 Country country = null; 508 country = countryDetector.detectCountry(); 522 mCurrentCountryIso = getCountryIsoFromCountry(country); [all...] |
/packages/apps/TV/src/com/android/tv/parental/ |
H A D | ContentRatingSystem.java | 60 // Display name of this content rating system consisting of the associated country 129 * Returns the display name of the content rating system consisting of the associated country 214 public void addCountry(String country) { argument 218 mCountries.add(new Locale("", country).getCountry()); 263 // Shows the country name instead of "Other countries" if the current 264 // country is one of the countries this rating system applies to.
|