Searched refs:line (Results 1 - 25 of 33) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/io/
H A DOldLineNumberReaderTest.java33 String line;
36 line = lnr.readLine();
39 line.equals(lnr.readLine()));
62 assertEquals("Test 2: Read failed to increase the line number;",
123 assertEquals("Returned incorrect line number", 0, lnr.getLineNumber());
124 String line = null;
126 line = lnr.readLine();
127 assertEquals("Test 1: Returned incorrect string;", "1", line);
128 assertTrue("Test 2: Returned incorrect line number:" + lnr.getLineNumber(),
142 assertEquals("Test 1: Returned incorrect line numbe
[all...]
H A DOldDataInputStreamTest.java261 String line;
265 line = dis.readLine();
266 assertTrue("Test 1: Incorrect line written or read: " + line,
267 line.equals("Lorem"));
268 line = dis.readLine();
269 assertTrue("Test 2: Incorrect line written or read: " + line,
270 line.equals("ipsum"));
271 line
[all...]
H A DOldBufferedReaderTest.java220 String line;
223 line = br.readLine();
224 assertTrue("Test 1: Incorrect line written or read: " + line,
225 line.equals("Lorem"));
226 line = br.readLine();
227 assertTrue("Test 2: Incorrect line written or read: " + line,
228 line.equals("ipsum"));
229 line
[all...]
/libcore/luni/src/test/java/libcore/io/
H A DStrictLineReaderTest.java40 String line = lineReader.readLine();
41 if (!refLine.equals(line)) {
42 fail("line (\""+line+"\") differs from expected (\""+refLine+"\").");
45 fail("line reader threw EOFException too early.");
50 fail("line reader didn't throw the expected EOFException.");
67 "12 byte line\n18 byte line......\n" +
77 "line ending with CRLF\r\n" +
78 "this is a long line wit
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DLineNumberReaderTest.java56 assertEquals("Returned incorrect line number--expected 0, got ", 0, lnr
62 assertTrue("Returned incorrect line number--expected 2, got: "
71 String line;
74 line = lnr.readLine();
76 assertTrue("Failed to return to marked position", line.equals(lnr
111 assertEquals("Returned incorrect line number", 0, lnr.getLineNumber());
112 String line = null;
114 line = lnr.readLine();
116 assertEquals("Returned incorrect string", "1", line);
117 assertTrue("Returned incorrect line numbe
[all...]
H A DConsoleTest.java87 String line = console.readLine();
88 assertEquals("hello world", line);
92 String line = console.readLine("%d %s", 2, "Please input a line of string to test:");
93 assertEquals("hello world", line);
95 assertEquals("2 Please input a line of string to test:", prompt);
H A DDataInputStreamTest.java409 String line = dis.readLine();
410 assertTrue("Incorrect line read: " + line, line.equals("Hello"));
/libcore/luni/src/main/java/java/util/
H A DServiceLoader.java38 * Otherwise, each line contains the binary name of one implementation class.
225 String line;
226 while ((line = reader.readLine()) != null) {
228 int commentStart = line.indexOf('#');
230 line = line.substring(0, commentStart);
232 line = line.trim();
234 if (line.isEmpty()) {
237 String className = line;
[all...]
/libcore/luni/src/main/java/javax/xml/transform/
H A DTransformerException.java218 int line = locator.getLineNumber();
226 if (0 != line) {
228 sbuffer.append(line);
251 int line = locator.getLineNumber();
259 if (0 != line) {
261 sbuffer.append(line);
/libcore/luni/src/test/java/libcore/java/math/
H A DCSVTest.java43 String line = "";
49 while ((line = br.readLine()) != null) {
50 if (line.charAt(0) != '#') {
51 String[] testCase = line.split(",");
/libcore/luni/src/main/java/java/io/
H A DDataInputStream.java113 StringBuilder line = new StringBuilder(80); // Typical line length
119 if (line.length() == 0 && !foundTerminator) {
122 return line.toString();
126 return line.toString();
135 return line.toString();
139 return line.toString();
141 line.append((char) nextByte);
H A DRandomAccessFile.java440 * Reads a line of text form the current position in this file. A line is
443 * include the line terminating sequence.
445 * Blocks until a line terminating sequence has been read, the end of the
448 * @return the contents of the line or {@code null} if no characters have
454 StringBuilder line = new StringBuilder(80); // Typical line length
461 return line.length() != 0 ? line.toString() : null;
465 return line
[all...]
H A DBufferedReader.java74 * readLine returns a line as soon as it sees '\n' or '\r'. In the latter
76 * the same line ending. Both readLine and all read methods are supposed
365 * Returns the next line of text available from this reader. A line is
370 * @return the contents of the line or {@code null} if no characters were
381 // Do we have a whole line in the buffer?
385 String line = new String(buf, pos, i - pos);
388 return line;
392 // Accumulate buffers in a StringBuilder until we've read a whole line.
402 // Do we have a whole line i
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DThrowableTest.java107 String line = trace.substring(lastIndex, index);
110 index = line.indexOf("(");
112 line = line.substring(0, index);
116 if (line.indexOf("java.lang.Throwable") > -1)
118 sb.append(line);
H A DProcessTest.java43 for (String line : readAndCloseStream(ps.getInputStream()).split("\n")) {
44 if (line.contains(" Z ") || line.contains(" Z+ ")) {
H A DProcessManagerTest.java143 String line;
145 while ((line = reader.readLine()) != null) {
146 System.err.println(line);
/libcore/luni/src/main/java/libcore/icu/
H A DTimeZoneNames.java147 for (String line : ZoneInfoDB.getInstance().getZoneTab().split("\n")) {
148 if (line.startsWith(countryCode)) {
149 int olsonIdStart = line.indexOf('\t', 4) + 1;
150 int olsonIdEnd = line.indexOf('\t', olsonIdStart);
152 olsonIdEnd = line.length(); // Not all zone.tab lines have a comment.
154 ids.add(line.substring(olsonIdStart, olsonIdEnd));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DBidiTest.java787 Bidi line = bd.createLineBidi(2, 7);
788 assertFalse(line.baseIsLeftToRight());
789 assertEquals(1, line.getBaseLevel());
790 assertEquals(5, line.getLength());
791 assertEquals(2, line.getLevelAt(0));
792 assertEquals(3, line.getLevelAt(1));
793 assertEquals(3, line.getLevelAt(2));
794 assertEquals(3, line.getLevelAt(3));
795 assertEquals(2, line.getLevelAt(4));
796 assertEquals(1, line
[all...]
/libcore/luni/src/main/java/java/lang/
H A DStackTraceElement.java53 * @param line
54 * the line of the file where execution is at, a negative number
60 public StackTraceElement(String cls, String method, String file, int line) { argument
69 lineNumber = line;
88 * <li>the class, method and file names as well as the line number of this
158 * Returns the line number in the source for the class belonging to this
161 * @return the line number, or a negative number if this information is not
/libcore/luni/src/main/java/java/net/
H A DNetworkInterface.java161 for (String line : ifInet6Lines) {
162 if (!line.endsWith(suffix)) {
169 addressBytes[i] = (byte) Integer.parseInt(line.substring(2*i, 2*i + 2), 16);
176 prefixLengthStart = line.indexOf(' ', prefixLengthStart) + 1;
177 int prefixLengthEnd = line.indexOf(' ', prefixLengthStart);
178 short prefixLength = Short.parseShort(line.substring(prefixLengthStart, prefixLengthEnd), 16);
H A DURLClassLoader.java86 String line = in.readLine();
87 if (line == null) {
90 URL jar = new URL(prefix + line + "!/");
92 line = in.readLine();
93 if (line == null) {
96 if (line.isEmpty()) {
100 if (pre_map.containsKey(line)) {
101 list = pre_map.get(line);
104 pre_map.put(line, list);
/libcore/luni/src/main/java/libcore/net/url/
H A DFtpURLConnection.java359 readLine(); /* Skip the rest of the first line */
406 * Read a line of text and return it for possible parsing
418 String line = readLine();
419 if (line.length() < 4) {
422 if (line.substring(0, 3).equals(replyCode)
423 && (line.charAt(3) == (char) 32)) {
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java580 * Gets the current line number within the XML file.
582 private int line() { method in class:ExpatParser
583 return line(this.pointer);
586 private static native int line(long pointer); method in class:ExpatParser
680 return line();
690 + ", line: " + getLineNumber()
723 * Includes line and column in the message.
737 String message, int line, int column) {
738 return "At line " + line
736 makeMessage( String message, int line, int column) argument
[all...]
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DX509CRLTest.java132 String line;
133 while ((line = buf.readLine()) != null) {
134 int index = line.indexOf('=');
135 String key = line.substring(0, index);
136 final Date value = sdf.parse(line.substring(index + 1));
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DBinaryHprofReader.java358 int line = in.readInt();
365 System.out.println("\tline=" + line);
367 StackTraceElement stackFrame = new StackTraceElement(className, methodName, file, line);

Completed in 4476 milliseconds

12