/libcore/benchmarks/src/benchmarks/regression/ |
D | DoPrivilegedBenchmark.java | 25 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/ |
D | SystemTest.java | 49 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/ |
D | BufferedWriter.java | 79 private String lineSeparator; field in BufferedWriter 109 lineSeparator = java.security.AccessController.doPrivileged( in BufferedWriter() 243 write(lineSeparator); in newLine()
|
D | PrintWriter.java | 75 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/ |
D | Base64.java | 130 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()
|
D | Formatter.java | 2861 a.append(System.lineSeparator()); in print()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | System.java | 179 public static java.lang.String lineSeparator() { in lineSeparator() method in System 315 private static java.lang.String lineSeparator; field in System
|
/libcore/ojluni/annotations/mmodule/java/lang/ |
D | System.annotated.java | 65 public static java.lang.String lineSeparator() { throw new RuntimeException("Stub!"); } in lineSeparator() method in System
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 1188 public static String lineSeparator() { in lineSeparator() method in System 1189 return lineSeparator; in lineSeparator() 1192 private static String lineSeparator; field in System 1710 lineSeparator = props.getProperty("line.separator");
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | System.annotated.java | 65 @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/ |
D | Base64Test.java | 82 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()
|