/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DecimalFormatSymbolsTest.java | 99 DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance(locale); in test_getInstanceLjava_util_Locale() local 100 assertNotNull(symbols); in test_getInstanceLjava_util_Locale() 457 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.FRANCE); in test_serialization() local 458 Currency currency = symbols.getCurrency(); in test_serialization() 464 objectOStream.writeObject(symbols); in test_serialization() 539 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.US); in testSerializationCompatibility() local 540 symbols.setExponentSeparator("EE"); in testSerializationCompatibility() 541 symbols.setNaN("NaN"); in testSerializationCompatibility() 542 SerializationTest.verifyGolden(this, symbols); in testSerializationCompatibility() 549 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.ITALIAN); in testSerializationSelf() local [all …]
|
D | DateFormatSymbolsTest.java | 87 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in test_getInstanceLjava_util_Locale() local 88 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), symbols); in test_getInstanceLjava_util_Locale() local 96 DateFormatSymbols symbols = new DateFormatSymbols(); in test_clone() local 97 DateFormatSymbols clone = (DateFormatSymbols) symbols.clone(); in test_clone() 98 assertTrue("Not equal", symbols.equals(clone)); in test_clone() 404 DateFormatSymbols symbols = new DateFormatSymbols(Locale.FRANCE); in test_serialization() local 405 String[][] zoneStrings = symbols.getZoneStrings(); in test_serialization() 411 objectOStream.writeObject(symbols); in test_serialization() 421 assertEquals(symbols, symbolsD); in test_serialization()
|
D | SimpleDateFormatTest.java | 85 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() local 86 symbols.setEras(new String[] { "Before", "After" }); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() 87 SimpleDateFormat f2 = new SimpleDateFormat("y'y'yy", symbols); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() 90 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(symbols)); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() 94 new SimpleDateFormat(null, symbols); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() 100 new SimpleDateFormat("eee", symbols); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols() 227 DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH); in test_hashCode() local 228 symbols.setEras(new String[] { "Before", "After" }); in test_hashCode() 229 SimpleDateFormat format2 = new SimpleDateFormat("y'y'yy", symbols); in test_hashCode() 856 DateFormatSymbols symbols = new DateFormatSymbols(); in test_setDateFormatSymbolsLjava_text_DateFormatSymbols() local [all …]
|
D | DecimalFormatTest.java | 144 DecimalFormatSymbols symbols = new DecimalFormatSymbols(); in test_parse_returnType() local 145 number = form.parse(symbols.getNaN(), new ParsePosition(0)); in test_parse_returnType() 153 symbols = new DecimalFormatSymbols(); in test_parse_returnType() 154 number = form.parse(symbols.getInfinity(), new ParsePosition(0)); in test_parse_returnType() 202 symbols = new DecimalFormatSymbols(); in test_parse_returnType() 203 number = form.parse(symbols.getNaN() + "", new ParsePosition(0)); in test_parse_returnType() 207 number = form.parse(symbols.getNaN() + "", new ParsePosition(0)); in test_parse_returnType() 214 symbols = new DecimalFormatSymbols(); in test_parse_returnType() 216 number = form.parse(symbols.getInfinity(), new ParsePosition(0)); in test_parse_returnType() 223 symbols = new DecimalFormatSymbols(); in test_parse_returnType() [all …]
|
/libcore/ojluni/src/main/java/sun/util/locale/provider/ |
D | CalendarDataUtility.java | 264 DateFormatSymbols symbols = getDateFormatSymbols(id, locale); in getNames() local 267 return symbols.getMonths(context, width); in getNames() 271 return symbols.getNarrowEras(); in getNames() 273 return symbols.getEras(); in getNames() 275 return symbols.getEraNames(); in getNames() 280 return symbols.getWeekdays(context, width); in getNames() 282 return symbols.getAmPmStrings(); in getNames()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 421 this.symbols = DecimalFormatSymbols.getInstance(def); in DecimalFormat() 449 this.symbols = DecimalFormatSymbols.getInstance(Locale.getDefault(Locale.Category.FORMAT)); in DecimalFormat() 477 public DecimalFormat (String pattern, DecimalFormatSymbols symbols) { in DecimalFormat() argument 479 this.symbols = (DecimalFormatSymbols)symbols.clone(); in DecimalFormat() 491 symbols.getIcuDecimalFormatSymbols()); in initPattern() 2655 symbols = (DecimalFormatSymbols) newSymbols.clone(); in setDecimalFormatSymbols() 2661 icuDecimalFormat.setDecimalFormatSymbols(symbols.getIcuDecimalFormatSymbols()); in setDecimalFormatSymbols() 3088 other.symbols = (DecimalFormatSymbols) symbols.clone(); in clone() 4073 return symbols.getCurrency(); in getCurrency() 4101 if (currency != symbols.getCurrency() in setCurrency() [all …]
|
D | NumberFormat.java | 846 DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance(desiredLocale); in getInstance() local 848 DecimalFormat numberFormat = new DecimalFormat(numberPatterns[entry], symbols); in getInstance()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 798 DateFormatSymbols symbols = new DateFormatSymbols(locale); in test_getDisplayNameIILjava_util_Locale() local 803 value = symbols.getAmPmStrings()[0]; in test_getDisplayNameIILjava_util_Locale() 809 value = symbols.getAmPmStrings()[1]; in test_getDisplayNameIILjava_util_Locale() 817 value = symbols.getEras()[0]; in test_getDisplayNameIILjava_util_Locale() 823 value = symbols.getEras()[1]; in test_getDisplayNameIILjava_util_Locale() 833 value = symbols.getShortMonths()[month]; in test_getDisplayNameIILjava_util_Locale() 836 value = symbols.getMonths()[month]; in test_getDisplayNameIILjava_util_Locale() 844 value = symbols.getShortWeekdays()[day]; in test_getDisplayNameIILjava_util_Locale() 847 value = symbols.getWeekdays()[day]; in test_getDisplayNameIILjava_util_Locale() 962 DateFormatSymbols symbols = new DateFormatSymbols(locale); in test_getDisplayNamesIILjava_util_Locale() local [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldDecimalFormatSymbolsTest.java | 55 DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.FRANCE); in test_RIHarmony_compatible() local 56 assertEquals(symbols, riSymbols); in test_RIHarmony_compatible()
|
D | SimpleDateFormatTest.java | 507 DateFormatSymbols symbols = DateFormatSymbols.getInstance(Locale.ENGLISH); in testZoneStringsUsedForParsingWhenPresent() local 508 String[][] zoneStrings = symbols.getZoneStrings(); in testZoneStringsUsedForParsingWhenPresent() 511 symbols.setZoneStrings(zoneStrings); in testZoneStringsUsedForParsingWhenPresent() 513 SimpleDateFormat sdf = new SimpleDateFormat("dd MM yyyy HH:mm zzz", symbols); in testZoneStringsUsedForParsingWhenPresent() 521 DateFormatSymbols symbols = DateFormatSymbols.getInstance(Locale.ENGLISH); in testTimeZoneFormattingRespectsSetZoneStrings() local 522 String[][] zoneStrings = symbols.getZoneStrings(); in testTimeZoneFormattingRespectsSetZoneStrings() 525 symbols.setZoneStrings(zoneStrings); in testTimeZoneFormattingRespectsSetZoneStrings() 526 SimpleDateFormat sdf = new SimpleDateFormat("zzzz", symbols); in testTimeZoneFormattingRespectsSetZoneStrings() 534 symbols.setZoneStrings(zoneStrings); in testTimeZoneFormattingRespectsSetZoneStrings() 535 sdf = new SimpleDateFormat("zzzz", symbols); in testTimeZoneFormattingRespectsSetZoneStrings() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 2100 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in getDisplayName() local 2101 String[] strings = getFieldStrings(field, style, symbols); in getDisplayName() 2190 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in getDisplayNamesImpl() local 2191 String[] strings = getFieldStrings(field, style, symbols); in getDisplayNamesImpl() 2224 private String[] getFieldStrings(int field, int style, DateFormatSymbols symbols) { in getFieldStrings() argument 2235 strings = symbols.getEras(); in getFieldStrings() 2239 strings = (baseStyle == LONG) ? symbols.getMonths() : symbols.getShortMonths(); in getFieldStrings() 2243 strings = (baseStyle == LONG) ? symbols.getWeekdays() : symbols.getShortWeekdays(); in getFieldStrings() 2247 strings = symbols.getAmPmStrings(); in getFieldStrings()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | FormatterTest.java | 203 DecimalFormatSymbols symbols = decimalFormat.getDecimalFormatSymbols(); in testGroupingSizeZero() local 204 assertTrue(symbols.getGroupingSeparator() != '\0'); in testGroupingSizeZero()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest.java | 183 java.text.DateFormatSymbols symbols = new java.text.DateFormatSymbols(); 184 symbols.setZoneStrings(new String[][] { { "a", "b", "c", "d", "e" }, in symbols.setZoneStrings() 186 ((java.text.SimpleDateFormat) DATEFORM).setDateFormatSymbols(symbols); in setDateFormatSymbols() argument
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Calendar.java | 174 int field, int style, java.text.DateFormatSymbols symbols) { in getFieldStrings() argument
|