Home | History | Annotate | Download | only in releasetools

Lines Matching refs:target_files_zip

500     with zipfile.ZipFile(target_files, 'w') as target_files_zip:
501 target_files_zip.writestr('META/apkcerts.txt', apkcerts_txt)
503 target_files_zip.writestr(entry, '')
622 with zipfile.ZipFile(target_files, 'w') as target_files_zip:
623 target_files_zip.write(
629 target_files_zip.writestr('IMAGES/system.map', '')
630 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 8))
631 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
654 with zipfile.ZipFile(target_files, 'w') as target_files_zip:
655 target_files_zip.write(
661 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 8))
662 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
673 with zipfile.ZipFile(target_files, 'w') as target_files_zip:
674 target_files_zip.write(
678 target_files_zip.writestr(
683 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
684 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
695 with zipfile.ZipFile(target_files, 'w') as target_files_zip:
697 target_files_zip.write(
701 target_files_zip.writestr(
706 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
707 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
737 with zipfile.ZipFile(target_files, 'w') as target_files_zip:
738 target_files_zip.write(
741 target_files_zip.writestr(
746 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
748 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
759 with zipfile.ZipFile(target_files, 'w') as target_files_zip:
760 target_files_zip.write(
763 target_files_zip.writestr(
769 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
771 target_files_zip.writestr('SYSTEM/file2', os.urandom(4096 * 3))
773 target_files_zip.writestr('SYSTEM/app/file3', os.urandom(4096 * 4))
786 with zipfile.ZipFile(target_files, 'w') as target_files_zip:
787 target_files_zip.write(
790 target_files_zip.writestr(
795 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
797 target_files_zip.writestr('ROOT/init.rc', os.urandom(4096 * 4))
808 with zipfile.ZipFile(target_files, 'w') as target_files_zip:
809 target_files_zip.write(
812 target_files_zip.writestr(
817 target_files_zip.writestr('SYSTEM/file1', os.urandom(4096 * 7))
887 with zipfile.ZipFile(target_files, 'w') as target_files_zip:
890 common.ZipWriteStr(target_files_zip, 'META/misc_info.txt', info_values)
897 common.ZipWriteStr(target_files_zip, fstab_path, fstab_values)
900 target_files_zip, 'META/file_contexts', 'file-contexts')
907 with zipfile.ZipFile(target_files, 'r') as target_files_zip:
908 loaded_dict = common.LoadInfoDict(target_files_zip)
918 with zipfile.ZipFile(target_files, 'r') as target_files_zip:
919 loaded_dict = common.LoadInfoDict(target_files_zip)
957 with zipfile.ZipFile(target_files, 'r') as target_files_zip:
958 loaded_dict = common.LoadInfoDict(target_files_zip)
973 with zipfile.ZipFile(target_files, 'r') as target_files_zip:
974 loaded_dict = common.LoadInfoDict(target_files_zip)
987 with zipfile.ZipFile(target_files, 'r') as target_files_zip:
988 loaded_dict = common.LoadInfoDict(target_files_zip)
998 with zipfile.ZipFile(target_files, 'r') as target_files_zip:
999 self.assertRaises(ValueError, common.LoadInfoDict, target_files_zip)
1021 with zipfile.ZipFile(target_files, 'r') as target_files_zip:
1023 AssertionError, common.LoadInfoDict, target_files_zip, True)