/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | MessageFormatTest.java | 123 Format[] formats = f1.getFormats(); in test_setFormatILjava_text_Format() local 124 formats = f1.getFormats(); in test_setFormatILjava_text_Format() 135 assertEquals(correctFormats.length, formats.length); in test_setFormatILjava_text_Format() 137 … assertEquals("Test1B:wrong format for pattern index " + i + ":", correctFormats[i], formats[i]); in test_setFormatILjava_text_Format() 240 Format[] formats = f1.getFormats(); in test_setFormats$Ljava_text_Format() local 242 assertTrue("Test1A:Returned wrong number of formats:", correctFormats.length <= formats.length); in test_setFormats$Ljava_text_Format() 244 … assertEquals("Test1B:wrong format for argument index " + i + ":", correctFormats[i], formats[i]); in test_setFormats$Ljava_text_Format() 323 Format[] formats = format.getFormats(); in test_ConstructorLjava_lang_String() local 324 assertNotNull("null formats", formats); in test_ConstructorLjava_lang_String() 325 assertTrue("Wrong format count: " + formats.length, formats.length >= 5); in test_ConstructorLjava_lang_String() [all …]
|
D | ChoiceFormatTest.java | 34 String[] formats = new String[] { "Less than one", "one", field in ChoiceFormatTest 37 ChoiceFormat f1 = new ChoiceFormat(limits, formats);
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | ChoiceFormatTest.java | 20 private final String[] formats = new String[] { "zero", "one", "a couple", "a few", "some" }; field in ChoiceFormatTest 23 ChoiceFormat format = new ChoiceFormat(limits, formats); in testConstructor_doubleArray_StringArray() 33 format.setChoices(limits, formats); in testSetChoices() 42 formats[1] = "uno"; in verifyChoiceFormatCopiesSuppliedArrays() 53 ChoiceFormat format = new ChoiceFormat(limits, formats); in testGetLimits() 65 ChoiceFormat format = new ChoiceFormat(limits, formats); in testGetFormats()
|
/libcore/ojluni/src/main/java/java/text/ |
D | MessageFormat.java | 543 Format fmt = formats[i]; in toPattern() 625 formats[i] = newFormats[j]; in setFormatsByArgumentIndex() 658 formats[i] = newFormats[i]; in setFormats() 683 formats[j] = newFormat; in setFormatByArgumentIndex() 709 formats[formatElementIndex] = newFormat; in setFormat() 741 resultArray[argumentNumbers[i]] = formats[i]; in getFormatsByArgumentIndex() 764 System.arraycopy(formats, 0, resultArray, 0, maxOffset + 1); in getFormats() 1004 if (formats[i] == null) { // string format in parse() 1031 = formats[i].parseObject(source,tempStatus); in parse() 1109 other.formats = formats.clone(); // shallow clone in clone() [all …]
|
D | ChoiceFormat.java | 333 public ChoiceFormat(double[] limits, String[] formats) { in ChoiceFormat() argument 334 setChoices(limits, formats); in ChoiceFormat() 353 public void setChoices(double[] limits, String formats[]) { in setChoices() argument 354 if (limits.length != formats.length) { in setChoices() 359 choiceFormats = Arrays.copyOf(formats, formats.length); in setChoices()
|
/libcore/ojluni/src/test/java/text/Format/MessageFormat/ |
D | bug4492719.java | 47 String[] formats = { in main() local 62 for (int j = 0; j < formats.length; j++) { in main() 63 mf = new MessageFormat("{0,time," + formats[j] + "} - time"); in main() 64 text = MessageFormat.format("{0,time," + formats[j] + "} - time", in main()
|
D | MessageRegression.java | 214 String[] formats = {"xyz", "abc"}; in Test4104976() local 215 ChoiceFormat cf = new ChoiceFormat(limits, formats); in Test4104976() 230 String[] formats = {"one", "two"}; in Test4106659() local 233 cf = new ChoiceFormat(limits, formats); in Test4106659() 249 String[] formats = {"Three", "One", "Two"}; in Test4106660() local 250 ChoiceFormat cf = new ChoiceFormat(limits, formats); in Test4106660()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ResourceBundle.java | 1688 List<String> formats = control.getFormats(baseName); in getBundleImpl() local 1689 if (!isKnownControl && !checkList(formats)) { in getBundleImpl() 1705 bundle = findBundle(cacheKey, candidateLocales, formats, 0, control, baseBundle); in getBundleImpl() 1763 List<String> formats, in findBundle() argument 1775 parent = findBundle(cacheKey, candidateLocales, formats, index + 1, in findBundle() 1819 trace("findBundle: %d %s %s formats: %s%n", index, candidateLocales, cacheKey, formats); in findBundle() 1827 bundle = loadBundle(cacheKey, formats, control, expiredBundle); in findBundle() 2026 List<String> formats, in loadBundle() argument 2046 for (String format : formats) { in loadBundle() 2656 public static final Control getControl(List<String> formats) { in getControl() argument [all …]
|
/libcore/ojluni/src/test/java/text/Format/NumberFormat/ |
D | BigDecimalParse.java | 486 Format[] formats = mf.getFormats(); in test_Parse_in_MessageFormat_NotParseIntegerOnly() local 487 for (int j=0; j < formats.length; j++) { in test_Parse_in_MessageFormat_NotParseIntegerOnly() 488 ((DecimalFormat)formats[j]).setParseBigDecimal(true); in test_Parse_in_MessageFormat_NotParseIntegerOnly() 572 Format[] formats = mf.getFormats(); in test_Parse_in_MessageFormat_ParseIntegerOnly() local 573 for (int j=0; j < formats.length; j++) { in test_Parse_in_MessageFormat_ParseIntegerOnly() 574 ((DecimalFormat)formats[j]).setParseBigDecimal(true); in test_Parse_in_MessageFormat_ParseIntegerOnly() 575 ((DecimalFormat)formats[j]).setParseIntegerOnly(true); in test_Parse_in_MessageFormat_ParseIntegerOnly()
|
/libcore/luni/src/test/resources/keystore/ |
D | README.md | 14 ### Tested formats
|