Home
last modified time | relevance | path

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

12345678910>>...34

/frameworks/native/libs/binder/rust/tests/
Dserialization.rs119 assert_eq!(parcel.read::<bool>()?, true); in on_transact()
120 assert_eq!(parcel.read::<bool>()?, false); in on_transact()
121 assert_eq!(parcel.read::<Vec<bool>>()?, unsafe { in on_transact()
124 assert_eq!(parcel.read::<Option<Vec<bool>>>()?, None); in on_transact()
132 assert_eq!(parcel.read::<i8>()?, 0); in on_transact()
133 assert_eq!(parcel.read::<i8>()?, 1); in on_transact()
134 assert_eq!(parcel.read::<i8>()?, i8::max_value()); in on_transact()
135 assert_eq!(parcel.read::<Vec<i8>>()?, unsafe { bindings::TESTDATA_I8 }); in on_transact()
136 assert_eq!(parcel.read::<Vec<u8>>()?, unsafe { bindings::TESTDATA_U8 }); in on_transact()
137 assert_eq!(parcel.read::<Option<Vec<i8>>>()?, None); in on_transact()
[all …]
/frameworks/native/libs/binder/rust/src/
Dparcel.rs218 pub fn read<D: Deserialize>(&self) -> Result<D> { in read() method
228 let len: i32 = self.read()?; in resize_out_vec()
251 let len: i32 = self.read()?; in resize_nullable_out_vec()
361 assert_eq!(parcel.read::<bool>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
362 assert_eq!(parcel.read::<i8>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
363 assert_eq!(parcel.read::<u16>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
364 assert_eq!(parcel.read::<i32>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
365 assert_eq!(parcel.read::<u32>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
366 assert_eq!(parcel.read::<i64>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
367 assert_eq!(parcel.read::<u64>(), Err(StatusCode::NOT_ENOUGH_DATA)); in test_read_write()
[all …]
/frameworks/av/media/libstagefright/foundation/
DAudioPresentationInfo.cpp87 serializedInput->read(reinterpret_cast<char*>(&numPresentations), sizeof(numPresentations)); in deserializeAudioPresentations()
90 serializedInput->read(reinterpret_cast<char*>(&version), sizeof(version)); in deserializeAudioPresentations()
93 serializedInput->read( in deserializeAudioPresentations()
96 serializedInput->read(reinterpret_cast<char*>(&ap.mProgramId), sizeof(ap.mProgramId)); in deserializeAudioPresentations()
99 serializedInput->read(reinterpret_cast<char*>(&numLabels), sizeof(numLabels)); in deserializeAudioPresentations()
102 serializedInput->read(reinterpret_cast<char*>(&labelKeySize), sizeof(labelKeySize)); in deserializeAudioPresentations()
104 serializedInput->read(labelKey.data(), labelKeySize); in deserializeAudioPresentations()
107 serializedInput->read(reinterpret_cast<char*>(&labelValSize), sizeof(labelValSize)); in deserializeAudioPresentations()
109 serializedInput->read(labelVal.data(), labelValSize); in deserializeAudioPresentations()
115 serializedInput->read(reinterpret_cast<char*>(&languageSize), sizeof(languageSize)); in deserializeAudioPresentations()
[all …]
/frameworks/base/obex/javax/obex/
DObexPacket.java39 public static ObexPacket read(InputStream is) throws IOException { in read() method in ObexPacket
40 int headerId = is.read(); in read()
41 return read(headerId, is); in read()
51 public static ObexPacket read(int headerId, InputStream is) throws IOException { in read() method in ObexPacket
53 int length = is.read(); in read()
54 length = (length << 8) + is.read(); in read()
63 bytesReceived = is.read(temp); in read()
65 bytesReceived += is.read(temp, bytesReceived, temp.length - bytesReceived); in read()
DServerSession.java98 int requestType = mInput.read(); in run()
137 int length = mInput.read(); in run()
138 length = (length << 8) + mInput.read(); in run()
140 mInput.read(); in run()
168 int length = mInput.read(); in handleAbortRequest()
169 length = (length << 8) + mInput.read(); in handleAbortRequest()
174 mInput.read(); in handleAbortRequest()
308 length = mInput.read(); in handleSetPathRequest()
309 length = (length << 8) + mInput.read(); in handleSetPathRequest()
310 flags = mInput.read(); in handleSetPathRequest()
[all …]
/frameworks/native/libs/gui/
DIGraphicBufferProducerFlattenables.cpp86 FlattenableUtils::read(buffer, size, timestamp); in unflatten()
87 FlattenableUtils::read(buffer, size, isAutoTimestamp); in unflatten()
88 FlattenableUtils::read(buffer, size, dataSpace); in unflatten()
89 FlattenableUtils::read(buffer, size, crop); in unflatten()
90 FlattenableUtils::read(buffer, size, scalingMode); in unflatten()
91 FlattenableUtils::read(buffer, size, transform); in unflatten()
92 FlattenableUtils::read(buffer, size, stickyTransform); in unflatten()
93 FlattenableUtils::read(buffer, size, getFrameTimestamps); in unflatten()
110 FlattenableUtils::read(buffer, size, slot); in unflatten()
158 FlattenableUtils::read(buffer, size, width); in unflatten()
[all …]
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/util/
DStreamUtil.java34 public int read() throws IOException { in getInputStream()
35 return is.read(); in getInputStream()
40 public int read(byte[] b) throws IOException { in getInputStream() method in StreamUtil
41 return read(b, 0, b.length); in getInputStream()
46 public int read(byte[] b, int off, int len) throws IOException { in getInputStream() method in StreamUtil
48 byte[] read = is.read(off, len); in getInputStream()
49 int actualLength = Math.min(len, read.length); in getInputStream()
50 System.arraycopy(read, 0, b, off, actualLength); in getInputStream()
/frameworks/base/core/tests/coretests/src/android/net/
DLocalSocketTest.java61 assertEquals(42, ls1.getInputStream().read()); in testBasic()
74 assertEquals(42, ls1.getInputStream().read()); in testBasic()
83 assertEquals(1, ls.getInputStream().read()); in testBasic()
89 countRead = ls.getInputStream().read(buffer, 1, 15); in testBasic()
99 ls.getInputStream().read(buffer, 1, 16); in testBasic()
127 ls.getInputStream().read(buffer, -1, 15); in testBasic()
134 ls.getInputStream().read(buffer, 0, -1); in testBasic()
142 countRead = ls1.getInputStream().read(buffer, 0, 0); in testBasic()
144 assertEquals(42, ls1.getInputStream().read()); in testBasic()
162 ls.getInputStream().read(); in testBasic()
[all …]
/frameworks/multidex/library/test/src/androidx/multidex/
DZipUtilTest.java75 int read = raf.read(dirData, off, length); in testCrcRange() local
79 length -= read; in testCrcRange()
80 off += read; in testCrcRange()
122 int read = in.read(buffer); in testCrcValue() local
123 while (read != -1) { in testCrcValue()
124 out.write(buffer, 0, read); in testCrcValue()
125 read = in.read(buffer); in testCrcValue()
152 int read = in.read(buffer); in testInvalidCrcValue() local
153 while (read != -1) { in testInvalidCrcValue()
154 out.write(buffer, 0, read); in testInvalidCrcValue()
[all …]
/frameworks/base/services/core/java/com/android/server/integrity/parser/
DRandomAccessObject.java31 public abstract int read() throws IOException; in read() method in RandomAccessObject
34 public abstract int read(byte[] bytes, int off, int len) throws IOException; in read() method in RandomAccessObject
73 public int read() throws IOException { in read() method in RandomAccessObject.RandomAccessFileObject
74 return mRandomAccessFile.read(); in read()
78 public int read(byte[] bytes, int off, int len) throws IOException { in read() method in RandomAccessObject.RandomAccessFileObject
79 return mRandomAccessFile.read(bytes, off, len); in read()
107 public int read() throws IOException { in read() method in RandomAccessObject.RandomAccessByteArrayObject
116 public int read(byte[] bytes, int off, int len) throws IOException { in read() method in RandomAccessObject.RandomAccessByteArrayObject
DLimitInputStream.java43 public int read() throws IOException { in read() method in LimitInputStream
48 return super.read(); in read()
52 public int read(byte[] b) throws IOException { in read() method in LimitInputStream
53 return read(b, 0, b.length); in read()
57 public int read(byte[] b, int off, int len) throws IOException { in read() method in LimitInputStream
65 int result = super.read(b, off, Math.min(len, available)); in read()
DRandomAccessInputStream.java56 public int read() throws IOException { in read() method in RandomAccessInputStream
61 return mRandomAccessObject.read(); in read()
65 public int read(byte[] b) throws IOException { in read() method in RandomAccessInputStream
66 return read(b, 0, b.length); in read()
70 public int read(byte[] b, int off, int len) throws IOException { in read() method in RandomAccessInputStream
78 int result = mRandomAccessObject.read(b, off, Math.min(len, available)); in read()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsHeader.java233 int id = inStream.read(); in fromByteArray()
234 int length = inStream.read(); in fromByteArray()
240 concatRef.refNumber = inStream.read(); in fromByteArray()
241 concatRef.msgCount = inStream.read(); in fromByteArray()
242 concatRef.seqNumber = inStream.read(); in fromByteArray()
251 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); in fromByteArray()
252 concatRef.msgCount = inStream.read(); in fromByteArray()
253 concatRef.seqNumber = inStream.read(); in fromByteArray()
262 portAddrs.destPort = inStream.read(); in fromByteArray()
263 portAddrs.origPort = inStream.read(); in fromByteArray()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DParserFactory.java96 int read = stream.read(buffer); in readAndClose() local
101 if (read + avail > buffer.length) { in readAndClose()
104 byte[] moreBuffer = new byte[read + avail]; in readAndClose()
105 System.arraycopy(buffer, 0, moreBuffer, 0, read); in readAndClose()
109 read += stream.read(buffer, read, avail); in readAndClose()
/frameworks/base/core/java/android/content/pm/
DLimitedLengthInputStream.java59 public synchronized int read() throws IOException { in read() method in LimitedLengthInputStream
65 return super.read(); in read()
69 public int read(byte[] buffer, int offset, int byteCount) throws IOException { in read() method in LimitedLengthInputStream
85 final int numRead = super.read(buffer, offset, byteCount); in read()
92 public int read(byte[] buffer) throws IOException { in read() method in LimitedLengthInputStream
93 return read(buffer, 0, buffer.length); in read()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DNinePatchInputStream.java58 public int read() throws IOException { in read() method in NinePatchInputStream
59 return mDelegate.read(); in read()
63 public int read(byte[] b) throws IOException { in read() method in NinePatchInputStream
64 return mDelegate.read(b); in read()
68 public int read(byte[] b, int off, int len) throws IOException { in read() method in NinePatchInputStream
69 return mDelegate.read(b, off, len); in read()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
DStreamUtils.java56 int read = in.read(buffer, 0, maxReadSize); in copyStream() local
57 if (read < 0) { in copyStream()
60 out.write(buffer, 0, read); in copyStream()
61 copied += read; in copyStream()
/frameworks/native/libs/binder/rust/src/parcel/
Dparcelable.rs149 let element = match parcel.read() { in deserialize_element()
180 let null: i32 = parcel.read()?; in deserialize_option()
184 parcel.read().map(Some) in deserialize_option()
645 let ibinder: SpIBinder = parcel.read()?; in deserialize()
652 let ibinder: Option<SpIBinder> = parcel.read()?; in deserialize_option()
702 parcel.read()?, in test_custom_parcelable()
703 parcel.read()?, in test_custom_parcelable()
704 parcel.read()?, in test_custom_parcelable()
705 parcel.read::<Option<Vec<String>>>()?.unwrap(), in test_custom_parcelable()
755 assert_eq!(parcel.read::<u32>().unwrap(), 4); in test_slice_parcelables()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp210 std::optional<T> read(IncFsSpan& data) { in read() function
275 auto mode = read<int8_t>(metadata).value_or(STDIN); in openInputs()
278 auto dataSize = le32toh(read<int32_t>(metadata).value_or(0)); in openInputs()
485 auto read = ::read(incomingFd.get(), buffer->data() + size, toRead); in copyToIncFs() local
486 if (read == 0) { in copyToIncFs()
499 if (read < 0) { in copyToIncFs()
503 buffer->resize(size + read); in copyToIncFs()
504 remaining -= read; in copyToIncFs()
505 totalSize += read; in copyToIncFs()
705 for (auto&& read : pageReads) { in onPageReadsWithUid()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DCountedDataInputStream.java44 public int read(byte[] b) throws IOException { in read() method in CountedDataInputStream
45 int r = in.read(b); in read()
51 public int read(byte[] b, int off, int len) throws IOException { in read() method in CountedDataInputStream
52 int r = in.read(b, off, len); in read()
58 public int read() throws IOException { in read() method in CountedDataInputStream
59 int r = in.read(); in read()
83 int r = read(b, off, len); in readOrThrow()
/frameworks/base/media/java/android/media/
DResampleInputStream.java71 public int read() throws IOException { in read() method in ResampleInputStream
72 int rtn = read(mOneByte, 0, 1); in read()
77 public int read(byte[] b) throws IOException { in read() method in ResampleInputStream
78 return read(b, 0, b.length); in read()
82 public int read(byte[] b, int offset, int length) throws IOException { in read() method in ResampleInputStream
103 int n = mInputStream.read(mBuf, mBufCount, mBuf.length - mBufCount); in read()
/frameworks/ex/framesequence/jni/
DStream.cpp28 jmethodID read; member
51 size_t read = doRead(mPeekBuffer + mPeekOffset, size - peek_remaining); in peek() local
53 mPeekSize = peek_remaining + read; in peek()
60 size_t Stream::read(void* buffer, size_t size) { in read() function in Stream
129 gInputStreamClassInfo.read, mByteArray, 0, requested); in doRead()
150 gInputStreamClassInfo.read = env->GetMethodID(inputStreamClazz, "read", "([BII)I"); in JavaStream_OnLoad()
152 if (!gInputStreamClassInfo.read || !gInputStreamClassInfo.reset) { in JavaStream_OnLoad()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/testing/
DDiffScriptProcessor.java100 if (diffScript.read() != '\n') { in process()
140 while (!isEndOfCommand(b = inputStream.read())) { in readCommand()
174 long read = copyBlock(inputStream, outputStream, buffer, COPY_BUFFER_SIZE); in copyBytes() local
175 if (read <= 0) { in copyBytes()
188 int read = inputStream.read(buffer, 0, size); in copyBlock() local
189 outputStream.write(buffer, 0, read); in copyBlock()
190 return read; in copyBlock()
208 output.write(input.read()); in copyRange()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java1094 int paramBits = inStream.read(8) * 8; in decodeMessageId()
1098 bData.messageType = inStream.read(4); in decodeMessageId()
1099 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
1100 bData.messageId |= inStream.read(8); in decodeMessageId()
1101 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
1118 int subparamLen = inStream.read(8); // SUBPARAM_LEN in decodeReserved()
1137 int paramBits = inStream.read(8) * 8; in decodeUserData()
1139 bData.userData.msgEncoding = inStream.read(5); in decodeUserData()
1145 bData.userData.msgType = inStream.read(8); in decodeUserData()
1148 bData.userData.numFields = inStream.read(8); in decodeUserData()
[all …]
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DSparseInputStream.java58 if ((n = in.read(buf, done, size - done)) < 0) { in readFull()
139 public int read(byte[] buf) throws IOException { in read() method in SparseInputStream
141 return mIn.read(buf); in read()
147 n = mIn.read(buf, 0, (int) min(mLeft, buf.length)); in read()
157 return super.read(buf); in read()
166 public int read() throws IOException { in read() method in SparseInputStream
168 return mIn.read(); in read()
174 ret = mIn.read(); in read()

12345678910>>...34