Home
last modified time | relevance | path

Searched refs:mf (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DOldFormatTest.java61 MockFormat mf = new MockFormat(); in test_formatLjava_lang_Object() local
62 assertEquals("", mf.format("")); in test_formatLjava_lang_Object()
67 MockFormat mf = new MockFormat(); in test_formatToCharacterIteratorLjava_lang_Object() local
68 AttributedCharacterIterator aci = mf.formatToCharacterIterator("Test 123 Test"); in test_formatToCharacterIteratorLjava_lang_Object()
73 mf.formatToCharacterIterator(null); in test_formatToCharacterIteratorLjava_lang_Object()
80 mf.formatToCharacterIterator(""); in test_formatToCharacterIteratorLjava_lang_Object()
87 MockFormat mf = new MockFormat(); in test_parseObjectLjava_lang_String() local
89 assertNull(mf.parseObject("")); in test_parseObjectLjava_lang_String()
DOldNumberFormatTest.java806 MyNumberFormat mf = new MyNumberFormat(); in test_constructor() local
807 assertFalse("Greated NumberFormat object is null", mf == null); in test_constructor()
810 mf instanceof NumberFormat); in test_constructor()
/libcore/ojluni/src/test/java/text/Format/MessageFormat/
DMessageRegression.java303 MessageFormat mf = new MessageFormat(originalPattern); in Test4114743() local
306 mf.applyPattern(illegalPattern); in Test4114743()
309 if (!originalPattern.equals(mf.toPattern())) in Test4114743()
310 errln("pattern after: \"" + mf.toPattern() + "\""); in Test4114743()
320 MessageFormat mf = new MessageFormat(""); in Test4116444() local
324 mf.applyPattern(pattern); in Test4116444()
326 Object[] array = mf.parse(null, new ParsePosition(0)); in Test4116444()
356 MessageFormat mf = new MessageFormat("<{0}>"); in Test4114739() local
361 logln("pattern: \"" + mf.toPattern() + "\""); in Test4114739()
363 logln("\"" + mf.format(objs1) + "\""); in Test4114739()
[all …]
DBug7003643.java55 MessageFormat mf = null; in main() local
57 mf = new MessageFormat(pattern); in main()
61 if (mf == null) { in main()
66 String toPattern = mf.toPattern(); in main()
Dbug4492719.java44 MessageFormat mf; in main() local
63 mf = new MessageFormat("{0,time," + formats[j] + "} - time"); in main()
66 Object[] objs = mf.parse(text); in main()
/libcore/luni/src/test/java/libcore/java/util/
DOldFormattableTest.java50 Mock_Formattable mf = new Mock_Formattable(); in testFormatTo() local
52 assertTrue(fmt.format("%1.1s", mf).toString().equals("single precision ")); in testFormatTo()
53 assertTrue(fmt.format("%2.1s", mf).toString().equals("single precision single precision ")); in testFormatTo()
54 …assertTrue(fmt.format("%2.2s", mf).toString().equals("single precision single precision double pre… in testFormatTo()
55 assertTrue(mf.isFormatToCalled()); in testFormatTo()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java100 MessageFormat mf = new MessageFormat(pattern, l[i]); in test_getLocale() local
101 Locale result = mf.getLocale(); in test_getLocale()
107 MessageFormat mf = new MessageFormat(pattern); in test_getLocale() local
108 mf.setLocale(null); in test_getLocale()
109 Locale result = mf.getLocale(); in test_getLocale()
154 MessageFormat mf = new MessageFormat("{0,number,#.##}, {0,number,#.#}"); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition() local
157 String result = mf.format(objs); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition()
162 res = (Object[]) mf.parseObject(result, pp); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition()
173 res = (Object[]) mf.parseObject(partialCorrect, pp); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition()
180 mf.parseObject(result, null); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition()
[all …]
DChoiceFormatTest.java380 MessageFormat mf = new MessageFormat("CHOICE {1,choice}"); in test_toPattern() local
381 String ptrn = mf.toPattern(); in test_toPattern()
/libcore/ojluni/src/test/java/text/Format/NumberFormat/
DBigDecimalParse.java485 MessageFormat mf = new MessageFormat(patterns[i]); in test_Parse_in_MessageFormat_NotParseIntegerOnly() local
486 Format[] formats = mf.getFormats(); in test_Parse_in_MessageFormat_NotParseIntegerOnly()
491 parsed = mf.parse(from[i], pp); in test_Parse_in_MessageFormat_NotParseIntegerOnly()
571 MessageFormat mf = new MessageFormat(patterns[i]); in test_Parse_in_MessageFormat_ParseIntegerOnly() local
572 Format[] formats = mf.getFormats(); in test_Parse_in_MessageFormat_ParseIntegerOnly()
578 parsed = mf.parse(from[i], pp); in test_Parse_in_MessageFormat_ParseIntegerOnly()
DBigDecimalFormat.java972 MessageFormat mf = new MessageFormat( in test_Format_in_MessageFormat() local
1004 if (!expected.equals(mf.format(testArgs))) { in test_Format_in_MessageFormat()
1005 errln("Wrong format.\n got:\n" + mf.format(testArgs) + in test_Format_in_MessageFormat()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DJarURLConnectionTest.java233 Manifest mf = juc.getManifest(); in test_getManifest() local
234 assertNotNull(mf); in test_getManifest()
236 assertEquals(mf, juc.getManifest()); in test_getManifest()
237 assertNotSame(mf, juc.getManifest()); in test_getManifest()
239 assertEquals(juc.getMainAttributes(), mf.getMainAttributes()); in test_getManifest()
/libcore/tools/upstream/
DAndroid.bp30 manifest: "src/main/libcore-compare-upstreams.mf",
38 manifest: "src/main/libcore-copy-upstream-files.mf",
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DManifestTest.java148 Manifest mf = new Manifest(bis); in testStreamConstructor() local
149 assertEquals("Should be 4 main attributes", 4, mf.getMainAttributes() in testStreamConstructor()
152 Map<String, Attributes> entries = mf.getEntries(); in testStreamConstructor()
/libcore/ojluni/src/main/java/java/util/
DImmutableCollections.java1076 … @Override public V computeIfAbsent(K key, Function<? super K,? extends V> mf) { throw uoe(); }