Home
last modified time | relevance | path

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

12

/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java270 final String country = mTelephonyManager.getSimCountryIso(); in getSimCountry() local
271 if (TextUtils.isEmpty(country)) { in getSimCountry()
274 return country.toUpperCase(); in getSimCountry()
422 final String country = subInfo.getCountryIso(); in getSimCountry() local
423 if (TextUtils.isEmpty(country)) { in getSimCountry()
426 return country.toUpperCase(); in getSimCountry()
688 final String country = Locale.getDefault().getCountry(); in getLocaleCountry() local
689 if (TextUtils.isEmpty(country)) { in getLocaleCountry()
692 return country.toUpperCase(); in getLocaleCountry()
701 String country = getSimCountry(); in getSimOrDefaultLocaleCountry() local
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DPhoneNumberTestService.java60 final String country = intent.getStringExtra(EXTRA_COUNTRY_CODE); in onHandleIntent() local
64 Log.i(TAG, "Input country code: " + country); in onHandleIntent()
69 if (country != null) countries.add(country); in onHandleIntent()
80 private void dump(String number, String country) { in dump() argument
81 Log.i(TAG, "Result for: " + number + " / " +country); in dump()
82 dump_PhoneNumberUtils_formatNumberToE164(number, country); in dump()
83 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.E164); in dump()
84 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.INTERNATIONAL); in dump()
85 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.NATIONAL); in dump()
86 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.RFC3966); in dump()
[all …]
/packages/services/Mms/src/com/android/mms/service/
DPhoneUtils.java44 final String country = getSimOrDefaultLocaleCountry(telephonyManager, subId); in getNationalNumber() local
46 final Phonenumber.PhoneNumber parsed = getParsedNumber(phoneNumberUtil, phoneText, country); in getNationalNumber()
57 String phoneText, String country) { in getParsedNumber() argument
59 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country); in getParsedNumber()
64 + " for country " + country); in getParsedNumber()
76 String country = getSimCountry(telephonyManager, subId); in getSimOrDefaultLocaleCountry() local
77 if (TextUtils.isEmpty(country)) { in getSimOrDefaultLocaleCountry()
78 country = Locale.getDefault().getCountry(); in getSimOrDefaultLocaleCountry()
81 return country; in getSimOrDefaultLocaleCountry()
86 final String country = telephonyManager.getSimCountryIso(subId); in getSimCountry() local
[all …]
DMmsHttpClient.java337 final String country = locale.getCountry(); in addLocaleToHttpAcceptLanguage() local
338 if (country != null) { in addLocaleToHttpAcceptLanguage()
340 builder.append(country); in addLocaleToHttpAcceptLanguage()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSearch.java78 String country = locale.getCountry(); in getLanguage() local
80 if (!TextUtils.isEmpty(country) && useLangCountryHl(language, country)) { in getLanguage()
82 hl.append(country); in getLanguage()
85 if (DBG) Log.d(TAG, "language " + language + ", country " + country + " -> hl=" + hl); in getLanguage()
90 private static boolean useLangCountryHl(String language, String country) { in useLangCountryHl() argument
93 return "GB".equals(country); in useLangCountryHl()
95 return "CN".equals(country) || "TW".equals(country); in useLangCountryHl()
97 return "BR".equals(country) || "PT".equals(country); in useLangCountryHl()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCountryMonitor.java50 Country country = null; in getCountryIso() local
51 if (countryDetector != null) country = countryDetector.detectCountry(); in getCountryIso()
53 if (country == null) { in getCountryIso()
58 mCurrentCountryIso = country.getCountryIso(); in getCountryIso()
60 public void onCountryDetected(Country country) { in getCountryIso()
61 mCurrentCountryIso = country.getCountryIso(); in getCountryIso()
DPostalSplitter.java39 public String country; field in PostalSplitter.Postal
48 country = values.getAsString(StructuredPostal.COUNTRY); in fromValues()
58 values.put(StructuredPostal.COUNTRY, country); in toValues()
87 postal.region, postal.postcode, postal.country in join()
106 final boolean hasCountry = !TextUtils.isEmpty(postal.country); in joinJaJp()
120 builder.append(postal.country); in joinJaJp()
172 final boolean hasCountry = !TextUtils.isEmpty(postal.country); in joinEnUs()
220 builder.append(postal.country); in joinEnUs()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPostalSplitterTest.java99 String neighborhood, String city, String region, String postcode, String country) { in assertSplitPostal() argument
108 assertEquals(country, postal.country); in assertSplitPostal()
112 String neighborhood, String city, String region, String postcode, String country) { in assertJoinedPostal() argument
120 postal.country = country; in assertJoinedPostal()
DPostalSplitterForJapaneseTest.java115 String neighborhood, String city, String region, String postcode, String country) { in assertSplitPostal() argument
124 assertEquals(country, postal.country); in assertSplitPostal()
128 String neighborhood, String city, String region, String postcode, String country) { in assertJoinedPostal() argument
136 postal.country = country; in assertJoinedPostal()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsHttpClient.java294 final String country = locale.getCountry(); in addLocaleToHttpAcceptLanguage() local
295 if (country != null) { in addLocaleToHttpAcceptLanguage()
297 builder.append(country); in addLocaleToHttpAcceptLanguage()
414 String country = null; in getSimOrLocaleCountry() local
420 country = info.getCountryIso(); in getSimOrLocaleCountry()
423 country = mTelephonyManager.getSimCountryIso(); in getSimOrLocaleCountry()
425 if (!TextUtils.isEmpty(country)) { in getSimOrLocaleCountry()
426 return country.toUpperCase(); in getSimOrLocaleCountry()
DPhoneNumberHelper.java38 static String getNumberNoCountryCode(final String number, final String country) { in getNumberNoCountryCode() argument
42 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(number, country); in getNumberNoCountryCode()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallLogManager.java440 private String getCountryIsoFromCountry(Country country) { in getCountryIsoFromCountry() argument
441 if(country == null) { in getCountryIsoFromCountry()
447 return country.getCountryIso(); in getCountryIsoFromCountry()
461 Country country = null; in getCountryIso() local
463 country = countryDetector.detectCountry(); in getCountryIso()
477 mCurrentCountryIso = getCountryIsoFromCountry(country); in getCountryIso()
/packages/apps/Dialer/java/com/android/dialer/oem/
DCequintCallerIdManager.java176 String country = getString(cursor, cursor.getColumnIndex(COUNTRY_NAME)); in lookup() local
188 String geoDescription = getGeoDescription(city, state, stateAbbr, country); in lookup()
257 String city, String state, String stateAbbr, String country) { in getGeoDescription() argument
264 } else if (!TextUtils.isEmpty(country)) { in getGeoDescription()
265 geoDescription = country; in getGeoDescription()
/packages/apps/TV/src/com/android/tv/
DFeatures.java147 String country = LocationUtils.getCurrentCountry(context);
149 if (SUPPORTED_REGIONS[i].equalsIgnoreCase(country)) {
175 String country = LocationUtils.getCurrentCountry(context);
177 if (SUPPORTED_REGIONS[i].equalsIgnoreCase(country)) {
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DUtils.java41 final Country country = detector.detectCountry(); in getCurrentCountryIso() local
42 if (country != null) { in getCurrentCountryIso()
43 return country.getCountryIso(); in getCurrentCountryIso()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java358 String country = readUTF(dis); in lookupAddress() local
362 if (country == null) { in lookupAddress()
365 locale = new Locale(language, country); in lookupAddress()
367 locale = new Locale(language, country, variant); in lookupAddress()
/packages/apps/Dialer/java/com/android/dialer/location/
DCountryDetector.java223 country -> { in processLocationUpdate()
224 if (country == null) { in processLocationUpdate()
231 .putString(CountryDetector.KEY_PREFERENCE_CURRENT_COUNTRY, country) in processLocationUpdate()
/packages/apps/Dialer/java/com/android/dialer/phonenumberproto/
Ddialer_phone_number.proto36 // The ISO 3166-1 two letter country code of the country where the user made
56 // The country calling code for this number, as defined by the International
135 // (without country code). For example, this would be set when parsing the
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVCardResourceEntry.java315 final String country = postalData.getCountry();
316 if (!TextUtils.isEmpty(country)) {
317 sb.append(country);
/packages/apps/Dialer/java/com/android/dialer/smartdial/
DSmartDialPrefix.java533 public static boolean isCountryNanp(String country) { in isCountryNanp() argument
534 if (TextUtils.isEmpty(country)) { in isCountryNanp()
540 return sNanpCountries.contains(country.toUpperCase()); in isCountryNanp()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingSystemsFragment.java102 for (String country : countries) { in getItemList()
103 builder.append(country); in getItemList()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dpointer.md164 void SetLocation(Value& location, const char* country, const char* addresses[2]) {
167 SetValueByPointer(location, "/country", country, a);
/packages/apps/TV/src/com/android/tv/parental/
DContentRatingsParser.java189 for (String country : parser.getAttributeValue(i).split("\\s*,\\s*")) { in parseRatingSystemDefinition()
190 builder.addCountry(country); in parseRatingSystemDefinition()
DContentRatingSystem.java211 public void addCountry(String country) { in addCountry() argument
215 mCountries.add(new Locale("", country).getCountry()); in addCountry()
/packages/apps/Dialer/java/com/android/dialer/about/res/raw/
Dthird_party_licenses7048 from receiving the SDK under the laws of the United States or other countries including the country
7197 country in which you are resident or from which you use the service, or the provision of the SDK or

12