Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 27) sorted by relevance

12

/libcore/ojluni/src/test/java/lang/String/
DLines.java76 Stream<String> lines = string.lines(); in testString() local
77 Stream<String> brLines = new BufferedReader(new StringReader(string)).lines(); in testString()
79 Iterator<String> iterator = lines.iterator(); in testString()
DTransform.java55 return string.lines() in test1()
DIndent.java67 Stream<String> stream = input.lines(); in testIndent()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldManifestTest.java181 List<String> lines = Arrays.asList(new String(os.toByteArray(), "UTF-8").split("\r\n")); in test_write_two_versions() local
184 assertEquals("Manifest-Version: 1.0", lines.get(0)); in test_write_two_versions()
186 assertTrue(lines.contains("Aardvark-Version: 3.0")); in test_write_two_versions()
187 assertTrue(lines.contains("Signature-Version: 2.0")); in test_write_two_versions()
/libcore/tools/upstream/src/main/java/libcore/
DCompareUpstreams.java91 private static Map<String, Integer> androidChangedComments(List<String> lines) { in androidChangedComments() argument
96 for (String line : lines) { in androidChangedComments()
122 private static String androidChangedCommentsSummary(List<String> lines) { in androidChangedCommentsSummary() argument
123 Map<String, Integer> map = androidChangedComments(lines); in androidChangedCommentsSummary()
DUtil.java74 public static void writeLines(Path path, Lines lines) throws IOException { in writeLines() argument
76 for (String line : lines) { in writeLines()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFiles2Test.java924 List<String> lines = new ArrayList<>(); in test_lines$Path$Charset() local
925 lines.add(UTF_16_DATA); in test_lines$Path$Charset()
926 lines.add(TEST_FILE_DATA); in test_lines$Path$Charset()
927 Files.write(filesSetup.getDataFilePath(), lines, StandardCharsets.UTF_16); in test_lines$Path$Charset() local
928 try (Stream<String> readLines = Files.lines(filesSetup.getDataFilePath(), in test_lines$Path$Charset()
930 Iterator<String> lineIterator = lines.iterator(); in test_lines$Path$Charset()
936 try (Stream<String> readLines = Files.lines(filesSetup.getTestDirPath(), in test_lines$Path$Charset()
946 try (Stream<String> readLines = Files.lines(filesSetup.getTestPath(), in test_lines$Path$Charset()
955 Files.lines(null, StandardCharsets.UTF_16); in test_lines$Path$Charset_NPE()
960 Files.lines(filesSetup.getDataFilePath(), null); in test_lines$Path$Charset_NPE()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DString.java3527 public Stream<String> lines() { in lines() method in String
3533 return StringUTF16.lines(this); in lines()
3577 Stream<String> stream = lines(); in indent()
3704 List<String> lines = lines().toList(); in stripIndent() local
3705 final int outdent = optOut ? 0 : outdent(lines); in stripIndent()
3706 return lines.stream() in stripIndent()
3717 private static int outdent(List<String> lines) { in outdent() argument
3721 for (String line : lines) { in outdent()
3727 String lastLine = lines.get(lines.size() - 1); in outdent()
DStringLatin1.java705 static Stream<String> lines(byte[] value) { in lines() method in StringLatin1
DStringUTF16.java1118 static Stream<String> lines(String value) {
/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java3344 public static Path write(Path path, Iterable<? extends CharSequence> lines,
3349 Objects.requireNonNull(lines);
3353 for (CharSequence line: lines) {
3393 Iterable<? extends CharSequence> lines,
3397 return write(path, lines, StandardCharsets.UTF_8, options);
3743 public static Stream<String> lines(Path path, Charset cs) throws IOException {
3746 return br.lines().onClose(asUncheckedRunnable(br));
3784 public static Stream<String> lines(Path path) throws IOException {
3785 return lines(path, StandardCharsets.UTF_8);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DBufferedReaderTest.java61 private void assertLines(String in, String... lines) throws IOException { in assertLines() argument
64 for (String line : lines) { in assertLines()
581 String[] r = br.lines().toArray(String[]::new); in test_lines()
/libcore/ojluni/src/test/java/util/Base64/
DTestBase64Golden.java66 return br.lines().toArray(String[]::new); in readAllLines()
Dplain.txt127 ; SPACEs or TABs at the ends of lines, and is
/libcore/ojluni/src/main/java/java/io/
DBufferedReader.java575 public Stream<String> lines() { in lines() method in BufferedReader
/libcore/ojluni/src/test/java/util/regex/
DTestCases.txt25 // A test case consists of three lines:
30 // Empty lines and lines beginning with comment slashes are ignored.
DBMPTestCases.txt25 // A test case consists of three lines:
30 // Empty lines and lines beginning with comment slashes are ignored.
DSupplementaryTestCases.txt25 // A test case consists of three lines:
30 // Empty lines and lines beginning with comment slashes are ignored.
/libcore/luni/src/test/java/libcore/java/util/
DBase64Test.java1085 List<String> lines = new ArrayList<>(); in breakLines() local
1087 lines.add(longString.substring(pos, Math.min(longString.length(), pos + lineLength))); in breakLines()
1089 return lines; in breakLines()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DString.java394 public java.util.stream.Stream<String> lines() { throw new RuntimeException("Stub!"); } in lines() method in String
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java2300 try (Stream<String> stream = Files.lines(temp.toPath())) {
2301 List<String> lines = stream.toList();
2302 assertEquals(1, lines.size());
2303 assertEquals("a".repeat((int) size), lines.get(0));
2330 .lines()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DString.annotated.java184 @libcore.util.NonNull public java.util.stream.Stream<String> lines() { throw new RuntimeException("… in lines() method in String
/libcore/support/src/test/java/tests/resources/x509/
Ddefault.cnf99 # Comment out the following two lines for the "traditional"
/libcore/ojluni/src/test/java/util/Scanner/
Dinput.txt213 # Should smbd obey the session and account lines in /etc/pam.d/samba ?
/libcore/benchmarks/src/benchmarks/regression/
DR.java1852 public static final int lines = 0; field in R

12