/frameworks/av/media/mtp/ |
H A D | MtpDeviceInfo.cpp | 62 void MtpDeviceInfo::read(MtpDataPacket& packet) { argument 66 mStandardVersion = packet.getUInt16(); 67 mVendorExtensionID = packet.getUInt32(); 68 mVendorExtensionVersion = packet.getUInt16(); 70 packet.getString(string); 73 mFunctionalCode = packet.getUInt16(); 74 mOperations = packet.getAUInt16(); 75 mEvents = packet.getAUInt16(); 76 mDeviceProperties = packet.getAUInt16(); 77 mCaptureFormats = packet [all...] |
H A D | MtpStorageInfo.cpp | 46 void MtpStorageInfo::read(MtpDataPacket& packet) { argument 50 mStorageType = packet.getUInt16(); 51 mFileSystemType = packet.getUInt16(); 52 mAccessCapability = packet.getUInt16(); 53 mMaxCapacity = packet.getUInt64(); 54 mFreeSpaceBytes = packet.getUInt64(); 55 mFreeSpaceObjects = packet.getUInt32(); 57 packet.getString(string); 59 packet.getString(string);
|
H A D | MtpObjectInfo.cpp | 58 void MtpObjectInfo::read(MtpDataPacket& packet) { argument 62 mStorageID = packet.getUInt32(); 63 mFormat = packet.getUInt16(); 64 mProtectionStatus = packet.getUInt16(); 65 mCompressedSize = packet.getUInt32(); 66 mThumbFormat = packet.getUInt16(); 67 mThumbCompressedSize = packet.getUInt32(); 68 mThumbPixWidth = packet.getUInt32(); 69 mThumbPixHeight = packet.getUInt32(); 70 mImagePixWidth = packet [all...] |
H A D | MtpStringBuffer.cpp | 121 void MtpStringBuffer::readFromPacket(MtpDataPacket* packet) { argument 122 int count = packet->getUInt8(); 125 uint16_t ch = packet->getUInt16(); 142 void MtpStringBuffer::writeToPacket(MtpDataPacket* packet) const { 145 packet->putUInt8(count > 0 ? count + 1 : 0); 164 packet->putUInt16(ch); 168 packet->putUInt16(0);
|
H A D | MtpProperty.cpp | 124 void MtpProperty::read(MtpDataPacket& packet) { argument 125 mCode = packet.getUInt16(); 127 mType = packet.getUInt16(); 128 mWriteable = (packet.getUInt8() == 1); 140 mDefaultArrayValues = readArrayValues(packet, mDefaultArrayLength); 142 mCurrentArrayValues = readArrayValues(packet, mCurrentArrayLength); 145 readValue(packet, mDefaultValue); 147 readValue(packet, mCurrentValue); 150 mGroupCode = packet.getUInt32(); 151 mFormFlag = packet 165 write(MtpDataPacket& packet) argument 410 readValue(MtpDataPacket& packet, MtpPropertyValue& value) argument 463 writeValue(MtpDataPacket& packet, MtpPropertyValue& value) argument 518 readArrayValues(MtpDataPacket& packet, int& length) argument 528 writeArrayValues(MtpDataPacket& packet, MtpPropertyValue* values, int length) argument [all...] |
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | MPEG2TSExtractor.cpp | 199 uint8_t packet[kTSPacketSize]; local 200 ssize_t n = mDataSource->readAt(mOffset, packet, kTSPacketSize); 207 return mParser->feedTSPacket(packet, kTSPacketSize);
|
/frameworks/av/media/libstagefright/wifi-display/rtp/ |
H A D | RTPSender.cpp | 209 const sp<ABuffer> &packet, uint8_t packetType) { 210 CHECK_LE(packet->size(), kMaxUDPPacketSize - 12); 213 CHECK(packet->meta()->findInt64("timeUs", &timeUs)); 215 sp<ABuffer> udpPacket = new ABuffer(12 + packet->size()); 239 memcpy(&rtp[12], packet->data(), packet->size()); 340 // We haven't emitted anything into the current packet yet and 341 // this NAL unit fits into a single-NAL-unit-packet while 342 // it wouldn't have fit as part of a STAP-A packet. 377 // This single NAL unit does not fit into a single RTP packet, 208 queueRawPacket( const sp<ABuffer> &packet, uint8_t packetType) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | OggExtractor.cpp | 182 MediaBuffer *packet; local 183 status_t err = mExtractor->mImpl->readNextPacket(&packet); 191 if (packet->meta_data()->findInt64(kKeyTime, &timeUs)) { 198 packet->meta_data()->setInt32(kKeyIsSyncFrame, 1); 200 *out = packet; 374 // XXX what if new page continues packet from last??? 489 // this packet, we also stamp every packet in this page 518 // We've just read the entire packet. 535 // fall through, the buffer now contains the start of the packet 588 MediaBuffer *packet; local [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | ANetworkSession.cpp | 370 sp<ABuffer> packet = new ABuffer(packetSize); local 371 memcpy(packet->data(), mInBuffer.c_str() + 2, packetSize); 374 packet->meta()->setInt64("arrivalTimeUs", nowUs); 379 notify->setBuffer("data", packet); 494 sp<ABuffer> packet = new ABuffer(payloadLen); local 495 memcpy(packet->data(), &data[offset], payloadLen); 499 packet->data()[i] = 508 notify->setBuffer("data", packet);
|
/frameworks/base/core/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 83 * The maximum length of a packet that can be constructed. 207 * Asks the packet object to signal the next operation in the DHCP 214 * Asks the packet object to create a ByteBuffer serialization of 215 * the packet for transmission. 221 * Allows the concrete class to fill in packet-type-specific details, 222 * typically optional parameters at the end of the packet. 246 * Creates a new L3 packet (including IP header) containing the 247 * DHCP udp packet. This method relies upon the delegated method 248 * finishPacket() to insert the per-packet contents. 265 // if a full IP packet need 521 readIpAddress(ByteBuffer packet) argument 555 decodeFullPacket(ByteBuffer packet, int pktType) argument 811 decodeFullPacket(byte[] packet, int pktType) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_mtp_MtpDatabase.cpp | 126 MtpDataPacket& packet); 130 MtpDataPacket& packet); 133 MtpDataPacket& packet); 136 MtpDataPacket& packet); 143 MtpDataPacket& packet); 356 MtpDataPacket& packet) { 385 packet.putString(date); 392 packet.putString(date); 398 packet.putInt8(longValue); 401 packet 354 getObjectPropertyValue(MtpObjectHandle handle, MtpObjectProperty property, MtpDataPacket& packet) argument 467 setObjectPropertyValue(MtpObjectHandle handle, MtpObjectProperty property, MtpDataPacket& packet) argument 525 getDevicePropertyValue(MtpDeviceProperty property, MtpDataPacket& packet) argument 591 setDevicePropertyValue(MtpDeviceProperty property, MtpDataPacket& packet) argument 652 getObjectPropertyList(MtpObjectHandle handle, uint32_t format, uint32_t property, int groupCode, int depth, MtpDataPacket& packet) argument [all...] |
/frameworks/base/services/common_time/ |
H A D | common_time_server.cpp | 360 // may have RXed a packet at the same time as a config change telling us 634 mBadPktLog.log("Failed to parse %d byte packet from %s.%s", 669 "unknown packet type (%d) from %s", 969 // if the RTT of the packet is significantly larger than the panic 971 // than to take cues from a packet like that. 1000 const MasterAnnouncementPacket* packet, 1002 uint64_t newDeviceID = packet->deviceID; 1003 uint8_t newDevicePrio = packet->devicePriority; 1004 uint64_t newTimelineID = packet->timelineID; 1272 // single time sync packet, the 999 handleMasterAnnouncement( const MasterAnnouncementPacket* packet, const sockaddr_storage& srcAddr) argument [all...] |