/frameworks/rs/ |
rsFifoSocket.cpp | 76 size_t FifoSocket::read(void *data, size_t bytes) { function in class:FifoSocket 81 //ALOGE("read %p %i", data, bytes); 84 //ALOGE("read ret %i bytes %i", ret, bytes);
|
/libcore/crypto/src/main/java/org/conscrypt/ |
SSLInputStream.java | 26 * some additional read methods allowing to read TLS specific 41 * @see org.conscrypt.SSLStreamedInput#read() 42 * @see org.conscrypt.SSLBufferedInput#read() 43 * @see org.conscrypt.HandshakeIODataStream#read() 46 public abstract int read() throws IOException; method in class:SSLInputStream 52 return read() & 0x00FF; 59 return (read() << 8) | (read() & 0x00FF); 66 return (read() << 16) | (read() << 8) | (read() & 0x00FF) 92 public byte[] read(int length) throws IOException { method in class:SSLInputStream 101 public int read(byte[] b, int off, int len) throws IOException { method in class:SSLInputStream [all...] |
/libcore/luni/src/main/java/java/io/ |
ByteArrayInputStream.java | 137 * @return the byte read or -1 if the end of this stream has been reached. 140 public synchronized int read() { method in class:ByteArrayInputStream 144 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) { method in class:ByteArrayInputStream 175 * calls to {@code read} will not return these bytes unless {@code reset} is
|
FilterInputStream.java | 22 * the input data while it is being read. Transformations can be anything from a 69 * indicates how many bytes can be read before the mark is invalidated. 76 * the number of bytes that can be read from this stream before 107 * @return the byte read or -1 if the end of the filtered stream has been 113 public int read() throws IOException { method in class:FilterInputStream 114 return in.read(); 117 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:FilterInputStream 118 return in.read(buffer, byteOffset, byteCount); 128 * bytes have been read since setting the mark. 139 * calls to {@code read} will not return these bytes unless {@code reset} i [all...] |
FilterReader.java | 22 * input data while it is being read. Transformations can be anything from a 63 * indicates how many bytes can be read before the mark is invalidated. 70 * the number of bytes that can be read from this reader before 106 * @return The character read or -1 if the end of the filtered reader has 112 public int read() throws IOException { method in class:FilterReader 114 return in.read(); 121 * number of characters actually read or -1 if no characters were read and 128 public int read(char[] buffer, int offset, int count) throws IOException { method in class:FilterReader 130 return in.read(buffer, offset, count) [all...] |
InputStream.java | 26 * <p>Most clients will use input streams that read data from the file system 48 * #read() read()} and {@link #read(byte[],int,int) read(byte[],int,int)}. The 65 * Returns an estimated number of bytes that can be read or skipped without blocking for more 72 * blocking": a read may still block waiting for I/O to complete — the guarantee is 84 * read or skip will actually read or skip that many bytes: they may read or skip fewer 156 public abstract int read() throws IOException; method in class:InputStream 161 public int read(byte[] buffer) throws IOException { method in class:InputStream 176 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:InputStream [all...] |
Reader.java | 29 * needs to be subclassed, and at least the {@link #read(char[], int, int)} and 80 * indicates how many characters can be read before the mark is invalidated. 88 * the number of characters that can be read before the mark is 117 * @return the character read or -1 if the end of the reader has been 122 public int read() throws IOException { method in class:Reader 125 if (read(charArray, 0, 1) != -1) { 135 * actually read or -1 if the end of the reader has been reached. 140 public int read(char[] buffer) throws IOException { method in class:Reader 141 return read(buffer, 0, buffer.length); 147 * of characters actually read or -1 if the end of the reader has bee 153 public abstract int read(char[] buffer, int offset, int count) throws IOException; method in class:Reader [all...] |
SequenceInputStream.java | 42 * {@code s1} and {@code s2} as the sequence of streams to read from. 124 * an integer in the range from 0 to 255. It tries to read from the current 126 * the next one. Blocks until one byte has been read, the end of the last 129 * @return the byte read or -1 if either the end of the last stream in the 137 public int read() throws IOException { method in class:SequenceInputStream 139 int result = in.read(); 151 * Blocks only until at least 1 byte has been read, the end of the stream 155 * To do this it will read only as many bytes as a call to read on the 157 * requested by {@code byteCount}, it will not retry to read more on its ow 173 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:SequenceInputStream [all...] |
/libcore/luni/src/main/java/java/nio/channels/ |
DatagramChannel.java | 37 * invoking {@code read} or {@code write}, a connected channel is required. 39 * Datagram channels are thread-safe; only one thread can read or write at the 70 * Gets the valid operations of this channel. Datagram channels support read 104 * This method can be called at any time without affecting the read and 134 * This method can be called at any time without affecting the read and 156 * another thread that has started a read operation on the channel. 225 * behavior as the {@code read} method in the {@link ReadableByteChannel} 228 * @see java.nio.channels.ReadableByteChannel#read(java.nio.ByteBuffer) 231 * @return a non-negative number as the number of bytes read, or -1 as the 232 * read operation reaches the end of stream 247 public abstract int read(ByteBuffer target) throws IOException; method in class:DatagramChannel 287 public abstract long read(ByteBuffer[] targets, int offset, int length) method in class:DatagramChannel 319 public synchronized final long read(ByteBuffer[] targets) method in class:DatagramChannel [all...] |
SocketChannel.java | 43 * is used for the input side of a channel and subsequent read operations return 44 * -1, which means end of stream. If another thread is blocked in a read 45 * operation when the shutdown occurs, the read will end without effect and 52 * Socket channels are thread-safe, no more than one thread can read or write at 55 * processing, calls to {@code read} and {@code write} will block. 117 * connect, read and write operation, so this method returns 161 * This method can be called at any moment and can block other read and 205 * read} and {@code write} operations while connecting. 229 * The maximum number of bytes that will be read is the remaining number of 233 * The call may block if other threads are also attempting to read from thi 256 public abstract int read(ByteBuffer target) throws IOException; method in class:SocketChannel 293 public abstract long read(ByteBuffer[] targets, int offset, int length) throws IOException; method in class:SocketChannel 324 public synchronized final long read(ByteBuffer[] targets) throws IOException { method in class:SocketChannel [all...] |
/libcore/luni/src/main/java/java/security/ |
DigestInputStream.java | 80 * @return the byte which was read or -1 at end of stream. 85 public int read() throws IOException { method in class:DigestInputStream 86 // read the next byte 87 int byteRead = in.read(); 94 // return byte read 105 * <p>Returns the number of bytes actually read or -1 if the end of the 112 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:DigestInputStream 113 int bytesRead = in.read(buffer, byteOffset, byteCount); 120 // return number of bytes read
|
/libcore/luni/src/main/java/java/util/zip/ |
CheckedInputStream.java | 26 * same time as the data, on which the checksum is computed, is read from a 62 public int read() throws IOException { method in class:CheckedInputStream 63 int x = in.read(); 73 * updated with the bytes read. 74 * Returns the number of bytes actually read or {@code -1} if arrived at the 81 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:CheckedInputStream 82 int bytesRead = in.read(buffer, byteOffset, byteCount); 90 * Returns the checksum calculated on the stream read so far.
|
/libcore/luni/src/main/java/libcore/net/url/ |
FtpURLInputStream.java | 41 public int read() throws IOException { method in class:FtpURLInputStream 42 return is.read(); 46 public int read(byte[] buf, int off, int nbytes) throws IOException { method in class:FtpURLInputStream 47 return is.read(buf, off, nbytes);
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldStringBufferInputStreamTest.java | 28 // Test for method int java.io.StringBufferInputStream.read() 31 sbis.read(buf, 0, -1); 37 sbis.read(buf, -1, 1); 43 sbis.read(buf, 10, 1);
|
OldStringReaderTest.java | 42 sr.read(buf, 0, -1); 48 sr.read(buf, -1, 1); 54 sr.read(buf, 1, testString.length());
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherInputStreamTest.java | 33 * javax.crypto.CipherInputStream#read(byte[] b, int off, int len) 39 stream.read(new byte[1], 1, 0);
|
/libcore/luni/src/test/java/tests/api/org/xml/sax/support/ |
BrokenInputStream.java | 24 * IOException after having read a specified number of bytes. Used for 41 public int read() throws IOException { method in class:BrokenInputStream 47 return stream.read();
|
/libcore/support/src/test/java/tests/support/ |
Support_ASimpleInputStream.java | 63 public int read() throws IOException { method in class:Support_ASimpleInputStream
|
Support_ASimpleReader.java | 56 public int read(char[] dest, int offset, int count) throws IOException { method in class:Support_ASimpleReader
|
/packages/apps/Email/src/com/android/email/ |
FixedLengthInputStream.java | 23 * A filtering InputStream that stops allowing reads after the given length has been read. This 24 * is used to allow a client to read directly from an underlying protocol stream without reading 25 * past where the protocol handler intended the client to read. 43 public int read() throws IOException { method in class:FixedLengthInputStream 46 return mIn.read(); 53 public int read(byte[] b, int offset, int length) throws IOException { method in class:FixedLengthInputStream 55 int d = mIn.read(b, offset, Math.min(mLength - mCount, length)); 68 public int read(byte[] b) throws IOException { method in class:FixedLengthInputStream 69 return read(b, 0, b.length);
|
PeekableInputStream.java | 25 * and a subsequent read will still return the peeked byte. 37 public int read() throws IOException { method in class:PeekableInputStream 39 return mIn.read(); 48 mPeekedByte = read(); 55 public int read(byte[] b, int offset, int length) throws IOException { method in class:PeekableInputStream 57 return mIn.read(b, offset, length); 61 int r = mIn.read(b, offset + 1, length - 1); 71 public int read(byte[] b) throws IOException { method in class:PeekableInputStream 72 return read(b, 0, b.length);
|
/packages/apps/Exchange/src/com/android/exchange/ |
MockParserStream.java | 40 public int read() throws IOException { method in class:MockParserStream
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
AutoCloseInputStream.java | 32 * releasing resources once the last byte has been read) do not do that.
52 * This method is automatically called by the read methods when the end
72 * @throws IOException if the stream could not be read or closed
74 public int read() throws IOException {
method in class:AutoCloseInputStream 75 int n = in.read();
88 * @return number of bytes read, or -1 if no more bytes are available
89 * @throws IOException if the stream could not be read or closed
91 public int read(byte[] b) throws IOException {
method in class:AutoCloseInputStream 92 int n = in.read(b);
106 * @param len maximum number of bytes to read
110 public int read(byte[] b, int off, int len) throws IOException { method in class:AutoCloseInputStream [all...] |
CountingInputStream.java | 27 * read as expected.
49 * number read.
51 * @param b the buffer into which the data is read, not null
52 * @return the total number of bytes read into the buffer, -1 if end of stream
54 * @see java.io.InputStream#read(byte[])
56 public int read(byte[] b) throws IOException {
method in class:CountingInputStream 57 int found = super.read(b);
64 * keeping count of the number read.
66 * @param b the buffer into which the data is read, not null
68 * @param len the maximum number of bytes to read
73 public int read(byte[] b, int off, int len) throws IOException { method in class:CountingInputStream 87 public int read() throws IOException { method in class:CountingInputStream [all...] |
DemuxInputStream.java | 64 * Read byte from stream associated with current thread.
66 * @return the byte read from stream
70 public int read()
method in class:DemuxInputStream 76 return input.read();
|