Home
last modified time | relevance | path

Searched refs:lineSeparator (Results 1 – 10 of 10) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DDoPrivilegedBenchmark.java28 String lineSeparator = System.getProperty("line.separator"); in timeDirect() local
34 String lineSeparator; in timeFastAndSlow() local
36 lineSeparator = System.getProperty("line.separator"); in timeFastAndSlow()
38 lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeFastAndSlow()
49 String lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeNewAction() local
60 String lineSeparator = AccessController.doPrivileged(action); in timeReusedAction() local
/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java39 assertEquals("\n", System.lineSeparator()); in testLineSeparator()
41 assertEquals("\n", System.lineSeparator()); in testLineSeparator()
48 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
53 assertEquals(System.lineSeparator(), new String(baos.toByteArray(), "UTF-8")); in testLineSeparator()
58 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
61 assertEquals(System.lineSeparator(), new Formatter().format("%n").toString()); in testLineSeparator()
/libcore/luni/src/main/java/java/util/logging/
DXMLFormatter.java54 String nl = System.lineSeparator(); in format()
115 String nl = System.lineSeparator(); in formatThrowable()
138 sb.append(System.lineSeparator()); in append()
161 sb.append(System.lineSeparator()); in getHead()
163 sb.append(System.lineSeparator()); in getHead()
DSimpleFormatter.java51 sb.append(r.getSourceMethodName()).append(System.lineSeparator()); in format()
53 sb.append(formatMessage(r)).append(System.lineSeparator()); in format()
/libcore/luni/src/main/java/java/util/
DProperties.java227 sb.append(System.lineSeparator()); in listToAppendable()
541 writer.write(System.lineSeparator()); in store()
545 writer.write(System.lineSeparator()); in store()
553 sb.append(System.lineSeparator()); in store()
DFormatter.java1471 result = System.lineSeparator(); in transform()
/libcore/luni/src/main/java/java/lang/
DSystem.java84 private static final String lineSeparator; field in System
110 lineSeparator = System.getProperty("line.separator");
973 public static String lineSeparator() { in lineSeparator() method in System
974 return lineSeparator; in lineSeparator()
/libcore/luni/src/main/java/java/io/
DBufferedWriter.java161 write(System.lineSeparator()); in newLine()
DPrintStream.java364 print(System.lineSeparator()); in newline()
DPrintWriter.java472 print(System.lineSeparator()); in println()