/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 | 419 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()
|
D | DateFormatSymbols.java | 123 initializeData(Locale.getDefault(Locale.Category.FORMAT)); in DateFormatSymbols() 394 return getInstance(Locale.getDefault(Locale.Category.FORMAT)); in getInstance()
|
D | DecimalFormatSymbols.java | 81 initialize( Locale.getDefault(Locale.Category.FORMAT) ); in DecimalFormatSymbols() 133 return getInstance(Locale.getDefault(Locale.Category.FORMAT)); in getInstance()
|
D | DecimalFormat.java | 408 Locale def = Locale.getDefault(Locale.Category.FORMAT); in DecimalFormat() 449 this.symbols = DecimalFormatSymbols.getInstance(Locale.getDefault(Locale.Category.FORMAT)); in DecimalFormat()
|
D | SimpleDateFormat.java | 614 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()
|
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 | 1643 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/ |
D | DecimalFormatSymbolsBenchmark.java | 23 private static Locale locale = Locale.getDefault(Locale.Category.FORMAT);
|
D | NumberFormatBenchmark.java | 24 private static Locale locale = Locale.getDefault(Locale.Category.FORMAT);
|
/libcore/ojluni/src/main/java/java/util/ |
D | Locale.java | 926 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 …]
|
D | Currency.java | 465 return getSymbol(Locale.getDefault(Locale.Category.DISPLAY)); in getSymbol() 547 return getDisplayName(Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName()
|
D | TimeZone.java | 327 Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName() 375 Locale.getDefault(Locale.Category.DISPLAY)); in getDisplayName()
|
D | Formatter.java | 1918 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()
|
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 | 549 useLocale(Locale.getDefault(Locale.Category.FORMAT)); in Scanner() 2639 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/annotations/hiddenapi/java/util/ |
D | Locale.java | 96 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/ |
D | Locale.annotated.java | 61 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/ |
D | DecimalStyle.java | 143 return of(Locale.getDefault(Locale.Category.FORMAT)); in ofDefaultLocale()
|
D | DateTimeFormatterBuilder.java | 2036 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/ |
D | Locale.annotated.java | 61 …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/ |
D | TCKDateTimeFormatters.java | 130 Locale fmtLocale = Locale.getDefault(Locale.Category.FORMAT); in test_pattern_String()
|