/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/ |
D | ExpectedUpstreamFile.java | 42 String line; in readAllEntries() local 44 while ((line = in.readLine()) != null) { in readAllEntries() 45 line = line.strip(); in readAllEntries() 46 if (line.isEmpty()) { in readAllEntries() 48 } else if (line.startsWith("#")) { in readAllEntries() 49 commentLines.append(line).append('\n'); in readAllEntries() 53 ExpectedUpstreamEntry entry = parseLine(line, commentLines.toString()); in readAllEntries() 61 private static ExpectedUpstreamEntry parseLine(String line, String commentLines) { in parseLine() argument 62 String[] items = line.split(","); in parseLine() 66 + "The line is " + line); in parseLine()
|
D | UnsupportedNewApis.java | 69 String line; in parse() local 70 while ((line = reader.readLine()) != null) { in parse() 71 line = line.strip(); in parse() 72 if (line.isEmpty() || line.startsWith("#")) { in parse() 76 result.add(line); in parse()
|
/libcore/ojluni/src/test/java/text/testlib/ |
D | HexDumpReader.java | 54 String line; in getStreamFromHexDump() local 55 while ((line = reader.readLine()) != null) { in getStreamFromHexDump() 57 line = line.trim(); in getStreamFromHexDump() 59 if (line.length() == 0) { in getStreamFromHexDump() 62 int x = line.indexOf('#'); in getStreamFromHexDump() 67 line = line.substring(0, x).trim(); in getStreamFromHexDump() 69 int len = line.length(); in getStreamFromHexDump() 71 bab.put((byte)Integer.parseInt(line, i, i + 2, 16)); in getStreamFromHexDump()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldLineNumberReaderTest.java | 33 String line; in test_markI() local 36 line = lnr.readLine(); in test_markI() 39 line.equals(lnr.readLine())); in test_markI() 124 String line = null; in test_readLine() local 126 line = lnr.readLine(); in test_readLine() 127 assertEquals("Test 1: Returned incorrect string;", "1", line); in test_readLine() 144 String line = null; in test_reset() local 148 line = lnr.readLine(); in test_reset() 149 assertEquals("Test 2: Failed to reset reader", "0", line); in test_reset()
|
D | OldDataInputStreamTest.java | 261 String line; in test_readLine() local 265 line = dis.readLine(); in test_readLine() 266 assertTrue("Test 1: Incorrect line written or read: " + line, in test_readLine() 267 line.equals("Lorem")); in test_readLine() 268 line = dis.readLine(); in test_readLine() 269 assertTrue("Test 2: Incorrect line written or read: " + line, in test_readLine() 270 line.equals("ipsum")); in test_readLine() 271 line = dis.readLine(); in test_readLine() 272 assertTrue("Test 3: Incorrect line written or read: " + line, in test_readLine() 273 line.equals("dolor sit amet...")); in test_readLine()
|
D | OldBufferedReaderTest.java | 220 String line; in test_readLine() local 223 line = br.readLine(); in test_readLine() 224 assertTrue("Test 1: Incorrect line written or read: " + line, in test_readLine() 225 line.equals("Lorem")); in test_readLine() 226 line = br.readLine(); in test_readLine() 227 assertTrue("Test 2: Incorrect line written or read: " + line, in test_readLine() 228 line.equals("ipsum")); in test_readLine() 229 line = br.readLine(); in test_readLine() 230 assertTrue("Test 3: Incorrect line written or read: " + line, in test_readLine() 231 line.equals("dolor sit amet...")); in test_readLine()
|
/libcore/tools/patch-style/ |
D | libcore-patch-style.awk | 66 function checkLineLength(line) { 67 if (g_max_length > 0 && length(line) > g_max_length) { 68 inputError("Line too long", line) 95 function processBeginMarker(line) { 97 expectEndFor(line) 100 function processEndMarker(line) { 101 actualEndFor(line)
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | LineNumberReaderTest.java | 71 String line; in test_markI() local 74 line = lnr.readLine(); in test_markI() 76 assertTrue("Failed to return to marked position", line.equals(lnr in test_markI() 112 String line = null; in test_readLine() local 114 line = lnr.readLine(); in test_readLine() 116 assertEquals("Returned incorrect string", "1", line); in test_readLine() 138 String line = null; in test_reset() local 142 line = lnr.readLine(); in test_reset() 144 assertEquals("Failed to reset reader", "0", line); in test_reset()
|
D | ConsoleTest.java | 87 String line = console.readLine(); in test_readLine() local 88 assertEquals("hello world", line); in test_readLine() 92 String line = console.readLine("%d %s", 2, "Please input a line of string to test:"); in test_readLine_LString_LObject() local 93 assertEquals("hello world", line); in test_readLine_LString_LObject()
|
/libcore/ojluni/src/main/java/jdk/internal/util/jar/ |
D | JarIndex.java | 287 String line = null; in read() local 294 while((line = br.readLine()) != null && !line.endsWith(".jar")); in read() 296 for(;line != null; line = br.readLine()) { in read() 297 if (line.isEmpty()) in read() 300 if (line.endsWith(".jar")) { in read() 301 currentJar = line; in read() 304 String name = line; in read()
|
/libcore/tools/docs/crypto/ |
D | crypto_docs.py | 26 for line in f: 27 if not line.strip().startswith('#'): 28 stripped_contents += line
|
D | update_crypto_support.py | 144 for line in f.readlines(): 145 line = line.strip() 147 if line.strip() == 'BEGIN ALGORITHM LIST': 150 if line == 'END ALGORITHM LIST': 153 category, algorithm = line.split()
|
/libcore/luni/src/main/java/javax/xml/transform/ |
D | TransformerException.java | 218 int line = locator.getLineNumber(); in getMessageAndLocation() local 226 if (0 != line) { in getMessageAndLocation() 228 sbuffer.append(line); in getMessageAndLocation() 251 int line = locator.getLineNumber(); in getLocationAsString() local 259 if (0 != line) { in getLocationAsString() 261 sbuffer.append(line); in getLocationAsString()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | EmbeddedStackWalkTest.java | 146 int line = f.getLineNumber(); in verify() 147 assertTrue(line >= BEGIN_LINE && line <= END_LINE); in verify() 153 line = st.getLineNumber(); in verify() 154 assertTrue(line >= BEGIN_LINE && line <= END_LINE); in verify()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThrowableTest.java | 107 String line = trace.substring(lastIndex, index); in fixStacktrace() local 110 index = line.indexOf("("); in fixStacktrace() 112 line = line.substring(0, index); in fixStacktrace() 116 if (line.indexOf("java.lang.Throwable") > -1) in fixStacktrace() 118 sb.append(line); in fixStacktrace()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | BidiTest.java | 787 Bidi line = bd.createLineBidi(2, 7); in testCreateLineBidi() local 788 assertFalse(line.baseIsLeftToRight()); in testCreateLineBidi() 789 assertEquals(1, line.getBaseLevel()); in testCreateLineBidi() 790 assertEquals(5, line.getLength()); in testCreateLineBidi() 791 assertEquals(2, line.getLevelAt(0)); in testCreateLineBidi() 792 assertEquals(3, line.getLevelAt(1)); in testCreateLineBidi() 793 assertEquals(3, line.getLevelAt(2)); in testCreateLineBidi() 794 assertEquals(3, line.getLevelAt(3)); in testCreateLineBidi() 795 assertEquals(2, line.getLevelAt(4)); in testCreateLineBidi() 796 assertEquals(1, line.getLevelAt(1000)); in testCreateLineBidi() [all …]
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | Util.java | 61 String line; in readLines() local 62 while ((line = br.readLine()) != null) { in readLines() 63 result.add(line); in readLines() 76 for (String line : lines) { in writeLines() 77 printStream.println(line); in writeLines()
|
D | CompareUpstreams.java | 96 for (String line : lines) { in androidChangedComments() 97 Matcher matcher = pattern.matcher(line); in androidChangedComments() 112 } else if (line.contains("Android-")) { in androidChangedComments() 113 problems.add(line); in androidChangedComments()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | CSVTest.java | 43 String line = ""; in TestCSVInputs() local 49 while ((line = br.readLine()) != null) { in TestCSVInputs() 50 if (line.charAt(0) != '#') { in TestCSVInputs() 51 String[] testCase = line.split(","); in TestCSVInputs()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ThreadTestHelper.smali | 33 # Additionally .line / .prologue declarations were removed from noDebugInfo 46 .line 3 56 .line 5 72 .line 9 85 #.line 13
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | CryptoPolicyParser.java | 53 ParsingException(int line, String msg) { in ParsingException() argument 57 ParsingException(int line, String expect, String actual) { in ParsingException() argument
|
/libcore/support/src/test/java/libcore/java/security/ |
D | CpuFeatures.java | 154 String line; in cpuFieldContainsAes() local 155 while ((line = br.readLine()) != null) { in cpuFieldContainsAes() 156 if (line.matches(regex)) { in cpuFieldContainsAes()
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
D | FtpClient.java | 207 public FtpDirEntry parseLine(String line) { in parseLine() argument 221 m = patterns[j].matcher(line); in parseLine() 285 …file.setType(dir ? FtpDirEntry.Type.DIR : (line.charAt(0) == 'l' ? FtpDirEntry.Type.LINK : FtpDirE… in parseLine() 296 public FtpDirEntry parseLine(String line) { in parseLine() argument 298 int i = line.lastIndexOf(";"); in parseLine() 300 name = line.substring(i + 1).trim(); in parseLine() 301 line = line.substring(0, i); in parseLine() 303 name = line.trim(); in parseLine() 304 line = ""; in parseLine() 307 while (!line.isEmpty()) { in parseLine() [all …]
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | Manifest.java | 223 static void make72Safe(StringBuffer line) { in make72Safe() argument 224 int length = line.length(); in make72Safe() 227 line.insert(index, "\r\n "); in make72Safe() 238 static void println72(OutputStream out, String line) throws IOException { in println72() argument 239 if (!line.isEmpty()) { in println72() 240 byte[] lineBytes = line.getBytes(UTF_8); in println72()
|
/libcore/ojluni/src/test/java/lang/String/ |
D | Lines.java | 85 String line = iterator.next(); in testString() local 88 if (!line.equals(brLine)) { in testString()
|