Home | History | Annotate | Download | only in util

Lines Matching defs:Locale

20 import java.util.Locale;
23 import static java.util.Locale.Category.DISPLAY;
24 import static java.util.Locale.Category.FORMAT;
31 private final Locale uncategorizedLocale;
32 private final Locale displayLocale;
33 private final Locale formatLocale;
35 private Locales(Locale uncategorizedLocale, Locale displayLocale, Locale formatLocale) {
42 * Sets the specified default Locale, default DISPLAY Locale and default FORMAT Locale.
46 * Locales locales = Locales.getAndSetDefaultForTest(Locale.US, Locale.CHINA, Locale.UK);
54 public static Locales getAndSetDefaultForTest(Locale uncategorizedLocale, Locale displayLocale,
55 Locale formatLocale) {
81 return "Locales[displayLocale=" + displayLocale + ", locale=" + uncategorizedLocale +
86 * Reset the system's default Locale values to what they were when this
90 // The lines below must set the Locales in this order because setDefault(Locale)
92 Locale.setDefault(uncategorizedLocale);
93 Locale.setDefault(DISPLAY, displayLocale);
94 Locale.setDefault(FORMAT, formatLocale);
99 Locale.getDefault(), Locale.getDefault(DISPLAY), Locale.getDefault(FORMAT));