/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() 239 Format[] formats = f1.getFormats(); in test_setFormats$Ljava_text_Format() local 241 assertTrue("Test1A:Returned wrong number of formats:", correctFormats.length <= formats.length); in test_setFormats$Ljava_text_Format() 243 … assertEquals("Test1B:wrong format for argument index " + i + ":", correctFormats[i], formats[i]); in test_setFormats$Ljava_text_Format() 322 Format[] formats = format.getFormats(); in test_ConstructorLjava_lang_String() local 323 assertNotNull("null formats", formats); in test_ConstructorLjava_lang_String() 324 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 | 530 Format fmt = formats[i]; in toPattern() 612 formats[i] = newFormats[j]; in setFormatsByArgumentIndex() 645 formats[i] = newFormats[i]; in setFormats() 670 formats[j] = newFormat; in setFormatByArgumentIndex() 699 formats[formatElementIndex] = newFormat; in setFormat() 731 resultArray[argumentNumbers[i]] = formats[i]; in getFormatsByArgumentIndex() 754 System.arraycopy(formats, 0, resultArray, 0, maxOffset + 1); in getFormats() 988 if (formats[i] == null) { // string format in parse() 1015 = formats[i].parseObject(source,tempStatus); in parse() 1093 other.formats = formats.clone(); // shallow clone in clone() [all …]
|
D | ChoiceFormat.java | 326 public ChoiceFormat(double[] limits, String[] formats) { in ChoiceFormat() argument 327 setChoices(limits, formats); in ChoiceFormat() 344 public void setChoices(double[] limits, String formats[]) { in setChoices() argument 345 if (limits.length != formats.length) { in setChoices() 350 choiceFormats = Arrays.copyOf(formats, formats.length); in setChoices()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ResourceBundle.java | 1344 List<String> formats = control.getFormats(baseName); in getBundleImpl() local 1345 if (!isKnownControl && !checkList(formats)) { in getBundleImpl() 1358 bundle = findBundle(cacheKey, candidateLocales, formats, 0, control, baseBundle); in getBundleImpl() 1409 List<String> formats, in findBundle() argument 1416 parent = findBundle(cacheKey, candidateLocales, formats, index + 1, in findBundle() 1462 bundle = loadBundle(cacheKey, formats, control, expiredBundle); in findBundle() 1485 List<String> formats, in loadBundle() argument 1494 int size = formats.size(); in loadBundle() 1496 String format = formats.get(i); in loadBundle() 2093 public static final Control getControl(List<String> formats) { in getControl() argument [all …]
|
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/ |
D | X500PrincipalTest.java | 95 String[] formats = { in testGetName() local 100 for (String format : formats) { in testGetName()
|