Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/av/media/mtp/
DMtpObjectInfo.cpp58 void MtpObjectInfo::read(MtpDataPacket& packet) { in read() argument
62 mStorageID = packet.getUInt32(); in read()
63 mFormat = packet.getUInt16(); in read()
64 mProtectionStatus = packet.getUInt16(); in read()
65 mCompressedSize = packet.getUInt32(); in read()
66 mThumbFormat = packet.getUInt16(); in read()
67 mThumbCompressedSize = packet.getUInt32(); in read()
68 mThumbPixWidth = packet.getUInt32(); in read()
69 mThumbPixHeight = packet.getUInt32(); in read()
70 mImagePixWidth = packet.getUInt32(); in read()
[all …]
DMtpProperty.cpp124 void MtpProperty::read(MtpDataPacket& packet) { in read() argument
125 mCode = packet.getUInt16(); in read()
127 mType = packet.getUInt16(); in read()
128 mWriteable = (packet.getUInt8() == 1); in read()
140 mDefaultArrayValues = readArrayValues(packet, mDefaultArrayLength); in read()
142 mCurrentArrayValues = readArrayValues(packet, mCurrentArrayLength); in read()
145 readValue(packet, mDefaultValue); in read()
147 readValue(packet, mCurrentValue); in read()
150 mGroupCode = packet.getUInt32(); in read()
151 mFormFlag = packet.getUInt8(); in read()
[all …]
DMtpDeviceInfo.cpp62 void MtpDeviceInfo::read(MtpDataPacket& packet) { in read() argument
66 mStandardVersion = packet.getUInt16(); in read()
67 mVendorExtensionID = packet.getUInt32(); in read()
68 mVendorExtensionVersion = packet.getUInt16(); in read()
70 packet.getString(string); in read()
73 mFunctionalCode = packet.getUInt16(); in read()
74 mOperations = packet.getAUInt16(); in read()
75 mEvents = packet.getAUInt16(); in read()
76 mDeviceProperties = packet.getAUInt16(); in read()
77 mCaptureFormats = packet.getAUInt16(); in read()
[all …]
DMtpStorageInfo.cpp46 void MtpStorageInfo::read(MtpDataPacket& packet) { in read() argument
50 mStorageType = packet.getUInt16(); in read()
51 mFileSystemType = packet.getUInt16(); in read()
52 mAccessCapability = packet.getUInt16(); in read()
53 mMaxCapacity = packet.getUInt64(); in read()
54 mFreeSpaceBytes = packet.getUInt64(); in read()
55 mFreeSpaceObjects = packet.getUInt32(); in read()
57 packet.getString(string); in read()
59 packet.getString(string); in read()
DMtpProperty.h86 void read(MtpDataPacket& packet);
87 void write(MtpDataPacket& packet);
105 void readValue(MtpDataPacket& packet, MtpPropertyValue& value);
106 void writeValue(MtpDataPacket& packet, MtpPropertyValue& value);
107 MtpPropertyValue* readArrayValues(MtpDataPacket& packet, int& length);
108 void writeArrayValues(MtpDataPacket& packet,
DMtpStringBuffer.cpp121 void MtpStringBuffer::readFromPacket(MtpDataPacket* packet) { in readFromPacket() argument
122 int count = packet->getUInt8(); in readFromPacket()
125 uint16_t ch = packet->getUInt16(); in readFromPacket()
142 void MtpStringBuffer::writeToPacket(MtpDataPacket* packet) const { in writeToPacket()
145 packet->putUInt8(count > 0 ? count + 1 : 0); in writeToPacket()
164 packet->putUInt16(ch); in writeToPacket()
168 packet->putUInt16(0); in writeToPacket()
DMtpDatabase.h65 MtpDataPacket& packet) = 0;
69 MtpDataPacket& packet) = 0;
72 MtpDataPacket& packet) = 0;
75 MtpDataPacket& packet) = 0;
82 MtpDataPacket& packet) = 0;
DMtpStringBuffer.h46 void readFromPacket(MtpDataPacket* packet);
47 void writeToPacket(MtpDataPacket* packet) const;
DMtpStorageInfo.h42 void read(MtpDataPacket& packet);
DMtpDeviceInfo.h47 void read(MtpDataPacket& packet);
DMtpObjectInfo.h53 void read(MtpDataPacket& packet);
/frameworks/base/core/java/android/net/dhcp/
DDhcpPacket.java521 private static InetAddress readIpAddress(ByteBuffer packet) { in readIpAddress() argument
524 packet.get(ipAddr); in readIpAddress()
555 public static DhcpPacket decodeFullPacket(ByteBuffer packet, int pktType) in decodeFullPacket() argument
582 packet.order(ByteOrder.BIG_ENDIAN); in decodeFullPacket()
590 packet.get(l2dst); in decodeFullPacket()
591 packet.get(l2src); in decodeFullPacket()
593 short l2type = packet.getShort(); in decodeFullPacket()
601 byte ipType = packet.get(); in decodeFullPacket()
603 byte ipDiffServicesField = packet.get(); in decodeFullPacket()
604 short ipTotalLength = packet.getShort(); in decodeFullPacket()
[all …]
/frameworks/base/media/jni/
Dandroid_mtp_MtpDatabase.cpp125 MtpDataPacket& packet);
129 MtpDataPacket& packet);
132 MtpDataPacket& packet);
135 MtpDataPacket& packet);
142 MtpDataPacket& packet);
355 MtpDataPacket& packet) { in getObjectPropertyValue() argument
384 packet.putString(date); in getObjectPropertyValue()
391 packet.putString(date); in getObjectPropertyValue()
397 packet.putInt8(longValue); in getObjectPropertyValue()
400 packet.putUInt8(longValue); in getObjectPropertyValue()
[all …]
/frameworks/av/media/libstagefright/
DOggExtractor.cpp182 MediaBuffer *packet; in read() local
183 status_t err = mExtractor->mImpl->readNextPacket(&packet); in read()
191 if (packet->meta_data()->findInt64(kKeyTime, &timeUs)) { in read()
198 packet->meta_data()->setInt32(kKeyIsSyncFrame, 1); in read()
200 *out = packet; in read()
588 MediaBuffer *packet; in init() local
590 if ((err = readNextPacket(&packet)) != OK) { in init()
593 ALOGV("read packet of size %d\n", packet->range_length()); in init()
594 err = verifyHeader(packet, 1); in init()
595 packet->release(); in init()
[all …]
/frameworks/base/obex/javax/obex/
DClientSession.java343 byte[] packet = new byte[totalLength]; in setPath()
344 packet[0] = (byte)flags; in setPath()
345 packet[1] = (byte)0x00; in setPath()
347 System.arraycopy(head, 0, packet, 2, head.length); in setPath()
351 sendRequest(ObexHelper.OBEX_OPCODE_SETPATH, packet, returnHeaderSet, null); in setPath()
/frameworks/av/media/libstagefright/mpeg2ts/
DMPEG2TSExtractor.cpp208 uint8_t packet[kTSPacketSize]; in feedMore() local
209 ssize_t n = mDataSource->readAt(mOffset, packet, kTSPacketSize); in feedMore()
216 return mParser->feedTSPacket(packet, kTSPacketSize); in feedMore()
/frameworks/av/media/libstagefright/wifi-display/rtp/
DRTPSender.cpp210 const sp<ABuffer> &packet, uint8_t packetType) { in queueRawPacket() argument
211 CHECK_LE(packet->size(), kMaxUDPPacketSize - 12); in queueRawPacket()
214 CHECK(packet->meta()->findInt64("timeUs", &timeUs)); in queueRawPacket()
216 sp<ABuffer> udpPacket = new ABuffer(12 + packet->size()); in queueRawPacket()
240 memcpy(&rtp[12], packet->data(), packet->size()); in queueRawPacket()
DRTPSender.h101 const sp<ABuffer> &packet, bool storeInHistory,
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dpvamrwbdecoder.h139 void mime_unsorting(uint8 packet[],
/frameworks/base/core/java/android/net/
DDnsPinger.java166 DatagramPacket packet = new DatagramPacket(buf, in handleMessage() local
174 newActivePing.socket.send(packet); in handleMessage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DEventLogTags.logtags9 # packet count that triggers a countdown to radio restart
/frameworks/av/media/libstagefright/wifi-display/
DANetworkSession.cpp339 sp<ABuffer> packet = new ABuffer(packetSize); in readMore() local
340 memcpy(packet->data(), mInBuffer.c_str() + 2, packetSize); in readMore()
343 packet->meta()->setInt64("arrivalTimeUs", nowUs); in readMore()
348 notify->setBuffer("data", packet); in readMore()
/frameworks/base/services/common_time/
Dcommon_time_server.cpp1000 const MasterAnnouncementPacket* packet, in handleMasterAnnouncement() argument
1002 uint64_t newDeviceID = packet->deviceID; in handleMasterAnnouncement()
1003 uint8_t newDevicePrio = packet->devicePriority; in handleMasterAnnouncement()
1004 uint64_t newTimelineID = packet->timelineID; in handleMasterAnnouncement()
Dcommon_time_server.h128 bool handleMasterAnnouncement (const MasterAnnouncementPacket* packet,
/frameworks/ex/common/java/com/android/common/
DGoogleLogTags.logtags83 # This event is logged when an Rmq v2 packet is sent or received.

12