Searched refs:struct (Results 1 - 9 of 9) sorted by relevance
/system/core/libsparse/ |
H A D | simg_dump.py | 18 import getopt, posixpath, signal, struct, sys namespace 56 header = struct.unpack("<I4H4I", header_bin) 98 header = struct.unpack("<2H2I", header_bin) 123 fill = struct.unpack("<I", fill_bin) 138 crc = struct.unpack("<I", crc) 145 header = struct.unpack("<12B", header_bin)
|
/system/extras/tests/net_test/ |
H A D | cstruct.py | 19 >>> # Declare a struct type by specifying name, field formats and field names. 20 ... # Field formats are the same as those used in the struct module. 39 >>> # Parse the beginning of a byte stream as a struct, and return the struct 50 import struct namespace 54 """Function that returns struct classes.""" 74 _length = struct.calcsize(_format) 83 values = list(struct.unpack(self._format, data)) 118 return struct.pack(self._format, *self._values)
|
H A D | net_test.py | 20 import struct namespace 86 sock.setsockopt(SOL_SOCKET, SO_RCVTIMEO, struct.pack("LL", s, us)) 145 ifr = struct.pack("16si", ifname, 0) 147 return struct.unpack("16si", ifr)[1] 156 ifr = struct.pack("16sH6s", ifname, scapy.ARPHDR_ETHER, hwaddr) 162 ifr = struct.pack("16sH", ifname, 0) 164 _, flags = struct.unpack("16sH", ifr) 169 ifr = struct.pack("16sH", ifname, flags) 199 out += "%08X" % struct.unpack("=L", binary[i:i+4]) 244 # struct in6_flowlabel_re [all...] |
H A D | csocket.py | 21 import struct namespace 36 CMSG_ALIGNTO = struct.calcsize("@L") # The kernel defines this as sizeof(long). 96 data = struct.pack("=I", data) 127 to: An address tuple, or a SockaddrIn[6] struct. Becomes msg->msg_name. 142 # Convert the destination address into a struct sockaddr. 152 # Convert the data to a data buffer and a struct iovec pointing at it. 172 # Assemble the struct msghdr.
|
H A D | iproute.py | 24 import struct namespace 224 return self._NlAttr(nla_type, struct.pack("=I", value)) 273 return ("RTAX_MTU", struct.unpack("=I", nla_data)[0]) 297 data = struct.unpack("=I", nla_data)[0] 299 data = struct.unpack("=i", nla_data)[0] 428 match_nlattr: A blob of struct nlattrs that express the match condition. 436 # Create a struct rtmsg specifying the table and the given match attributes. 559 # Create a struct rtmsg specifying the table and the given match attributes.
|
H A D | multinetwork_base.py | 26 import struct namespace 212 ifr = struct.pack("16sH", iface, IFF_TAP | IFF_NO_PI) 408 ifindex = struct.pack("!I", ifindex)
|
H A D | multinetwork_test.py | 21 import struct namespace 350 packet = struct.pack("!i", ethertype) + inner 880 unused_sockaddr, mtu = struct.unpack("=28sI", ip6_mtuinfo)
|
/system/extras/verity/ |
H A D | build_verity_metadata.py | 5 import struct namespace 25 block = struct.pack("II256sI", MAGIC_NUMBER, VERSION, signature, table_len)
|
/system/bt/stack/ |
H A D | Android.mk | 170 # a struct.
|
Completed in 285 milliseconds