/libcore/ojluni/src/main/java/java/text/ |
D | DateFormat.java | 456 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()
|
D | NumberFormat.java | 416 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()
|
D | DateFormatSymbols.java | 124 initializeData(Locale.getDefault(Locale.Category.FORMAT)); in DateFormatSymbols() 386 return getInstance(Locale.getDefault(Locale.Category.FORMAT)); in getInstance()
|
D | DecimalFormatSymbols.java | 83 initialize( Locale.getDefault(Locale.Category.FORMAT) ); in DecimalFormatSymbols() 136 return getInstance(Locale.getDefault(Locale.Category.FORMAT)); in getInstance()
|
D | DecimalFormat.java | 403 Locale def = Locale.getDefault(Locale.Category.FORMAT); in DecimalFormat() 437 this.symbols = new DecimalFormatSymbols(Locale.getDefault(Locale.Category.FORMAT)); in DecimalFormat()
|
D | SimpleDateFormat.java | 576 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()
|
D | MessageFormat.java | 362 this.locale = Locale.getDefault(Locale.Category.FORMAT); in MessageFormat()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | Locales.java | 23 import static java.util.Locale.Category.DISPLAY; 24 import static java.util.Locale.Category.FORMAT;
|
D | LocaleTest.java | 1582 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/ |
D | Locale.java | 917 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 …]
|
D | Currency.java | 206 return getSymbol(Locale.getDefault(Locale.Category.DISPLAY)); in getSymbol() 274 return getDisplayName(Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName()
|
D | TimeZone.java | 328 Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName() 376 Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName()
|
D | Formatter.java | 1917 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()
|
D | Calendar.java | 1586 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()
|
D | Scanner.java | 545 useLocale(Locale.getDefault(Locale.Category.FORMAT)); in Scanner() 2632 useLocale(Locale.getDefault(Locale.Category.FORMAT)); in reset()
|
D | GregorianCalendar.java | 592 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/ |
D | DecimalStyle.java | 143 return of(Locale.getDefault(Locale.Category.FORMAT)); in ofDefaultLocale()
|
D | DateTimeFormatterBuilder.java | 2033 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/ |
D | TCKDateTimeFormatters.java | 130 Locale fmtLocale = Locale.getDefault(Locale.Category.FORMAT); in test_pattern_String()
|