/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...] |
locdspnm.h | 15 * \brief C++ API: Provides display names of Locale and its components. 30 * values, see Locale. 43 * {@link #createInstance(const Locale& locale, UDialectHandling dialectHandling)} 45 * @param locale the display locale 49 static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale); 53 * formatted for the provided locale, using the provided 56 * @param locale the display local [all...] |
/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");
|
/libcore/luni/src/test/java/libcore/java/util/ |
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...] |
OldTimeZoneTest.java | 22 import java.util.Locale; 86 Locale.setDefault(Locale.US); 95 assertEquals("Pacific Standard Time", tz.getDisplayName(new Locale("US"))); 96 if (Support_Locale.isLocaleAvailable(Locale.FRANCE)) { 98 assertEquals("heure normale du Pacifique", tz.getDisplayName(Locale.FRANCE)); 103 Locale.setDefault(Locale.US); 113 assertEquals("PST", tz.getDisplayName(false, 0, Locale.US)); 114 assertEquals("Pacific Daylight Time", tz.getDisplayName(true, 1, Locale.US)) [all...] |
/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...] |
/libcore/luni/src/main/native/ |
IcuUtilities.h | 22 #include "unicode/locid.h" // For Locale. 24 extern Locale getLocale(JNIEnv* env, jstring localeName);
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
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...] |
/external/icu4c/test/intltest/ |
tsnmfmt.h | 52 void testLocale(/* char *par, */const Locale& locale, const UnicodeString& localeName); 56 Locale fLocale;
|
tzfmttst.cpp | 87 const Locale testLocales[] = { 88 Locale("en"), 89 Locale("en_CA"), 90 Locale("fr"), 91 Locale("zh_Hant") 94 const Locale *LOCALES; 99 nLocales = sizeof(testLocales)/sizeof(Locale); 101 LOCALES = Locale::getAvailableLocales(nLocales); 124 PATTERNS[patidx] + " for locale " + LOCALES[locidx].getName() + " - " + u_errorName(status)); 191 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx [all...] |
/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));
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
NameNormalizerTest.java | 23 import java.util.Locale; 39 private Locale mOriginalLocale; 46 mOriginalLocale = Locale.getDefault(); 49 Locale.setDefault(Locale.US); 54 Locale.setDefault(mOriginalLocale); 111 // Change locale -- now new collators should be returned. 112 Locale.setDefault(Locale.FRANCE);
|
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
NodeSortKey.java | 24 import java.util.Locale; 51 /** Locale we're in */ 52 Locale m_locale; 68 * @param langValue Lang value to use to get locale 91 // The constructor of Locale is defined as 92 // public Locale(String language, String country) 100 m_locale = new Locale(langValue.toLowerCase(), 101 Locale.getDefault().getCountry()); 104 // m_locale = new Locale(langValue.toUpperCase(), 105 // Locale.getDefault().getDisplayCountry()); [all...] |
/frameworks/base/core/java/android/text/style/ |
LocaleSpan.java | 24 import java.util.Locale; 27 * Changes the {@link Locale} of the text to which the span is attached. 30 private final Locale mLocale; 34 * @param locale The {@link Locale} of the text to which the span is 37 public LocaleSpan(Locale locale) { 38 mLocale = locale; 42 mLocale = new Locale(src.readString(), src.readString(), src.readString()); 63 * Returns the {@link Locale} [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
DateFormatSymbolsTest.java | 28 import java.util.Locale; 32 private void assertLocaleIsEquivalentToRoot(Locale locale) { 33 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale); 34 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), dfs); 39 // TODO: we fail this test. on Android, the root locale uses GMT offsets as names. 40 // see the invalid locale test below. on the RI, the root locale uses English names. 41 assertLocaleIsEquivalentToRoot(new Locale("xx", "XX")); 45 assertLocaleIsEquivalentToRoot(new Locale("not exist language", "not exist country")) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
Locale.java | 30 public class Locale { 37 /** A locale which matches any language and region */ 38 public static final Locale ANY = new Locale(ANY_LANGUAGE, ANY_REGION); 40 /** The language qualifier, or {@link #ANY_LANGUAGE} if this locale matches any language */ 44 /** The language qualifier, or {@link #ANY_REGION} if this locale matches any region */ 49 * Constructs a new {@linkplain Locale} matching a given language in a given locale. 54 private Locale(@NonNull LanguageQualifier language, @NonNull RegionQualifier region) { 66 * Constructs a new {@linkplain Locale} matching a given language in a given specific locale [all...] |
/dalvik/tests/092-locale/src/ |
Main.java | 24 import java.util.Locale; 29 * Exercise some locale-table-driven stuff. 68 Locale usa = new Locale("en", "US"); 84 Locale france = new Locale("fr", "FR"); 101 Locale usa = new Locale("en", "US"); 108 Locale usa = new Locale("en", "US") [all...] |
/libcore/luni/src/test/java/libcore/icu/ |
LocaleDataTest.java | 19 import java.util.Locale; 23 // Test that we can get the locale data for all known locales. 24 for (Locale l : Locale.getAvailableLocales()) { 31 LocaleData l = LocaleData.get(Locale.US); 57 LocaleData l = LocaleData.get(new Locale("de", "DE")); 65 LocaleData l = LocaleData.get(new Locale("cs", "CZ")); 77 LocaleData l = LocaleData.get(new Locale("ru", "RU")); 91 LocaleData es = LocaleData.get(new Locale("es")); 95 LocaleData es_419 = LocaleData.get(new Locale("es", "419")) [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
ListResourceBundleTest.java | 22 import java.util.Locale; 34 Locale.setDefault(new Locale("en", "US")); 35 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR")); 54 Locale.setDefault(new Locale("en", "US")); 55 bundle = (ListResourceBundle)ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
|