HomeSort by relevance Sort by last modified time
    Searched refs:Locale (Results 26 - 50 of 1279) sorted by null

12 3 4 5 6 7 8 91011>>

  /libcore/luni/src/main/java/java/util/spi/
CurrencyNameProvider.java 20 import java.util.Locale;
25 * <p>Note that Android does not support user-supplied locale service providers.
41 * @param locale a locale
42 * @return the symbol or null if there is no available symbol in the locale
44 * if {@code code == null || locale == null}
46 * if code or locale is not in a legal format or not available
48 public abstract String getSymbol(String code, Locale locale);
TimeZoneNameProvider.java 20 import java.util.Locale;
25 * <p>Note that Android does not support user-supplied locale service providers.
38 * Returns the localized name for the given time zone in the given locale.
43 * @param locale the locale
46 * if {@code id == null || locale == null}
48 * if locale is not available or style is invalid
50 public abstract String getDisplayName(String id, boolean daylight, int style, Locale locale);
  /packages/apps/Contacts/src/com/android/contacts/util/
PhonebookCollatorFactory.java 20 import java.util.Locale;
28 return Collator.getInstance(Locale.getDefault());
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
UserDictionaryLocalePicker.java 21 import java.util.Locale;
34 public void onLocaleSelected(Locale locale);
  /libcore/luni/src/test/java/tests/api/java/util/
ResourceBundleTest.java 26 import java.util.Locale;
38 assertEquals("[en_US, en, ]", c.getCandidateLocales("base", Locale.US).toString());
39 assertEquals("[de_CH, de, ]", c.getCandidateLocales("base", new Locale("de", "CH")).toString());
44 * java.util.Locale)
49 Locale defLocale = Locale.getDefault();
51 Locale.setDefault(new Locale("en", "US"));
52 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
55 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "v1"))
214 Locale locale = Locale.GERMAN; local
    [all...]
  /cts/tests/src/android/text/format/cts/
LocaleUtils.java 21 import java.util.Locale;
25 /** Return whether or not the given locale is the device's current locale. */
26 public static boolean isCurrentLocale(Context context, Locale locale) {
27 // TODO: Change the locale on the device using public API if it becomes available.
28 Locale currentLocale = context.getResources().getConfiguration().locale;
29 return locale.equals(currentLocale);
  /external/nist-sip/java/javax/sip/header/
AcceptLanguageHeader.java 3 import java.util.Locale;
9 Locale getAcceptLanguage();
10 void setAcceptLanguage(Locale acceptLanguage);
  /libcore/luni/src/test/java/libcore/java/io/
StreamTokenizerTest.java 21 import java.util.Locale;
26 Locale.setDefault(Locale.US);
32 Locale.setDefault(new Locale("tr", "TR"));
  /packages/apps/Mms/tests/src/com/android/mms/util/
HttpUtilsTests.java 19 import java.util.Locale;
37 * default locale.
40 Locale defaultLocale = Locale.getDefault();
52 Locale hebrewLocale = new Locale("iw", "IW");
  /external/nist-sip/java/gov/nist/javax/sip/header/
ContentLanguage.java 31 import java.util.Locale;
93 protected Locale locale;
121 if ( "".equals(locale.getCountry())) {
122 return locale.getLanguage();
124 return locale.getLanguage() + '-' + locale.getCountry();
135 this.locale = new Locale(languageTag.substring(0,slash), languageTag.substring(slash+1) );
137 this.locale = new Locale(languageTag)
92 protected Locale locale; field in class:ContentLanguage
    [all...]
  /external/libphonenumber/java/test/com/android/i18n/phonenumbers/geocoding/
PhoneNumberOfflineGeocoderTest.java 22 import java.util.Locale;
67 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.SIMPLIFIED_CHINESE));
69 geocoder.getDescriptionForNumber(BS_NUMBER1, new Locale("en", "US")));
71 geocoder.getDescriptionForNumber(AU_NUMBER, new Locale("en", "US")));
73 new Locale("en", "US")));
75 new Locale("en", "US")));
82 geocoder.getDescriptionForNumber(US_NUMBER4, new Locale("en", "US")));
87 geocoder.getDescriptionForNumber(US_NUMBER1, new Locale("en", "US")));
89 geocoder.getDescriptionForNumber(US_NUMBER2, new Locale("en", "US")));
91 geocoder.getDescriptionForNumber(US_NUMBER3, new Locale("en", "US")))
    [all...]
  /libcore/luni/src/test/java/libcore/icu/
AlphabeticIndexTest.java 19 import java.util.Locale;
22 private static AlphabeticIndex.ImmutableIndex createIndex(Locale locale) {
23 return new AlphabeticIndex(locale).addLabels(Locale.US)
35 AlphabeticIndex.ImmutableIndex en = createIndex(Locale.ENGLISH);
41 AlphabeticIndex.ImmutableIndex ja = createIndex(Locale.JAPANESE);
70 AlphabeticIndex.ImmutableIndex ko = createIndex(Locale.KOREAN);
80 AlphabeticIndex.ImmutableIndex cs = createIndex(new Locale("cs"));
94 AlphabeticIndex.ImmutableIndex fr = createIndex(Locale.FRENCH)
    [all...]
  /libcore/luni/src/main/java/java/text/
BreakIterator.java 20 import java.util.Locale;
108 * boundary = BreakIterator.getSentenceInstance(Locale.US);
252 * <p>Note that Android does not support user-supplied locale service providers.
254 public static Locale[] getAvailableLocales() {
260 * characters using the user's default locale.
261 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
262 * @return a new instance of {@code BreakIterator} using the default locale.
265 return getCharacterInstance(Locale.getDefault());
270 * characters using the given locale
    [all...]
  /libcore/luni/src/test/java/libcore/java/text/
DecimalFormatSymbolsTest.java 24 import java.util.Locale;
27 private void checkLocaleIsEquivalentToRoot(Locale locale) {
28 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale);
29 assertEquals(DecimalFormatSymbols.getInstance(Locale.ROOT), dfs);
35 // are equal. It could be that they're accidentally checking the Locale.
36 checkLocaleIsEquivalentToRoot(new Locale("xx", "XX"));
37 checkLocaleIsEquivalentToRoot(new Locale("not exist language", "not exist country"));
42 DecimalFormatSymbols originalDfs = DecimalFormatSymbols.getInstance(Locale.GERMANY);
  /libcore/luni/src/test/java/libcore/java/util/
OldFormatterTest.java 25 import java.util.Locale;
61 fLoc = new Formatter(Locale.GERMAN);
62 fNoL = new Formatter(Locale.GERMAN);
63 fLoc.format(Locale.US, "%f", val);
67 fLoc = new Formatter(Locale.FRANCE);
68 fNoL = new Formatter(Locale.FRANCE);
69 fLoc.format(Locale.US, "%f", val);
73 fLoc = new Formatter(Locale.US);
74 fNoL = new Formatter(Locale.US);
75 fLoc.format(Locale.US, "%f", val)
    [all...]
  /external/apache-http/src/org/apache/http/
HttpResponse.java 35 import java.util.Locale;
69 * {@link #getLocale locale}.
91 * based on the current {@link #getLocale locale}. It can be set
141 * Obtains the locale of this response.
142 * The locale is used to determine the reason phrase
146 * @return the locale of this response, never <code>null</code>
148 Locale getLocale();
151 * Changes the locale of this response.
153 * according to the status code and new locale.
155 * @param loc the new locale
    [all...]
  /external/chromium_org/third_party/icu/source/common/
locutil.h 26 static Locale& initLocaleFromName(const UnicodeString& id, Locale& result);
27 static UnicodeString& initNameFromLocale(const Locale& locale, UnicodeString& result);
locid.cpp 78 static U_NAMESPACE_QUALIFIER Locale *gLocaleCache = NULL;
79 static U_NAMESPACE_QUALIFIER Locale *gDefaultLocale = NULL;
84 // Deleter function for Locales owned by the default Locale hash table/
88 delete (U_NAMESPACE_QUALIFIER Locale *) obj;
105 // The cache wasn't created, and only one default locale was created.
123 // If given a NULL string for the locale id, grab the default
125 // (Different from most other locale APIs, where a null name means use
126 // the current ICU default locale.)
134 // put the locale id into a canonical form,
135 // in preparation for looking up this locale in the hash table o
    [all...]
  /external/icu4c/common/
locutil.h 26 static Locale& initLocaleFromName(const UnicodeString& id, Locale& result);
27 static UnicodeString& initNameFromLocale(const Locale& locale, UnicodeString& result);
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
SynchronousProfileProvider.java 21 import java.util.Locale;
43 protected Locale getLocale() {
44 return Locale.US;
  /external/bison/lib/
main.c 23 # include <locale.h>
26 # define setlocale(Category, Locale)
  /external/chromium_org/third_party/icu/source/test/perf/normperf/
dtfmtrtperf.h 114 const Locale testLocales[] = {
115 Locale("en"),
116 Locale("en_US"),
117 Locale("en_AU"),
118 Locale("de_DE"),
119 Locale("fr"),
120 Locale("ja_JP"),
121 Locale("ko"),
122 Locale("pt"),
123 Locale("th_TH")
    [all...]
  /external/icu4c/test/perf/normperf/
dtfmtrtperf.h 114 const Locale testLocales[] = {
115 Locale("en"),
116 Locale("en_US"),
117 Locale("en_AU"),
118 Locale("de_DE"),
119 Locale("fr"),
120 Locale("ja_JP"),
121 Locale("ko"),
122 Locale("pt"),
123 Locale("th_TH")
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
StringUtilsTests.java 26 import java.util.Locale;
108 StringUtils.capitalizeFirstCodePoint("ßaa", Locale.GERMAN));
110 StringUtils.capitalizeFirstCodePoint("aßa", Locale.GERMAN));
112 StringUtils.capitalizeFirstCodePoint("iab", Locale.ENGLISH));
114 StringUtils.capitalizeFirstCodePoint("cAmElCaSe", Locale.ENGLISH));
116 StringUtils.capitalizeFirstCodePoint("iab", new Locale("tr")));
118 StringUtils.capitalizeFirstCodePoint("A?B", new Locale("tr")));
120 StringUtils.capitalizeFirstCodePoint("a", Locale.ENGLISH));
122 StringUtils.capitalizeFirstCodePoint("A", Locale.ENGLISH));
127 StringUtils.capitalizeFirstAndDowncaseRest("ßaa", Locale.GERMAN))
    [all...]
  /external/chromium_org/ui/android/java/src/org/chromium/ui/base/
LocalizationUtils.java 14 import java.util.Locale;
17 * This class provides the locale related methods for the native library.
30 * @return the default locale, translating Android deprecated
35 Locale locale = Locale.getDefault(); local
36 String language = locale.getLanguage();
37 String country = locale.getCountry();
42 // See http://developer.android.com/reference/java/util/Locale.html
54 private static Locale getJavaLocale(String language, String country, String variant)
    [all...]

Completed in 1426 milliseconds

12 3 4 5 6 7 8 91011>>