/frameworks/av/media/mtp/ |
H A D | MtpDeviceInfo.cpp | 62 bool MtpDeviceInfo::read(MtpDataPacket& packet) { argument 66 if (!packet.getUInt16(mStandardVersion)) return false; 67 if (!packet.getUInt32(mVendorExtensionID)) return false; 68 if (!packet.getUInt16(mVendorExtensionVersion)) return false; 70 if (!packet.getString(string)) return false; 73 if (!packet.getUInt16(mFunctionalMode)) return false; 74 mOperations = packet.getAUInt16(); 76 mEvents = packet.getAUInt16(); 78 mDeviceProperties = packet.getAUInt16(); 80 mCaptureFormats = packet [all...] |
H A D | MtpStorageInfo.cpp | 48 bool MtpStorageInfo::read(MtpDataPacket& packet) { argument 52 if (!packet.getUInt16(mStorageType)) return false; 53 if (!packet.getUInt16(mFileSystemType)) return false; 54 if (!packet.getUInt16(mAccessCapability)) return false; 55 if (!packet.getUInt64(mMaxCapacity)) return false; 56 if (!packet.getUInt64(mFreeSpaceBytes)) return false; 57 if (!packet.getUInt32(mFreeSpaceObjects)) return false; 59 if (!packet.getString(string)) return false; 61 if (!packet.getString(string)) return false;
|
H A D | MtpObjectInfo.cpp | 58 bool MtpObjectInfo::read(MtpDataPacket& packet) { argument 62 if (!packet.getUInt32(mStorageID)) return false; 63 if (!packet.getUInt16(mFormat)) return false; 64 if (!packet.getUInt16(mProtectionStatus)) return false; 65 if (!packet.getUInt32(mCompressedSize)) return false; 66 if (!packet.getUInt16(mThumbFormat)) return false; 67 if (!packet.getUInt32(mThumbCompressedSize)) return false; 68 if (!packet.getUInt32(mThumbPixWidth)) return false; 69 if (!packet.getUInt32(mThumbPixHeight)) return false; 70 if (!packet [all...] |
H A D | MtpStringBuffer.cpp | 126 bool MtpStringBuffer::readFromPacket(MtpDataPacket* packet) { argument 128 if (!packet->getUInt8(count)) 135 if (!packet->getUInt16(ch)) 154 void MtpStringBuffer::writeToPacket(MtpDataPacket* packet) const { 157 packet->putUInt8(count > 0 ? count + 1 : 0); 176 packet->putUInt16(ch); 180 packet->putUInt16(0);
|
H A D | MtpProperty.cpp | 126 bool MtpProperty::read(MtpDataPacket& packet) { argument 129 if (!packet.getUInt16(mCode)) return false; 131 if (!packet.getUInt16(mType)) return false; 132 if (!packet.getUInt8(temp8)) return false; 145 mDefaultArrayValues = readArrayValues(packet, mDefaultArrayLength); 148 mCurrentArrayValues = readArrayValues(packet, mCurrentArrayLength); 153 if (!readValue(packet, mDefaultValue)) return false; 155 if (!readValue(packet, mCurrentValue)) return false; 159 if (!packet.getUInt32(mGroupCode)) return false; 161 if (!packet 178 write(MtpDataPacket& packet) argument 423 readValue(MtpDataPacket& packet, MtpPropertyValue& value) argument 478 writeValue(MtpDataPacket& packet, MtpPropertyValue& value) argument 533 readArrayValues(MtpDataPacket& packet, uint32_t& length) argument 553 writeArrayValues(MtpDataPacket& packet, MtpPropertyValue* values, uint32_t 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 | 187 MediaBuffer *packet; local 188 status_t err = mExtractor->mImpl->readNextPacket(&packet, /* conf = */ false); 196 if (packet->meta_data()->findInt64(kKeyTime, &timeUs)) { 203 packet->meta_data()->setInt32(kKeyIsSyncFrame, 1); 205 *out = packet; 384 // XXX what if new page continues packet from last??? 518 // We've just read the entire packet. 551 // fall through, the buffer now contains the start of the packet. 581 // This page does not continue the packet, i.e. the packet 604 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 | 80 * The maximum length of a packet that can be constructed. 204 * Asks the packet object to signal the next operation in the DHCP 211 * Asks the packet object to create a ByteBuffer serialization of 212 * the packet for transmission. 218 * Allows the concrete class to fill in packet-type-specific details, 219 * typically optional parameters at the end of the packet. 243 * Creates a new L3 packet (including IP header) containing the 244 * DHCP udp packet. This method relies upon the delegated method 245 * finishPacket() to insert the per-packet contents. 262 // if a full IP packet need 518 readIpAddress(ByteBuffer packet) argument 552 decodeFullPacket(ByteBuffer packet, int pktType) argument 808 decodeFullPacket(byte[] packet, int pktType) argument [all...] |
/frameworks/base/libs/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...] |
/frameworks/base/media/jni/ |
H A D | android_mtp_MtpDatabase.cpp | 132 MtpDataPacket& packet); 136 MtpDataPacket& packet); 139 MtpDataPacket& packet); 142 MtpDataPacket& packet); 149 MtpDataPacket& packet); 363 MtpDataPacket& packet) { 392 packet.putString(date); 399 packet.putString(date); 405 packet.putInt8(longValue); 408 packet 361 getObjectPropertyValue(MtpObjectHandle handle, MtpObjectProperty property, MtpDataPacket& packet) argument 472 readLongValue(int type, MtpDataPacket& packet, jlong& longValue) argument 529 setObjectPropertyValue(MtpObjectHandle handle, MtpObjectProperty property, MtpDataPacket& packet) argument 560 getDevicePropertyValue(MtpDeviceProperty property, MtpDataPacket& packet) argument 633 setDevicePropertyValue(MtpDeviceProperty property, MtpDataPacket& packet) argument 667 getObjectPropertyList(MtpObjectHandle handle, uint32_t format, uint32_t property, int groupCode, int depth, MtpDataPacket& packet) argument [all...] |