Home
last modified time | relevance | path

Searched refs:output_zip (Results 1 – 16 of 16) sorted by relevance

/build/make/tools/releasetools/
Dadd_img_to_target_files.py96 def __init__(self, output_zip, input_dir, prefix, name): argument
100 self._output_zip = output_zip
148 def AddSystem(output_zip, recovery_img=None, boot_img=None): argument
152 img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system.img")
162 if output_zip:
164 if arc_name in output_zip.namelist():
167 common.ZipWrite(output_zip, output_file, arc_name)
178 block_list = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system.map")
185 def AddSystemOther(output_zip): argument
189 img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system_other.img")
[all …]
Dadd_img_to_target_files96 def __init__(self, output_zip, input_dir, prefix, name):
100 self._output_zip = output_zip
148 def AddSystem(output_zip, recovery_img=None, boot_img=None):
152 img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system.img")
162 if output_zip:
164 if arc_name in output_zip.namelist():
167 common.ZipWrite(output_zip, output_file, arc_name)
178 block_list = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system.map")
185 def AddSystemOther(output_zip):
189 img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "system_other.img")
[all …]
Dtest_sign_target_files_apks.py175 zipfile.ZipFile(output_file, 'w') as output_zip:
176 ReplaceVerityKeyId(input_zip, output_zip, cert_file)
178 with zipfile.ZipFile(output_file) as output_zip:
179 self.assertEqual(BOOT_CMDLINE1, output_zip.read('BOOT/cmdline').decode())
185 zipfile.ZipFile(output_file, 'w') as output_zip:
186 ReplaceVerityKeyId(input_zip, output_zip, cert_file)
188 with zipfile.ZipFile(output_file) as output_zip:
189 self.assertEqual(BOOT_CMDLINE2, output_zip.read('BOOT/cmdline').decode())
203 zipfile.ZipFile(output_file, 'w') as output_zip:
204 ReplaceVerityKeyId(input_zip, output_zip, None)
[all …]
Dota_from_target_files465 def WriteToZip(self, output_zip): argument
484 common.ZipWrite(output_zip, self.payload_file, arcname=payload_arcname,
486 common.ZipWrite(output_zip, self.payload_properties,
510 def _WriteRecoveryImageToBoot(script, output_zip): argument
530 output_zip,
734 output_zip = zipfile.ZipFile(
740 output_zip=output_zip,
790 common.ZipWriteStr(output_zip, "recovery.img", recovery_img.data)
827 dynamic_partitions_diff.WriteScript(script, output_zip,
831 block_diff.WriteScript(script, output_zip,
[all …]
Dota_from_target_files.py465 def WriteToZip(self, output_zip): argument
484 common.ZipWrite(output_zip, self.payload_file, arcname=payload_arcname,
486 common.ZipWrite(output_zip, self.payload_properties,
510 def _WriteRecoveryImageToBoot(script, output_zip): argument
530 output_zip,
734 output_zip = zipfile.ZipFile(
740 output_zip=output_zip,
790 common.ZipWriteStr(output_zip, "recovery.img", recovery_img.data)
827 dynamic_partitions_diff.WriteScript(script, output_zip,
831 block_diff.WriteScript(script, output_zip,
[all …]
Dtest_add_img_to_target_files.py96 with zipfile.ZipFile(output_file, 'w') as output_zip:
97 AddPackRadioImages(output_zip, images)
347 with zipfile.ZipFile(output_file, 'w') as output_zip:
348 AddCareMapForAbOta(output_zip, ['system', 'vendor'], image_paths)
370 with zipfile.ZipFile(output_file, 'w') as output_zip:
372 common.ZipWriteStr(output_zip, 'META/care_map.pb',
376 AddCareMapForAbOta(output_zip, ['system', 'vendor'], image_paths)
Dsign_target_files_apks.py807 def WriteOtacerts(output_zip, filename, keys): argument
820 common.ZipWriteStr(output_zip, filename, temp_file.getvalue())
877 def ReplaceVerityPublicKey(output_zip, filename, key_path): argument
886 common.ZipWrite(output_zip, key_path, arcname=filename)
900 def ReplaceVerityKeyId(input_zip, output_zip, key_path): argument
912 common.ZipWriteStr(output_zip, "BOOT/cmdline", in_cmdline)
932 common.ZipWriteStr(output_zip, "BOOT/cmdline", out_cmdline)
935 def ReplaceMiscInfoTxt(input_zip, output_zip, misc_info): argument
947 common.ZipWriteStr(output_zip, "META/misc_info.txt", '\n'.join(items))
1298 output_zip = zipfile.ZipFile(args[1], "w",
[all …]
Dsign_target_files_apks807 def WriteOtacerts(output_zip, filename, keys): argument
820 common.ZipWriteStr(output_zip, filename, temp_file.getvalue())
877 def ReplaceVerityPublicKey(output_zip, filename, key_path): argument
886 common.ZipWrite(output_zip, key_path, arcname=filename)
900 def ReplaceVerityKeyId(input_zip, output_zip, key_path): argument
912 common.ZipWriteStr(output_zip, "BOOT/cmdline", in_cmdline)
932 common.ZipWriteStr(output_zip, "BOOT/cmdline", out_cmdline)
935 def ReplaceMiscInfoTxt(input_zip, output_zip, misc_info): argument
947 common.ZipWriteStr(output_zip, "META/misc_info.txt", '\n'.join(items))
1298 output_zip = zipfile.ZipFile(args[1], "w",
[all …]
Dtest_common.py635 output_zip = zipfile.ZipFile(zip_file.name, 'w',
639 common.ZipWrite(output_zip, entry_file.name, arcname='Test1')
640 common.ZipWrite(output_zip, entry_file.name, arcname='Test2')
641 common.ZipWrite(output_zip, entry_file.name, arcname='Test3')
642 common.ZipClose(output_zip)
680 output_zip = zipfile.ZipFile(
685 common.ZipWrite(output_zip, entry_file.name, arcname='Test1')
686 common.ZipWrite(output_zip, entry_file.name, arcname='Test2')
687 common.ZipWrite(output_zip, entry_file.name, arcname='Foo3')
688 common.ZipWrite(output_zip, entry_file.name, arcname='Bar4')
[all …]
Dtest_ota_from_target_files.py882 with zipfile.ZipFile(output_file, 'w') as output_zip:
883 payload.WriteToZip(output_zip)
1215 with zipfile.ZipFile(output_file, 'w') as output_zip:
1216 payload.WriteToZip(output_zip)
1229 with zipfile.ZipFile(output_file, 'w') as output_zip:
1230 payload.WriteToZip(output_zip)
1268 with zipfile.ZipFile(output_file, 'w') as output_zip:
1269 payload.WriteToZip(output_zip)
1290 with zipfile.ZipFile(output_file, 'w') as output_zip:
1291 self.assertRaises(AssertionError, payload.WriteToZip, output_zip)
[all …]
Dmerge_target_files.py891 output_zip = os.path.abspath(output_file)
907 output_zip,
918 return output_zip
987 output_zip = create_target_files_archive(output_target_files,
994 img_from_target_files.main([output_zip, output_img])
999 ota_from_target_files.main([output_zip, output_ota])
Dimg_from_target_files.py172 allowZip64=not OPTIONS.sparse_userimages) as output_zip:
173 common.ZipWrite(output_zip, super_file, 'super.img')
Dimg_from_target_files172 allowZip64=not OPTIONS.sparse_userimages) as output_zip:
173 common.ZipWrite(output_zip, super_file, 'super.img')
Dedify_generator.py419 def AddToZip(self, input_zip, output_zip, input_path=None): argument
427 common.ZipWriteStr(output_zip, "META-INF/com/google/android/updater-script",
434 common.ZipWriteStr(output_zip, "META-INF/com/google/android/update-binary",
Dtest_apex_utils.py177 with zipfile.ZipFile(no_asset, 'w') as output_zip:
182 output_zip.writestr(name, input_zip.read(name))
Dcommon.py2738 def WriteScript(self, script, output_zip, progress=None, argument
2748 self._WriteUpdate(script, output_zip)
2885 def _WriteUpdate(self, script, output_zip): argument
2886 ZipWrite(output_zip,
2906 ZipWrite(output_zip,
2912 ZipWrite(output_zip, '{}.new.dat'.format(self.path), new_data_name)
2914 ZipWrite(output_zip,
3312 def WriteScript(self, script, output_zip, write_verify_script=False): argument
3317 u.block_difference.WriteScript(script, output_zip, progress=u.progress,
3325 ZipWrite(output_zip, op_list_path, "dynamic_partitions_op_list")
[all …]