/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothInputStream.java | 50 * reached. Blocks until one byte has been read, the end of the source 53 * @return the byte read or -1 if the end of stream has been reached. 58 public int read() throws IOException { method in class:BluetoothInputStream 60 int ret = mSocket.read(b, 0, 1); 73 * the byte array in which to store the bytes read. 76 * read from this stream. 79 * @return the number of bytes actually read or -1 if the end of the stream 89 public int read(byte[] b, int offset, int length) throws IOException { method in class:BluetoothInputStream 96 return mSocket.read(b, offset, length);
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | BufferedInputStreamTest.java | 41 assertEquals(str, IOUtil.read(a)); 48 assertEquals("AbCdEfGhIj", IOUtil.read(b, 10)); 62 assertEquals('A', d.read()); 64 assertEquals('b', d.read()); 65 assertEquals('C', d.read()); 67 assertEquals('b', d.read()); 76 assertEquals(str, IOUtil.read(e, 10000));
|
H A D | IOUtil.java | 36 public static String read(InputStream a) throws IOException { method in class:IOUtil 40 r = a.read(); 54 public static String read(Reader a) throws IOException { method in class:IOUtil 58 r = a.read(); 69 * @param x number of characters to read. 73 public static String read(InputStream a, int x) throws IOException { method in class:IOUtil 75 int len = a.read(b, 0, x); 86 * @param x the number of characters to read. 90 public static String read(Reader a, int x) throws IOException { method in class:IOUtil 92 int len = a.read( [all...] |
H A D | InputStreamReaderTest.java | 40 int x = a.read(); 43 x = a.read(c, 0, 26); 67 int x = a.read(); 71 x = a.read(c, 0, 3); 75 x = a.read(c, 3, 26); 105 int n = r.read(ca, 0, 600);
|
H A D | StringReaderTest.java | 35 assertEquals(str, IOUtil.read(a)); 36 assertEquals("AbCdEfGhIj", IOUtil.read(b, 10));
|
H A D | BufferedReaderTest.java | 40 assertEquals(str, IOUtil.read(a)); 47 assertEquals("AbCdEfGhIj", IOUtil.read(b, 10));
|
H A D | ByteArrayInputStreamTest.java | 38 assertEquals(str, IOUtil.read(a)); 39 assertEquals("AbCdEfGhIj", IOUtil.read(b, 10));
|
H A D | CharArrayReaderTest.java | 37 assertEquals(str, IOUtil.read(a)); 38 assertEquals("AbCdEfGhIj", IOUtil.read(b, 10));
|
H A D | PushbackInputStreamTest.java | 37 assertEquals("pushAbCdEfGhIjKlM\nOpQrStUvWxYz", IOUtil.read(a)); 45 assertEquals("XAbCdEfGhI", IOUtil.read(b, 10));
|
H A D | PushbackReaderTest.java | 37 assertEquals("PUSHAbCdEfGhIjKlMnOpQrStUvWxYz", IOUtil.read(a)); 45 assertEquals("XAbCdEfGhI", IOUtil.read(b, 10));
|
/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | LocalSocketTest.java | 46 // Test trivial read and write 49 assertEquals(42, ls1.getInputStream().read()); 62 assertEquals(42, ls1.getInputStream().read()); 71 assertEquals(1, ls.getInputStream().read()); 77 countRead = ls.getInputStream().read(buffer, 1, 15); 87 ls.getInputStream().read(buffer, 1, 16); 115 ls.getInputStream().read(buffer, -1, 15); 122 ls.getInputStream().read(buffer, 0, -1); 128 // Try read of length 0 130 countRead = ls1.getInputStream().read(buffe [all...] |
/frameworks/base/awt/javax/imageio/stream/ |
H A D | FileCacheImageInputStream.java | 74 public int read() throws IOException { method in class:FileCacheImageInputStream 78 int b = is.read(); 90 return raf.read(); 94 public int read(byte[] b, int off, int len) throws IOException { method in class:FileCacheImageInputStream 98 int nBytes = is.read(b, off, len); 111 int nBytes = raf.read(b, off, len);
|
H A D | FileImageInputStream.java | 75 public int read() throws IOException { method in class:FileImageInputStream 78 int res = raf.read(); 86 public int read(byte[] b, int off, int len) throws IOException { method in class:FileImageInputStream 89 int numRead = raf.read(b, off, len);
|
H A D | FileImageOutputStream.java | 86 public int read() throws IOException { method in class:FileImageOutputStream 88 int rt = file.read(); 96 public int read(byte[] b, int off, int len) throws IOException { method in class:FileImageOutputStream 98 int rt = file.read(b, off, len);
|
H A D | ImageInputStreamImpl.java | 92 public abstract int read() throws IOException; method in class:ImageInputStreamImpl 94 public int read(byte[] b) throws IOException { method in class:ImageInputStreamImpl 95 return read(b, 0, b.length); 98 public abstract int read(byte[] b, int off, int len) throws IOException; method in class:ImageInputStreamImpl 106 len = read(b, 0, b.length); 114 int b = read(); 122 int b = read(); 130 int b = read(); 138 int b1 = read(); 139 int b2 = read(); [all...] |
/frameworks/base/awt/org/apache/harmony/x/imageio/plugins/jpeg/ |
H A D | IISDecodingImageSource.java | 32 * the JPEGImageReader. Temporary, only to make JPEGImageReader#read(..) 63 public int read() throws IOException { method in class:IISDecodingImageSource.IISToInputStreamWrapper 64 return input.read(); 68 public int read(byte[] b) throws IOException { method in class:IISDecodingImageSource.IISToInputStreamWrapper 69 return input.read(b); 73 public int read(byte[] b, int off, int len) throws IOException { method in class:IISDecodingImageSource.IISToInputStreamWrapper 74 return input.read(b, off, len);
|
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupDataInputStream.java | 28 * is called, the current entity's header has already been read from the underlying 33 * source, nor read more than {@link #size()} bytes from the stream.</p> 54 * are read from the stream, the output of this method is undefined. 56 * @return The byte read, or undefined if the end of the stream has been reached. 58 public int read() throws IOException { method in class:BackupDataInputStream 71 * @param b Byte array into which the data will be read 74 * @param size The number of bytes to read in this operation. If insufficient 76 * will be read as is available. 77 * @return The number of bytes of data read, or zero if all of the entity's 78 * data has already been read 80 public int read(byte[] b, int offset, int size) throws IOException { method in class:BackupDataInputStream 93 public int read(byte[] b) throws IOException { method in class:BackupDataInputStream [all...] |
/frameworks/base/media/java/android/media/ |
H A D | AmrInputStream.java | 52 // helper for bytewise read() 66 public int read() throws IOException { method in class:AmrInputStream 67 int rtn = read(mOneByte, 0, 1); 72 public int read(byte[] b) throws IOException { method in class:AmrInputStream 73 return read(b, 0, b.length); 77 public int read(byte[] b, int offset, int length) throws IOException { method in class:AmrInputStream 88 int n = mInputStream.read(mBuf, i, SAMPLES_PER_FRAME * 2 - i);
|
H A D | ResampleInputStream.java | 52 // helper for bytewise read() 74 public int read() throws IOException { method in class:ResampleInputStream 75 int rtn = read(mOneByte, 0, 1); 80 public int read(byte[] b) throws IOException { method in class:ResampleInputStream 81 return read(b, 0, b.length); 85 public int read(byte[] b, int offset, int length) throws IOException { method in class:ResampleInputStream 98 // read until we have enough data for at least one output sample 106 int n = mInputStream.read(mBuf, mBufCount, mBuf.length - mBufCount);
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | SmsHeader.java | 119 int id = inStream.read(); 120 int length = inStream.read(); 126 concatRef.refNumber = inStream.read(); 127 concatRef.msgCount = inStream.read(); 128 concatRef.seqNumber = inStream.read(); 137 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); 138 concatRef.msgCount = inStream.read(); 139 concatRef.seqNumber = inStream.read(); 148 portAddrs.destPort = inStream.read(); [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | MemoryFileProviderTest.java | 41 int count = in.read(buf); 43 assertEquals(-1, in.read()); 60 int count = in.read(buf); 75 int count = in.read(buf); 77 assertEquals(-1, in.read());
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetFileDescriptor.java | 33 * opened FileDescriptor that can be used to read the data, as well as the 77 * Returns the FileDescriptor that can be used to read the data in the 114 * should be read to the end of the file. 201 public int read() throws IOException { method in class:AssetFileDescriptor.AutoCloseInputStream 204 int res = super.read(); 209 return super.read(); 213 public int read(byte[] buffer, int offset, int count) throws IOException { method in class:AssetFileDescriptor.AutoCloseInputStream 217 int res = super.read(buffer, offset, count); 222 return super.read(buffer, offset, count); 226 public int read(byt method in class:AssetFileDescriptor.AutoCloseInputStream 320 public int read() throws IOException { method in class:AssetFileDescriptor.AutoCloseMemoryFileInputStream 325 public int read(byte[] buffer, int offset, int count) throws IOException { method in class:AssetFileDescriptor.AutoCloseMemoryFileInputStream 330 public int read(byte[] buffer) throws IOException { method in class:AssetFileDescriptor.AutoCloseMemoryFileInputStream [all...] |
/frameworks/base/core/java/android/speech/srec/ |
H A D | UlawEncoderInputStream.java | 141 public int read(byte[] buf, int offset, int length) throws IOException { method in class:UlawEncoderInputStream 146 int n = mIn.read(mBuf, mBufCount, Math.min(length * 2, mBuf.length - mBufCount)); 163 public int read(byte[] buf) throws IOException { method in class:UlawEncoderInputStream 164 return read(buf, 0, buf.length); 168 public int read() throws IOException { method in class:UlawEncoderInputStream 169 int n = read(mOneByte, 0, 1);
|
H A D | WaveHeader.java | 177 * @param in {@link java.io.InputStream} to read from. 181 public int read(InputStream in) throws IOException { method in class:WaveHeader 212 if (id.charAt(i) != in.read()) throw new IOException( id + " tag not present"); 217 return in.read() | (in.read() << 8) | (in.read() << 16) | (in.read() << 24); 221 return (short)(in.read() | (in.read() << 8));
|
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/ |
H A D | ustdxept.cpp | 49 void error_message::read (istream& is) function in class:ustl::error_message 51 exception::read (is);
|