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

1 2 3

  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowAddress.java 15 private String countryCode;
83 return countryCode;
87 public void setCountryCode(String countryCode) {
88 this.countryCode = countryCode;
ShadowGeocoder.java 25 private String countryCode;
51 address.setCountryCode(countryCode);
85 * @param countryCode the country code for the response
87 public void setSimulatedResponse(String address, String city, String state, String zip, String countryCode) {
92 this.countryCode = countryCode;
  /external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/util/
LocaleNameProviderICU.java 19 public String getDisplayCountry(String countryCode, Locale locale) {
20 countryCode = AsciiUtil.toUpperString(countryCode);
22 .regionDisplayName(countryCode);
23 if (disp == null || disp.length() == 0 || disp.equals(countryCode)) {
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
SmsNumberUtils.java 109 public int countryCode;
200 int countryCode = numberEntry.countryCode;
203 && networkPortionNumber.length() >= 11 && countryCode != NANP_CC) {
380 int countryCode = -1;
388 if ((countryCode = getCountryCode(context, numberCountryAreaLocal)) > 0) {
389 numberEntry.countryCode = countryCode;
392 } else if ((countryCode = getCountryCode(context, numberNoNBPCD)) > 0) {
393 numberEntry.countryCode = countryCode
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
PhoneNumberFormatter.java 37 public TextWatcherLoadAsyncTask(String countryCode, TextView textView) {
38 mCountryCode = countryCode;
  /frameworks/base/telephony/java/android/telephony/
PhoneNumberFormattingTextWatcher.java 64 * The formatting is based on the given <code>countryCode</code>.
66 * @param countryCode the ISO 3166-1 two-letter country code that indicates the country/region
69 public PhoneNumberFormattingTextWatcher(String countryCode) {
70 if (countryCode == null) throw new IllegalArgumentException();
71 mFormatter = PhoneNumberUtil.getInstance().getAsYouTypeFormatter(countryCode);
  /frameworks/opt/timezonepicker/src/com/android/timezonepicker/
TimeZoneData.java 386 final String countryCode = fields[0];
399 if (countryCode == null && !timeZoneId.startsWith("Etc/GMT")) {
406 String country = mCountryCodeToNameMap.get(countryCode);
408 country = getCountryNames(lang, countryCode);
409 mCountryCodeToNameMap.put(countryCode, country);
482 private String getCountryNames(String lang, String countryCode) {
485 if (PALESTINE_COUNTRY_CODE.equalsIgnoreCase(countryCode)) {
488 countryDisplayName = new Locale(lang, countryCode).getDisplayCountry(defaultLocale);
491 if (!countryCode.equals(countryDisplayName)) {
506 if (mBackupCountryCodes[i].equals(countryCode)) {
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/dialpad/
SmartDialPrefix.java 108 final String countryCode;
116 public PhoneNumberTokens(String countryCode, int countryCodeOffset, int nanpCodeOffset) {
117 this.countryCode = countryCode;
261 String countryCode = "";
273 countryCode = number.substring(1, i);
274 if (isValidCountryCode(countryCode)) {
285 countryCode = "1";
296 if (countryCode.equals("") && normalizedNumber.length() == 10){
301 } else if (countryCode.equals("1") && normalizedNumber.length() == 11)
    [all...]
  /libcore/luni/src/main/java/java/util/
Locale.java     [all...]
  /cts/tests/tests/telephony/src/android/telephony/cts/
TelephonyManagerTest.java 370 String countryCode = mTelephonyManager.getNetworkCountryIso();
372 assertTrue("Country code '" + countryCode + "' did not match "
374 Pattern.matches(ISO_COUNTRY_CODE_PATTERN, countryCode));
382 String countryCode = mTelephonyManager.getSimCountryIso();
384 assertTrue("Country code '" + countryCode + "' did not match "
386 Pattern.matches(ISO_COUNTRY_CODE_PATTERN, countryCode));
  /packages/apps/Gallery2/src/com/android/gallery3d/util/
ReverseGeocoder.java 193 String countryCode = addr1CountryCode;
195 if (!countryCode.equals(currentCountry)) {
196 closestCommonLocation += ", " + adminArea + " " + countryCode;
245 String countryCode = addr1CountryCode;
246 if (!countryCode.equals(currentCountry)) {
247 if (countryCode != null && countryCode.length() > 0) {
248 closestCommonLocation += " " + countryCode;
  /libcore/luni/src/main/java/libcore/icu/
TimeZoneNames.java 145 String countryCode = locale.getCountry();
148 if (line.startsWith(countryCode)) {
  /packages/apps/Settings/src/com/android/settings/wifi/
WifiApDialog.java 137 String countryCode = mWifiManager.getCountryCode();
138 if (!mWifiManager.isDualBandSupported() || countryCode == null) {
141 + (countryCode == null ? " NO country code" :"") + " forbid 5GHz");
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
LanguageActivity.java 242 String countryCode = Locale.getDefault().getCountry();
245 if (wifiMgr != null && !TextUtils.isEmpty(countryCode)) {
246 wifiMgr.setCountryCode(countryCode, true);
  /external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
AsYouTypeFormatter.java 600 int countryCode = phoneUtil.extractCountryCode(nationalNumber, numberWithoutCountryCallingCode);
601 if (countryCode == 0) {
606 String newRegionCode = phoneUtil.getRegionCodeForCountryCode(countryCode);
608 currentMetadata = phoneUtil.getMetadataForNonGeographicalRegion(countryCode);
612 String countryCodeString = Integer.toString(countryCode);
PhoneNumberUtil.java     [all...]
PhoneNumberMatcher.java 478 String countryCode = Integer.toString(number.getCountryCode());
479 fromIndex = normalizedCandidate.indexOf(countryCode) + countryCode.length();
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
TimeZoneGenericNames.java 237 String countryCode = ZoneMeta.getCanonicalCountry(canonicalTzID, isPrimary);
238 if (countryCode != null) {
241 String country = getLocaleDisplayNames().regionDisplayName(countryCode);
549 String countryCode = ZoneMeta.getCanonicalCountry(tzID);
550 if (countryCode != null) {
552 String regionalGolden = _tznames.getReferenceZoneID(mzID, countryCode);
555 location = getLocaleDisplayNames().regionDisplayName(countryCode);
    [all...]
  /cts/tests/tests/location/src/android/location/cts/
AddressTest.java 65 String countryCode = "US";
66 address.setCountryCode(countryCode);
67 assertEquals(countryCode, address.getCountryCode());
209 "locality=null,thoroughfare=null,postalCode=95120,countryCode=null," +
  /external/icu/icu4c/source/i18n/
tzgnames.cpp 552 char countryCode[ULOC_COUNTRY_CAPACITY];
554 int32_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_INV);
555 countryCode[ccLen] = 0;
558 fLocaleDisplayNames->regionDisplayName(countryCode, country);
805 char countryCode[ULOC_COUNTRY_CAPACITY];
807 int32_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_INV);
808 countryCode[ccLen] = 0;
811 fTimeZoneNames->getReferenceZoneID(mzID, countryCode, regionalGolden)
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/libcore/icu/
ICU_Delegate.java 134 /*package*/ static String getDisplayCountryNative(String countryCode, String locale) {
  /frameworks/base/location/java/android/location/
Address.java 267 public void setCountryCode(String countryCode) {
268 mCountryCode = countryCode;
453 sb.append(",countryCode=");
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
TrieMapTest.java 86 for (String countryCode : ULocale.getISOCountries()) {
87 localeName = ULocale.getDisplayCountry("und-" + countryCode, locale);
88 if (!localeName.equals(countryCode)) {
  /libcore/luni/src/main/native/
libcore_icu_ICU.cpp 145 ScopedUtfChars countryCode(env, javaCountryCode);
146 ScopedResourceBundle currency(ures_getByKey(currencyMap.get(), countryCode.c_str(), NULL, &status));
654 jstring countryCode = env->NewStringUTF(icuLocale.locale().getCountry());
655 jstring internationalCurrencySymbol = ICU_getCurrencyCode(env, NULL, countryCode);
656 env->DeleteLocalRef(countryCode);
657 countryCode = NULL;
    [all...]
  /frameworks/base/core/java/android/text/style/
TtsSpan.java     [all...]

Completed in 1365 milliseconds

1 2 3