/packages/services/Telephony/tests/src/com/android/phone/tests/ |
D | CallForwardInfoTest.java | 40 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/ |
D | PostalCodeUtilsTest.java | 52 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/ |
D | PostalCodeUtils.java | 50 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()
|
D | LocationUtils.java | 138 sCountry = context.getResources().getConfiguration().locale.getCountry(); in getCurrentCountry()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | LocalePickerTest.java | 105 assertThat(systemLocale.getCountry()).isEqualTo(locale.getCountry()); in assertSystemLocale()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputMethodManager.java | 449 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/ |
D | RatingSystemsFragment.java | 89 && 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/ |
D | TelephonyManagerUtils.java | 56 countryIso = locale.getCountry(); in getCurrentCountryIso()
|
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/ |
D | StructuredPostalDataItem.java | 65 public String getCountry() { in getCountry() method in StructuredPostalDataItem
|
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/ |
D | StructuredPostalDataItem.java | 65 public String getCountry() { in getCountry() method in StructuredPostalDataItem
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | CountryMonitor.java | 67 return Locale.getDefault().getCountry(); in getCountryIso()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | PhoneUtils.java | 76 country = Locale.getDefault().getCountry(); in getSimOrDefaultLocaleCountry()
|
/packages/apps/Contacts/src/com/android/contacts/location/ |
D | CountryDetector.java | 117 return defaultLocale.getCountry(); in getLocaleBasedCountryIso()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | ImagePrintActivity.java | 185 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/ |
D | ContentRatingSystem.java | 215 mCountries.add(new Locale("", country).getCountry()); in addCountry() 259 if (mCountries.contains(locale.getCountry())) { in build()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | ReverseGeocoder.java | 125 String currentCountry = Locale.getDefault().getCountry(); in computeAddress() 327 writeUTF(dos, locale.getCountry()); in lookupAddress()
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | Utils.java | 59 return locale.getCountry(); in getCurrentCountryIso()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
D | GoogleSearch.kt | 139 val country: String = locale.getCountry() in getLanguage()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsHttpClient.java | 294 final String country = locale.getCountry(); in addLocaleToHttpAcceptLanguage() 428 return Locale.getDefault().getCountry(); in getSimOrLocaleCountry()
|
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
D | BlockedNumbersUtil.java | 52 String countryIso = Locale.getDefault().getCountry(); in getLocaleDefaultToUS()
|
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ui/ |
D | AssistedDialingSettingFragment.java | 178 .setRegion(getResources().getConfiguration().getLocales().get(0).getCountry()) in buildDefaultCountryChooserKeysAndValues()
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
D | CountryDetector.java | 185 return defaultLocale.getCountry(); in getLocaleBasedCountryIso()
|
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/ |
D | PhoneNumberHelper.java | 255 countryIso = LocaleUtils.getLocale(context).getCountry(); in getCurrentCountryIso()
|
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/ |
D | LeanbackKeyboardContainer.java | 713 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/ |
D | TimeZoneSettings.java | 395 return mLocale.getCountry().toUpperCase(Locale.US); in getLocaleRegionId()
|