/external/chromium/chrome/browser/autofill/ |
address_unittest.cc | 13 // Test that the getters and setters for country code are working. 25 // Test that country codes are properly decoded as country names. 30 // Make sure that nothing breaks when the country code is missing. 31 string16 country = address.GetInfo(ADDRESS_HOME_COUNTRY); local 32 EXPECT_EQ(string16(), country); local 35 country = address.GetInfo(ADDRESS_HOME_COUNTRY); 36 EXPECT_EQ(ASCIIToUTF16("United States"), country); 39 country = address.GetInfo(ADDRESS_HOME_COUNTRY); 40 EXPECT_EQ(ASCIIToUTF16("Canada"), country); 50 string16 country = address.GetInfo(ADDRESS_HOME_COUNTRY); local 76 EXPECT_EQ(string16(), country); local [all...] |
/external/svox/pico/src/com/svox/pico/ |
GetSampleText.java | 41 String country = i.getExtras().getString("country"); local 45 if (country.equals("GBR")){
|
/cts/tests/tests/util/src/android/util/cts/ |
TimeUtilsTest.java | 91 String country = world[i]; local 99 guess = guessTimeZone(c, country); 104 private static TimeZone guessTimeZone(Calendar c, String country) { 108 country);
|
/external/icu4c/common/unicode/ |
locid.h | 52 * according to the customs/conventions of the user's native country, 63 * const char* country, 75 * The second argument to the constructors is a valid <STRONG>ISO Country 116 * itself. Use <code>getCountry</code> to get the ISO Country Code and 119 * name of the country suitable for displaying to the user. Similarly, 124 * that takes a locale as an argument and displays the name or country in 163 * through these objects by language, country, or variant, 205 /** Useful constant for this country/region. @stable ICU 2.0 */ 207 /** Useful constant for this country/region. @stable ICU 2.0 */ 209 /** Useful constant for this country/region. @stable ICU 2.0 * 726 char country[ULOC_COUNTRY_CAPACITY]; member in class:Locale [all...] |
/external/apache-xml/src/main/java/org/apache/xml/serializer/utils/ |
Messages.java | 359 String country = locale.getCountry(); local 361 if (country.equals("TW")) 362 suffix += "_" + country;
|
/frameworks/base/core/tests/coretests/src/android/util/ |
TimeUtilsTest.java | 387 String country = world[i]; local 395 guess = guess(c, country); 399 guess = guess(c, country); 411 String country = world[i]; local 419 guess = guess(c, country); 424 private static TimeZone guess(Calendar c, String country) { 428 country);
|
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/ |
driver_cmd_wext.c | 193 char *country = "US"; /* WEXT_NUMBER_SCAN_CHANNELS_FCC */ local 196 country = "EU"; 198 country = "JP"; 199 return country; 301 os_snprintf(cmd, MAX_DRV_CMD_SIZE, "COUNTRY %s",
|
/libcore/luni/src/main/java/java/util/ |
Currency.java | 62 * Returns the {@code Currency} instance for this {@code Locale}'s country. 64 * if the locale's country is not a supported ISO 3166 country. 72 String country = locale.getCountry(); local 76 country = country + "_" + variant; 79 String currencyCode = ICU.getCurrencyCode(country); 81 throw new IllegalArgumentException("Unsupported ISO 3166 country: " + locale); 145 * <p>If the locale only specifies a language rather than a language and a country (such as
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
PhoneNumberTestService.java | 39 [-e c OPTIONAL COUNTRY CODE] \ 60 final String country = intent.getStringExtra(EXTRA_COUNTRY_CODE); local 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) { [all...] |
/external/apache-xml/src/main/java/org/apache/xml/utils/res/ |
XResourceBundle.java | 103 String country = locale.getCountry(); local 108 suffix += "_" + country; 110 if (country.equals("JP")) 111 suffix += "_" + country + "_" + variant;
|
/external/chromium/base/i18n/ |
rtl.cc | 23 // Extract language and country, ignore keywords, concatenate using dash. 26 const char* country = locale.getCountry(); local 31 if (country != NULL && *country != '\0') { 33 result += country; 71 const char* country = locale.getCountry(); local 73 !LowerCaseEqualsASCII(country, "es")) { 75 language += country;
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsHelper.java | 138 String country = loc.getCountry(); local 139 if (!TextUtils.isEmpty(country)) { 140 localeString += "_" + country; 147 * "ll" is the language code and "cc" is the country code. 162 String country = size > 4 ? new String(data, 3, 2) : ""; local 166 loc = new Locale(language, country);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
CountryDetectorServiceTest.java | 20 import android.location.Country; 28 private Country mCountry; 31 public void onCountryDetected(Country country) throws RemoteException { 32 mCountry = country; 35 public Country getCountry() { 53 public void notifyReceivers(Country country) { 54 super.notifyReceivers(country); 82 Country country = new Country("US", Country.COUNTRY_SOURCE_NETWORK) local [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSearch.java | 78 String country = locale.getCountry(); local 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) { 91 // lang-country is currently only supported for a small number of locales 93 return "GB".equals(country); 95 return "CN".equals(country) || "TW".equals(country) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
SettingsSafetyLegalActivity.java | 53 final String country = configuration.locale.getCountry(); local 55 String loc = String.format("locale=%s-%s", language, country);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
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); [all...] |
/bionic/libc/kernel/common/linux/ |
uhid.h | 52 __u32 country; member in struct:uhid_create_req
|
/development/ndk/sources/android/native_app_glue/ |
android_native_app_glue.c | 64 char lang[2], country[2]; local 66 AConfiguration_getCountry(android_app->config, country); 73 lang[0], lang[1], country[0], country[1],
|
/external/chromium/chrome/browser/webdata/ |
web_database_migration_unittest.cc | 509 " country, phone, fax)" 579 " country, phone, fax)" 829 "zipcode, country, phone, fax, date_modified, guid " 1271 std::string country = s.ColumnString(0); local [all...] |
/external/kernel-headers/original/linux/ |
uhid.h | 50 __u32 country; member in struct:uhid_create_req
|
/external/svox/pico/compat/src/com/android/tts/compat/ |
CompatTtsService.java | 100 protected int onIsLanguageAvailable(String lang, String country, String variant) { 101 if (DBG) Log.d(TAG, "onIsLanguageAvailable(" + lang + "," + country + "," + variant + ")"); 103 return mNativeSynth.isLanguageAvailable(lang, country, variant); 107 protected int onLoadLanguage(String lang, String country, String variant) { 108 if (DBG) Log.d(TAG, "onLoadLanguage(" + lang + "," + country + "," + variant + ")"); 109 int result = onIsLanguageAvailable(lang, country, variant); 111 mNativeSynth.setLanguage(lang, country, variant); 126 String country = request.getCountry(); local 128 if (mNativeSynth.setLanguage(lang, country, variant) != TextToSpeech.SUCCESS) { 129 Log.e(TAG, "setLanguage(" + lang + "," + country + "," + variant + ") failed") [all...] |
/external/webkit/Source/WebKit/android/WebCoreSupport/autofill/ |
WebAutofill.cpp | 237 const string16& state, const string16& zipCode, const string16& country, const string16& phoneNumber) 252 mAutofillProfile->SetInfo(AutofillFieldType(ADDRESS_HOME_COUNTRY), country); local
|
/frameworks/base/core/java/com/android/internal/app/ |
LocalePicker.java | 137 String country = s.substring(3, 5); local 138 final Locale l = new Locale(language, country); 148 // same lang and a country -> upgrade to full name and
|
/frameworks/base/services/java/com/android/server/location/ |
LocationBasedCountryDetector.java | 21 import android.location.Country; 36 * This class detects which country the user currently is in through the enabled 41 * the user country through the GeoCoder. The IllegalStateException will be 58 * The thread to query the country from the GeoCoder. 72 * @return the ISO 3166-1 two letters country code from the location 75 String country = null; local 81 country = addresses.get(0).getCountryCode(); 84 Slog.w(TAG, "Exception occurs when getting country from location"); 86 return country; 142 * Start detecting the country [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
MccTable.java | 37 * Mobile Country Code 93 * @param mcc Mobile Country Code 116 * Given a GSM Mobile Country Code, returns 117 * an ISO two-character country code if available. 135 * Given a GSM Mobile Country Code, returns 152 * Given a GSM Mobile Country Code, returns 214 * @param country Two character country code desired 218 public static void setSystemLocale(Context context, String language, String country) { 220 String c = SystemProperties.get("persist.sys.country"); 294 String country = MccTable.countryCodeForMcc(mcc); local 307 String country = MccTable.countryCodeForMcc(mcc); local [all...] |