Home | History | Annotate | Download | only in releasetools

Lines Matching defs:OPTIONS

41 class Options(object): pass
42 OPTIONS = Options()
43 OPTIONS.search_path = "out/host/linux-x86"
44 OPTIONS.signapk_path = "framework/signapk.jar" # Relative to search_path
45 OPTIONS.extra_signapk_args = []
46 OPTIONS.java_path = "java" # Use the one on the path by default.
47 OPTIONS.public_key_suffix = ".x509.pem"
48 OPTIONS.private_key_suffix = ".pk8"
49 OPTIONS.verbose = False
50 OPTIONS.tempfiles = []
51 OPTIONS.device_specific = None
52 OPTIONS.extras = {}
53 OPTIONS.info_dict = None
66 if OPTIONS.verbose:
198 options = None
203 options = pieces[4]
206 options = pieces[3]
210 if options:
211 options = options.split(",")
212 for i in options:
230 options = pieces[4]
231 if "voldmanaged=" in options: continue
241 options = options.split(",")
242 for i in options:
246 # Ignore all unknown options in the unified fstab
272 info_dict = OPTIONS.info_dict
358 OPTIONS.tempfiles.append(tmp)
396 p = Run(["openssl", "pkcs8", "-in", k+OPTIONS.private_key_suffix,
406 p = Run(["openssl", "pkcs8", "-in", k+OPTIONS.private_key_suffix,
453 cmd = [OPTIONS.java_path, "-Xmx2048m", "-jar",
454 os.path.join(OPTIONS.search_path, OPTIONS.signapk_path)]
455 cmd.extend(OPTIONS.extra_signapk_args)
458 cmd.extend([key + OPTIONS.public_key_suffix,
459 key + OPTIONS.private_key_suffix,
508 elif OPTIONS.verbose:
523 public_key_suffix_len = len(OPTIONS.public_key_suffix)
524 private_key_suffix_len = len(OPTIONS.private_key_suffix)
527 elif (cert.endswith(OPTIONS.public_key_suffix) and
528 privkey.endswith(OPTIONS.private_key_suffix) and
565 """Parse the options in argv and return any arguments that aren't
590 OPTIONS.verbose = True
592 OPTIONS.search_path = a
594 OPTIONS.signapk_path = a
596 OPTIONS.extra_signapk_args = shlex.split(a)
598 OPTIONS.java_path = a
600 OPTIONS.public_key_suffix = a
602 OPTIONS.private_key_suffix = a
604 OPTIONS.device_specific = a
607 OPTIONS.extras[key] = value
612 os.environ["PATH"] = (os.path.join(OPTIONS.search_path, "bin") +
619 for i in OPTIONS.tempfiles:
742 self.extras = OPTIONS.extras
745 path = OPTIONS.device_specific
940 for i in range(OPTIONS.worker_threads)]