Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 43) sorted by relevance

12

/libcore/luni/src/main/java/libcore/net/
DMimeUtils.java58 String line; in parseTypes() local
59 while ((line = r.readLine()) != null) { in parseTypes()
60 int commentPos = line.indexOf('#'); in parseTypes()
62 line = line.substring(0, commentPos); in parseTypes()
64 line = line.trim(); in parseTypes()
65 if (line.equals("")) { in parseTypes()
69 final String[] split = splitPattern.split(line); in parseTypes()
73 "Invalid mimeType " + mimeType + " in: " + line); in parseTypes()
79 "Invalid extension " + extension + " in: " + line); in parseTypes()
/libcore/ojluni/src/main/java/sun/misc/
DMetaIndex.java166 String line = null; in registerDirectory() local
177 line = reader.readLine(); in registerDirectory()
178 if (line == null || in registerDirectory()
179 !line.equals("% VERSION 2")) { in registerDirectory()
183 while ((line = reader.readLine()) != null) { in registerDirectory()
184 switch (line.charAt(0)) { in registerDirectory()
197 curJarName = line.substring(2); in registerDirectory()
198 if (line.charAt(0) == '!') { in registerDirectory()
209 contents.add(line); in registerDirectory()
DJarIndex.java305 String line = null; in read() local
312 while((line = br.readLine()) != null && !line.endsWith(".jar")); in read()
314 for(;line != null; line = br.readLine()) { in read()
315 if (line.length() == 0) in read()
318 if (line.endsWith(".jar")) { in read()
319 currentJar = line; in read()
322 String name = line; in read()
/libcore/luni/src/test/java/libcore/java/io/
DOldLineNumberReaderTest.java33 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()
DOldDataInputStreamTest.java261 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()
DOldBufferedReaderTest.java220 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DLineNumberReaderTest.java71 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()
DConsoleTest.java87 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/tools/docs/crypto/
Dcrypto_docs.py26 for line in f:
27 if not line.strip().startswith('#'):
28 stripped_contents += line
Dupdate_crypto_support.py144 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/
DTransformerException.java218 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/tools/upstream/src/main/java/libcore/
DUtil.java43 String line; in readLines() local
44 while ((line = br.readLine()) != null) { in readLines()
45 result.add(line); in readLines()
58 for (String line : lines) { in writeLines()
59 printStream.println(line); in writeLines()
DCompareUpstreams.java83 for (String line : lines) { in androidChangedComments()
84 Matcher matcher = pattern.matcher(line); in androidChangedComments()
99 } else if (line.contains("Android-")) { in androidChangedComments()
100 problems.add(line); in androidChangedComments()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThrowableTest.java107 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()
DProcessManagerTest.java145 String line; in logErrors()
147 while ((line = reader.readLine()) != null) { in logErrors()
148 System.err.println(line); in logErrors()
DProcessTest.java47 for (String line : readAndCloseStream(ps.getInputStream()).split("\n")) { in test_55017()
48 if (line.contains(" Z ") || line.contains(" Z+ ")) { in test_55017()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DBidiTest.java787 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/luni/src/test/java/libcore/java/math/
DCSVTest.java43 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/ojluni/src/main/java/javax/crypto/
DCryptoPolicyParser.java53 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/
DCpuFeatures.java80 String line; in getFieldFromCpuinfo() local
81 while ((line = br.readLine()) != null) { in getFieldFromCpuinfo()
82 Matcher m = p.matcher(line); in getFieldFromCpuinfo()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java207 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/sun/net/ftp/
DFtpDirParser.java48 public FtpDirEntry parseLine(String line); in parseLine() argument
/libcore/ojluni/src/main/java/java/io/
DConsole.java245 String line = null; in readLine() local
253 line = new String(ca); in readLine()
259 return line; in readLine()
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatParser.java593 private int line() { in line() method in ExpatParser
594 return line(this.pointer); in line()
597 private static native int line(long pointer); in line() method in ExpatParser
695 return line(); in getLineNumber()
752 String message, int line, int column) { in makeMessage() argument
753 return "At line " + line + ", column " in makeMessage()
/libcore/luni/src/test/resources/META-INF/services/
Dlibcore.java.util.ServiceLoaderTestInterface2 # followed by a blank line

12