Home
last modified time | relevance | path

Searched refs:formats (Results 1 – 7 of 7) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java123 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 …]
DChoiceFormatTest.java34 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/
DChoiceFormatTest.java20 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/
DMessageFormat.java530 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 …]
DChoiceFormat.java326 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/
DResourceBundle.java1344 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/
DX500PrincipalTest.java95 String[] formats = { in testGetName() local
100 for (String format : formats) { in testGetName()