Home
last modified time | relevance | path

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

12345678910>>...29

/frameworks/native/libs/gui/
DSensor.cpp157 size_t read(void const* buffer, size_t offset, String8* value, int32_t len) { in read() function
163 size_t read(void const* buffer, size_t offset, float* value) { in read() function
169 size_t read(void const* buffer, size_t offset, int32_t* value) { in read() function
179 offset += read(buffer, offset, &len); in unflatten()
180 offset += read(buffer, offset, &mName, len); in unflatten()
181 offset += read(buffer, offset, &len); in unflatten()
182 offset += read(buffer, offset, &mVendor, len); in unflatten()
183 offset += read(buffer, offset, &mVersion); in unflatten()
184 offset += read(buffer, offset, &mHandle); in unflatten()
185 offset += read(buffer, offset, &mType); in unflatten()
[all …]
DLayerState.cpp45 status_t layer_state_t::read(const Parcel& input) in read() function in android::layer_state_t
52 err = transparentRegion.read(buf); in read()
58 input.read(this, size); in read()
67 status_t ComposerState::read(const Parcel& input) { in read() function in android::ComposerState
69 return state.read(input); in read()
/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/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/compile/linkloader/include/impl/
DELFSection.hxx34 ELFSection<Bitwidth>::read(Archiver &AR, in read() function in ELFSection
46 return ELFSectionStrTabTy::read(AR, sh); in read()
49 return ELFSectionSymTabTy::read(AR, owner, sh); in read()
52 return ELFSectionProgBitsTy::read(AR, owner, sh); in read()
55 return ELFSectionNoBitsTy::read(AR, sh); in read()
59 return ELFSectionRelTableTy::read(AR, sh); in read()
/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()
402 bytesReceived = mInput.read(temp); in sendReply()
405 bytesReceived += mInput.read(temp, bytesReceived, in sendReply()
446 bytesReceived = mInput.read(data); in sendReply()
[all …]
/frameworks/base/core/java/android/content/pm/
DLimitedLengthInputStream.java58 public synchronized int read() throws IOException { in read() method in LimitedLengthInputStream
64 return super.read(); in read()
68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { in read() method in LimitedLengthInputStream
84 final int numRead = super.read(buffer, offset, byteCount); in read()
91 public int read(byte[] buffer) throws IOException { in read() method in LimitedLengthInputStream
92 return read(buffer, 0, buffer.length); in read()
DMacAuthenticatedInputStream.java62 public int read() throws IOException { in read() method in MacAuthenticatedInputStream
63 final int b = super.read(); in read()
71 public int read(byte[] buffer, int offset, int count) throws IOException { in read() method in MacAuthenticatedInputStream
72 int numRead = super.read(buffer, offset, count); in read()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java933 int paramBits = inStream.read(8) * 8; in decodeMessageId()
937 bData.messageType = inStream.read(4); in decodeMessageId()
938 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
939 bData.messageId |= inStream.read(8); in decodeMessageId()
940 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
955 int paramBits = inStream.read(8) * 8; in decodeUserData()
957 bData.userData.msgEncoding = inStream.read(5); in decodeUserData()
963 bData.userData.msgType = inStream.read(8); in decodeUserData()
966 bData.userData.numFields = inStream.read(8); in decodeUserData()
1014 int charCode = inStream.read(7); in decode7bitAscii()
[all …]
/frameworks/base/media/java/android/media/
DAmrInputStream.java65 public int read() throws IOException { in read() method in AmrInputStream
66 int rtn = read(mOneByte, 0, 1); in read()
71 public int read(byte[] b) throws IOException { in read() method in AmrInputStream
72 return read(b, 0, b.length); in read()
76 public int read(byte[] b, int offset, int length) throws IOException { in read() method in AmrInputStream
87 int n = mInputStream.read(mBuf, i, SAMPLES_PER_FRAME * 2 - i); in read()
DResampleInputStream.java73 public int read() throws IOException { in read() method in ResampleInputStream
74 int rtn = read(mOneByte, 0, 1); in read()
79 public int read(byte[] b) throws IOException { in read() method in ResampleInputStream
80 return read(b, 0, b.length); in read()
84 public int read(byte[] b, int offset, int length) throws IOException { in read() method in ResampleInputStream
105 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/native/opengl/libs/EGL/
Degl_object.cpp92 config(config), read(0), draw(0), cnx(cnx), version(version) { in egl_context_t()
96 read = NULL; in onLooseCurrent()
100 void egl_context_t::onMakeCurrent(EGLSurface draw, EGLSurface read) { in onMakeCurrent() argument
101 this->read = read; in onMakeCurrent()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DLimitedLengthInputStreamTest.java89 assertEquals(length, is.read(temp, 0, temp.length)); in checkReadBytesWithOffsetAndLength_WithString1()
94 assertEquals(-1, is.read(temp, 0, temp.length)); in checkReadBytesWithOffsetAndLength_WithString1()
124 assertEquals(TEST_STRING1.length, is.read(temp, 0, TEST_STRING1.length + 10)); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
139 assertEquals(length, is.read(temp)); in checkReadBytes_WithString1()
144 assertEquals(-1, is.read(temp)); in checkReadBytes_WithString1()
171 assertEquals(TEST_STRING1[offset + i], is.read()); in checkSingleByteRead_WithString1()
174 assertEquals(-1, is.read()); in checkSingleByteRead_WithString1()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProviderTest.java42 int count = in.read(buf); in testRead()
44 assertEquals(-1, in.read()); in testRead()
60 int count = in.read(buf); in testClose()
75 int count = in.read(buf); in testFile()
77 assertEquals(-1, in.read()); in testFile()
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java188 public int read() throws IOException { in read() method in AssetFileDescriptor.AutoCloseInputStream
190 int result = read(buffer, 0, 1); in read()
195 public int read(byte[] buffer, int offset, int count) throws IOException { in read() method in AssetFileDescriptor.AutoCloseInputStream
199 int res = super.read(buffer, offset, count); in read()
204 return super.read(buffer, offset, count); in read()
208 public int read(byte[] buffer) throws IOException { in read() method in AssetFileDescriptor.AutoCloseInputStream
209 return read(buffer, 0, buffer.length); in read()
/frameworks/base/core/java/com/android/internal/util/
DProcFileReader.java63 final int read = mStream.read(mBuffer, mTail, length); in fillBuf() local
64 if (read != -1) { in fillBuf()
65 mTail += read; in fillBuf()
67 return read; in fillBuf()
/frameworks/av/media/mtp/
DMtpDevice.cpp316 info->read(mData); in getDeviceInfo()
349 info->read(mData); in getStorageInfo()
388 info->read(mData); in getObjectInfo()
472 int count = read(srcFD, buffer, sizeof(buffer)); in sendObject()
550 property->read(mData); in getDevicePropDesc()
569 property->read(mData); in getObjectPropDesc()
642 int read = mData.readDataWait(mDevice); in readObject() local
643 if (read < 0) in readObject()
646 if (read > 0) { in readObject()
648 writeLength = read; in readObject()
[all …]
/frameworks/av/media/libmedia/
DICrypto.cpp150 reply.read(dstPtr, totalSize); in decrypt()
179 data.read(uuid, sizeof(uuid)); in onTransact()
190 data.read(uuid, sizeof(uuid)); in onTransact()
197 data.read(opaqueData, opaqueSize); in onTransact()
236 data.read(key, sizeof(key)); in onTransact()
239 data.read(iv, sizeof(iv)); in onTransact()
243 data.read(srcData, totalSize); in onTransact()
250 data.read( in onTransact()
/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/tests/CoreTests/android/core/
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()

12345678910>>...29