Searched refs:pack (Results 1 - 13 of 13) sorted by relevance
/system/core/mkbootimg/ |
H A D | mkbootimg | 20 from struct import pack namespace 38 sha.update(pack('I', filesize(f))) 40 sha.update(pack('I', 0)) 45 f.write(pack(str(pad) + 'x')) 50 args.output.write(pack('8s', BOOT_MAGIC)) 51 args.output.write(pack('10I', 62 args.output.write(pack('16s', args.board.encode())) # asciiz product name 63 args.output.write(pack('512s', args.cmdline[:512].encode())) 69 img_id = pack('32s', sha.digest()) 72 args.output.write(pack('102 [all...] |
/system/bt/tools/scripts/ |
H A D | btsnooz.py | 108 sys.stdout.write(struct.pack('>II', length, length)) 109 sys.stdout.write(struct.pack('>II', type_to_direction(type), 0)) 110 sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF))) 135 sys.stdout.write(struct.pack('>II', packet_length, length)) 136 sys.stdout.write(struct.pack('>II', type_to_direction(snooz_type), 0)) 137 sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF)))
|
/system/extras/simpleperf/ |
H A D | report.py | 146 frame.pack(fill=BOTH, expand=1) 153 label.pack(anchor=W, padx=PAD_X, pady=PAD_Y) 157 label.pack(anchor=W, padx=PAD_X, pady=PAD_Y) 161 label.pack(anchor=W, padx=PAD_X, pady=PAD_Y) 165 report_frame.pack(fill=BOTH, expand=1) 168 yscrollbar.pack(side=RIGHT, fill=Y) 170 xscrollbar.pack(side=BOTTOM, fill=X) 173 tree.pack(side=LEFT, fill=BOTH, expand=1)
|
/system/extras/tests/net_test/ |
H A D | net_test.py | 99 sock.setsockopt(SOL_SOCKET, SO_RCVTIMEO, struct.pack("LL", s, us)) 157 sock.setsockopt(SOL_SOCKET, SO_LINGER, struct.pack("ii", 1, 0)) 176 ifr = struct.pack("%dsi" % IFNAMSIZ, ifname, 0) 187 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr) 193 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, 0) 200 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, flags) 295 return struct.pack(fmt, addr, label, action, share, flags, 0, 0, pad)
|
H A D | csocket.py | 97 data = struct.pack("=I", data)
|
H A D | cstruct.py | 164 return struct.pack(self._format, *values)
|
H A D | netlink.py | 77 return self._NlAttr(nla_type, struct.pack("=I", value))
|
H A D | multinetwork_base.py | 217 ifr = struct.pack("16sH", iface, IFF_TAP | IFF_NO_PI) 423 ifindex = struct.pack("!I", ifindex)
|
H A D | sock_diag.py | 193 arg = "\x00\x00" + struct.pack("=H", arg)
|
H A D | multinetwork_test.py | 156 packet = struct.pack("!i", ethertype) + inner
|
/system/extras/verity/ |
H A D | build_verity_metadata.py | 40 block = struct.pack("II256sI", MAGIC_NUMBER, VERSION, signature, table_len)
|
/system/connectivity/shill/test-scripts/ |
H A D | routing.py | 36 return socket.inet_ntoa(struct.pack('@I', addr))
|
/system/core/adb/ |
H A D | test_adb.py | 154 struct.pack(linger_format, l_onoff, l_linger))
|
Completed in 184 milliseconds