/frameworks/base/media/mtp/ |
MtpObjectInfo.cpp | 58 void MtpObjectInfo::read(MtpDataPacket& packet) { 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.getUInt32() [all...] |
MtpDeviceInfo.cpp | 62 void MtpDeviceInfo::read(MtpDataPacket& packet) { 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.getAUInt16() [all...] |
MtpStorageInfo.cpp | 46 void MtpStorageInfo::read(MtpDataPacket& packet) { 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);
|
MtpStringBuffer.h | 46 void readFromPacket(MtpDataPacket* packet); 47 void writeToPacket(MtpDataPacket* packet) const;
|
MtpProperty.h | 86 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,
|
MtpProperty.cpp | 124 void MtpProperty::read(MtpDataPacket& packet) { 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.getUInt8() [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldAndroidDatagramTest.java | 46 DatagramPacket packet; field in class:OldAndroidDatagramTest.Reflector 56 packet.setLength(buffer.length); 57 socket.receive(packet); 58 String s = stringFromPacket(packet); 59 // System.out.println(s + " (from " + packet.getAddress() + ":" + packet.getPort() + ")"); 67 stringToPacket(s.toUpperCase(), packet); local 69 packet.setAddress(InetAddress.getLocalHost()); 70 packet.setPort(2345); 72 socket.send(packet); 128 DatagramPacket packet = new DatagramPacket(buffer, buffer.length); local [all...] |
OldDatagramPacketTest.java | 52 DatagramPacket packet = new DatagramPacket(new byte[256], 54 socket.receive(packet); 55 socket.send(packet); 70 DatagramPacket packet = new DatagramPacket(new byte[] { 1, 2, 3, 4, local 80 socket.send(packet); 81 socket.receive(packet); 83 assertTrue("datagram received wrong port: " + packet.getPort(), 84 packet.getPort() == port);
|
/external/ppp/pppd/plugins/rp-pppoe/ |
debug.c | 78 * packet -- a PPPoE packet 83 * Dumps the PPPoE packet to fp in an easy-to-read format 86 dumpPacket(FILE *fp, PPPoEPacket *packet, char const *dir) 88 int len = ntohs(packet->length); 97 UINT16_t type = etherType(packet); 113 switch(packet->code) { 123 (int) ntohs(packet->session), 130 (unsigned) packet->ethHdr.h_source[0], 131 (unsigned) packet->ethHdr.h_source[1] [all...] |
common.c | 36 * packet -- the PPPoE discovery packet to parse 37 * func -- function called for each tag in the packet 42 * Parses a PPPoE discovery packet, calling "func" for each tag in the packet. 46 parsePacket(PPPoEPacket *packet, ParseFunc *func, void *extra) 48 UINT16_t len = ntohs(packet->length); 52 if (packet->ver != 1) { 53 syslog(LOG_ERR, "Invalid PPPoE version (%d)", (int) packet->ver); 56 if (packet->type != 1) 398 PPPoEPacket packet; local [all...] |
discovery.c | 73 * packet -- a received PPPoE packet 75 * 1 if packet is for this PPPoE daemon; 0 otherwise. 77 * If we are using the Host-Unique tag, verifies that packet contains 81 packetIsForMe(PPPoEConnection *conn, PPPoEPacket *packet) 85 /* If packet is not directed to our MAC address, forget it */ 86 if (memcmp(packet->ethHdr.h_dest, conn->myEth, ETH_ALEN)) return 0; 88 /* If we're not using the Host-Unique tag, then accept the packet */ 91 parsePacket(packet, parseForHostUniq, &forMe); 107 * Picks interesting tags out of a PADO packet 246 PPPoEPacket packet; local 316 PPPoEPacket packet; local 416 PPPoEPacket packet; local 500 PPPoEPacket packet; local [all...] |
/external/qemu/ |
shaper.c | 46 * we're going to implement a scheme where, when we send a packet of 47 * 'count' bytes, no other packet will go through in the same direction for 48 * at least 'count*8/MAX_RATE' seconds. any successive packet that is "sent" 69 QueuedPacket packet; local 70 size_t packet_size = sizeof(*packet); 75 packet = qemu_malloc(packet_size); 76 packet->next = NULL; 77 packet->expiration = 0; 78 packet->size = (size_t)size; 79 packet->opaque = opaque 120 QueuedPacket packet = shaper->packets; local 137 QueuedPacket packet; local 188 QueuedPacket packet = shaper->packets; local 229 QueuedPacket packet; local 297 QueuedPacket packet; member in struct:SessionRec_ 433 QueuedPacket packet = session->packet; local 488 QueuedPacket packet = session->packet; local [all...] |
/system/core/libnetutils/ |
packet.c | 164 } packet; local 170 nread = read(s, &packet, sizeof(packet)); 175 * The raw packet interface gives us all packets received by the 182 LOGD("Packet is too small (%d) to be a UDP datagram", nread); 184 } else if (packet.ip.version != IPVERSION || packet.ip.ihl != (sizeof(packet.ip) >> 2)) { 186 LOGD("Not a valid IP packet"); 188 } else if (nread < ntohs(packet.ip.tot_len)) [all...] |
Android.mk | 9 packet.c
|
/libcore/luni/src/main/java/libcore/net/ |
RawSocket.java | 38 String interfaceName, byte[] destMac, byte[] packet, int offset, 40 private static native int recvPacket(FileDescriptor fd, byte[] packet, 58 * Reads a raw packet into the specified buffer, with the 61 * indication of overflow is signaled. The packet data will start 65 public int read(byte[] packet, int offset, int byteCount, int destPort, 67 if (packet == null) { 68 throw new NullPointerException("packet == null"); 71 Arrays.checkOffsetAndCount(packet.length, offset, byteCount); 78 return recvPacket(fd, packet, offset, byteCount, destPort, 83 * Writes a raw packet to the desired interface. A L2 header wil [all...] |
/development/samples/ToyVpn/server/linux/ |
ToyVpnServer.cpp | 108 char packet[1024]; local 112 int n = recvfrom(tunnel, packet, sizeof(packet), 0, 117 packet[n] = 0; 118 } while (packet[0] != 0 || strcmp(secret, &packet[1])); 201 // Send the parameters several times in case of packet loss. 206 // Allocate the buffer for a single packet. 207 char packet[32767]; local 219 // Read the outgoing packet from the input stream [all...] |
/external/chromium/net/tools/spdyshark/ |
packet-spdy.h | 0 /* packet-spdy.h 31 #include <epan/packet.h>
|
/external/dnsmasq/contrib/wrt/ |
dhcp_lease_time.c | 76 return NULL; /* malformed packet */ 83 return NULL; /* malformed packet */ 86 return NULL; /* malformed packet */ 137 struct dhcp_packet packet; local 138 unsigned char *p = packet.options; 157 memset(&packet, 0, sizeof(packet)); 159 packet.hlen = 0; 160 packet.htype = 0; 162 packet.op = BOOTREQUEST [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/ |
pg.h | 5 pg.h defines the user interface to the generic ATAPI packet 49 char packet[12]; /* packet command */ member in struct:pg_write_hdr
|
/frameworks/base/core/java/android/net/dhcp/ |
DhcpPacket.java | 25 * Packet encapsulations. 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 [all...] |
/external/chromium/third_party/libjingle/source/talk/session/phone/ |
filemediaengine.cc | 87 void OnPacketReceived(talk_base::Buffer* packet); 93 // Read the next RTP dump packet, whose RTP SSRC is the same as first_ssrc_. 95 bool ReadNextPacket(RtpDumpPacket* packet); 96 // Send a RTP packet to the network. The input parameter data points to the 97 // start of the RTP packet and len is the packet size. Return true if the sent 106 // RTP dump packet read from the input stream. 152 void RtpSenderReceiver::OnPacketReceived(talk_base::Buffer* packet) { 154 rtp_dump_writer_->WriteRtpPacket(packet->data(), packet->length()) [all...] |
rtpdump.h | 48 // For each packet, the file contains a 8 byte dump packet header, followed by 49 // the actual RTP or RTCP packet. 75 // Get the sequence number, timestampe, and SSRC of the RTP packet. Return 83 bool is_rtcp; // True if the data below is a RTCP packet. 84 std::vector<uint8> data; // The actual RTP or RTCP packet. 97 virtual talk_base::StreamResult ReadPacket(RtpDumpPacket* packet); 124 virtual talk_base::StreamResult ReadPacket(RtpDumpPacket* packet); 127 // During the first loop, update the statistics, including packet count, frame 129 void UpdateStreamStatistics(const RtpDumpPacket& packet); [all...] |
/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
ToyVpnService.java | 164 // Allocate the buffer for a single packet. 165 ByteBuffer packet = ByteBuffer.allocate(32767); local 177 // Read the outgoing packet from the input stream. 178 int length = in.read(packet.array()); 180 // Write the outgoing packet to the tunnel. 181 packet.limit(length); 182 tunnel.write(packet); 183 packet.clear(); 194 // Read the incoming packet from the tunnel. 195 length = tunnel.read(packet); 263 ByteBuffer packet = ByteBuffer.allocate(1024); local [all...] |
/external/flac/libFLAC/ |
ogg_encoder_aspect.c | 94 * packet. The packet is prefixed with 95 * + the one-byte packet type 0x7F 99 * - The first packet is flushed to the first page. 100 * - Each subsequent metadata block goes into its own packet. 101 * - Each metadata packet is flushed to page (this is not required, 104 * - Each subsequent FLAC audio frame goes into its own packet. 120 * Treat fLaC magic packet specially. We will note when we see it, then 121 * wait until we get the STREAMINFO and prepend it in that packet 124 ogg_packet packet; local [all...] |
/external/srtp/srtp/ |
ekt.c | 207 uint8_t *packet; local 217 packet = (uint8_t*)base_tag + base_tag_len; 219 /* copy encrypted master key into packet */ 221 memcpy(packet, ekt->encrypted_master_key, emk_len); 223 octet_string_hex_string(packet, emk_len)); 224 packet += emk_len; 226 /* copy ROC into packet */ 228 *((uint32_t *)packet) = be32_to_cpu(roc); 230 octet_string_hex_string(packet, sizeof(roc))); 231 packet += sizeof(roc) [all...] |