Home
last modified time | relevance | path

Searched refs:Category (Results 1 – 24 of 24) sorted by relevance

/libcore/ojluni/src/main/java/java/text/
DDateFormat.java456 return get(DEFAULT, 0, 1, Locale.getDefault(Locale.Category.FORMAT)); in getTimeInstance()
473 return get(style, 0, 1, Locale.getDefault(Locale.Category.FORMAT)); in getTimeInstance()
502 return get(0, DEFAULT, 2, Locale.getDefault(Locale.Category.FORMAT)); in getDateInstance()
519 return get(0, style, 2, Locale.getDefault(Locale.Category.FORMAT)); in getDateInstance()
548 return get(DEFAULT, DEFAULT, 3, Locale.getDefault(Locale.Category.FORMAT)); in getDateTimeInstance()
568 return get(timeStyle, dateStyle, 3, Locale.getDefault(Locale.Category.FORMAT)); in getDateTimeInstance()
DNumberFormat.java419 return getInstance(Locale.getDefault(Locale.Category.FORMAT), NUMBERSTYLE); in getInstance()
448 return getInstance(Locale.getDefault(Locale.Category.FORMAT), NUMBERSTYLE); in getNumberInstance()
481 return getInstance(Locale.getDefault(Locale.Category.FORMAT), INTEGERSTYLE); in getIntegerInstance()
513 return getInstance(Locale.getDefault(Locale.Category.FORMAT), CURRENCYSTYLE); in getCurrencyInstance()
538 return getInstance(Locale.getDefault(Locale.Category.FORMAT), PERCENTSTYLE); in getPercentInstance()
DDateFormatSymbols.java123 initializeData(Locale.getDefault(Locale.Category.FORMAT)); in DateFormatSymbols()
394 return getInstance(Locale.getDefault(Locale.Category.FORMAT)); in getInstance()
DDecimalFormatSymbols.java81 initialize( Locale.getDefault(Locale.Category.FORMAT) ); in DecimalFormatSymbols()
133 return getInstance(Locale.getDefault(Locale.Category.FORMAT)); in getInstance()
DDecimalFormat.java408 Locale def = Locale.getDefault(Locale.Category.FORMAT); in DecimalFormat()
449 this.symbols = DecimalFormatSymbols.getInstance(Locale.getDefault(Locale.Category.FORMAT)); in DecimalFormat()
DSimpleDateFormat.java614 this(SHORT, SHORT, Locale.getDefault(Locale.Category.FORMAT)); in SimpleDateFormat()
666 this(pattern, Locale.getDefault(Locale.Category.FORMAT)); in SimpleDateFormat()
711 this.locale = Locale.getDefault(Locale.Category.FORMAT); in SimpleDateFormat()
DMessageFormat.java362 this.locale = Locale.getDefault(Locale.Category.FORMAT); in MessageFormat()
/libcore/luni/src/test/java/libcore/java/util/
DLocales.java23 import static java.util.Locale.Category.DISPLAY;
24 import static java.util.Locale.Category.FORMAT;
DLocaleTest.java1643 assertEquals(Locale.US, Locale.getDefault(Locale.Category.FORMAT)); in test_setDefault_withCategory()
1644 assertEquals(Locale.US, Locale.getDefault(Locale.Category.DISPLAY)); in test_setDefault_withCategory()
1647 Locale.setDefault(Locale.Category.FORMAT, Locale.UK); in test_setDefault_withCategory()
1648 assertEquals(Locale.UK, Locale.getDefault(Locale.Category.FORMAT)); in test_setDefault_withCategory()
1649 assertEquals(Locale.US, Locale.getDefault(Locale.Category.DISPLAY)); in test_setDefault_withCategory()
1652 Locale.setDefault(Locale.Category.DISPLAY, Locale.CANADA); in test_setDefault_withCategory()
1653 assertEquals(Locale.UK, Locale.getDefault(Locale.Category.FORMAT)); in test_setDefault_withCategory()
1654 assertEquals(Locale.CANADA, Locale.getDefault(Locale.Category.DISPLAY)); in test_setDefault_withCategory()
1658 assertEquals(Locale.FRANCE, Locale.getDefault(Locale.Category.FORMAT)); in test_setDefault_withCategory()
1659 assertEquals(Locale.FRANCE, Locale.getDefault(Locale.Category.DISPLAY)); in test_setDefault_withCategory()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DDecimalFormatSymbolsBenchmark.java23 private static Locale locale = Locale.getDefault(Locale.Category.FORMAT);
DNumberFormatBenchmark.java24 private static Locale locale = Locale.getDefault(Locale.Category.FORMAT);
/libcore/ojluni/src/main/java/java/util/
DLocale.java926 public static Locale getDefault(Locale.Category category) { in getDefault()
995 private static Locale initDefault(Locale.Category category) { in initDefault()
1049 setDefault(Category.DISPLAY, newLocale); in setDefault()
1050 setDefault(Category.FORMAT, newLocale); in setDefault()
1086 public static synchronized void setDefault(Locale.Category category, in setDefault()
1826 return getDisplayLanguage(getDefault(Category.DISPLAY)); in getDisplayLanguage()
1930 return getDisplayScript(getDefault(Category.DISPLAY)); in getDisplayScript()
1955 result = LocaleNative.getDisplayScript(this, Locale.getDefault(Category.DISPLAY)); in getDisplayScript()
1981 return getDisplayCountry(getDefault(Category.DISPLAY)); in getDisplayCountry()
2117 return getDisplayVariant(getDefault(Category.DISPLAY)); in getDisplayVariant()
[all …]
DCurrency.java465 return getSymbol(Locale.getDefault(Locale.Category.DISPLAY)); in getSymbol()
547 return getDisplayName(Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName()
DTimeZone.java327 Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName()
375 Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName()
DFormatter.java1918 this(Locale.getDefault(Locale.Category.FORMAT), new StringBuilder()); in Formatter()
1934 this(Locale.getDefault(Locale.Category.FORMAT), nonNullAppendable(a)); in Formatter()
2000 this(Locale.getDefault(Locale.Category.FORMAT), in Formatter()
2039 this(fileName, csn, Locale.getDefault(Locale.Category.FORMAT)); in Formatter()
2111 this(Locale.getDefault(Locale.Category.FORMAT), in Formatter()
2150 this(file, csn, Locale.getDefault(Locale.Category.FORMAT)); in Formatter()
2208 this(Locale.getDefault(Locale.Category.FORMAT), in Formatter()
2229 this(Locale.getDefault(Locale.Category.FORMAT), in Formatter()
2256 this(os, csn, Locale.getDefault(Locale.Category.FORMAT)); in Formatter()
DCalendar.java1586 this(TimeZone.getDefaultRef(), Locale.getDefault(Locale.Category.FORMAT)); in Calendar()
1625 return createCalendar(TimeZone.getDefault(), Locale.getDefault(Locale.Category.FORMAT)); in getInstance()
1639 return createCalendar(zone, Locale.getDefault(Locale.Category.FORMAT)); in getInstance()
DScanner.java549 useLocale(Locale.getDefault(Locale.Category.FORMAT)); in Scanner()
2639 useLocale(Locale.getDefault(Locale.Category.FORMAT)); in reset()
DGregorianCalendar.java592 this(TimeZone.getDefaultRef(), Locale.getDefault(Locale.Category.FORMAT)); in GregorianCalendar()
604 this(zone, Locale.getDefault(Locale.Category.FORMAT)); in GregorianCalendar()
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java96 public static java.util.Locale getDefault(java.util.Locale.Category category) { in getDefault()
104 private static java.util.Locale initDefault(java.util.Locale.Category category) { in initDefault()
113 java.util.Locale.Category category, java.util.Locale newLocale) { in setDefault()
625 public static enum Category { enum in Locale
629 private Category( in Category() method in Locale.Category
637 private Category() { in Category() method in Locale.Category
/libcore/ojluni/annotations/mmodule/java/util/
DLocale.annotated.java61 public static java.util.Locale getDefault(java.util.Locale.Category category) { throw new RuntimeEx… in getDefault()
67 public static synchronized void setDefault(java.util.Locale.Category category, java.util.Locale new… in setDefault()
250 public static enum Category { enum in Locale
/libcore/ojluni/src/main/java/java/time/format/
DDecimalStyle.java143 return of(Locale.getDefault(Locale.Category.FORMAT)); in ofDefaultLocale()
DDateTimeFormatterBuilder.java2036 return toFormatter(Locale.getDefault(Locale.Category.FORMAT)); in toFormatter()
2068 return toFormatter(Locale.getDefault(Locale.Category.FORMAT), resolverStyle, chrono); in toFormatter()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java61 …atic java.util.Locale getDefault(@libcore.util.NonNull java.util.Locale.Category category) { throw… in getDefault()
65 public static synchronized void setDefault(@libcore.util.NonNull java.util.Locale.Category category… in setDefault()
246 public static enum Category { enum in Locale
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java130 Locale fmtLocale = Locale.getDefault(Locale.Category.FORMAT); in test_pattern_String()