/frameworks/native/libs/gui/ |
D | Sensor.cpp | 157 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 …]
|
D | LayerState.cpp | 45 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/ |
D | LocalSocketTest.java | 49 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/ |
D | SmsHeader.java | 127 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/ |
D | ELFSection.hxx | 34 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/ |
D | ServerSession.java | 94 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 …]
|
D | ClientSession.java | 435 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()
|
D | ServerOperation.java | 153 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/ |
D | LimitedLengthInputStream.java | 58 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()
|
D | MacAuthenticatedInputStream.java | 62 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/ |
D | BearerData.java | 933 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/ |
D | AmrInputStream.java | 65 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()
|
D | ResampleInputStream.java | 73 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/ |
D | WaveHeader.java | 181 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()
|
D | UlawEncoderInputStream.java | 141 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/ |
D | BluetoothInputStream.java | 58 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/ |
D | egl_object.cpp | 92 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/ |
D | LimitedLengthInputStreamTest.java | 89 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/ |
D | MemoryFileProviderTest.java | 42 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/ |
D | AssetFileDescriptor.java | 188 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/ |
D | ProcFileReader.java | 63 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/ |
D | MtpDevice.cpp | 316 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/ |
D | ICrypto.cpp | 150 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/ |
D | DrmRawContent.java | 303 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/ |
D | TestWebServer.java | 437 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()
|