Home
last modified time | relevance | path

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

/libcore/benchmarks/src/benchmarks/regression/
DDoPrivilegedBenchmark.java25 String lineSeparator = System.getProperty("line.separator"); in timeDirect() local
31 String lineSeparator; in timeFastAndSlow() local
33 lineSeparator = System.getProperty("line.separator"); in timeFastAndSlow()
35 lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeFastAndSlow()
46 String lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeNewAction() local
57 String lineSeparator = AccessController.doPrivileged(action); in timeReusedAction() local
/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java41 assertEquals("\n", System.lineSeparator()); in testLineSeparator()
43 assertEquals("\n", System.lineSeparator()); in testLineSeparator()
50 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
55 assertEquals(System.lineSeparator(), new String(baos.toByteArray(), "UTF-8")); in testLineSeparator()
60 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
63 assertEquals(System.lineSeparator(), new Formatter().format("%n").toString()); in testLineSeparator()
/libcore/ojluni/src/main/java/java/io/
DBufferedWriter.java79 private String lineSeparator; field in BufferedWriter
109 lineSeparator = java.security.AccessController.doPrivileged( in BufferedWriter()
243 write(lineSeparator); in newLine()
DPrintWriter.java75 private final String lineSeparator; field in PrintWriter
116 lineSeparator = java.security.AccessController.doPrivileged( in PrintWriter()
480 out.write(lineSeparator); in newLine()
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1137 public static String lineSeparator() { in lineSeparator() method in System
1138 return lineSeparator; in lineSeparator()
1141 private static String lineSeparator; field in System
1559 lineSeparator = props.getProperty("line.separator");
/libcore/ojluni/src/main/java/java/util/
DFormatter.java2808 a.append(System.lineSeparator()); in print()