/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | FormatterTest.java | 43 import java.util.Formatter; 56 import java.util.Formatter.BigDecimalLayoutForm; 80 public void formatTo(Formatter formatter, int flags, int width, in formatTo() 162 Formatter f = new Formatter(); in test_Constructor() 174 Formatter f1 = new Formatter(ma); in test_ConstructorLjava_lang_Appendable() 179 Formatter f2 = new Formatter((Appendable) null); in test_ConstructorLjava_lang_Appendable() 195 Formatter f1 = new Formatter(Locale.FRANCE); in test_ConstructorLjava_util_Locale() 200 Formatter f2 = new Formatter((Locale) null); in test_ConstructorLjava_util_Locale() 211 Formatter f1 = new Formatter(ma, Locale.CANADA); in test_ConstructorLjava_lang_AppendableLjava_util_Locale() 215 Formatter f2 = new Formatter(ma, null); in test_ConstructorLjava_lang_AppendableLjava_util_Locale() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldFormatterTest.java | 21 import java.util.Formatter; 32 …public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalForma… in test_Formattable() 41 …public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalForma… in test_Formattable() 50 assertEquals("aaa 111?", new Formatter().format("aaa %s?", ones).toString()); in test_Formattable() 51 … assertEquals("aaa 111 bbb 222?", new Formatter().format("aaa %s bbb %s?", ones, twos).toString()); in test_Formattable() 57 Formatter fLoc = null; in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object() 58 Formatter fNoL = null; in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object() 61 fLoc = new Formatter(Locale.GERMAN); in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object() 62 fNoL = new Formatter(Locale.GERMAN); in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object() 67 fLoc = new Formatter(Locale.FRANCE); in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object() [all …]
|
D | FormatterTest.java | 56 import java.util.Formatter; 272 Formatter formatter = new Formatter(localeWithoutGrouping); in testGroupingSizeZero() 281 new Formatter((OutputStream) null, UTF_8, Locale.getDefault()); in testConstructor_Ljava_io_OutputStreamLjava_nio_charset_CharsetLjava_util_Locale() 288 new Formatter(os, (Charset) null, Locale.getDefault()); in testConstructor_Ljava_io_OutputStreamLjava_nio_charset_CharsetLjava_util_Locale() 295 var formatter = new Formatter(os, UTF_8, (Locale) null); in testConstructor_Ljava_io_OutputStreamLjava_nio_charset_CharsetLjava_util_Locale() 301 var formatter = new Formatter(os, UTF_8, locale); in testConstructor_Ljava_io_OutputStreamLjava_nio_charset_CharsetLjava_util_Locale() 310 new Formatter((File) null, UTF_8, Locale.getDefault()); in testConstructor_Ljava_io_FileLjava_nio_charset_CharsetLjava_util_Locale() 317 new Formatter(aFile, (Charset) null, Locale.getDefault()); in testConstructor_Ljava_io_FileLjava_nio_charset_CharsetLjava_util_Locale() 323 var formatter = new Formatter(aFile, UTF_8, (Locale) null); in testConstructor_Ljava_io_FileLjava_nio_charset_CharsetLjava_util_Locale() 327 formatter = new Formatter(aFile, UTF_8, locale); in testConstructor_Ljava_io_FileLjava_nio_charset_CharsetLjava_util_Locale() [all …]
|
D | OldFormattableTest.java | 22 import java.util.Formatter; 29 public void formatTo(Formatter arg0, int arg1, int arg2, int arg3) { in formatTo() 49 Formatter fmt = new Formatter(); in testFormatTo()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | FormatterBenchmark.java | 19 import java.util.Formatter; 28 Formatter f = new Formatter(); in timeFormatter_NoFormatting() 43 Formatter f = new Formatter(); in timeFormatter_OneInt() 52 Formatter f = new Formatter(); in timeFormatter_OneIntArabic() 69 Formatter f = new Formatter(); in timeFormatter_OneHexInt() 86 Formatter f = new Formatter(); in timeFormatter_OneFloat() 94 Formatter f = new Formatter(); in timeFormatter_OneFloat_dot2f() 102 Formatter f = new Formatter(); in timeFormatter_TwoFloats() 118 Formatter f = new Formatter(); in timeFormatter_OneString()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | DateIntervalFormat.java | 26 import java.util.Formatter; 82 Formatter formatter = new Formatter(); in formatDateRange() 112 Formatter.class, long.class, long.class, int.class, String.class); in getDateUtilsMethod()
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldFormatterTest.java | 20 import java.util.logging.Formatter; 30 Formatter f = new MockFormatter(); 69 public static class MockFormatter extends Formatter {
|
D | OldFileHandlerTest.java | 31 import java.util.logging.Formatter; 341 Formatter formatter) throws Exception { in assertFileContent() 346 LogRecord[] lr, Formatter formatter) throws Exception { in assertFileContent() 484 public static class MockFormatter extends Formatter {
|
/libcore/ojluni/annotations/hiddenapi/java/util/logging/ |
D | Handler.java | 43 public synchronized void setFormatter(java.util.logging.Formatter newFormatter) in setFormatter() 48 public java.util.logging.Formatter getFormatter() { in getFormatter() 105 private volatile java.util.logging.Formatter formatter;
|
D | LogManager.java | 177 java.util.logging.Formatter getFormatterProperty( in getFormatterProperty() 178 java.lang.String name, java.util.logging.Formatter defaultValue) { in getFormatterProperty()
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | Handler.java | 60 private volatile Formatter formatter; 121 public synchronized void setFormatter(Formatter newFormatter) throws SecurityException { in setFormatter() 132 public Formatter getFormatter() { in getFormatter()
|
D | Formatter.java | 43 public abstract class Formatter { class 48 protected Formatter() { in Formatter() method in Formatter
|
D | SimpleFormatter.java | 59 public class SimpleFormatter extends Formatter {
|
D | StreamHandler.java | 118 public StreamHandler(OutputStream out, Formatter formatter) { in StreamHandler()
|
D | XMLFormatter.java | 46 public class XMLFormatter extends Formatter {
|
/libcore/ojluni/src/test/java/net/SocketOptions/ |
D | OptionsTest.java | 105 Formatter f = new Formatter(); in doSocketTests() 127 Formatter f = new Formatter(); in doDgSocketTests() 146 Formatter f = new Formatter(); in doMcSocketTests() 169 Formatter f = new Formatter(); in doServerSocketTests()
|
/libcore/ojluni/src/main/java/java/io/ |
D | PrintWriter.java | 29 import java.util.Formatter; 73 private Formatter formatter; 991 formatter = new Formatter(this); in format() 1050 formatter = new Formatter(this, l); in format()
|
D | PrintStream.java | 29 import java.util.Formatter; 70 private Formatter formatter; 1239 formatter = new Formatter((Appendable) this); in format() 1297 formatter = new Formatter(this, l); in format()
|
D | Console.java | 423 private Formatter formatter; 643 formatter = new Formatter(out); in Console()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Formattable.java | 163 void formatTo(Formatter formatter, int flags, int width, int precision); in formatTo()
|
D | Formatter.java | 1940 public final class Formatter implements Closeable, Flushable { class 1975 private Formatter(Locale l, Appendable a) { in Formatter() method in Formatter 1980 private Formatter(Charset charset, Locale l, File file) in Formatter() method in Formatter 1998 public Formatter() { in Formatter() method in Formatter 2014 public Formatter(Appendable a) { in Formatter() method in Formatter 2031 public Formatter(Locale l) { in Formatter() method in Formatter 2047 public Formatter(Appendable a, Locale l) { in Formatter() method in Formatter 2080 public Formatter(String fileName) throws FileNotFoundException { in Formatter() method in Formatter 2117 public Formatter(String fileName, String csn) in Formatter() method in Formatter 2156 public Formatter(String fileName, String csn, Locale l) in Formatter() method in Formatter [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | AbstractTCKTest.java | 72 import java.util.Formatter; 229 Formatter fmt = new Formatter(sb); in dumpSerialStream()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | SystemTest.java | 26 import java.util.Formatter; 71 assertEquals(System.lineSeparator(), new Formatter().format("%n").toString()); in testLineSeparator()
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | Console.java | 103 private java.util.Formatter formatter;
|
/libcore/ojluni/src/main/java/java/lang/ |
D | String.java | 40 import java.util.Formatter; 4027 return new Formatter().format(format, args).toString(); 4068 return new Formatter(l).format(format, args).toString(); 4089 return new Formatter().format(this, args).toString();
|