Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 416) sorted by relevance

12345678910>>...17

/frameworks/base/tests/CoreTests/android/core/
DIOUtil.java36 public static String read(InputStream a) throws IOException { in read() method in IOUtil
40 r = a.read(); in read()
54 public static String read(Reader a) throws IOException { in read() method in IOUtil
58 r = a.read(); in read()
73 public static String read(InputStream a, int x) throws IOException { in read() method in IOUtil
75 int len = a.read(b, 0, x); in read()
90 public static String read(Reader a, int x) throws IOException { in read() method in IOUtil
92 int len = a.read(b, 0, x); in read()
112 r = a.read(); in skipRead()
131 r = a.read(); in skipRead()
[all …]
DBufferedInputStreamTest.java41 assertEquals(str, IOUtil.read(a)); in testBufferedInputStream()
48 assertEquals("AbCdEfGhIj", IOUtil.read(b, 10)); in testBufferedInputStream()
62 assertEquals('A', d.read()); in testBufferedInputStream()
64 assertEquals('b', d.read()); in testBufferedInputStream()
65 assertEquals('C', d.read()); in testBufferedInputStream()
67 assertEquals('b', d.read()); in testBufferedInputStream()
76 assertEquals(str, IOUtil.read(e, 10000)); in testBufferedInputStream()
DInputStreamReaderTest.java40 int x = a.read(); in testAscii()
43 x = a.read(c, 0, 26); in testAscii()
67 int x = a.read(); in testUtf8()
71 x = a.read(c, 0, 3); in testUtf8()
75 x = a.read(c, 3, 26); in testUtf8()
105 int n = r.read(ca, 0, 600); in testStringy()
DTestWebServer.java437 int read = 0; in readOneLine() local
443 int data = is.read(); in readOneLine()
450 buf[read] = (byte)data; in readOneLine()
455 if (buf[read++]==(byte)'\n') { in readOneLine()
457 return read; in readOneLine()
464 return read; in readOneLine()
474 int read = 0; in readData() local
481 count = is.read(buf, read, length-read); in readData()
482 read += count; in readData()
488 return read; in readData()
DZipFileTest.java150 totalLen1 = stream1.read(buf); in read2()
156 totalLen2 = stream2.read(buf); in read2()
164 while ((len = stream1.read(buf)) > 0) { in read2()
173 while ((len = stream2.read(buf)) > 0) { in read2()
192 stream1.read(buf); in read2()
/frameworks/base/core/tests/coretests/src/android/net/
DLocalSocketTest.java49 assertEquals(42, ls1.getInputStream().read()); in testBasic()
62 assertEquals(42, ls1.getInputStream().read()); in testBasic()
71 assertEquals(1, ls.getInputStream().read()); in testBasic()
77 countRead = ls.getInputStream().read(buffer, 1, 15); in testBasic()
87 ls.getInputStream().read(buffer, 1, 16); in testBasic()
115 ls.getInputStream().read(buffer, -1, 15); in testBasic()
122 ls.getInputStream().read(buffer, 0, -1); in testBasic()
130 countRead = ls1.getInputStream().read(buffer, 0, 0); in testBasic()
132 assertEquals(42, ls1.getInputStream().read()); in testBasic()
150 ls.getInputStream().read(); in testBasic()
[all …]
/frameworks/base/libs/gui/
DSensor.cpp147 size_t read(void const* buffer, size_t offset, String8* value, int32_t len) { in read() function
153 size_t read(void const* buffer, size_t offset, float* value) { in read() function
159 size_t read(void const* buffer, size_t offset, int32_t* value) { in read() function
169 offset += read(buffer, offset, &len); in unflatten()
170 offset += read(buffer, offset, &mName, len); in unflatten()
171 offset += read(buffer, offset, &len); in unflatten()
172 offset += read(buffer, offset, &mVendor, len); in unflatten()
173 offset += read(buffer, offset, &mHandle); in unflatten()
174 offset += read(buffer, offset, &mType); in unflatten()
175 offset += read(buffer, offset, &mMinValue); in unflatten()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsHeader.java127 int id = inStream.read(); in fromByteArray()
128 int length = inStream.read(); in fromByteArray()
134 concatRef.refNumber = inStream.read(); in fromByteArray()
135 concatRef.msgCount = inStream.read(); in fromByteArray()
136 concatRef.seqNumber = inStream.read(); in fromByteArray()
145 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); in fromByteArray()
146 concatRef.msgCount = inStream.read(); in fromByteArray()
147 concatRef.seqNumber = inStream.read(); in fromByteArray()
156 portAddrs.destPort = inStream.read(); in fromByteArray()
157 portAddrs.origPort = inStream.read(); in fromByteArray()
[all …]
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java205 public int read() throws IOException { in read() method in AssetFileDescriptor.AutoCloseInputStream
208 int res = super.read(); in read()
213 return super.read(); in read()
217 public int read(byte[] buffer, int offset, int count) throws IOException { in read() method in AssetFileDescriptor.AutoCloseInputStream
221 int res = super.read(buffer, offset, count); in read()
226 return super.read(buffer, offset, count); in read()
230 public int read(byte[] buffer) throws IOException { in read() method in AssetFileDescriptor.AutoCloseInputStream
235 int res = super.read(buffer, 0, count); in read()
240 return super.read(buffer); in read()
324 public int read() throws IOException { in read() method in AssetFileDescriptor.AutoCloseMemoryFileInputStream
[all …]
/frameworks/base/obex/javax/obex/
DServerSession.java94 int requestType = mInput.read(); in run()
133 int length = mInput.read(); in run()
134 length = (length << 8) + mInput.read(); in run()
136 mInput.read(); in run()
164 int length = mInput.read(); in handleAbortRequest()
165 length = (length << 8) + mInput.read(); in handleAbortRequest()
170 mInput.read(); in handleAbortRequest()
298 length = mInput.read(); in handleSetPathRequest()
299 length = (length << 8) + mInput.read(); in handleSetPathRequest()
300 flags = mInput.read(); in handleSetPathRequest()
[all …]
DClientSession.java435 header.responseCode = mInput.read(); in sendRequest()
437 int length = ((mInput.read() << 8) | (mInput.read())); in sendRequest()
446 int version = mInput.read(); in sendRequest()
448 int flags = mInput.read(); in sendRequest()
449 maxPacketSize = (mInput.read() << 8) + mInput.read(); in sendRequest()
459 bytesReceived = mInput.read(data); in sendRequest()
461 bytesReceived += mInput.read(data, bytesReceived, data.length in sendRequest()
469 bytesReceived = mInput.read(data); in sendRequest()
472 bytesReceived += mInput.read(data, bytesReceived, data.length - bytesReceived); in sendRequest()
DServerOperation.java153 int length = in.read(); in ServerOperation()
154 length = (length << 8) + in.read(); in ServerOperation()
169 bytesReceived = in.read(data); in ServerOperation()
172 bytesReceived += in.read(data, bytesReceived, data.length - bytesReceived); in ServerOperation()
391 int headerID = mInput.read(); in sendReply()
392 int length = mInput.read(); in sendReply()
393 length = (length << 8) + mInput.read(); in sendReply()
401 bytesReceived = mInput.read(temp); in sendReply()
404 bytesReceived += mInput.read(temp, bytesReceived, length - bytesReceived); in sendReply()
444 bytesReceived = mInput.read(data); in sendReply()
[all …]
DPrivateInputStream.java90 public synchronized int read() throws IOException { in read() method in PrivateInputStream
101 public int read(byte[] b) throws IOException { in read() method in PrivateInputStream
102 return read(b, 0, b.length); in read()
106 public synchronized int read(byte[] b, int offset, int length) throws IOException { in read() method in PrivateInputStream
/frameworks/base/media/java/android/media/
DAmrInputStream.java66 public int read() throws IOException { in read() method in AmrInputStream
67 int rtn = read(mOneByte, 0, 1); in read()
72 public int read(byte[] b) throws IOException { in read() method in AmrInputStream
73 return read(b, 0, b.length); in read()
77 public int read(byte[] b, int offset, int length) throws IOException { in read() method in AmrInputStream
88 int n = mInputStream.read(mBuf, i, SAMPLES_PER_FRAME * 2 - i); in read()
DResampleInputStream.java74 public int read() throws IOException { in read() method in ResampleInputStream
75 int rtn = read(mOneByte, 0, 1); in read()
80 public int read(byte[] b) throws IOException { in read() method in ResampleInputStream
81 return read(b, 0, b.length); in read()
85 public int read(byte[] b, int offset, int length) throws IOException { in read() method in ResampleInputStream
106 int n = mInputStream.read(mBuf, mBufCount, mBuf.length - mBufCount); in read()
/frameworks/base/core/java/android/speech/srec/
DWaveHeader.java181 public int read(InputStream in) throws IOException { in read() method in WaveHeader
212 if (id.charAt(i) != in.read()) throw new IOException( id + " tag not present"); in readId()
217 return in.read() | (in.read() << 8) | (in.read() << 16) | (in.read() << 24); in readInt()
221 return (short)(in.read() | (in.read() << 8)); in readShort()
DUlawEncoderInputStream.java141 public int read(byte[] buf, int offset, int length) throws IOException { in read() method in UlawEncoderInputStream
146 int n = mIn.read(mBuf, mBufCount, Math.min(length * 2, mBuf.length - mBufCount)); in read()
163 public int read(byte[] buf) throws IOException { in read() method in UlawEncoderInputStream
164 return read(buf, 0, buf.length); in read()
168 public int read() throws IOException { in read() method in UlawEncoderInputStream
169 int n = read(mOneByte, 0, 1); in read()
/frameworks/base/core/java/android/bluetooth/
DBluetoothInputStream.java58 public int read() throws IOException { in read() method in BluetoothInputStream
60 int ret = mSocket.read(b, 0, 1); in read()
89 public int read(byte[] b, int offset, int length) throws IOException { in read() method in BluetoothInputStream
96 return mSocket.read(b, offset, length); in read()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java875 int paramBits = inStream.read(8) * 8; in decodeMessageId()
879 bData.messageType = inStream.read(4); in decodeMessageId()
880 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
881 bData.messageId |= inStream.read(8); in decodeMessageId()
882 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
897 int paramBits = inStream.read(8) * 8; in decodeUserData()
899 bData.userData.msgEncoding = inStream.read(5); in decodeUserData()
905 bData.userData.msgType = inStream.read(8); in decodeUserData()
908 bData.userData.numFields = inStream.read(8); in decodeUserData()
952 int charCode = inStream.read(7); in decode7bitAscii()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProviderTest.java42 int count = in.read(buf); in testRead()
44 assertEquals(-1, in.read()); in testRead()
61 int count = in.read(buf); in testClose()
76 int count = in.read(buf); in testFile()
78 assertEquals(-1, in.read()); in testFile()
DAssetTest.java41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { in verifyTextAsset()
51 readCount = is.read(buffer, 0, buffer.length); in verifyTextAsset()
55 readCount = is.read(buffer, buffer.length, 0); in verifyTextAsset()
/frameworks/base/core/java/android/app/backup/
DBackupDataInputStream.java58 public int read() throws IOException { in read() method in BackupDataInputStream
80 public int read(byte[] b, int offset, int size) throws IOException { in read() method in BackupDataInputStream
93 public int read(byte[] b) throws IOException { in read() method in BackupDataInputStream
/frameworks/base/media/java/android/drm/mobile1/
DDrmRawContent.java303 public int read() throws IOException { in read() method in DrmRawContent.DrmInputStream
306 res = read(b, 0, 1); in read()
317 public int read(byte[] b) throws IOException { in read() method in DrmRawContent.DrmInputStream
318 return read(b, 0, b.length); in read()
324 public int read(byte[] b, int off, int len) throws IOException { in read() method in DrmRawContent.DrmInputStream
/frameworks/base/libs/surfaceflinger_client/
DLayerState.cpp44 status_t layer_state_t::read(const Parcel& input) in read() function in android::layer_state_t
51 err = transparentRegion.read(buf); in read()
57 input.read(this, size); in read()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DBitwiseStreamsTest.java44 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testOne()
58 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testTwo()
72 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testThree()
89 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testFour()
110 assertEquals(valueArr[i], inStream.read(sizeArr[i])); in testFive()
130 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testSix()

12345678910>>...17