Searched refs:read (Results 1 - 25 of 294) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java50 * 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 DBufferedInputStreamTest.java41 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 DIOUtil.java36 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 DInputStreamReaderTest.java40 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 DStringReaderTest.java35 assertEquals(str, IOUtil.read(a));
36 assertEquals("AbCdEfGhIj", IOUtil.read(b, 10));
H A DBufferedReaderTest.java40 assertEquals(str, IOUtil.read(a));
47 assertEquals("AbCdEfGhIj", IOUtil.read(b, 10));
H A DByteArrayInputStreamTest.java38 assertEquals(str, IOUtil.read(a));
39 assertEquals("AbCdEfGhIj", IOUtil.read(b, 10));
H A DCharArrayReaderTest.java37 assertEquals(str, IOUtil.read(a));
38 assertEquals("AbCdEfGhIj", IOUtil.read(b, 10));
H A DPushbackInputStreamTest.java37 assertEquals("pushAbCdEfGhIjKlM\nOpQrStUvWxYz", IOUtil.read(a));
45 assertEquals("XAbCdEfGhI", IOUtil.read(b, 10));
H A DPushbackReaderTest.java37 assertEquals("PUSHAbCdEfGhIjKlMnOpQrStUvWxYz", IOUtil.read(a));
45 assertEquals("XAbCdEfGhI", IOUtil.read(b, 10));
/frameworks/base/core/tests/coretests/src/android/net/
H A DLocalSocketTest.java46 // 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/libs/gui/
H A DSensor.cpp147 size_t read(void const* buffer, size_t offset, String8* value, int32_t len) { function in namespace:android
153 size_t read(void const* buffer, size_t offset, float* value) { function in namespace:android
159 size_t read(void const* buffer, size_t offset, int32_t* value) { function in namespace:android
169 offset += read(buffer, offset, &len);
170 offset += read(buffer, offset, &mName, len);
171 offset += read(buffer, offset, &len);
172 offset += read(buffer, offset, &mVendor, len);
173 offset += read(buffer, offset, &mHandle);
174 offset += read(buffer, offset, &mType);
175 offset += read(buffe
[all...]
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInputStream.java28 * 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 DAmrInputStream.java52 // 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 DResampleInputStream.java52 // 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 DSmsHeader.java127 int id = inStream.read();
128 int length = inStream.read();
134 concatRef.refNumber = inStream.read();
135 concatRef.msgCount = inStream.read();
136 concatRef.seqNumber = inStream.read();
145 concatRef.refNumber = (inStream.read() << 8) | inStream.read();
146 concatRef.msgCount = inStream.read();
147 concatRef.seqNumber = inStream.read();
156 portAddrs.destPort = inStream.read();
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DMemoryFileProviderTest.java42 int count = in.read(buf);
44 assertEquals(-1, in.read());
61 int count = in.read(buf);
76 int count = in.read(buf);
78 assertEquals(-1, in.read());
H A DAssetTest.java41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
51 readCount = is.read(buffer, 0, buffer.length);
55 readCount = is.read(buffer, buffer.length, 0);
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java33 * 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.
205 public int read() throws IOException { method in class:AssetFileDescriptor.AutoCloseInputStream
208 int res = super.read();
213 return super.read();
217 public int read(byte[] buffer, int offset, int count) throws IOException { method in class:AssetFileDescriptor.AutoCloseInputStream
221 int res = super.read(buffer, offset, count);
226 return super.read(buffer, offset, count);
230 public int read(byt method in class:AssetFileDescriptor.AutoCloseInputStream
324 public int read() throws IOException { method in class:AssetFileDescriptor.AutoCloseMemoryFileInputStream
329 public int read(byte[] buffer, int offset, int count) throws IOException { method in class:AssetFileDescriptor.AutoCloseMemoryFileInputStream
334 public int read(byte[] buffer) throws IOException { method in class:AssetFileDescriptor.AutoCloseMemoryFileInputStream
[all...]
/frameworks/base/core/java/android/speech/srec/
H A DUlawEncoderInputStream.java141 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 DWaveHeader.java177 * @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));
H A DMicrophoneInputStream.java57 public int read() throws IOException { method in class:MicrophoneInputStream
64 public int read(byte[] b) throws IOException { method in class:MicrophoneInputStream
70 public int read(byte[] b, int offset, int length) throws IOException { method in class:MicrophoneInputStream
/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp31 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { function in class:AssetStreamAdaptor
53 amount = fAsset->read(buffer, size);
55 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount);
/frameworks/base/obex/javax/obex/
H A DPrivateInputStream.java54 * Creates an input stream for the <code>Operation</code> to read from
65 * Returns the number of bytes that can be read (or skipped over) from this
69 * @return the number of bytes that can be read from this input stream
85 * @return the byte read from the input stream or -1 if it reaches the end of
90 public synchronized int read() throws IOException { method in class:PrivateInputStream
101 public int read(byte[] b) throws IOException { method in class:PrivateInputStream
102 return read(b, 0, b.length);
106 public synchronized int read(byte[] b, int offset, int length) throws IOException { method in class:PrivateInputStream
/frameworks/base/libs/surfaceflinger_client/
H A DLayerState.cpp44 status_t layer_state_t::read(const Parcel& input) function in class:android::layer_state_t
51 err = transparentRegion.read(buf);
57 input.read(this, size);

Completed in 291 milliseconds

1234567891011>>