Lines Matching refs:common
17 import common
45 if common.OPTIONS.full_radio:
55 radio_type, radio_device = common.GetTypeAndDevice("/radio", info.info_dict)
58 len(source_radio_img), common.sha1(source_radio_img).hexdigest(),
59 len(target_radio_img), common.sha1(target_radio_img).hexdigest()))
83 assert common.OPTIONS.full_radio == False
85 tf = common.File("radio.img", tf)
88 if not sf or common.OPTIONS.full_radio:
95 sf = common.File("radio.img", sf)
100 diff = common.Difference(tf, sf, diff_program="bsdiff")
101 common.ComputeDifferences([diff])
103 if d is None or len(d) > tf.size * common.OPTIONS.patch_threshold:
108 common.ZipWriteStr(info.output_zip, "radio.img.p", d)
110 radio_type, radio_device = common.GetTypeAndDevice(
120 common.ZipWriteStr(info.output_zip, "radio.img", radio_img)
121 _, device = common.GetTypeAndDevice("/radio", info.info_dict)
185 common.ZipWriteStr(info.output_zip, "bootloader-flag.txt",
187 common.ZipWriteStr(info.output_zip, "bootloader-flag-clear.txt", "\0" * 32)
189 _, misc_device = common.GetTypeAndDevice("/misc", info.info_dict)
216 _, device = common.GetTypeAndDevice("/"+i+"bak", info.info_dict)
220 common.ZipWriteStr(info.output_zip, "bootloader.%s.img" % (i,),
235 _, device = common.GetTypeAndDevice("/"+i, info.info_dict)
248 _, device = common.GetTypeAndDevice("/"+i, info.info_dict)
252 common.ZipWriteStr(info.output_zip, "bootloader.%s.img" % (i,),