Home
last modified time | relevance | path

Searched refs:getCountry (Results 1 – 25 of 38) sorted by relevance

12

/packages/services/Telephony/tests/src/com/android/phone/tests/
DCallForwardInfoTest.java40 assertNotNull(PhoneNumberUtils.formatNumber("+12345678900", Locale.US.getCountry())); in testCallForwardNumberResponses()
41 assertNotNull(PhoneNumberUtils.formatNumber("123-456-7890", Locale.US.getCountry())); in testCallForwardNumberResponses()
42 assertNotNull(PhoneNumberUtils.formatNumber("#123", Locale.US.getCountry())); in testCallForwardNumberResponses()
43 assertNotNull(PhoneNumberUtils.formatNumber("*12", Locale.US.getCountry())); in testCallForwardNumberResponses()
45 assertNull(PhoneNumberUtils.formatNumber("a", Locale.US.getCountry())); in testCallForwardNumberResponses()
46 assertNull(PhoneNumberUtils.formatNumber("a1", Locale.US.getCountry())); in testCallForwardNumberResponses()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/util/
DPostalCodeUtilsTest.java52 assertThat(PostalCodeUtils.matches(postcode, Locale.US.getCountry())).isTrue(); in validPostcodesUs()
59 assertThat(PostalCodeUtils.matches(postcode, Locale.UK.getCountry())).isTrue(); in validPostcodesGb()
66 assertThat(PostalCodeUtils.matches(postcode, Locale.US.getCountry())).isFalse(); in invalidPostcodesUs()
73 assertThat(PostalCodeUtils.matches(postcode, Locale.UK.getCountry())).isFalse(); in invalidPostcodesGb()
81 assertThat(PostalCodeUtils.matches(postcode, Locale.ROOT.getCountry())).isTrue(); in unsupportedRegion()
/packages/apps/TV/common/src/com/android/tv/common/util/
DPostalCodeUtils.java50 REGION_PATTERN.put(Locale.US.getCountry(), Pattern.compile(POSTCODE_REGEX_US)); in Locale.US.getCountry()
52 Locale.UK.getCountry(), in Locale.UK.getCountry()
54 REGION_MAX_LENGTH.put(Locale.US.getCountry(), 5); in Locale.US.getCountry()
55 REGION_MAX_LENGTH.put(Locale.UK.getCountry(), 8); in Locale.UK.getCountry()
DLocationUtils.java138 sCountry = context.getResources().getConfiguration().locale.getCountry(); in getCurrentCountry()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DLocalePickerTest.java105 assertThat(systemLocale.getCountry()).isEqualTo(locale.getCountry()); in assertSystemLocale()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputMethodManager.java449 subtypeLocale.getCountry().equals(locale.getCountry()) && in findSubtypeByLocale()
458 subtypeLocale.getCountry().equals(locale.getCountry())) { in findSubtypeByLocale()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingSystemsFragment.java89 && s.getCountries().contains(Locale.getDefault().getCountry())) { in getItemList()
142 && s.getCountries().contains(Locale.getDefault().getCountry())) { in setDefaultRatingSystemsIfNeeded()
/packages/apps/Contacts/src/com/android/contacts/util/
DTelephonyManagerUtils.java56 countryIso = locale.getCountry(); in getCurrentCountryIso()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DStructuredPostalDataItem.java65 public String getCountry() { in getCountry() method in StructuredPostalDataItem
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DStructuredPostalDataItem.java65 public String getCountry() { in getCountry() method in StructuredPostalDataItem
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCountryMonitor.java67 return Locale.getDefault().getCountry(); in getCountryIso()
/packages/services/Mms/src/com/android/mms/service/
DPhoneUtils.java76 country = Locale.getDefault().getCountry(); in getSimOrDefaultLocaleCountry()
/packages/apps/Contacts/src/com/android/contacts/location/
DCountryDetector.java117 return defaultLocale.getCountry(); in getLocaleBasedCountryIso()
/packages/services/BuiltInPrintService/src/com/android/bips/
DImagePrintActivity.java185 String country = getResources().getConfiguration().getLocales().get(0).getCountry(); in getLocaleDefaultMediaSize()
187 if (Locale.JAPAN.getCountry().equals(country)) { in getLocaleDefaultMediaSize()
/packages/apps/TV/src/com/android/tv/parental/
DContentRatingSystem.java215 mCountries.add(new Locale("", country).getCountry()); in addCountry()
259 if (mCountries.contains(locale.getCountry())) { in build()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java125 String currentCountry = Locale.getDefault().getCountry(); in computeAddress()
327 writeUTF(dos, locale.getCountry()); in lookupAddress()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DUtils.java59 return locale.getCountry(); in getCurrentCountryIso()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSearch.kt139 val country: String = locale.getCountry() in getLanguage()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsHttpClient.java294 final String country = locale.getCountry(); in addLocaleToHttpAcceptLanguage()
428 return Locale.getDefault().getCountry(); in getSimOrLocaleCountry()
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DBlockedNumbersUtil.java52 String countryIso = Locale.getDefault().getCountry(); in getLocaleDefaultToUS()
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ui/
DAssistedDialingSettingFragment.java178 .setRegion(getResources().getConfiguration().getLocales().get(0).getCountry()) in buildDefaultCountryChooserKeysAndValues()
/packages/apps/Dialer/java/com/android/dialer/location/
DCountryDetector.java185 return defaultLocale.getCountry(); in getLocaleBasedCountryIso()
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
DPhoneNumberHelper.java255 countryIso = LocaleUtils.getLocale(context).getCountry(); in getCurrentCountryIso()
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/
DLeanbackKeyboardContainer.java713 if (TextUtils.isEmpty(compare.getCountry()) || in isMatch()
714 TextUtils.equals(locale.getCountry(), compare.getCountry())) { in isMatch()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DTimeZoneSettings.java395 return mLocale.getCountry().toUpperCase(Locale.US); in getLocaleRegionId()

12