Home
last modified time | relevance | path

Searched refs:lineSeparator (Results 1 – 12 of 12) 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.java49 assertEquals("\n", System.lineSeparator()); in testLineSeparator()
51 assertEquals("\n", System.lineSeparator()); in testLineSeparator()
58 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
63 assertEquals(System.lineSeparator(), new String(baos.toByteArray(), "UTF-8")); in testLineSeparator()
68 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
71 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/util/
DBase64.java130 public static Encoder getMimeEncoder(int lineLength, byte[] lineSeparator) { in getMimeEncoder() argument
131 Objects.requireNonNull(lineSeparator); in getMimeEncoder()
133 for (byte b : lineSeparator) { in getMimeEncoder()
141 return new Encoder(false, lineSeparator, lineLength >> 2 << 2, true); in getMimeEncoder()
DFormatter.java2861 a.append(System.lineSeparator()); in print()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DSystem.java179 public static java.lang.String lineSeparator() { in lineSeparator() method in System
315 private static java.lang.String lineSeparator; field in System
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1176 public static String lineSeparator() { in lineSeparator() method in System
1177 return lineSeparator; in lineSeparator()
1180 private static String lineSeparator; field in System
1698 lineSeparator = props.getProperty("line.separator");
/libcore/ojluni/annotations/mmodule/java/lang/
DSystem.annotated.java65 public static java.lang.String lineSeparator() { throw new RuntimeException("Stub!"); } in lineSeparator() method in System
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DSystem.annotated.java65 @libcore.util.NonNull public static java.lang.String lineSeparator() { throw new RuntimeException("… in lineSeparator() method in System
/libcore/luni/src/test/java/libcore/java/util/
DBase64Test.java82 private static void checkAlphabet(Set<Character> expectedAlphabet, String lineSeparator, in checkAlphabet() argument
101 for (char c : lineSeparator.toCharArray()) { in checkAlphabet()
1076 private static String wrapLines(String lineSeparator, String s, int lineLength) { in wrapLines() argument
1077 return String.join(lineSeparator, breakLines(s, lineLength)); in wrapLines()
/libcore/api/
Dcurrent.txt3962 method @NonNull public static String lineSeparator();