Searched defs:packet (Results 1 - 14 of 14) sorted by relevance

/frameworks/av/media/mtp/
H A DMtpDeviceInfo.cpp62 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 DMtpStorageInfo.cpp48 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 DMtpObjectInfo.cpp58 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 DMtpStringBuffer.cpp126 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 DMtpProperty.cpp126 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 DMPEG2TSExtractor.cpp251 uint8_t packet[kTSPacketSize]; local
252 ssize_t n = mDataSource->readAt(mOffset, packet, kTSPacketSize);
263 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event);
/frameworks/base/obex/javax/obex/
H A DServerOperation.java50 * complete and requires an additional OBEX packet. 0x82 is a PUT request that
110 // a different OBEX packet than the SRMP header.
121 * @param maxSize the max packet size that the client will accept
141 ObexPacket packet;
180 packet = ObexPacket.read(request, mInput);
183 * Determine if the packet length is larger than this device can receive
185 if (packet.mLength > ObexHelper.getMaxRxPacketSize(mTransport)) {
188 + packet.mLength + " maxLength: " + ObexHelper.getMaxRxPacketSize(mTransport));
194 if (packet.mLength > 3) {
195 if(!handleObexPacket(packet)) {
228 handleObexPacket(ObexPacket packet) argument
274 updateRequestHeaders(ObexPacket packet) argument
[all...]
/frameworks/av/media/libstagefright/wifi-display/rtp/
H A DRTPSender.cpp209 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());
338 // We haven't emitted anything into the current packet yet and
339 // this NAL unit fits into a single-NAL-unit-packet while
340 // it wouldn't have fit as part of a STAP-A packet.
375 // 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/foundation/
H A DANetworkSession.cpp370 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/libs/common_time/
H A Dcommon_time_server.cpp361 // may have RXed a packet at the same time as a config change telling us
635 mBadPktLog.log("Failed to parse %d byte packet from %s.%s",
670 "unknown packet type (%d) from %s",
970 // if the RTT of the packet is significantly larger than the panic
972 // than to take cues from a packet like that.
1002 const MasterAnnouncementPacket* packet,
1004 uint64_t newDeviceID = packet->deviceID;
1005 uint8_t newDevicePrio = packet->devicePriority;
1006 uint64_t newTimelineID = packet->timelineID;
1274 // single time sync packet, the
1001 handleMasterAnnouncement( const MasterAnnouncementPacket* packet, const sockaddr_storage& srcAddr) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDatabase.cpp132 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...]
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpClient.java138 // - We use a packet socket to receive, because servers send us packets bound for IP addresses
208 // Used to schedule packet retransmissions.
293 Log.e(TAG, "Error creating packet socket", e);
349 DhcpPacket packet = null;
350 packet = DhcpPacket.decodeFullPacket(mPacket, length, DhcpPacket.ENCAP_L2);
351 if (packet != null) {
352 maybeLog("Received packet: " + packet);
353 sendMessage(CMD_RECEIVED_PACKET, packet);
356 "Can't parse packet"
630 isValidPacket(DhcpPacket packet) argument
646 setDhcpLeaseExpiry(DhcpPacket packet) argument
701 receivePacket(DhcpPacket packet) argument
750 receivePacket(DhcpPacket packet) argument
779 receivePacket(DhcpPacket packet) argument
874 receivePacket(DhcpPacket packet) argument
[all...]
H A DDhcpPacket.java52 * Minimum length of a DHCP packet, excluding options, in the above encapsulations.
112 * The maximum length of a packet that can be constructed.
277 * Asks the packet object to create a ByteBuffer serialization of
278 * the packet for transmission.
284 * Allows the concrete class to fill in packet-type-specific details,
285 * typically optional parameters at the end of the packet.
327 * Creates a new L3 packet (including IP header) containing the
328 * DHCP udp packet. This method relies upon the delegated method
329 * finishPacket() to insert the per-packet contents.
353 // if a full IP packet need
634 readIpAddress(ByteBuffer packet) argument
680 decodeFullPacket(ByteBuffer packet, int pktType) argument
1011 decodeFullPacket(byte[] packet, int length, int pktType) argument
[all...]
/frameworks/av/media/libstagefright/
H A DOggExtractor.cpp146 // Read the next ogg packet from the underlying data source; optionally
147 // calculate the timestamp for the output packet whilst pretending
268 MediaBuffer *packet; local
269 status_t err = mExtractor->mImpl->readNextPacket(&packet);
277 if (packet->meta_data()->findInt64(kKeyTime, &timeUs)) {
284 packet->meta_data()->setInt32(kKeyIsSyncFrame, 1);
286 *out = packet;
486 // XXX what if new page continues packet from last???
567 // the first time before we attempt to read a packet from the first page.
603 // first packet i
809 MediaBuffer *packet; local
[all...]

Completed in 280 milliseconds