Home
last modified time | relevance | path

Searched refs:pack (Results 1 – 11 of 11) sorted by relevance

/system/core/mkbootimg/
Dmkbootimg.py20 from struct import pack
38 sha.update(pack('I', filesize(f)))
40 sha.update(pack('I', 0))
45 f.write(pack(str(pad) + 'x'))
72 args.output.write(pack('8s', BOOT_MAGIC))
73 args.output.write(pack('10I',
84 args.output.write(pack('16s', args.board.encode())) # asciiz product name
85 args.output.write(pack('512s', args.cmdline[:512].encode()))
97 img_id = pack('32s', sha.digest())
100 args.output.write(pack('1024s', args.cmdline[512:].encode()))
[all …]
/system/bt/tools/scripts/
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/scripts/
Dreport.py197 frame.pack(fill=BOTH, expand=1)
204 label.pack(anchor=W, padx=PAD_X, pady=PAD_Y)
208 label.pack(anchor=W, padx=PAD_X, pady=PAD_Y)
212 label.pack(anchor=W, padx=PAD_X, pady=PAD_Y)
216 report_frame.pack(fill=BOTH, expand=1)
219 yscrollbar.pack(side=RIGHT, fill=Y)
221 xscrollbar.pack(side=BOTTOM, fill=X)
224 tree.pack(side=LEFT, fill=BOTH, expand=1)
/system/extras/ioshark/
Dioshark.h24 #pragma pack(push, 1)
129 #pragma pack(pop)
/system/core/lmkd/include/
Dlmkd.h53 static inline enum lmk_cmd lmkd_pack_get_cmd(LMKD_CTRL_PACKET pack) { in lmkd_pack_get_cmd() argument
54 return (enum lmk_cmd)ntohl(pack[0]); in lmkd_pack_get_cmd()
/system/netd/resolv/
Dres_cache.cpp1059 DnsPacket pack[1]; in entry_hash() local
1061 _dnsPacket_init(pack, e->query, e->querylen); in entry_hash()
1062 return _dnsPacket_hashQuery(pack); in entry_hash()
1068 DnsPacket pack[1]; in entry_init_key() local
1076 _dnsPacket_init(pack, e->query, e->querylen); in entry_init_key()
1078 return _dnsPacket_checkQuery(pack); in entry_init_key()
1293 DnsPacket pack[1]; in dump_query() local
1295 _dnsPacket_init(pack, query, querylen); in dump_query()
1296 p = dnsPacket_bprintQuery(pack, p, end); in dump_query()
/system/core/adb/
Dtest_adb.py54 buf = struct.pack("IIIIII", bin_command, arg0, arg1, len(data), 0,
296 struct.pack(linger_format, l_onoff, l_linger))
484 packet = struct.pack("IIIIII", 0, 0, 0, 0, 0, 0)
/system/extras/verity/
Dbuild_verity_metadata.py44 block = struct.pack("II256sI", magic, VERSION, signature, table_len)
/system/update_engine/scripts/update_payload/
Dtest_utils.py72 file_obj.write(struct.pack(common.IntPackingFmtStr(size, is_unsigned), val))
/system/libufdt/utils/
DREADME.md11 You can use `mkdtimg` to pack one or more DTB/DTBO files into an image.
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h1878 __pragma(pack(1)); \
1881 __pragma(pack()); \