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

1 2 34 5 6 7 8 91011>>

  /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);
ContactLocaleUtilsTest.java 29 import java.util.Locale;
95 private static final Locale LOCALE_ARABIC = new Locale("ar");
105 final Locale locale[] = Collator.getAvailableLocales(); local
106 for (int i = 0; i < locale.length; i++) {
107 if (locale[i].equals(Locale.CHINA)) {
109 } else if (locale[i].equals(Locale.JAPAN))
    [all...]
  /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...]
  /external/icu4c/i18n/unicode/
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...]
  /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...]
BreakIteratorTest.java 21 import java.util.Locale;
29 iterator = BreakIterator.getCharacterInstance(Locale.US);
33 Locale[] locales = BreakIterator.getAvailableLocales();
38 for (Locale l : locales) {
39 if (l.equals(Locale.US)) {
44 assertTrue("At least locale " + Locale.US + " must be presented", found);
48 BreakIterator it1 = BreakIterator.getWordInstance(Locale.CANADA_FRENCH);
50 BreakIterator it2 = BreakIterator.getWordInstance(new Locale("bad locale"));
    [all...]
  /external/chromium_org/third_party/icu/source/test/intltest/
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);
120 PATTERNS[patidx] + " for locale " + LOCALES[locidx].getName() + " - " + u_errorName(status));
187 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx
    [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...]
  /art/test/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...]
  /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...]
TimeZoneNamesTest.java 20 import java.util.Locale;
26 String[] ids = TimeZoneNames.forLocale(Locale.CANADA);
53 String[] ids = TimeZoneNames.forLocale(Locale.KOREA);
58 for (Locale l : Locale.getAvailableLocales()) {
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
FlagManagerTest.java 26 import java.util.Locale;
45 Locale.setDefault(Locale.US);
47 Locale.setDefault(Locale.UK);
49 Locale.setDefault(Locale.CANADA);
54 Locale.setDefault(new Locale("pt", "br"));
57 Locale.setDefault(new Locale("pt", "pt"))
    [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"));
  /cts/tests/tests/content/src/android/content/res/cts/
ConfigurationTest.java 19 import java.util.Locale;
43 mConfig.locale = Locale.getDefault();
96 cfg1.locale = new Locale("", "", "2");
97 cfg2.locale = new Locale("", "", "3");
99 cfg1.locale = new Locale("", "", "3");
100 cfg2.locale = new Locale("", "", "2")
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
ControlTest.java 40 import java.util.Locale;
216 // no fall back locale
217 Locale defaultLocale = Locale.getDefault();
218 Locale.setDefault(new Locale("TestLanguage", "TestCountry", "Var"));
219 assertNull(control.getFallbackLocale("message", Locale.US));
227 control.getFallbackLocale(null, Locale.US);
232 Locale.setDefault(defaultLocale);
291 * @tests {@link java.util.ResourceBundle.Control#getCandidateLocales(java.lang.String, java.util.Locale)}
299 Locale locale = result.get(0); local
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
OldTimeZoneTest.java 22 import java.util.Locale;
85 Locale.setDefault(Locale.US);
94 assertEquals("Pacific Standard Time", tz.getDisplayName(new Locale("US")));
95 assertEquals("heure normale du Pacifique", tz.getDisplayName(Locale.FRANCE));
99 Locale.setDefault(Locale.US);
109 assertEquals("PST", tz.getDisplayName(false, 0, Locale.US));
110 assertEquals("Pacific Daylight Time", tz.getDisplayName(true, 1, Locale.US));
111 assertEquals("Pacific Standard Time", tz.getDisplayName(false, 1, Locale.UK))
    [all...]
  /external/apache-http/src/org/apache/http/impl/
DefaultHttpResponseFactory.java 34 import java.util.Locale;
91 final Locale loc = determineLocale(context);
104 final Locale loc = determineLocale(context);
110 * Determines the locale of the response.
111 * The implementation in this class always returns the default locale.
113 * @param context the context from which to determine the locale, or
114 * <code>null</code> to use the default locale
116 * @return the locale for the response, never <code>null</code>
118 protected Locale determineLocale(HttpContext context) {
119 return Locale.getDefault()
    [all...]
  /external/apache-xml/src/main/java/org/apache/xml/res/
XMLMessages.java 24 import java.util.Locale;
36 protected Locale fLocale = Locale.getDefault();
48 * Set the Locale object to use.
50 * @param locale non-null reference to Locale object.
52 public void setLocale(Locale locale)
54 fLocale = locale;
58 * Get the Locale object that is being used
    [all...]
  /external/chromium_org/third_party/icu/source/i18n/unicode/
locdspnm.h 15 * \brief C++ API: Provides display names of Locale and its components.
29 * values, see Locale.
42 * {@link #createInstance(const Locale& locale, UDialectHandling dialectHandling)}
44 * @param locale the display locale
48 static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale);
52 * formatted for the provided locale, using the provided
55 * @param locale the display local
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/header/
AcceptLanguage.java 33 import java.util.Locale;
163 * @return the language Locale value of this AcceptLanguageHeader
166 public Locale getAcceptLanguage() {
172 return new Locale( languageRange.substring(0,dash), languageRange.substring(dash+1) );
173 } else return new Locale( this.languageRange );
182 * @param language - the new Locale value of the language of
188 public void setAcceptLanguage(Locale language) {
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ConfigurationTest.java 4 import java.util.Locale;
37 shConfiguration.setLocale( Locale.US );
38 assertThat( configuration.locale, equalTo( Locale.US ) );
40 shConfiguration.setLocale( Locale.FRANCE);
41 assertThat( configuration.locale, equalTo( Locale.FRANCE ) );
  /frameworks/base/location/java/android/location/
GeocoderParams.java 23 import java.util.Locale;
28 * language, country and variant information from the Geocoder's locale
36 private Locale mLocale;
48 public GeocoderParams(Context context, Locale locale) {
49 mLocale = locale;
54 * returns the Geocoder's locale
56 public Locale getLocale() {
74 gp.mLocale = new Locale(language, country, variant);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
ContactLocaleUtils.java 34 import java.util.Locale;
43 * This utility class provides specialized handling for locale specific
49 public static final Locale LOCALE_ARABIC = new Locale("ar");
50 public static final Locale LOCALE_GREEK = new Locale("el");
51 public static final Locale LOCALE_HEBREW = new Locale("he");
53 public static final Locale LOCALE_UKRAINIAN = new Locale("uk")
    [all...]

Completed in 1567 milliseconds

1 2 34 5 6 7 8 91011>>