Home
last modified time | relevance | path

Searched refs:Category (Results 1 – 19 of 19) 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.java416 return getInstance(Locale.getDefault(Locale.Category.FORMAT), NUMBERSTYLE); in getInstance()
445 return getInstance(Locale.getDefault(Locale.Category.FORMAT), NUMBERSTYLE); in getNumberInstance()
478 return getInstance(Locale.getDefault(Locale.Category.FORMAT), INTEGERSTYLE); in getIntegerInstance()
510 return getInstance(Locale.getDefault(Locale.Category.FORMAT), CURRENCYSTYLE); in getCurrencyInstance()
535 return getInstance(Locale.getDefault(Locale.Category.FORMAT), PERCENTSTYLE); in getPercentInstance()
DDateFormatSymbols.java124 initializeData(Locale.getDefault(Locale.Category.FORMAT)); in DateFormatSymbols()
386 return getInstance(Locale.getDefault(Locale.Category.FORMAT)); in getInstance()
DDecimalFormatSymbols.java83 initialize( Locale.getDefault(Locale.Category.FORMAT) ); in DecimalFormatSymbols()
136 return getInstance(Locale.getDefault(Locale.Category.FORMAT)); in getInstance()
DDecimalFormat.java403 Locale def = Locale.getDefault(Locale.Category.FORMAT); in DecimalFormat()
437 this.symbols = new DecimalFormatSymbols(Locale.getDefault(Locale.Category.FORMAT)); in DecimalFormat()
DSimpleDateFormat.java576 this(SHORT, SHORT, Locale.getDefault(Locale.Category.FORMAT)); in SimpleDateFormat()
598 this(pattern, Locale.getDefault(Locale.Category.FORMAT)); in SimpleDateFormat()
643 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.java1582 assertEquals(Locale.US, Locale.getDefault(Locale.Category.FORMAT)); in test_setDefault_withCategory()
1583 assertEquals(Locale.US, Locale.getDefault(Locale.Category.DISPLAY)); in test_setDefault_withCategory()
1586 Locale.setDefault(Locale.Category.FORMAT, Locale.UK); in test_setDefault_withCategory()
1587 assertEquals(Locale.UK, Locale.getDefault(Locale.Category.FORMAT)); in test_setDefault_withCategory()
1588 assertEquals(Locale.US, Locale.getDefault(Locale.Category.DISPLAY)); in test_setDefault_withCategory()
1591 Locale.setDefault(Locale.Category.DISPLAY, Locale.CANADA); in test_setDefault_withCategory()
1592 assertEquals(Locale.UK, Locale.getDefault(Locale.Category.FORMAT)); in test_setDefault_withCategory()
1593 assertEquals(Locale.CANADA, Locale.getDefault(Locale.Category.DISPLAY)); in test_setDefault_withCategory()
1597 assertEquals(Locale.FRANCE, Locale.getDefault(Locale.Category.FORMAT)); in test_setDefault_withCategory()
1598 assertEquals(Locale.FRANCE, Locale.getDefault(Locale.Category.DISPLAY)); in test_setDefault_withCategory()
[all …]
/libcore/ojluni/src/main/java/java/util/
DLocale.java917 public static Locale getDefault(Locale.Category category) { in getDefault()
983 private static Locale initDefault(Locale.Category category) { in initDefault()
1024 setDefault(Category.DISPLAY, newLocale); in setDefault()
1025 setDefault(Category.FORMAT, newLocale); in setDefault()
1061 public static synchronized void setDefault(Locale.Category category, in setDefault()
1746 return getDisplayLanguage(getDefault(Category.DISPLAY)); in getDisplayLanguage()
1828 return getDisplayScript(getDefault(Category.DISPLAY)); in getDisplayScript()
1852 result = ICU.getDisplayScript(this, Locale.getDefault(Category.DISPLAY)); in getDisplayScript()
1878 return getDisplayCountry(getDefault(Category.DISPLAY)); in getDisplayCountry()
1969 return getDisplayVariant(getDefault(Category.DISPLAY)); in getDisplayVariant()
[all …]
DCurrency.java206 return getSymbol(Locale.getDefault(Locale.Category.DISPLAY)); in getSymbol()
274 return getDisplayName(Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName()
DTimeZone.java328 Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName()
376 Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName()
DFormatter.java1917 this(Locale.getDefault(Locale.Category.FORMAT), new StringBuilder()); in Formatter()
1933 this(Locale.getDefault(Locale.Category.FORMAT), nonNullAppendable(a)); in Formatter()
1999 this(Locale.getDefault(Locale.Category.FORMAT), in Formatter()
2038 this(fileName, csn, Locale.getDefault(Locale.Category.FORMAT)); in Formatter()
2110 this(Locale.getDefault(Locale.Category.FORMAT), in Formatter()
2149 this(file, csn, Locale.getDefault(Locale.Category.FORMAT)); in Formatter()
2207 this(Locale.getDefault(Locale.Category.FORMAT), in Formatter()
2228 this(Locale.getDefault(Locale.Category.FORMAT), in Formatter()
2255 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.java545 useLocale(Locale.getDefault(Locale.Category.FORMAT)); in Scanner()
2632 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/src/main/java/java/time/format/
DDecimalStyle.java143 return of(Locale.getDefault(Locale.Category.FORMAT)); in ofDefaultLocale()
DDateTimeFormatterBuilder.java2033 return toFormatter(Locale.getDefault(Locale.Category.FORMAT)); in toFormatter()
2065 return toFormatter(Locale.getDefault(Locale.Category.FORMAT), resolverStyle, chrono); in toFormatter()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java130 Locale fmtLocale = Locale.getDefault(Locale.Category.FORMAT); in test_pattern_String()