Searched defs:common (Results 1 - 25 of 52) sorted by relevance

123

/build/make/tools/releasetools/
H A Dmake_recovery_patch26 import common namespace
28 OPTIONS = common.OPTIONS
34 args = common.ParseOptions(argv, __doc__)
37 OPTIONS.info_dict = common.LoadInfoDict(input_dir)
39 recovery_img = common.GetBootableImage("recovery.img", "recovery.img",
41 boot_img = common.GetBootableImage("boot.img", "boot.img",
51 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
H A Dmake_recovery_patch.py26 import common namespace
28 OPTIONS = common.OPTIONS
34 args = common.ParseOptions(argv, __doc__)
37 OPTIONS.info_dict = common.LoadInfoDict(input_dir)
39 recovery_img = common.GetBootableImage("recovery.img", "recovery.img",
41 boot_img = common.GetBootableImage("boot.img", "boot.img",
51 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
H A Dtest_utils.py25 import common namespace
89 sparse_image = common.MakeTempFile(prefix='sparse-', suffix='.img')
H A Dimg_from_target_files41 import common namespace
43 OPTIONS = common.OPTIONS
48 common.ZipWrite(
63 args = common.ParseOptions(argv, __doc__,
71 common.Usage(__doc__)
74 OPTIONS.input_tmp = common.UnzipTemp(args[0], ["IMAGES/*", "OTA/*"])
89 common.ZipWrite(output_zip, os.path.join(images_path, image), image)
93 common.ZipClose(output_zip)
101 common.CloseInheritedPipes()
103 except common
[all...]
H A Dimg_from_target_files.py41 import common namespace
43 OPTIONS = common.OPTIONS
48 common.ZipWrite(
63 args = common.ParseOptions(argv, __doc__,
71 common.Usage(__doc__)
74 OPTIONS.input_tmp = common.UnzipTemp(args[0], ["IMAGES/*", "OTA/*"])
89 common.ZipWrite(output_zip, os.path.join(images_path, image), image)
93 common.ZipClose(output_zip)
101 common.CloseInheritedPipes()
103 except common
[all...]
H A Dcheck_ota_package_signature.py33 import common namespace
40 p1 = common.Run(cmd, stdout=subprocess.PIPE)
107 sig_file = common.MakeTempFile(prefix='sig-')
113 p1 = common.Run(cmd, stdout=subprocess.PIPE)
119 digest_file = common.MakeTempFile(prefix='digest-')
124 decrypted_file = common.MakeTempFile(prefix='decrypted-')
127 p1 = common.Run(cmd, stdout=subprocess.PIPE)
133 p1 = common.Run(cmd, stdout=subprocess.PIPE)
151 common.ZipClose(package_zip)
157 pubkey = common
[all...]
H A Dtest_build_image.py19 import common namespace
73 input_dir = common.MakeTempDir()
74 output_image = common.MakeTempFile(suffix='.img')
94 common.Cleanup()
H A Dvalidate_target_files.py32 import common namespace
43 file_size_rounded_up = common.RoundUpTo4K(file_size)
45 return common.File(file_name, file_data)
68 image = common.GetSparseImage(which, input_tmp, input_zip, True)
121 install-recovery.sh is written in common.py and has the following format:
195 args = common.ParseOptions(
201 common.Usage(__doc__)
210 input_tmp = common.UnzipTemp(args[0])
212 info_dict = common.LoadInfoDict(input_tmp)
228 common
[all...]
H A Dtest_sign_target_files_apks.py24 import common namespace
42 common.Cleanup()
102 input_file = common.MakeTempFile(suffix='.zip')
109 output_file = common.MakeTempFile(suffix='.zip')
133 input_file = common.MakeTempFile(suffix='.zip')
137 output_file = common.MakeTempFile(suffix='.zip')
158 base64.b16encode(common.ParseCertificate(cert1)).lower(),
159 base64.b16encode(common.ParseCertificate(cert2)).lower())
162 base64.b16encode(common.ParseCertificate(cert3)).lower(),
163 base64.b16encode(common
[all...]
H A Dtest_blockimgdiff.py21 import common namespace
132 common.OPTIONS.cache_size = 7 * 4096
136 common.OPTIONS.cache_size = 6 * 4096
174 common.OPTIONS.cache_size = 15 * 4096
H A Dadd_img_to_target_files58 import common namespace
66 OPTIONS = common.OPTIONS
89 self.name = common.MakeTempFile(prefix=root + '-', suffix=suffix)
95 common.ZipWrite(self._output_zip, self.name, self._zip_name)
141 common.ZipWrite(output_zip, ofile.name, arc_name)
145 common.MakeRecoveryPatch(OPTIONS.input_tmp, output_sink, recovery_img,
222 common.AppendAVBSigningArgs(cmd, "dtbo")
226 p = common.Run(cmd, stdout=subprocess.PIPE)
331 user_dir = common.MakeTempDir()
339 common
[all...]
H A Dadd_img_to_target_files.py58 import common namespace
66 OPTIONS = common.OPTIONS
89 self.name = common.MakeTempFile(prefix=root + '-', suffix=suffix)
95 common.ZipWrite(self._output_zip, self.name, self._zip_name)
141 common.ZipWrite(output_zip, ofile.name, arc_name)
145 common.MakeRecoveryPatch(OPTIONS.input_tmp, output_sink, recovery_img,
222 common.AppendAVBSigningArgs(cmd, "dtbo")
226 p = common.Run(cmd, stdout=subprocess.PIPE)
331 user_dir = common.MakeTempDir()
339 common
[all...]
H A Dbuild_image.py35 import common namespace
39 OPTIONS = common.OPTIONS
358 tempdir_name = common.MakeTempDir(suffix="_verity_images")
397 base_fs_file = common.MakeTempFile(prefix="script_gen_", suffix=".base_fs")
464 in_dir = common.MakeTempDir()
469 merged_fs_config = common.MakeTempFile(prefix="root_fs_config",
895 common.Cleanup()
H A Dcheck_target_files_signatures48 import common namespace
56 # if any entry has an extra field of between 1 and 3 bytes (which is common with
67 OPTIONS = common.OPTIONS
91 p = common.Run(["openssl", "x509", "-inform", "DER", "-text"],
114 name = "unknown cert %s (%s)" % (common.sha1(cert).hexdigest()[:12],
133 cert = common.ParseCertificate(f.read())
147 p = common.Run(["openssl", "pkcs7",
158 cert = common.ParseCertificate(out)
201 p = common.Run(["aapt", "dump", "xmltree", full_filename,
246 self.certmap, compressed_extension = common
[all...]
H A Dcheck_target_files_signatures.py48 import common namespace
56 # if any entry has an extra field of between 1 and 3 bytes (which is common with
67 OPTIONS = common.OPTIONS
91 p = common.Run(["openssl", "x509", "-inform", "DER", "-text"],
114 name = "unknown cert %s (%s)" % (common.sha1(cert).hexdigest()[:12],
133 cert = common.ParseCertificate(f.read())
147 p = common.Run(["openssl", "pkcs7",
158 cert = common.ParseCertificate(out)
201 p = common.Run(["aapt", "dump", "xmltree", full_filename,
246 self.certmap, compressed_extension = common
[all...]
/build/tools/releasetools/
H A Dmake_recovery_patch26 import common namespace
28 OPTIONS = common.OPTIONS
34 args = common.ParseOptions(argv, __doc__)
37 OPTIONS.info_dict = common.LoadInfoDict(input_dir)
39 recovery_img = common.GetBootableImage("recovery.img", "recovery.img",
41 boot_img = common.GetBootableImage("boot.img", "boot.img",
51 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
H A Dmake_recovery_patch.py26 import common namespace
28 OPTIONS = common.OPTIONS
34 args = common.ParseOptions(argv, __doc__)
37 OPTIONS.info_dict = common.LoadInfoDict(input_dir)
39 recovery_img = common.GetBootableImage("recovery.img", "recovery.img",
41 boot_img = common.GetBootableImage("boot.img", "boot.img",
51 common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
H A Dtest_utils.py25 import common namespace
89 sparse_image = common.MakeTempFile(prefix='sparse-', suffix='.img')
H A Dimg_from_target_files41 import common namespace
43 OPTIONS = common.OPTIONS
48 common.ZipWrite(
63 args = common.ParseOptions(argv, __doc__,
71 common.Usage(__doc__)
74 OPTIONS.input_tmp = common.UnzipTemp(args[0], ["IMAGES/*", "OTA/*"])
89 common.ZipWrite(output_zip, os.path.join(images_path, image), image)
93 common.ZipClose(output_zip)
101 common.CloseInheritedPipes()
103 except common
[all...]
H A Dimg_from_target_files.py41 import common namespace
43 OPTIONS = common.OPTIONS
48 common.ZipWrite(
63 args = common.ParseOptions(argv, __doc__,
71 common.Usage(__doc__)
74 OPTIONS.input_tmp = common.UnzipTemp(args[0], ["IMAGES/*", "OTA/*"])
89 common.ZipWrite(output_zip, os.path.join(images_path, image), image)
93 common.ZipClose(output_zip)
101 common.CloseInheritedPipes()
103 except common
[all...]
H A Dcheck_ota_package_signature.py33 import common namespace
40 p1 = common.Run(cmd, stdout=subprocess.PIPE)
107 sig_file = common.MakeTempFile(prefix='sig-')
113 p1 = common.Run(cmd, stdout=subprocess.PIPE)
119 digest_file = common.MakeTempFile(prefix='digest-')
124 decrypted_file = common.MakeTempFile(prefix='decrypted-')
127 p1 = common.Run(cmd, stdout=subprocess.PIPE)
133 p1 = common.Run(cmd, stdout=subprocess.PIPE)
151 common.ZipClose(package_zip)
157 pubkey = common
[all...]
H A Dtest_build_image.py19 import common namespace
73 input_dir = common.MakeTempDir()
74 output_image = common.MakeTempFile(suffix='.img')
94 common.Cleanup()
H A Dvalidate_target_files.py32 import common namespace
43 file_size_rounded_up = common.RoundUpTo4K(file_size)
45 return common.File(file_name, file_data)
68 image = common.GetSparseImage(which, input_tmp, input_zip, True)
121 install-recovery.sh is written in common.py and has the following format:
195 args = common.ParseOptions(
201 common.Usage(__doc__)
210 input_tmp = common.UnzipTemp(args[0])
212 info_dict = common.LoadInfoDict(input_tmp)
228 common
[all...]
H A Dtest_sign_target_files_apks.py24 import common namespace
42 common.Cleanup()
102 input_file = common.MakeTempFile(suffix='.zip')
109 output_file = common.MakeTempFile(suffix='.zip')
133 input_file = common.MakeTempFile(suffix='.zip')
137 output_file = common.MakeTempFile(suffix='.zip')
158 base64.b16encode(common.ParseCertificate(cert1)).lower(),
159 base64.b16encode(common.ParseCertificate(cert2)).lower())
162 base64.b16encode(common.ParseCertificate(cert3)).lower(),
163 base64.b16encode(common
[all...]
H A Dtest_blockimgdiff.py21 import common namespace
132 common.OPTIONS.cache_size = 7 * 4096
136 common.OPTIONS.cache_size = 6 * 4096
174 common.OPTIONS.cache_size = 15 * 4096

Completed in 148 milliseconds

123