/external/chromium_org/third_party/icu/source/common/unicode/ |
brkiter.h | 302 * Create BreakIterator for word-breaks using the given locale. 305 * @param where the locale. 312 * U_USING_FALLBACK_WARNING indicates that a fall back locale was used. For 314 * used. U_USING_DEFAULT_WARNING indicates that the default locale data was 315 * used; neither the requested locale nor any of its fall back locales 321 createWordInstance(const Locale& where, UErrorCode& status); 324 * Create BreakIterator for line-breaks using specified locale. 329 * @param where the locale. 336 * U_USING_FALLBACK_WARNING indicates that a fall back locale was used. For 338 * used. U_USING_DEFAULT_WARNING indicates that the default locale data wa [all...] |
/external/icu4c/common/unicode/ |
brkiter.h | 294 * Create BreakIterator for word-breaks using the given locale. 297 * @param where the locale. 304 * U_USING_FALLBACK_WARNING indicates that a fall back locale was used. For 306 * used. U_USING_DEFAULT_WARNING indicates that the default locale data was 307 * used; neither the requested locale nor any of its fall back locales 313 createWordInstance(const Locale& where, UErrorCode& status); 316 * Create BreakIterator for line-breaks using specified locale. 321 * @param where the locale. 328 * U_USING_FALLBACK_WARNING indicates that a fall back locale was used. For 330 * used. U_USING_DEFAULT_WARNING indicates that the default locale data wa [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
SimpleDateFormatTest.java | 25 import java.util.Locale; 55 Locale en = Locale.ENGLISH; 56 Locale pl = new Locale("pl"); 57 Locale ru = new Locale("ru"); 85 parseDate(Locale.ENGLISH, "MMMMM", "J"); 90 parseDate(Locale.ENGLISH, "LLLLL", "J"); 95 parseDate(Locale.ENGLISH, "EEEEE", "T") [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
CurrencyTest.java | 20 import java.util.Locale; 24 // Regression test to ensure that Currency.getSymbol(Locale) returns the 33 assertEquals("AED", Currency.getInstance("AED").getSymbol(Locale.CANADA)); 58 assertEquals("Swiss Franc", Currency.getInstance("CHF").getDisplayName(Locale.US)); 59 assertEquals("Schweizer Franken", Currency.getInstance("CHF").getDisplayName(new Locale("de", "CH"))); 60 assertEquals("franc suisse", Currency.getInstance("CHF").getDisplayName(new Locale("fr", "CH"))); 61 assertEquals("Franco Svizzero", Currency.getInstance("CHF").getDisplayName(new Locale("it", "CH"))); 75 Locale pt_BR = new Locale("pt", "BR"); 76 Locale pt_PT = new Locale("pt", "PT") [all...] |
OldAndroidLocaleTest.java | 23 import java.util.Locale; 29 * Test some locale-dependent stuff for Android. This test mainly ensures that 34 // Test basic Locale infrastructure. 36 Locale locale = new Locale("en"); local 37 assertEquals("en", locale.toString()); 39 locale = new Locale("en", "US"); 40 assertEquals("en_US", locale.toString()) [all...] |
/libcore/luni/src/test/java/libcore/icu/ |
ICUTest.java | 20 import java.util.Locale; 55 // through Locale.toString. 56 assertEquals(Locale.ENGLISH, ICU.localeFromString("en")); 57 assertEquals(Locale.ENGLISH, ICU.localeFromString("en_")); 58 assertEquals(Locale.ENGLISH, ICU.localeFromString("en__")); 59 assertEquals(Locale.US, ICU.localeFromString("en_US")); 60 assertEquals(Locale.US, ICU.localeFromString("en_US_")); 61 assertEquals(new Locale("", "US", ""), ICU.localeFromString("_US")); 62 assertEquals(new Locale("", "US", ""), ICU.localeFromString("_US_")); 63 assertEquals(new Locale("", "", "POSIX"), ICU.localeFromString("__POSIX")) [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
ICU.java | 20 import java.util.Locale; 30 private static Locale[] availableLocalesCache; 57 * Returns the appropriate {@code Locale} given a {@code String} of the form returned 59 * this method can parse strings that {@code Locale.toString} won't produce. 62 public static Locale localeFromString(String localeName) { 67 return new Locale(localeName); 72 return new Locale(language, country); 78 return new Locale(language, country, variant); 82 public static Locale[] localesFromStrings(String[] localeNames) { 86 LinkedHashSet<Locale> set = new LinkedHashSet<Locale>() [all...] |
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
currpinf.h | 25 class Locale; 34 * CurrencyPluralInfo from its locale data. 40 * locale information, 41 * plural rule of the locale, 42 * currency plural pattern of the locale. 50 * Create a CurrencyPluralInfo object for the default locale. 57 * Create a CurrencyPluralInfo object for the given locale. 58 * @param locale the locale 62 CurrencyPluralInfo(const Locale& locale, UErrorCode& status); [all...] |
/external/icu4c/i18n/unicode/ |
currpinf.h | 23 class Locale; 32 * CurrencyPluralInfo from its locale data. 38 * locale information, 39 * plural rule of the locale, 40 * currency plural pattern of the locale. 48 * Create a CurrencyPluralInfo object for the default locale. 55 * Create a CurrencyPluralInfo object for the given locale. 56 * @param locale the locale 60 CurrencyPluralInfo(const Locale& locale, UErrorCode& status); [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
DateIntervalFormatBenchmark.java | 21 import java.util.Locale; 28 Locale l = Locale.US; 38 Locale l = Locale.US; 48 Locale l = Locale.US;
|
/packages/apps/Dialer/tests/src/com/android/dialer/util/ |
LocaleTestUtils.java | 23 import java.util.Locale; 26 * Utility class to save and restore the locale of the system. 28 * This can be used for tests that assume to be run in a certain locale, e.g., because they 30 * will behave in a specific locale. 32 * In your test, you can change the locale with the following code: 41 * mLocaleTestUtils.setLocale(Locale.CANADA_FRENCH); 54 * Note that one should not call {@link #setLocale(Locale)} more than once without calling 62 private Locale mSavedContextLocale; 63 private Locale mSavedSystemLocale; 66 * Create a new instance that can be used to set and reset the locale for the given context [all...] |
/cts/tests/tests/text/src/android/text/cts/ |
AutoTextTest.java | 19 import java.util.Locale; 33 Locale.setDefault(Locale.ENGLISH); 35 if (!config.locale.equals(Locale.getDefault())) { 36 config.locale = Locale.getDefault(); 79 Locale.setDefault(Locale.ENGLISH); 81 if (!config.locale.equals(Locale.getDefault())) [all...] |
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/callback/ |
LanguageCallbackTest.java | 25 import java.util.Locale; 43 Locale locale = Locale.US; local 44 lc.setLocale(locale); 49 * locale is null
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/ |
LocalePropertyEditor.java | 15 import java.util.Locale; 18 * {@link PropertyEditor} for {@link Locale}. 42 if (value instanceof Locale) { 43 return ((Locale) value).getDisplayName(); 58 // if (value instanceof Locale) { 59 // localeDialog = new ChooseLocaleDialog(DesignerPlugin.getShell(), (Locale) value); 67 System.out.println("TODO: Custom locale chooser here");
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
UserDictionarySettingsUtils.java | 25 import java.util.Locale; 33 // CAVEAT: localeStr should not be null because a null locale stands for the system 34 // locale in UserDictionary.Words.addWord. 37 final Locale locale = Utils.createLocaleFromString(localeStr); local 38 final Locale systemLocale = context.getResources().getConfiguration().locale; 39 return locale.getDisplayName(systemLocale);
|
UserDictionaryLocalePicker.java | 19 import java.util.Locale;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
LocaleUtils.java | 24 import java.util.Locale; 38 // Locale match level constants. 47 // The languages matches, but the country are different. Or, the reference locale requires a 48 // country and the tested locale does not have one. 50 // The languages and country match, but the variants are different. Or, the reference locale 51 // requires a variant and the tested locale does not have one. 53 // The required locale is null or empty so it will accept anything, and the tested locale 56 // The language matches, and the tested locale specifies a country but the reference locale [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
UserDictionarySettingsUtils.java | 25 import java.util.Locale; 34 // CAVEAT: localeStr should not be null because a null locale stands for the system 35 // locale in UserDictionary.Words.addWord. 38 final Locale locale = LocaleUtils.constructLocaleFromString(localeStr); local 39 final Locale systemLocale = context.getResources().getConfiguration().locale; 40 return locale.getDisplayName(systemLocale);
|
/development/apps/CustomLocale/src/com/android/customlocale2/ |
ChangeLocale.java | 20 import java.util.Locale; 29 * Helper class to change the system locale. 37 * Sets the system locale to the new one specified. 39 * @param locale A locale name in the form "ab_AB". Must not be null or empty. 40 * @return True if the locale was succesfully changed. 42 public static boolean changeSystemLocale(String locale) { 44 Log.d(TAG, "Change locale to: " + locale); 51 Locale loc = null [all...] |
/external/icu4c/common/ |
unistr_case_locale.cpp | 14 * Locale-sensitive case mapping functions (ones that call uloc_getDefault()) 35 setTempCaseMap(UCaseMap *csm, const char *locale) { 39 if(locale!=NULL && locale[0]==0) { 40 csm->locale[0]=0; 42 ustrcase_setTempCaseMapLocale(csm, locale); 48 return toLower(Locale::getDefault()); 52 UnicodeString::toLower(const Locale &locale) { 54 setTempCaseMap(&csm, locale.getName()) [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
tsnmfmt.h | 52 void testLocale(/* char *par, */const Locale& locale, const UnicodeString& localeName); 56 Locale fLocale;
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/geocoding/ |
phonenumber_offline_geocoder.h | 40 typedef icu::Locale Locale; 73 const Locale& language) const; 75 // As per GetDescriptionForValidNumber(PhoneNumber, Locale) but also considers 94 const Locale& language, const string& user_region) const; 96 // As per GetDescriptionForValidNumber(PhoneNumber, Locale) but explicitly 99 const Locale& locale) const; 101 // As per GetDescriptionForValidNumber(PhoneNumber, Locale, String) but 103 const Locale& language, const string& user_region) const [all...] |
/external/icu4c/test/intltest/ |
tsnmfmt.h | 52 void testLocale(/* char *par, */const Locale& locale, const UnicodeString& localeName); 56 Locale fLocale;
|
/libcore/luni/src/main/java/org/xml/sax/ |
Parser.java | 9 import java.util.Locale; 57 * Allow an application to request a locale for errors and warnings. 60 * and warnings; if they cannot support the requested locale, 62 * not request a locale change in the middle of a parse.</p> 64 * @param locale A Java Locale object. 66 * (using the previous or default locale) if the 67 * requested locale is not supported. 71 public abstract void setLocale (Locale locale) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/ |
AlgNameMapperTest.java | 23 import java.util.Locale; 56 assertEquals(HARDCODED_ALIASES[i][1].toUpperCase(Locale.US), 57 AlgNameMapper.map2AlgName(HARDCODED_ALIASES[i][0]).toUpperCase(Locale.US)); 62 assertEquals(HARDCODED_ALIASES[i][1].toUpperCase(Locale.US), 64 .toUpperCase(Locale.US)).toUpperCase(Locale.US)); 92 assertEquals(NON_HARDCODED_ALIASES[i][1].toUpperCase(Locale.US), 93 algName.toUpperCase(Locale.US));
|