Lines Matching refs:target_files_zip

881     with zipfile.ZipFile(target_files, 'w', allowZip64=True) as target_files_zip:
882 target_files_zip.writestr('META/apkcerts.txt', apkcerts_txt)
884 target_files_zip.writestr(entry, '')
1020 with zipfile.ZipFile(target_files, 'w', allowZip64=True) as target_files_zip:
1021 target_files_zip.write(
1027 target_files_zip.writestr('IMAGES/system.map', '')
1028 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 8))
1029 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
1102 with zipfile.ZipFile(target_files, 'w', allowZip64=True) as target_files_zip:
1103 target_files_zip.write(
1109 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 8))
1110 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
1122 with zipfile.ZipFile(target_files, 'w', allowZip64=True) as target_files_zip:
1123 target_files_zip.write(
1127 target_files_zip.writestr(
1132 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
1133 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
1145 with zipfile.ZipFile(target_files, 'w', allowZip64=True) as target_files_zip:
1147 target_files_zip.write(
1151 target_files_zip.writestr(
1156 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
1157 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
1190 with zipfile.ZipFile(target_files, 'w', allowZip64=True) as target_files_zip:
1191 target_files_zip.write(
1194 target_files_zip.writestr(
1199 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
1201 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
1215 with zipfile.ZipFile(target_files, 'w', allowZip64=True) as target_files_zip:
1216 target_files_zip.write(
1219 target_files_zip.writestr(
1225 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
1227 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
1229 target_files_zip.writestr('SYSTEM/app/file3', os.urandom(4096 * 4))
1245 with zipfile.ZipFile(target_files, 'w', allowZip64=True) as target_files_zip:
1246 target_files_zip.write(
1249 target_files_zip.writestr(
1254 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
1256 target_files_zip.writestr('ROOT/init.rc', os.urandom(4096 * 4))
1270 with zipfile.ZipFile(target_files, 'w', allowZip64=True) as target_files_zip:
1271 target_files_zip.write(
1274 target_files_zip.writestr(
1279 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
1370 with zipfile.ZipFile(target_files, 'w', allowZip64=True) as target_files_zip:
1373 common.ZipWriteStr(target_files_zip, 'META/misc_info.txt', info_values)
1380 common.ZipWriteStr(target_files_zip, fstab_path, fstab_values)
1383 target_files_zip, 'META/file_contexts', 'file-contexts')
1390 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as target_files_zip:
1391 loaded_dict = common.LoadInfoDict(target_files_zip)
1401 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as target_files_zip:
1402 loaded_dict = common.LoadInfoDict(target_files_zip)
1442 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as target_files_zip:
1443 loaded_dict = common.LoadInfoDict(target_files_zip)
1458 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as target_files_zip:
1459 loaded_dict = common.LoadInfoDict(target_files_zip)
1472 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as target_files_zip:
1473 loaded_dict = common.LoadInfoDict(target_files_zip)
1484 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as target_files_zip:
1485 self.assertRaises(ValueError, common.LoadInfoDict, target_files_zip)
1508 with zipfile.ZipFile(target_files, 'r', allowZip64=True) as target_files_zip:
1510 AssertionError, common.LoadInfoDict, target_files_zip, True)