Home | History | Annotate | Download | only in releasetools

Lines Matching refs:OPTIONS

44 class Options(object): pass
45 OPTIONS = Options()
51 OPTIONS.search_path = DEFAULT_SEARCH_PATH_BY_PLATFORM.get(sys.platform, None)
53 OPTIONS.signapk_path = "framework/signapk.jar" # Relative to search_path
54 OPTIONS.extra_signapk_args = []
55 OPTIONS.java_path = "java" # Use the one on the path by default.
56 OPTIONS.java_args = "-Xmx2048m" # JVM Args
57 OPTIONS.public_key_suffix = ".x509.pem"
58 OPTIONS.private_key_suffix = ".pk8"
59 OPTIONS.verbose = False
60 OPTIONS.tempfiles = []
61 OPTIONS.device_specific = None
62 OPTIONS.extras = {}
63 OPTIONS.info_dict = None
76 if OPTIONS.verbose:
219 options = None
224 options = pieces[4]
227 options = pieces[3]
231 if options:
232 options = options.split(",")
233 for i in options:
251 options = pieces[4]
252 if "voldmanaged=" in options: continue
262 options = options.split(",")
263 for i in options:
267 # Ignore all unknown options in the unified fstab
293 info_dict = OPTIONS.info_dict
403 OPTIONS.tempfiles.append(tmp)
441 p = Run(["openssl", "pkcs8", "-in", k+OPTIONS.private_key_suffix,
451 p = Run(["openssl", "pkcs8", "-in", k+OPTIONS.private_key_suffix,
498 cmd = [OPTIONS.java_path, OPTIONS.java_args, "-jar",
499 os.path.join(OPTIONS.search_path, OPTIONS.signapk_path)]
500 cmd.extend(OPTIONS.extra_signapk_args)
503 cmd.extend([key + OPTIONS.public_key_suffix,
504 key + OPTIONS.private_key_suffix,
555 elif OPTIONS.verbose:
570 public_key_suffix_len = len(OPTIONS.public_key_suffix)
571 private_key_suffix_len = len(OPTIONS.private_key_suffix)
574 elif (cert.endswith(OPTIONS.public_key_suffix) and
575 privkey.endswith(OPTIONS.private_key_suffix) and
612 """Parse the options in argv and return any arguments that aren't
637 OPTIONS.verbose = True
639 OPTIONS.search_path = a
641 OPTIONS.signapk_path = a
643 OPTIONS.extra_signapk_args = shlex.split(a)
645 OPTIONS.java_path = a
647 OPTIONS.java_args = a
649 OPTIONS.public_key_suffix = a
651 OPTIONS.private_key_suffix = a
653 OPTIONS.device_specific = a
656 OPTIONS.extras[key] = value
661 if OPTIONS.search_path:
662 os.environ["PATH"] = (os.path.join(OPTIONS.search_path, "bin") +
673 OPTIONS.tempfiles.append(fn)
678 for i in OPTIONS.tempfiles:
804 self.extras = OPTIONS.extras
807 path = OPTIONS.device_specific
1019 for i in range(OPTIONS.worker_threads)]
1033 b = blockimgdiff.BlockImageDiff(tgt, src, threads=OPTIONS.worker_threads)
1035 OPTIONS.tempfiles.append(tmpdir)
1039 _, self.device = GetTypeAndDevice("/" + partition, OPTIONS.info_dict)
1138 info_dict = OPTIONS.info_dict