Home
last modified time | relevance | path

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

1234567891011

/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DSmsHeader.java149 int id = inStream.read(); in fromByteArray()
150 int length = inStream.read(); in fromByteArray()
156 concatRef.refNumber = inStream.read(); in fromByteArray()
157 concatRef.msgCount = inStream.read(); in fromByteArray()
158 concatRef.seqNumber = inStream.read(); in fromByteArray()
167 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); in fromByteArray()
168 concatRef.msgCount = inStream.read(); in fromByteArray()
169 concatRef.seqNumber = inStream.read(); in fromByteArray()
178 portAddrs.destPort = inStream.read(); in fromByteArray()
179 portAddrs.origPort = inStream.read(); in fromByteArray()
[all …]
DBearerData.java186 int paramBits = inStream.read(8) * 8; in decodeMessageId()
191 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
192 bData.messageId |= inStream.read(8); in decodeMessageId()
193 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
208 int subparamLen = inStream.read(8); // SUBPARAM_LEN in decodeReserved()
226 int paramBits = inStream.read(8) * 8; in decodeUserData()
228 bData.userData.msgEncoding = inStream.read(5); in decodeUserData()
234 bData.userData.msgType = inStream.read(8); in decodeUserData()
237 bData.userData.numFields = inStream.read(8); in decodeUserData()
294 int charCode = inStream.read(7); in decode7bitAscii()
[all …]
DGsmSmsCbMessage.java193 int type = bitReader.read(4); in createGeoFencingTriggerMessage()
194 int length = bitReader.read(7); in createGeoFencingTriggerMessage()
203 int messageIdentifier = bitReader.read(16); in createGeoFencingTriggerMessage()
204 int serialNumber = bitReader.read(16); in createGeoFencingTriggerMessage()
241 int type = bitReader.read(4); in parseWarningAreaCoordinates()
242 int length = bitReader.read(10); in parseWarningAreaCoordinates()
249 maximumWaitTimeSec = bitReader.read(8); in parseWarningAreaCoordinates()
268 double radius = (bitReader.read(20) * 1.0 / (1 << 6)) * 1000.0; in parseWarningAreaCoordinates()
287 int wacLat = bitReader.read(22); in getLatLng()
288 int wacLng = bitReader.read(22); in getLatLng()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DPeekableInputStream.java37 public int read() throws IOException { in read() method in PeekableInputStream
39 return in.read(); in read()
48 peekedByte = read(); in peek()
55 public int read(byte[] b, int offset, int length) throws IOException { in read() method in PeekableInputStream
57 return in.read(b, offset, length); in read()
61 int r = in.read(b, offset + 1, length - 1); in read()
71 public int read(byte[] b) throws IOException { in read() method in PeekableInputStream
72 return read(b, 0, b.length); in read()
DFixedLengthInputStream.java42 public int read() throws IOException { in read() method in FixedLengthInputStream
45 return in.read(); in read()
52 public int read(byte[] b, int offset, int length) throws IOException { in read() method in FixedLengthInputStream
54 int d = in.read(b, offset, Math.min(this.length - count, length)); in read()
67 public int read(byte[] b) throws IOException { in read() method in FixedLengthInputStream
68 return read(b, 0, b.length); in read()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapMessage.java384 paramCount = is.read(); in readMessage()
446 private static void read(InputStream is, byte[] buffer) throws IOException { in read() method in SapMessage
451 tmpBytesRead = is.read(buffer, bytesRead, bytesToRead - bytesRead); in read()
468 is.read(); // Do not use the InputStream.skip as it fails for some stream types in skip()
488 paramId = is.read(); in parseParameters()
489 is.read(); // Skip the reserved byte in parseParameters()
490 paramLength = is.read(); in parseParameters()
491 paramLength = paramLength << 8 | is.read(); in parseParameters()
509 mMaxMsgSize = is.read(); in parseParameters()
510 mMaxMsgSize = mMaxMsgSize << 8 | is.read(); in parseParameters()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DXmpInterface.java256 public int read(byte[] b) throws IOException { in read() method in XmpInterface.ByteCountingInputStream
257 return read(b, 0, b.length); in read()
261 public int read(byte[] b, int off, int len) throws IOException { in read() method in XmpInterface.ByteCountingInputStream
262 final int read = mWrapped.read(b, off, len); in read() local
263 if (read == -1) return -1; in read()
265 for (int i = 0; i < read; i++) { in read()
271 mOffset += read; in read()
272 return read; in read()
276 public int read() throws IOException { in read() method in XmpInterface.ByteCountingInputStream
277 int r = mWrapped.read(); in read()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DCountedDataInputStream.java45 public int read(byte[] b) throws IOException { in read() method in CountedDataInputStream
46 int r = in.read(b); in read()
52 public int read(byte[] b, int off, int len) throws IOException { in read() method in CountedDataInputStream
53 int r = in.read(b, off, len); in read()
59 public int read() throws IOException { in read() method in CountedDataInputStream
60 int r = in.read(); in read()
86 int r = read(b, off, len); in readOrThrow()
/packages/apps/Camera2/src/com/android/camera/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()
/packages/apps/Messaging/src/com/android/messaging/util/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()
85 int r = read(b, off, len); in readOrThrow()
/packages/apps/Gallery2/gallerycommon/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()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchiveEntryInputStream.java46 public int read() throws IOException { in read() method in ArchiveEntryInputStream
51 public int read(byte[] b, int off, int len) throws IOException { in read() method in ArchiveEntryInputStream
53 return mReadSource.read(b, off, len); in read()
75 int read(byte[] b, int off, int len) throws IOException; in read() method
136 (b, off, len) -> ((SevenZFile) commonArchive).read(b, off, len), in create()
143 (b, off, len) -> inputStream.read(b, off, len), in create()
148 (b, off, len) -> ((ArchiveInputStream) commonArchive).read(b, off, len), in create()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduParser.java899 pduDataStream.read(partData, 0, dataLength); in parseParts()
966 int temp = pduDataStream.read(); in parseUnsignedInt()
974 temp = pduDataStream.read(); in parseUnsignedInt()
1002 int temp = pduDataStream.read(); in parseValueLength()
1030 int temp = pduDataStream.read(); in parseEncodedStringValue()
1089 int temp = pduDataStream.read(); in parseWapString()
1192 int temp = pduDataStream.read(); in getWapString()
1206 temp = pduDataStream.read(); in getWapString()
1225 int temp = pduDataStream.read(); in extractByteValue()
1245 int temp = pduDataStream.read(); in parseShortInteger()
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduParser.java933 pduDataStream.read(partData, 0, dataLength); in parseParts()
1000 int temp = pduDataStream.read(); in parseUnsignedInt()
1008 temp = pduDataStream.read(); in parseUnsignedInt()
1036 int temp = pduDataStream.read(); in parseValueLength()
1065 int temp = pduDataStream.read(); in parseEncodedStringValue()
1124 int temp = pduDataStream.read(); in parseWapString()
1229 int temp = pduDataStream.read(); in getWapString()
1243 temp = pduDataStream.read(); in getWapString()
1262 int temp = pduDataStream.read(); in extractByteValue()
1282 int temp = pduDataStream.read(); in parseShortInteger()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java149 final Action read = calls.get(0).action; in testReadDraft() local
151 final Object result = read.executeAction(); in testReadDraft()
208 final Action read = calls.get(0).action; in testReadDraftForNewConversation() local
210 final Object result = read.executeAction(); in testReadDraftForNewConversation()
261 final Action read = calls.get(1).action; in testWriteAndReadDraft() local
263 result = read.executeAction(); in testWriteAndReadDraft()
380 final int read = inputStream.read(buffer); in testBugleDatabaseDraftOperations() local
381 assertEquals(read, text.getBytes().length); in testBugleDatabaseDraftOperations()
432 final int read = inputStream.read(buffer); in testBugleDatabaseDraftOperations() local
433 assertEquals(read, moreText.getBytes().length); in testBugleDatabaseDraftOperations()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSmsPdu.java184 int currentId = pdu.read(); in cdmaGetParameterOffset()
185 int currentLen = pdu.read(); in cdmaGetParameterOffset()
219 int currentId = pdu.read(); in cdmaGetSubParameterOffset()
220 int currentLen = pdu.read(); in cdmaGetSubParameterOffset()
342 int userDataLength = pdu.read(); in gsmDecodeUserDataHeader()
344 int userDataHeaderLength = pdu.read(); in gsmDecodeUserDataHeader()
351 pdu.read(udh); in gsmDecodeUserDataHeader()
767 int id = inStream.read(); in getTableFromByteArray()
768 int length = inStream.read(); in getTableFromByteArray()
771 tableValue[1] = inStream.read(); in getTableFromByteArray()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DXmpUtil.java340 if (is.read() != 0xff || is.read() != M_SOI) { in parse()
345 while ((c = is.read()) != -1) { in parse()
350 while ((c = is.read()) == 0xff) { in parse()
364 is.read(section.data, 0, section.data.length); in parse()
369 int lh = is.read(); in parse()
370 int ll = is.read(); in parse()
380 is.read(section.data, 0, length - 2); in parse()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DParcelables.java46 Parcel read = Parcel.obtain(); in parcel() local
52 read.unmarshall(data, 0, data.length); in parcel()
53 read.setDataPosition(0); in parcel()
54 restored = read.readParcelable(p.getClass().getClassLoader()); in parcel()
57 read.recycle(); in parcel()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
DJPEGInputStream.java91 public int read() throws IOException { in read() method in JPEGInputStream
92 read(mTmpBuffer, 0, 1); in read()
97 public int read(byte[] buffer) throws IOException { in read() method in JPEGInputStream
98 return read(buffer, 0, buffer.length); in read()
102 public int read(byte[] buffer, int offset, int count) throws IOException { in read() method in JPEGInputStream
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DGsmSmsCbMessage.java196 int type = bitReader.read(4); in parseWarningAreaCoordinates()
197 int length = bitReader.read(10); in parseWarningAreaCoordinates()
204 maximumWaitTimeSec = bitReader.read(8); in parseWarningAreaCoordinates()
223 double radius = (bitReader.read(20) * 1.0 / (1 << 6)) * 1000.0; in parseWarningAreaCoordinates()
242 int wacLat = bitReader.read(22); in getLatLng()
243 int wacLng = bitReader.read(22); in getLatLng()
396 public int read(int count) throws IndexOutOfBoundsException { in read() method in GsmSmsCbMessage.BitStreamReader
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DTestUtil.java43 int read; in installDummyApp() local
45 while ((read = in.read(buff)) > 0) { in installDummyApp()
46 out.write(buff, 0, read); in installDummyApp()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapMemoryLiteral.java37 int read = in.read(data, pos, data.length - pos); in ImapMemoryLiteral() local
38 if (read < 0) { in ImapMemoryLiteral()
41 pos += read; in ImapMemoryLiteral()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp156 const char* DNSName::read(const char* buffer, const char* buffer_end) { in read() function in test::DNSName
227 const char* DNSQuestion::read(const char* buffer, const char* buffer_end) { in read() function in test::DNSQuestion
228 const char* cur = qname.read(buffer, buffer_end); in read()
261 const char* DNSRecord::read(const char* buffer, const char* buffer_end) { in read() function in test::DNSRecord
262 const char* cur = name.read(buffer, buffer_end); in read()
326 const char* DNSHeader::read(const char* buffer, const char* buffer_end) { in read() function in test::DNSHeader
339 cur = questions[i].read(cur, buffer_end); in read()
349 cur = answers[i].read(cur, buffer_end); in read()
359 cur = authorities[i].read(cur, buffer_end); in read()
369 cur = additionals[i].read(cur, buffer_end); in read()
[all …]
/packages/apps/Traceur/src/com/android/traceur/
DTraceUtils.java166 int read; in Streamer() local
169 while ((read = in.read(buf)) != -1) { in Streamer()
170 out.write(buf, 0, read); in Streamer()
213 int read; in Logger() local
/packages/services/Car/tests/usb/AoapPhoneCompanionApp/src/com/google/android/car/usb/aoap/companion/
DAoapPhoneCompanionActivity.java177 int read = mInputStream.read(mBuffer); in run() local
178 if (read == 4 && readBufferSize == 0) { in run()
182 Log.d(TAG, "Read " + read + " bytes"); in run()
183 if (read < readBufferSize) { in run()

1234567891011