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

/libcore/benchmarks/src/benchmarks/regression/
H A DDoPrivilegedBenchmark.java28 String lineSeparator = System.getProperty("line.separator");
34 String lineSeparator;
36 lineSeparator = System.getProperty("line.separator");
38 lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() {
49 String lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() {
60 String lineSeparator = AccessController.doPrivileged(action);
/libcore/luni/src/test/java/libcore/java/lang/
H A DSystemTest.java34 // use System.getProperty. Now they should use System.lineSeparator instead, and the
37 // Test that System.lineSeparator is not changed when the corresponding
39 assertEquals("\n", System.lineSeparator());
41 assertEquals("\n", System.lineSeparator());
43 // java.io.BufferedWriter --- uses System.lineSeparator on Android but not on RI.
48 assertEquals(System.lineSeparator(), sw.toString());
50 // java.io.PrintStream --- uses System.lineSeparator on Android but not on RI.
53 assertEquals(System.lineSeparator(), new String(baos.toByteArray(), "UTF-8"));
55 // java.io.PrintWriter --- uses System.lineSeparator on Android but not on RI.
58 assertEquals(System.lineSeparator(), s
[all...]
/libcore/luni/src/main/java/java/util/logging/
H A DSimpleFormatter.java51 sb.append(r.getSourceMethodName()).append(System.lineSeparator());
53 sb.append(formatMessage(r)).append(System.lineSeparator());
H A DXMLFormatter.java54 String nl = System.lineSeparator();
115 String nl = System.lineSeparator();
138 sb.append(System.lineSeparator());
161 sb.append(System.lineSeparator());
163 sb.append(System.lineSeparator());
/libcore/luni/src/main/java/java/util/
H A DProperties.java227 sb.append(System.lineSeparator());
541 writer.write(System.lineSeparator());
545 writer.write(System.lineSeparator());
553 sb.append(System.lineSeparator());
H A DFormatter.java294 * <td width="25%">Newline. (The value of {@link System#lineSeparator}.)</td>
1471 result = System.lineSeparator();
/libcore/luni/src/main/java/java/io/
H A DBufferedWriter.java161 write(System.lineSeparator());
H A DPrintStream.java364 print(System.lineSeparator());
H A DPrintWriter.java472 print(System.lineSeparator());
/libcore/luni/src/main/java/java/lang/
H A DSystem.java84 private static final String lineSeparator; field in class:System
110 lineSeparator = System.getProperty("line.separator");
974 public static String lineSeparator() { method in class:System
975 return lineSeparator;

Completed in 390 milliseconds