Searched refs:pack (Results 1 - 13 of 13) sorted by relevance

/system/core/mkbootimg/
H A Dmkbootimg20 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 Dbtsnooz.py108 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 Dreport.py146 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 Dnet_test.py99 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 Dcsocket.py97 data = struct.pack("=I", data)
H A Dcstruct.py164 return struct.pack(self._format, *values)
H A Dnetlink.py77 return self._NlAttr(nla_type, struct.pack("=I", value))
H A Dmultinetwork_base.py217 ifr = struct.pack("16sH", iface, IFF_TAP | IFF_NO_PI)
423 ifindex = struct.pack("!I", ifindex)
H A Dsock_diag.py193 arg = "\x00\x00" + struct.pack("=H", arg)
H A Dmultinetwork_test.py156 packet = struct.pack("!i", ethertype) + inner
/system/extras/verity/
H A Dbuild_verity_metadata.py40 block = struct.pack("II256sI", MAGIC_NUMBER, VERSION, signature, table_len)
/system/connectivity/shill/test-scripts/
H A Drouting.py36 return socket.inet_ntoa(struct.pack('@I', addr))
/system/core/adb/
H A Dtest_adb.py154 struct.pack(linger_format, l_onoff, l_linger))

Completed in 184 milliseconds