Searched refs:read (Results 151 - 175 of 267) sorted by relevance

1234567891011

/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/
H A DBerInputStream.java53 * Next read must place data into the buffer from this offset
193 // read tag
194 tag = read();
196 // read length
197 length = read();
209 length = read();
211 int ch = read();
212 length = (length << 8) + ch;//read();
884 protected int read() throws IOException { method in class:BerInputStream
893 int octet = in.read();
[all...]
/dalvik/libcore/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
H A DTestHelper_ClassLoader.java112 int count = theInput.read(theBytes, dataRead,
121 // Create the class from the bytes read in...
173 int count = theStream.read(theBytes, dataRead, theBytes.length
181 // System.out.println("loadClassFromJar: read " + dataRead + " bytes
184 // Create the class from the bytes read in...
/dalvik/libcore/sql/src/test/java/tests/SQLite/
H A DBlobTest.java147 assertEquals(4,is.read(b));
180 in.read();
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DGenericSignatureFormatErrorTest.java115 while ((b = is.read()) != -1) {
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DClientKeyExchange.java115 in.read(exchange_keys, 0, size);
H A DHandshakeIODataStream.java31 * for handshake layer. It provides read and write operations
35 * places the data at the beginning of the pipe, and read methods
41 * reasoned by the following: handshake protocol performs read
45 * The read operations of the stream presented by the methods
55 * 2. the read position should be reseted to marked,
93 // position of the next byte to read
96 // position of the last byte to read + 1
125 * the current read position. The method is usefull when it is needed
136 * read an opaque value;
141 public int read() throw method in class:HandshakeIODataStream
155 public byte[] read(int length) throws IOException { method in class:HandshakeIODataStream
166 public int read(byte[] dest, int offset, int length) throws IOException { method in class:HandshakeIODataStream
[all...]
/dalvik/tools/
H A Ddeadcode.py106 data = pipe.read()
/dalvik/libcore/luni/src/main/java/java/io/
H A DPipedReader.java45 * The circular buffer through which data is passed. Data is read from the
70 * The index in {@code buffer} where the next character will be read.
86 * must be connected to a {@code PipedWriter} before data may be read from
93 * {@code out}. Any data written to the writer can be read from the this
107 * the pipe and notifies all threads waiting to read or write.
153 * Separate threads should be used to read from a {@code PipedReader} and to
157 * @return the character read or -1 if the end of the reader has been
163 public int read() throws IOException { method in class:PipedReader
165 int result = read(carray, 0, 1);
173 * has been read, th
200 public synchronized int read(char[] buffer, int offset, int count) throws IOException { method in class:PipedReader
[all...]
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
H A DHttpURLConnectionTest.java103 int num = socket.getInputStream().read(buff);
108 num = socket.getInputStream().read(buff);
113 num = socket.getInputStream().read(buff);
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DHttpURLConnectionTest.java612 is.read();
618 is.read(buf);
624 is.read(buf, 0, 1);
657 assertEquals(4711, is.read());
663 is.read();
670 is.read(buf);
677 is.read(buf, 0, 1);
706 assertEquals(4711, uc.getInputStream().read());
967 is.read(array);
1063 public int read() throw method in class:HttpURLConnectionTest.MockInputStream
1067 public int read(byte[] arg0, int arg1, int arg2) throws IOException { method in class:HttpURLConnectionTest.MockInputStream
1071 public int read(byte[] arg0) throws IOException { method in class:HttpURLConnectionTest.MockInputStream
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DObjectInputStreamTest.java287 * @tests java.io.ObjectInputStream#read()
291 method = "read",
295 // Test for method int java.io.ObjectInputStream.read()
299 assertEquals("Read incorrect byte value", 'T', ois.read());
304 * @tests java.io.ObjectInputStream#read()
309 method = "read",
320 ois.read();
330 * @tests java.io.ObjectInputStream#read(byte[], int, int)
334 method = "read",
338 // Test for method int java.io.ObjectInputStream.read(byt
1429 public int read() throws IOException { method in class:ObjectInputStreamTest.ExceptionalBufferedInputStream
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/net/
H A DExcludedProxyTest.java105 while ((count2 = is2.read(b2)) > 0)
128 while ((count = is.read(b4)) > 0)
221 while ((count = is.read(b)) > 0) {
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/
H A DJarInputStreamTest.java362 method = "read",
378 length = jin.read(buffer);
396 method = "read",
411 length = jin.read(buffer);
422 method = "read",
440 length = jin.read(buffer);
458 method = "read",
476 length = jin.read(buffer);
610 method = "read",
621 jis.read(
[all...]
H A DJarFileTest.java60 iRead = is.read(buf, 0, buf.length);
501 int nextByte = is.read();
682 in.read();
797 jarFile.getInputStream(zipEntry).read(new byte[5000], 0, 5000);
859 * from getInputStream method has been read to end.
883 in.read(buffer);
1022 int r = is.read(b, 0, 1024);
1029 assertTrue("Incorrect stream read", contents.indexOf("bar") > 0);
1091 int res = jarFile.getInputStream(zipEntry).read(new byte[100], 0, 100);
1095 res = jarFile.getInputStream(zipEntry).read(ne
[all...]
H A DDalvikExecTest.java196 * dumping its contents read as a simple text resource.
282 count = input.read(buffer);
286 count = input.read(buffer);
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
H A DSocketChannelImpl.java368 * @see java.nio.channels.SocketChannel#read(java.nio.ByteBuffer)
371 public int read(ByteBuffer target) throws IOException { method in class:SocketChannelImpl
400 * @see java.nio.channels.SocketChannel#read(java.nio.ByteBuffer[], int,
404 public long read(ByteBuffer[] targets, int offset, int length) method in class:SocketChannelImpl
418 // read data to readBuffer, and then transfer data from readBuffer to
467 readCount = networkSystem.read(fd, array, offset, length,
583 * Status check, open and "connected", when read and write.
1040 * mode when performing read operations.
1058 * @see java.io.InputStream#read()
1061 public int read() throw method in class:SocketChannelImpl.SocketChannelInputStream
1076 public int read(byte[] buffer, int offset, int count) method in class:SocketChannelImpl.SocketChannelInputStream
[all...]
H A DFileChannelImpl.java183 // Forcing data-only on a read-only file is a no-op.
235 public int read(ByteBuffer buffer, long position) throws IOException { method in class:FileChannelImpl
251 bytesRead = read(buffer);
259 public int read(ByteBuffer buffer) throws IOException { method in class:FileChannelImpl
273 * if (bytesRead <= EOF) dealt by read completed = false;
285 * if (bytesRead <= EOF) dealt by read completed = false;
287 bytesRead = (int) fileSystem.read(handle, buffer.array(),
302 public long read(ByteBuffer[] buffers, int offset, int length) method in class:FileChannelImpl
422 src.read(buffer);
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java91 // read/connection timeout value
887 int read = bufIn.read(buf);
888 out.write(buf, 0, read);
1216 // the number of bytes read into the buffer
1230 num = is.read(buff);
1239 log("try to read client data");
1240 num = is.read(buff);
1261 // read response
1262 num = is.read(buf
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
H A DFtpURLConnection.java294 * Cannot read from URL or error creating InputStream
352 final int tmp = ctrlInput.read();
361 if (ctrlInput.read() == '-') {
416 while ((c = ctrlInput.read()) != '\n') {
449 * Set the flag if this <code>URLConnection</code> supports input (read).
472 * Set the flag if this <code>URLConnection</code> supports output(read).
/dalvik/dx/src/junit/textui/
H A DTestRunner.java129 System.in.read();
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
H A DOSFileSystem.java100 * Direct read/write APIs work on addresses.
108 * Indirect read/writes work on byte[]'s
113 public long read(int fileDescriptor, byte[] bytes, int offset, int length) method in class:OSFileSystem
/dalvik/libcore/luni/src/test/java/junit/textui/
H A DTestRunner.java129 System.in.read();
/dalvik/libcore/support/src/test/java/tests/support/
H A DSupport_TestWebData.java113 out.write(in.read());
/dalvik/libcore-disabled/sound/src/main/java/org/apache/harmony/sound/utils/
H A DProviderService.java148 in.read(bytes);
/dalvik/dx/src/junit/runner/
H A DTestCaseClassLoader.java147 while ((n= stream.read(b)) != -1)
178 int n= stream.read(data, pos, data.length - pos);

Completed in 477 milliseconds

1234567891011