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

12 3

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
CurrencyTest.java 26 import java.util.Locale;
31 private Locale originalLocale;
36 originalLocale = Locale.getDefault();
41 Locale.setDefault(originalLocale);
52 * java.util.Currency#getInstance(java.util.Locale)
57 * method ignores language and variant component of the locale.
60 Currency c1 = Currency.getInstance(new Locale("en", "CA"));
62 "Currency.getInstance(new Locale(\"en\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")",
64 Currency c2 = Currency.getInstance(new Locale("fr", "CA"));
66 "Currency.getInstance(new Locale(\"fr\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")"
    [all...]
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...]
ControlTest.java 34 import java.util.Locale;
208 // no fall back locale
209 Locale defaultLocale = Locale.getDefault();
210 Locale.setDefault(new Locale("TestLanguage", "TestCountry", "Var"));
211 assertNull(control.getFallbackLocale("message", Locale.US));
219 control.getFallbackLocale(null, Locale.US);
224 Locale.setDefault(defaultLocale);
283 * {@link java.util.ResourceBundle.Control#getCandidateLocales(java.lang.String, java.util.Locale)}
291 Locale locale = result.get(0); local
    [all...]
ScannerTest.java 53 import java.util.Locale;
451 * @tests java.util.Scanner#locale()
455 assertEquals(Locale.getDefault(), s.locale());
459 * @tests java.util.Scanner#useLocale(Locale)
469 s.useLocale(new Locale("test", "test"));
470 assertEquals(new Locale("test", "test"), s.locale());
962 * Different locale can only recognize corresponding locale sensitiv
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
XMLReaderAdapterTest.java 20 import java.util.Locale;
104 adapter.setLocale(Locale.getDefault());
  /libcore/luni/src/main/java/java/text/
DateFormatSymbols.java 25 import java.util.Locale;
68 * Locale, necessary to lazily load time zone strings. Added to the serialized form for
72 private final Locale locale; field in class:DateFormatSymbols
81 zoneStrings = TimeZoneNames.getZoneStrings(locale);
88 * symbols for the user's default locale.
89 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
92 this(Locale.getDefault());
97 * symbols for the specified locale
154 Locale locale = this.locale; local
    [all...]
DecimalFormatSymbols.java 26 import java.util.Locale;
34 * {@code DecimalFormatSymbols} from its locale data. If you need to change any
38 * @see java.util.Locale
57 private transient Locale locale; field in class:DecimalFormatSymbols
62 * the user's default locale.
63 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".
69 this(Locale.getDefault());
74 * specified Locale
    [all...]
SimpleDateFormat.java 29 import java.util.Locale;
36 * Formats and parses dates in a locale-sensitive manner. Formatting turns a {@link Date} into
44 * locale. In cases where the system does not provide a suitable pattern, see
46 * the elements you'd like in a pattern and get back a pattern suitable for any given locale.
50 * to explicitly ask for {@link Locale#US} to ensure that you get ASCII digits (rather than,
52 * (See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".)
152 * SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.US);
225 * dates and times in the {@code SHORT} style for the user's default locale.
226 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>"
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
CalendarTest.java 22 import java.util.Locale;
46 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"), Locale.US);
191 // Calendar fields firstDayOfWeek and minimalDaysInFirstWeek are are sensitive to the Locale
250 Calendar.getInstance(Locale.getDefault()),
251 Calendar.getInstance((Locale) null));
253 Calendar.getInstance(TimeZone.getDefault(), Locale.getDefault()),
256 new GregorianCalendar(Locale.getDefault()),
257 new GregorianCalendar((Locale) null));
  /external/chromium_org/third_party/icu/source/common/
locid.cpp 53 static Locale *gLocaleCache = NULL;
58 static Locale *gDefaultLocale = NULL;
98 // Deleter function for Locales owned by the default Locale hash table/
102 delete (icu::Locale *) obj;
126 Locale *locale_set_default_internal(const char *id, UErrorCode& status) {
132 // If given a NULL string for the locale id, grab the default
134 // (Different from most other locale APIs, where a null name means use
135 // the current ICU default locale.)
165 Locale *newDefault = (Locale *)uhash_get(gDefaultLocalesHashT, localeNameBuf)
    [all...]
  /external/icu/icu4c/source/common/
locid.cpp 53 static Locale *gLocaleCache = NULL;
58 static Locale *gDefaultLocale = NULL;
98 // Deleter function for Locales owned by the default Locale hash table/
102 delete (icu::Locale *) obj;
126 Locale *locale_set_default_internal(const char *id, UErrorCode& status) {
132 // If given a NULL string for the locale id, grab the default
134 // (Different from most other locale APIs, where a null name means use
135 // the current ICU default locale.)
165 Locale *newDefault = (Locale *)uhash_get(gDefaultLocalesHashT, localeNameBuf)
    [all...]
  /frameworks/base/core/java/android/widget/
CalendarView.java 35 import java.util.Locale;
587 protected Locale mCurrentLocale;
593 // Initialization based on locale
594 setCurrentLocale(Locale.getDefault());
597 protected void setCurrentLocale(Locale locale) {
598 if (locale.equals(mCurrentLocale)) {
601 mCurrentLocale = locale;
DatePicker.java 48 import java.util.Locale;
489 // The current locale
490 protected Locale mCurrentLocale;
500 // initialization based on locale
501 setCurrentLocale(Locale.getDefault());
504 protected void setCurrentLocale(Locale locale) {
505 if (locale.equals(mCurrentLocale)) {
508 mCurrentLocale = locale;
589 // initialization based on locale
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
appmgmt.h 84 LCID Locale;
dls1.h 163 MIDILOCALE Locale;
  /libcore/luni/src/main/java/java/util/
GregorianCalendar.java 228 * time with the default {@code Locale} and {@code TimeZone}.
231 this(TimeZone.getDefault(), Locale.getDefault());
236 * {@code TimeZone} and {@code Locale} on the specified date.
246 super(TimeZone.getDefault(), Locale.getDefault());
252 * time in the default {@code TimeZone} and {@code Locale}.
266 super(TimeZone.getDefault(), Locale.getDefault());
272 * time in the default {@code TimeZone} and {@code Locale}.
289 super(TimeZone.getDefault(), Locale.getDefault());
300 * time and using the specified {@code Locale} and the default {@code TimeZone}.
302 * @param locale
    [all...]
Calendar.java 42 * Like other locale-sensitive classes, {@code Calendar} provides a class
45 * returns a calendar whose locale is based on system settings and whose time fields
75 * {@code Calendar} defines a locale-specific seven day week using two
77 * (from 1 to 7). These numbers are taken from the locale resource data when a
711 * Constructs a {@code Calendar} instance using the default {@code TimeZone} and {@code Locale}.
714 this(TimeZone.getDefault(), Locale.getDefault());
726 * Constructs a {@code Calendar} instance using the given {@code TimeZone} and {@code Locale}.
728 protected Calendar(TimeZone timezone, Locale locale) {
730 locale = LocaleData.mapInvalidAndNullLocales(locale)
    [all...]
Locale.java 29 * {@code Locale} represents a language/country/variant combination. Locales are used to
41 * rewriting happens even if you construct your own {@code Locale} object, not just for
45 * <p>This class' constructors do no error checking. You can create a {@code Locale} for languages
49 * <p>Note that locale data is not necessarily available for any of the locales pre-defined as
50 * constants in this class except for en_US, which is the only locale Java guarantees is always
59 * <p>You can use {@link Locale#getDefault} to get an appropriate locale for the <i>user</i> of the
60 * device you're running on, or {@link Locale#getAvailableLocales} to get a list of all the locales
63 * <a name="locale_data"></a><h3>Locale data</h3>
64 * <p>Note that locale data comes solely from ICU. User-supplied locale service providers (usin
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
ProviderTest.java 39 import java.util.Locale;
309 Locale defaultLocale = Locale.getDefault();
310 Locale.setDefault(new Locale("tr", "TR"));
317 Locale.setDefault(defaultLocale);
  /external/sonivox/arm-wt-22k/lib_src/
dls.h 198 MIDILOCALE Locale; /* Intended MIDI locale of this instrument */
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
String2Test.java 21 import java.util.Locale;
235 Locale defLocale = Locale.getDefault();
237 Locale.setDefault(new Locale("tr", ""));
238 assertEquals("Locale tr: 0x130 should compare = to 'i'", 0,
240 assertEquals("Locale tr: 0x131 should compare = to 'i'", 0,
243 Locale.setDefault(defLocale);
795 * java.lang.String#toLowerCase(java.util.Locale)
799 // java.lang.String.toLowerCase(java.util.Locale)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
MessageFormatTest.java 39 import java.util.Locale;
48 private Locale defaultLocale;
87 Locale[] l = {
88 Locale.FRANCE,
89 Locale.KOREA,
90 new Locale("FR", "fr"), // Deliberately backwards.
91 new Locale("mk"),
92 new Locale("mk", "MK"),
93 Locale.US,
94 new Locale("#ru", "@31230") // Deliberately nonsense
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/logging/
OldLoggerTest.java 20 import java.util.Locale;
40 Locale.setDefault(new Locale("zh", "CN"));
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
ErrorManager.java 73 * I use the default Locale as defined by java to compute a group file name
76 * Normally we want to use the default locale, but often a message file will
84 * TODO: how to map locale to a file encoding for the stringtemplate group file?
251 /** Messages should be sensitive to the locale. */
252 private static Locale locale; field in class:ErrorManager
386 // it is inefficient to set the default locale here if another
387 // piece of code is going to set the locale, but that would
390 setLocale(Locale.getDefault());
401 /** We really only need a single locale for entire running ANTLR cod
    [all...]
  /frameworks/base/graphics/java/android/graphics/
Paint.java 24 import java.util.Locale;
53 private Locale mLocale;
437 setTextLocale(Locale.getDefault());
476 setTextLocale(Locale.getDefault());
    [all...]

Completed in 1044 milliseconds

12 3