HomeSort by relevance Sort by last modified time
    Searched refs:country (Results 76 - 100 of 496) sorted by null

1 2 34 5 6 7 8 91011>>

  /packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
Utils.java 21 import android.location.Country;
35 * @return The current country code.
41 final Country country = detector.detectCountry(); local
42 if (country != null) {
43 return country.getCountryIso();
51 * Converts a phone number to an E164 number, assuming the current country. If {@code
  /external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/util/
Locale.java 29 * {@code Locale} represents a language/country/variant combination. Locales are used to
35 * The country codes are two-letter uppercase ISO country codes (such as "US") as defined by
193 * country, and variant.
263 * Constructs a new {@code Locale} using the specified language and country codes.
265 public Locale(String language, String country) {
266 this(language, country, "");
270 * Constructs a new {@code Locale} using the specified language, country,
273 public Locale(String language, String country, String variant) {
274 if (language == null || country == null || variant == null)
    [all...]
  /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);
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
PostalSplitterForJapaneseTest.java 45 private static final String COUNTRY = "\u65E5\u672C";
94 assertJoinedPostal(COUNTRY + " " + POSTCODE + "\n" + STREET,
95 STREET, null, null, null, null, POSTCODE, COUNTRY);
102 assertJoinedPostal(COUNTRY + "\n" + REGION + " " + CITY + "\n" + STREET,
103 STREET, null, null, CITY, REGION, null, COUNTRY);
105 assertJoinedPostal(COUNTRY + "\n" + STREET,
106 STREET, null, null, null, null, null, COUNTRY);
110 assertJoinedPostal(COUNTRY + "\n" + STREET,
111 null, null, STREET, null, null, null, COUNTRY);
115 String neighborhood, String city, String region, String postcode, String country) {
    [all...]
PostalSplitterTest.java 99 String neighborhood, String city, String region, String postcode, String country) {
108 assertEquals(country, postal.country);
112 String neighborhood, String city, String region, String postcode, String country) {
120 postal.country = country;
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
LocaleIDs.java 14 * Utilities for mapping between old and new language, country, and other
21 * Returns a list of all 2-letter country codes defined in ISO 3166.
42 * Returns a three-letter abbreviation for the provided country. If the provided
43 * country is empty, returns the empty string. Otherwise, returns
44 * an uppercase ISO 3166 3-letter country code.
46 * three-letter country abbreviation is not available for this locale.
48 public static String getISO3Country(String country){
50 int offset = findIndex(_countries, country);
54 offset = findIndex(_obsoleteCountries, country);
367 "AN", "BU", "CS", "DD", "DY", "FX", "HV", "NH", "RH", "SU", "TP", "UK", "VD", "YD", "YU", "ZR" /* deprecated country list *
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
LocaleIDs.java 13 * Utilities for mapping between old and new language, country, and other
19 * Returns a list of all 2-letter country codes defined in ISO 3166.
42 * Returns a three-letter abbreviation for the provided country. If the provided
43 * country is empty, returns the empty string. Otherwise, returns
44 * an uppercase ISO 3166 3-letter country code.
46 * three-letter country abbreviation is not available for this locale.
49 public static String getISO3Country(String country){
51 int offset = findIndex(_countries, country);
55 offset = findIndex(_obsoleteCountries, country);
369 "AN", "BU", "CS", "DD", "DY", "FX", "HV", "NH", "RH", "SU", "TP", "UK", "VD", "YD", "YU", "ZR" /* deprecated country list *
    [all...]
  /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/c-ares/
acountry.c 3 * IP-address/hostname to country converter.
12 * The 2 letter country code is in <CC> and the ISO-3166 country
221 * Extract the CNAME and figure out the country-code from it.
263 int country_number; /* ISO-3166 country number */
264 char short_name[3]; /* A2 short country code */
265 const char *long_name; /* normal country name */
548 * Find the country-code and name from the CNAME. E.g.:
556 const struct search_list *country; local
606 TRACE(("Found country-code `%s', number %d\n"
    [all...]
  /libcore/ojluni/src/main/java/java/util/
Currency.java 46 * of the properties file are key/value pairs of the ISO 3166 country codes
109 * Returns the <code>Currency</code> instance for the country of the
120 * @param locale the locale for whose country a <code>Currency</code>
122 * @return the <code>Currency</code> instance for the country of the given
124 * @exception NullPointerException if <code>locale</code> or its country
126 * @exception IllegalArgumentException if the country of the given locale
127 * is not a supported ISO 3166 country code.
133 String country = locale.getCountry(); local
136 country = country + "_" + variant
    [all...]
  /system/connectivity/shill/cellular/
mock_mobile_operator_info.cc 36 ON_CALL(*this, country())
  /system/connectivity/shill/
provider_db_unittest.bfd 17 country:ch
31 country:us
  /development/samples/TtsEngine/src/com/example/android/ttsengine/
RobotSpeakTtsService.java 88 protected int onIsLanguageAvailable(String lang, String country, String variant) {
93 if ("USA".equals(country) || "GBR".equals(country)) {
103 // We support the language, but not the country.
116 protected synchronized int onLoadLanguage(String lang, String country, String variant) {
117 final int isLanguageAvailable = onIsLanguageAvailable(lang, country, variant);
123 String loadCountry = country;
130 if (mCurrentLanguage[0].equals(lang) && mCurrentLanguage[1].equals(country)) {
141 Log.e(TAG, "Error loading data for : " + lang + "-" + country);
  /external/svox/pico/src/com/svox/pico/
GetSampleText.java 41 String country = i.getExtras().getString("country"); local
45 if (country.equals("GBR")){
  /frameworks/base/core/java/android/speech/tts/
SynthesisRequest.java 24 * <li>The synthesis locale, represented as a language, country and a variant.
25 * The language is an ISO 639-3 letter language code, and the country is an
93 * Gets the ISO 3-letter country code for the language to use.
137 void setLanguage(String language, String country, String variant) {
139 mCountry = country;
TtsEngines.java 78 /** Mapping of various country strings to the normalized Locale form */
94 for (String country : Locale.getISOCountries()) {
96 normalizeCountry.put(new Locale("", country).getISO3Country(), country);
376 * country codes ({@link Locale#getISO3Language()} and {@link Locale#getISO3Country()}),
380 String language = "", country = "", variant = ""; local
396 country = split[1].toUpperCase();
409 String normalizedCountry= sNormalizeCountry.get(country);
411 country = normalizedCountry;
414 if (DBG) Log.d(TAG, "parseLocalePref(" + language + "," + country
448 String country = ttsLocale.getCountry(); local
    [all...]
  /frameworks/base/location/java/android/location/
CountryDetector.java 27 * This class provides access to the system country detector service. This
28 * service allows applications to obtain the country that the user is in.
30 * The country will be detected in order of reliability, like
34 * <li>SIM's country</li>
38 * Call the {@link #detectCountry()} to get the available country immediately.
40 * To be notified of the future country change, use the
55 * looper once the country changed and detected.
72 public void onCountryDetected(final Country country) {
75 mListener.onCountryDetected(country);
    [all...]
GeocoderParams.java 28 * language, country and variant information from the Geocoder's locale
72 String country = in.readString();
74 gp.mLocale = new Locale(language, country, variant);
  /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...]
  /external/libgdx/gdx/src/com/badlogic/gdx/utils/
I18NBundle.java 41 * country and the country of the language bundle need to be handled by a country-specific {@code I18NBundle}.</li>
43 * like {@code PREEURO} where the currency of come countries changed. The country bundle would return the current currency (Euro)
59 * It's also possible to create variants for languages or countries. This can be done by just skipping the country or language
60 * abbreviation: BaseName_us__POSIX or BaseName__DE_PREEURO. But it's not allowed to circumvent both language and country:
229 * Locale(language, country, variant)
230 * Locale(language, country)
235 * where <code>language</code>, <code>country</code> and <code>variant</code> are the language, country and variant values o
260 String country = locale.getCountry(); local
386 String country = locale.getCountry(); local
    [all...]
  /frameworks/base/native/android/
configuration.cpp 58 outCountry[0] = config->country[0];
59 outCountry[1] = config->country[1];
150 void AConfiguration_setCountry(AConfiguration* config, const char* country) {
151 config->country[0] = country[0];
152 config->country[1] = country[1];
  /libcore/ojluni/src/main/native/
java_props_md.c 139 char *language = NULL, *country = NULL, *variant = NULL, local
183 * <language name>_<country name>.<encoding name>@<variant name>
184 * <country name>, <encoding name>, and <variant name> are optional.
191 /* Parse the language, country, encoding, and variant from the
200 * no country name, and this facility is used to map each language
201 * to a default country if that's possible. It's also used to map
227 if ((country = strchr(temp, '_')) != NULL) {
228 *country++ = '\0';
249 /* Normalize the country name */
250 if (std_country != NULL && country != NULL)
    [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;
  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/
LocaleIDs.java 15 * Utilities for mapping between old and new language, country, and other
21 * Returns a list of all 2-letter country codes defined in ISO 3166.
44 * Returns a three-letter abbreviation for the provided country. If the provided
45 * country is empty, returns the empty string. Otherwise, returns
46 * an uppercase ISO 3166 3-letter country code.
48 * three-letter country abbreviation is not available for this locale.
51 public static String getISO3Country(String country){
54 int offset = findIndex(_countries, country);
58 offset = findIndex(_obsoleteCountries, country);
375 // Avoid initializing country tables unless we have to
    [all...]
  /frameworks/base/services/core/java/com/android/server/
CountryDetectorService.java 27 import android.location.Country;
39 * This class detects the country that the user is in through
83 /** Whether to dump the state of the country detector service to bugreports */
100 public Country detectCountry() {
157 protected void notifyReceivers(Country country) {
161 receiver.getListener().onCountryDetected(country);
178 public void onCountryDetected(final Country country) {
181 notifyReceivers(country);
    [all...]

Completed in 935 milliseconds

1 2 34 5 6 7 8 91011>>