/openjdk9/jdk/test/java/nio/file/Files/ |
H A D | StreamLinesTest.java | 30 * @summary Tests streams returned from Files.lines, primarily focused on 80 int lines, Charset cs, boolean endLineSep) throws IOException { 81 Path p = Files.createTempFile("lines", null); 84 for (int i = 0; i < lines - 1; i++) { 88 if (lines > 0) { 89 bw.write(lineGenerator.apply(lines - 1)); 91 bw.write(lineSeparatorGenerator.apply(lines - 1).value); 103 int lines, Charset cs) throws IOException { 105 bw.write(lineSeparatorGenerator.apply(lines - 1).value); 131 public static Object[][] lines() { method in class:StreamLinesTest 78 generateTempFileWithLines(IntFunction<String> lineGenerator, IntFunction<LineSeparator> lineSeparatorGenerator, int lines, Charset cs, boolean endLineSep) argument 101 writeLineSeparator(Path p, IntFunction<LineSeparator> lineSeparatorGenerator, int lines, Charset cs) argument 182 test(String description, IntFunction<String> lineGenerator, IntFunction<LineSeparator> separatorGenerator, int lines, Charset cs) argument [all...] |
/openjdk9/nashorn/samples/ |
H A D | lines.js | 36 // print total number of lines in all .java files under a 41 mapToInt(function(p) Files.lines(p).count()).sum())
|
H A D | uniq.js | 35 // omit repeated lines and print unique lines 49 // add unique lines 50 reader.lines().forEach(function(line) {
|
H A D | javaconstructorbind.js | 62 reader.lines().forEach(function(x) str += x);
|
H A D | shell.js | 56 reader.lines().forEach(function(line) {
|
/openjdk9/hotspot/test/gc/logging/ |
H A D | TestDeprecatedPrintFlags.java | 74 String lines = Files.lines(Paths.get(fileName)).collect(Collectors.joining()); 75 System.out.println("lines: " + lines); 76 OutputAnalyzer outputLog = new OutputAnalyzer(lines, ""); 91 String lines = Files.lines(Paths.get(fileName)).collect(Collectors.joining()); 92 OutputAnalyzer outputLog = new OutputAnalyzer(lines, "");
|
/openjdk9/hotspot/test/compiler/compilercontrol/share/actions/ |
H A D | BaseAction.java | 88 List<String> lines; 99 lines = in.lines().collect(Collectors.toList()); 100 check(decodeMap(lines)); 109 private Map<Executable, State> decodeMap(List<String> lines) { argument 110 if (lines == null || lines.size() == 0) { 111 throw new Error("TESTBUG: unexpected lines list"); 115 ListIterator<String> iterator = lines.listIterator(); 125 Executable executable = METHODS_NAMES.get(lines [all...] |
/openjdk9/nashorn/test/script/basic/ |
H A D | scripting.js | 45 lines. 52 lines.
|
/openjdk9/langtools/test/tools/javac/api/ToolProvider/ |
H A D | ToolProviderTest1.java | 57 List<String> lines = new JavaTask(tb) 65 for (String line : lines) {
|
H A D | ToolProviderTest2.java | 58 List<String> lines = new JavaTask(tb) 67 for (String line : lines) {
|
/openjdk9/langtools/test/tools/javac/newlines/ |
H A D | NewLineTest.java | 61 List<String> lines = Files.readAllLines(javacOutput.toPath(), 63 if (lines.size() != 1) {
|
/openjdk9/jdk/src/java.desktop/share/classes/javax/sound/sampled/ |
H A D | Mixer.java | 29 * A mixer is an audio device with one or more lines. It need not be designed 31 * input (source) lines and at least one output (target) line. The former are 34 * lines or target lines. A mixer can accept prerecorded, loopable sound as 35 * input, by having some of its source lines be instances of objects that 41 * distinct from the controls belonging to each of the mixer's individual lines. 47 * A mixer can support synchronization of its lines. When one line in a 48 * synchronized group is started or stopped, the other lines in the group 66 * Obtains information about the set of source lines supported by this 67 * mixer. Some source lines ma 208 synchronize(Line[] lines, boolean maintainSync) argument 225 unsynchronize(Line[] lines) argument 241 isSynchronizationSupported(Line[] lines, boolean maintainSync) argument [all...] |
/openjdk9/jdk/test/java/awt/font/TextLayout/ |
H A D | TestJustification.java | 78 TextLayout[] lines; field in class:TestJustification.JustificationPanel 177 + "lines and then justified to fit the break width. This test should pass if " 178 + "these lines are justified to the same width, and fail otherwise. It should " 203 if (lines == null || width != oldwidth) { 206 lines = new TextLayout[10]; 219 lines[linecount - 1] = lines[linecount - 1].getJustifiedLayout(width); 222 if (linecount == lines.length) { 223 TextLayout[] nlines = new TextLayout[lines.length * 2]; 224 System.arraycopy(lines, [all...] |
/openjdk9/langtools/test/com/sun/javadoc/testCRLineSeparator/ |
H A D | TestCRLineSeparator.java | 69 List<String> lines = new ArrayList<>(); 73 lines.add(line); 76 for (String line: lines) {
|
/openjdk9/langtools/test/jdk/javadoc/doclet/testCRLineSeparator/ |
H A D | TestCRLineSeparator.java | 69 List<String> lines = new ArrayList<>(); 73 lines.add(line); 76 for (String line: lines) {
|
/openjdk9/langtools/test/tools/javap/output/ |
H A D | JavapTester.java | 163 protected JavapTester setSrc(String... lines) { argument 164 return innerSrc("TESTCASE", lines); 170 protected JavapTester innerSrc(String key, String... lines) { argument 171 return innerSrc(key, new TestSource(lines)); 326 * test cases. It contains an array of source code lines, 327 * where zero or more lines may be markers for nested lines. 336 private String[] lines; field in class:JavapTester.TestSource 339 public TestSource(String... lines) { argument 340 this.lines 348 setInner(String key, String... lines) argument [all...] |
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.common/src/org/graalvm/compiler/core/common/util/ |
H A D | Util.java | 124 * Prepends the String {@code indentation} to every line in String {@code lines}, including a 127 public static String indent(String lines, String indentation) { argument 128 if (lines.length() == 0) { 129 return lines; 132 if (lines.endsWith(newLine)) { 133 return indentation + (lines.substring(0, lines.length() - 1)).replace(newLine, newLine + indentation) + newLine; 135 return indentation + lines.replace(newLine, newLine + indentation);
|
/openjdk9/jdk/test/java/lang/String/concat/ |
H A D | ImplicitStringConcatShapesTestGen.java | 96 List<String> lines = new ArrayList<>(); 100 lines.add(String.format("test(\"%s\", \"\" + %s);", 108 lines.add(String.format("test(\"%s\", \"\" + %s + %s);", 116 int strides = lines.size() / STRIDE + 1; 127 for (String line : lines.subList(c * STRIDE, Math.min(lines.size(), (c+1) * STRIDE))) {
|
/openjdk9/jdk/test/tools/launcher/ |
H A D | ArgFileSyntax.java | 43 private File createArgFile(List<String> lines) throws IOException { argument 46 createAFile(argFile, lines); 101 // multiple lines in a property 104 "-Dmultiple.lines=\"line 1\\nline 2\\n\\rline 3\"", 115 "-Dmultiple.lines=line 1", 120 // cannot verify \n and \r as that break output lines 185 // long lines 208 private void verifyParsing(List<String> lines, List<String> args) throws IOException { argument 209 File argFile = createArgFile(lines); 244 List<String> lines [all...] |
/openjdk9/hotspot/test/serviceability/dcmd/gc/ |
H A D | HeapDumpTest.java | 72 List<String> lines = Files.readAllLines(out.toPath()); 73 Assert.assertTrue(lines.size() > 0, "hprof parser output file is empty"); 74 for (String line : lines) {
|
/openjdk9/hotspot/test/compiler/jvmci/compilerToVM/ |
H A D | GetFlagValueTest.java | 72 String[] lines = out.getStdout().split("\\r?\\n"); 73 Asserts.assertTrue(lines.length > 1, "Expected output from -XX:+PrintFlagsFinal"); 79 for (String line : lines) {
|
/openjdk9/jdk/test/javax/crypto/CryptoPermissions/ |
H A D | TestUnlimited.java | 68 try (Stream<String> lines = Files.lines(path)) { 69 return lines.filter(x -> x.startsWith("crypto.policy="))
|
/openjdk9/langtools/test/tools/jdeps/modules/ |
H A D | DotFileTest.java | 99 Set<String> lines = Files.readAllLines(path).stream() 103 assertEquals(lines, edges); 117 Set<String> lines = Files.readAllLines(path).stream() 121 assertEquals(lines, edges);
|
/openjdk9/hotspot/src/share/vm/runtime/ |
H A D | icache.cpp | 53 void AbstractICache::call_flush_stub(address start, int lines) { argument 61 int r = (*_flush_icache_stub)(start, lines, auto_magic); 69 // spanning two cache lines by computing a start line address by rounding
|
/openjdk9/langtools/src/jdk.jdeps/share/classes/com/sun/tools/javap/ |
H A D | SourceWriter.java | 84 Set<Integer> lines = lineMap.get(instr.getPC()); 85 if (lines != null) { 86 for (int line: lines) { 188 List<String> lines = new ArrayList<>(); 189 lines.add(""); // dummy line 0 194 lines.add(line); 197 return lines.toArray(new String[lines.size()]);
|