Home
last modified time | relevance | path

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

12345678910>>...31

/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/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/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp49 int read = klogctl(/* SYSLOG_ACTION_READ_ALL */ 3, buf, size); in android_net_wifi_readKernelLogNative() local
50 if (read < 0) { in android_net_wifi_readKernelLogNative()
51 ALOGD("can't read logs - %d", read); in android_net_wifi_readKernelLogNative()
55 ALOGV("read %d bytes", read); in android_net_wifi_readKernelLogNative()
58 if (read != size) { in android_net_wifi_readKernelLogNative()
59 ALOGV("read %d bytes, expecting %d", read, size); in android_net_wifi_readKernelLogNative()
62 JNIObject<jbyteArray> result = helper.newByteArray(read); in android_net_wifi_readKernelLogNative()
69 helper.setByteArrayRegion(result, 0, read, (jbyte*)buf); in android_net_wifi_readKernelLogNative()
/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/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/av/media/libaudioclient/include/media/
DIAudioFlinger.h62 if (parcel->read(&attr, sizeof(audio_attributes_t)) != NO_ERROR) { in readFromParcel()
67 if (parcel->read(&config, sizeof(audio_config_t)) != NO_ERROR) { in readFromParcel()
83 (void)parcel->read(&flags, sizeof(audio_output_flags_t)); in readFromParcel()
86 (void)parcel->read(&selectedDeviceId, sizeof(audio_port_handle_t)); in readFromParcel()
87 (void)parcel->read(&sessionId, sizeof(audio_session_t)); in readFromParcel()
138 (void)parcel->read(&flags, sizeof(audio_output_flags_t)); in readFromParcel()
141 (void)parcel->read(&selectedDeviceId, sizeof(audio_port_handle_t)); in readFromParcel()
142 (void)parcel->read(&sessionId, sizeof(audio_session_t)); in readFromParcel()
149 (void)parcel->read(&outputId, sizeof(audio_io_handle_t)); in readFromParcel()
150 (void)parcel->read(&portId, sizeof(audio_port_handle_t)); in readFromParcel()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java1093 int paramBits = inStream.read(8) * 8; in decodeMessageId()
1097 bData.messageType = inStream.read(4); in decodeMessageId()
1098 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
1099 bData.messageId |= inStream.read(8); in decodeMessageId()
1100 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
1117 int subparamLen = inStream.read(8); // SUBPARAM_LEN in decodeReserved()
1136 int paramBits = inStream.read(8) * 8; in decodeUserData()
1138 bData.userData.msgEncoding = inStream.read(5); in decodeUserData()
1144 bData.userData.msgType = inStream.read(8); in decodeUserData()
1147 bData.userData.numFields = inStream.read(8); in decodeUserData()
[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/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/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/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()
/frameworks/av/media/mtp/
DMtpFfsCompatHandle.cpp98 int n = TEMP_FAILURE_RETRY(::read(fd, buf, read_len)); in readHandle()
152 int MtpFfsCompatHandle::read(void* data, size_t len) { in read() function in android::MtpFfsCompatHandle
176 bool read = false; in receiveFile() local
193 read = true; in receiveFile()
217 if (read) { in receiveFile()
234 read = false; in receiveFile()
239 if (TEMP_FAILURE_RETRY(::read(mBulkOut, data, packet_size)) != 0) { in receiveFile()
268 bool read = false; in sendFile() local
290 if (read) { in sendFile()
306 read = false; in sendFile()
[all …]
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_composer_client.cpp74 auto err = mVrHal.setLayerInfo(mCurrentDisplay, mCurrentLayer, read(), read()); in executeSetLayerInfo()
110 .width = read(), in readBufferMetadata()
111 .height = read(), in readBufferMetadata()
112 .stride = read(), in readBufferMetadata()
113 .layerCount = read(), in readBufferMetadata()
/frameworks/av/media/mtp/tests/
DMtpFfsHandle_test.cpp102 EXPECT_EQ(read(this->control, &desc, sizeof(desc)), (long)sizeof(desc)); in TYPED_TEST()
103 EXPECT_EQ(read(this->control, &strings, sizeof(strings)), (long)sizeof(strings)); in TYPED_TEST()
112 EXPECT_EQ(read(this->control, &desc, sizeof(desc)), (long)sizeof(desc)); in TYPED_TEST()
113 EXPECT_EQ(read(this->control, &strings, sizeof(strings)), (long)sizeof(strings)); in TYPED_TEST()
122 EXPECT_EQ(this->handle->read(buf, TEST_PACKET_SIZE), TEST_PACKET_SIZE); in TYPED_TEST()
136 EXPECT_EQ(this->handle->read(buf, size), size); in TYPED_TEST()
145 EXPECT_EQ(read(this->bulk_in, buf, TEST_PACKET_SIZE), TEST_PACKET_SIZE); in TYPED_TEST()
159 EXPECT_EQ(read(this->bulk_in, buf, size), size); in TYPED_TEST()
178 EXPECT_EQ(read(this->dummy_file.fd, buf, size), size); in TYPED_TEST()
197 EXPECT_EQ(read(this->dummy_file.fd, buf, size), size); in TYPED_TEST()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothInputStream.java57 public int read() throws IOException { in read() method in BluetoothInputStream
59 int ret = mSocket.read(b, 0, 1); in read()
81 public int read(byte[] b, int offset, int length) throws IOException { in read() method in BluetoothInputStream
88 return mSocket.read(b, offset, length); in read()
/frameworks/native/libs/sensor/
DSensor.cpp542 FlattenableUtils::read(buffer, size, mVersion); in unflatten()
543 FlattenableUtils::read(buffer, size, mHandle); in unflatten()
544 FlattenableUtils::read(buffer, size, mType); in unflatten()
545 FlattenableUtils::read(buffer, size, mMinValue); in unflatten()
546 FlattenableUtils::read(buffer, size, mMaxValue); in unflatten()
547 FlattenableUtils::read(buffer, size, mResolution); in unflatten()
548 FlattenableUtils::read(buffer, size, mPower); in unflatten()
549 FlattenableUtils::read(buffer, size, mMinDelay); in unflatten()
550 FlattenableUtils::read(buffer, size, mFifoReservedEventCount); in unflatten()
551 FlattenableUtils::read(buffer, size, mFifoMaxEventCount); in unflatten()
[all …]
/frameworks/native/libs/gui/
DLayerState.cpp101 status_t layer_state_t::read(const Parcel& input) in read() function in android::layer_state_t
120 input.read(crop_legacy); in read()
133 inputInfo = InputWindowInfo::read(input); in read()
136 input.read(transparentRegion); in read()
139 input.read(crop); in read()
140 input.read(frame); in read()
143 input.read(*buffer); in read()
147 input.read(*acquireFence); in read()
150 input.read(hdrMetadata); in read()
151 input.read(surfaceDamageRegion); in read()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DSmsMessage.java489 dis.read(addr.origBytes, 0, length); // digits in parsePdu()
506 dis.read(env.bearerData, 0, bearerDataLength); in parsePdu()
562 dis.read(parameterData, 0, parameterLen); in parsePduFromEfRecord()
564 addr.digitMode = addrBis.read(1); in parsePduFromEfRecord()
565 addr.numberMode = addrBis.read(1); in parsePduFromEfRecord()
568 numberType = addrBis.read(3); in parsePduFromEfRecord()
572 addr.numberPlan = addrBis.read(4); in parsePduFromEfRecord()
575 addr.numberOfDigits = addrBis.read(8); in parsePduFromEfRecord()
583 b = (byte) (0xF & addrBis.read(4)); in parsePduFromEfRecord()
591 b = (byte) (0xFF & addrBis.read(8)); in parsePduFromEfRecord()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DUtils.java36 int read; in transferStreamedData() local
37 while ((read = in.read(buffer)) != -1) { in transferStreamedData()
38 out.write(buffer, 0, read); in transferStreamedData()

12345678910>>...31