/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ChoiceFormatTest.java | 20 import java.text.ChoiceFormat; 31 double[] limits = new double[] { 0, 1, ChoiceFormat.nextDouble(1), 32 ChoiceFormat.nextDouble(2) }; 37 ChoiceFormat f1 = new ChoiceFormat(limits, formats); 49 ChoiceFormat cf = new ChoiceFormat(appleLimits, appleFormats); in test_Constructor$D$Ljava_lang_String() 96 ChoiceFormat cf = new ChoiceFormat(patternString); in test_ConstructorLjava_lang_String() 143 ChoiceFormat f = (ChoiceFormat) f1.clone(); in test_applyPatternLjava_lang_String() 151 double[] choiceLimits = { -1, 0, 1, ChoiceFormat.nextDouble(1) }; in test_applyPatternLjava_lang_String() 155 f = new ChoiceFormat(""); in test_applyPatternLjava_lang_String() 162 f = new ChoiceFormat(""); in test_applyPatternLjava_lang_String() [all …]
|
D | NumberFormatTest.java | 20 import java.text.ChoiceFormat; 211 ChoiceFormat cformat = new ChoiceFormat( in test_getCurrency() 241 ChoiceFormat cformat = new ChoiceFormat( in test_setCurrencyLjava_util_Currency() 275 ChoiceFormat choiceFormat = new ChoiceFormat( in test_setRoundingMode_NullRoundingMode() 289 ChoiceFormat choiceFormat = new ChoiceFormat( in test_setRoundingMode_Normal()
|
D | MessageFormatTest.java | 25 import java.text.ChoiceFormat; 119 f1.setFormat(3, new ChoiceFormat("0#off|1#on")); in test_setFormatILjava_text_Format() 120 f1.setFormat(4, new ChoiceFormat("1#few|2#ok|3#a lot")); in test_setFormatILjava_text_Format() 130 new ChoiceFormat("0#off|1#on"), in test_setFormatILjava_text_Format() 131 new ChoiceFormat("1#few|2#ok|3#a lot"), in test_setFormatILjava_text_Format() 233 new ChoiceFormat("0#off|1#on"), in test_setFormats$Ljava_text_Format() 236 new ChoiceFormat("1#few|2#ok|3#a lot") in test_setFormats$Ljava_text_Format() 332 assertTrue("Wrong choice format", formats[3].equals(new ChoiceFormat( in test_ConstructorLjava_lang_String() 505 "0.0#no|1.0#one|2.0#{1,number}", ((ChoiceFormat) format.getFormats()[0]).toPattern()); in test_applyPatternLjava_lang_String() 618 new ChoiceFormat("0#off|1#on"), DateFormat.getDateInstance(), }; in test_getFormats() [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | ChoiceFormatTest.java | 3 import java.text.ChoiceFormat; 23 ChoiceFormat format = new ChoiceFormat(limits, formats); in testConstructor_doubleArray_StringArray() 29 ChoiceFormat format = new ChoiceFormat(new double[] { 0 }, new String[] { "" }); in testSetChoices() 38 private void verifyChoiceFormatCopiesSuppliedArrays(ChoiceFormat format) { in verifyChoiceFormatCopiesSuppliedArrays() 53 ChoiceFormat format = new ChoiceFormat(limits, formats); in testGetLimits() 65 ChoiceFormat format = new ChoiceFormat(limits, formats); in testGetFormats()
|
D | OldNumberFormatTest.java | 22 import java.text.ChoiceFormat; 89 ChoiceFormat cformat = new ChoiceFormat( in test_setCurrencyLjava_util_Currency()
|
/libcore/ojluni/src/test/java/text/Format/ChoiceFormat/ |
D | Bug4387255.java | 30 package test.java.text.Format.ChoiceFormat; 32 import java.text.ChoiceFormat; 55 ChoiceFormat choiceFormat1 = new ChoiceFormat(doubles, strings); in main() 56 ChoiceFormat choiceFormat2 = new ChoiceFormat(pattern); in main()
|
D | Bug8001209.java | 29 package test.java.text.Format.ChoiceFormat; 41 ChoiceFormat form = new ChoiceFormat(limits, dayOfWeekNames); in main()
|
/libcore/ojluni/src/test/java/text/Format/MessageFormat/ |
D | MessageFormatsByArgumentIndex.java | 32 import java.text.ChoiceFormat; 51 checkSubformat(subformats, 3, new ChoiceFormat(choicePattern)); in main() 55 checkSubformat(subformats, 0, new ChoiceFormat(choicePattern)); in main() 68 checkSubformat(subformats, 3, new ChoiceFormat(choicePattern)); in main() 72 checkSubformat(subformats, 0, new ChoiceFormat(choicePattern)); in main() 82 checkSubformat(subformats, 0, new ChoiceFormat(choicePattern)); in main() 85 checkSubformat(subformats, 3, new ChoiceFormat(choicePattern)); in main() 89 checkSubformat(subformats, 0, new ChoiceFormat(choicePattern)); in main() 91 checkSubformat(subformats, 2, new ChoiceFormat(choicePattern)); in main()
|
D | MessageRegression.java | 193 ChoiceFormat f = new ChoiceFormat( in Test4052223() 215 ChoiceFormat cf = new ChoiceFormat(limits, formats); in Test4104976() 231 ChoiceFormat cf = null; in Test4106659() 233 cf = new ChoiceFormat(limits, formats); in Test4106659() 250 ChoiceFormat cf = new ChoiceFormat(limits, formats); in Test4106660() 396 ChoiceFormat fmt = new ChoiceFormat( in Test4106661() 416 ChoiceFormat fmt = new ChoiceFormat( in Test4094906() 486 ChoiceFormat fileform = new ChoiceFormat(filelimits, filepart); in Test4105380() 570 ChoiceFormat cf = new ChoiceFormat(DATA[i]); in TestChoicePatternQuote() 578 String pat2 = new ChoiceFormat(pat).toPattern(); in TestChoicePatternQuote() [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | ChoiceFormat.java | 168 public class ChoiceFormat extends NumberFormat { class 320 public ChoiceFormat(String newPattern) { in ChoiceFormat() method in ChoiceFormat 333 public ChoiceFormat(double[] limits, String[] formats) { in ChoiceFormat() method in ChoiceFormat 496 ChoiceFormat other = (ChoiceFormat) super.clone(); in clone() 524 ChoiceFormat other = (ChoiceFormat) obj; in equals()
|
D | MessageFormat.java | 558 } else if (fmt instanceof ChoiceFormat) { in toPattern() 559 result.append(",choice,").append(((ChoiceFormat)fmt).toPattern()); in toPattern() 1286 if (subFormatter instanceof ChoiceFormat) { in subformat() 1541 newFormat = new ChoiceFormat(segments[SEG_MODIFIER]); in makeFormat()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest.java | 142 static final java.text.ChoiceFormat CHOICE = new java.text.ChoiceFormat(
|
/libcore/ |
D | EXPECTED_UPSTREAM | 783 ojluni/src/main/java/java/text/ChoiceFormat.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/j… 2140 …jluni/src/test/java/text/Format/ChoiceFormat/Bug4387255.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/te… 2141 …jluni/src/test/java/text/Format/ChoiceFormat/Bug8001209.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/te…
|
D | openjdk_java_files.bp | 794 "ojluni/src/main/java/java/text/ChoiceFormat.java",
|
/libcore/api/ |
D | current.txt | 10957 public class ChoiceFormat extends java.text.NumberFormat { 10958 ctor public ChoiceFormat(String); 10959 ctor public ChoiceFormat(double[], String[]);
|