Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 39) sorted by relevance

12

/build/tools/
Dfindleaves.py65 "progName": os.path.split(sys.argv[0])[1],
69 def main(argv): argument
73 while i<len(argv) and len(argv[i])>2 and argv[i][0:2] == "--":
74 arg = argv[i]
88 if len(argv)-i < 2: # need both <dirlist> and <filename>
90 dirlist = argv[i:-1]
91 filename = argv[-1]
98 main(sys.argv)
Ddiff_package_overlays.py39 def main(argv): argument
40 if len(argv) != 4:
44 f = open(argv[1])
60 current_overlays = load_overlay_config(argv[2])
61 previous_overlays = load_overlay_config(argv[3])
81 f = open(argv[2], "a")
91 main(sys.argv)
Dcheck_radio_versions.py25 if len(sys.argv) < 2:
29 f = open(sys.argv[1])
39 for item in sys.argv[2:]:
74 fn, versions[digest], key, sys.argv[1])
Dpost_process_props.py111 def main(argv): argument
112 filename = argv[1]
124 sys.stderr.write("bad command line: " + str(argv) + "\n")
131 for key in argv[2:]:
139 main(sys.argv)
Dfilter-product-graph.py45 sys.stderr.write("argv: " + str(sys.argv) + "\n")
46 if not (len(sys.argv) == 2 and sys.argv[1] == "--all"):
47 targets = sys.argv[1:]
Dfileslist.py24 def main(argv): argument
26 roots = argv[1:]
45 main(sys.argv)
Dcompare_fileslist.py31 def main(argv): argument
32 inputs = argv[1:]
104 main(sys.argv)
Djava-layers.py237 def main(argv): argument
238 if len(argv) < 3:
240 deps = parse_dependency_file(argv[1])
245 java = find_java_files(argv[2:])
250 sys.stderr.write("%s: Using this file as dependency file.\n" % argv[1])
256 main(sys.argv)
Dproduct_debug.py77 def main(argv): argument
159 main(sys.argv)
/build/tools/fs_get_stats/
Dfs_get_stats.c38 main(int argc, const char *argv[]) in main() argument
52 perms = (unsigned)strtoul(argv[1], &endptr, 0); in main()
53 if (!endptr || (endptr == argv[1]) || (*endptr != '\0')) { in main()
54 ERROR("current permissions must be a number. Got '%s'.\n", argv[1]); in main()
58 if (!strcmp(argv[2], "1")) in main()
62 fs_config(argv[3], is_dir, argv[4], &uid, &gid, &perms, &capabilities); in main()
/build/tools/zipalign/
DZipAlign.cpp223 int main(int argc, char* const argv[]) in main() argument
241 argv++; in main()
243 while (argc && argv[0][0] == '-') { in main()
244 const char* cp = argv[0] +1; in main()
273 argv++; in main()
281 alignment = strtol(argv[0], &endp, 10); in main()
283 fprintf(stderr, "Invalid value for alignment: %s\n", argv[0]); in main()
290 result = verify(argv[1], alignment, verbose, pageAlignSharedLibs); in main()
293 result = process(argv[1], argv[2], alignment, force, zopfli, pageAlignSharedLibs); in main()
297 result = verify(argv[2], alignment, verbose, pageAlignSharedLibs); in main()
/build/tools/acp/
Dacp.c41 int process(int argc, char* const argv[], unsigned int options) in process() argument
61 stripDestLen = strlen(argv[argc-1]); in process()
63 memcpy(stripDest, argv[argc-1], stripDestLen+1); in process()
122 srcLen = strlen(argv[i]); in process()
124 memcpy(src, argv[i], srcLen+1); in process()
172 int main(int argc, char* const argv[]) in main() argument
184 ic = getopt(argc, argv, "defprtuv"); in main()
248 retVal = process(argc-optind, argv+optind, options); in main()
/build/core/tasks/check_boot_jars/
Dcheck_boot_jars.py64 def main(argv): argument
65 if len(argv) < 2:
69 if not LoadWhitelist(argv[0]):
73 for jar in argv[1:]:
83 sys.exit(main(sys.argv[1:]))
/build/tools/atree/
Datree.cpp114 main(int argc, char* const* argv) in main() argument
119 int opt = getopt(argc, argv, "f:I:o:hlm:v:d"); in main()
134 "-o %s\n", argv[0], optarg); in main()
145 "-m %s\n", argv[0], optarg); in main()
154 argv[0], optarg); in main()
168 fprintf(stderr, "%s: invalid argument -- %s\n", argv[0], argv[optind]); in main()
174 argv[0]); in main()
180 argv[0]); in main()
185 fprintf(stderr, "%s: -o option must be supplied.\n", argv[0]); in main()
/build/tools/check_prereq/
Dcheck_prereq.c26 int main(int argc, char** argv) { in main() argument
29 fprintf(stderr, "usage: %s <timestamp>\n", argv[0]); in main()
40 long install = strtol(argv[1], &end, 10); in main()
/build/tools/releasetools/
Dmake_recovery_patch28 def main(argv): argument
32 args = common.ParseOptions(argv, __doc__)
53 main(sys.argv[1:])
Dmake_recovery_patch.py28 def main(argv): argument
32 args = common.ParseOptions(argv, __doc__)
53 main(sys.argv[1:])
Dimg_from_target_files51 def main(argv): argument
61 args = common.ParseOptions(argv, __doc__,
146 main(sys.argv[1:])
Dimg_from_target_files.py51 def main(argv): argument
61 args = common.ParseOptions(argv, __doc__,
146 main(sys.argv[1:])
Dbuild_image.py474 def main(argv): argument
475 if len(argv) != 4:
479 in_dir = argv[0]
480 glob_dict_file = argv[1]
481 out_file = argv[2]
482 target_out = argv[3]
515 main(sys.argv[1:])
Dadd_img_to_target_files298 def main(argv): argument
309 argv, __doc__, extra_opts="ar",
324 main(sys.argv[1:])
/build/tools/rgb2565/
Dto565.c131 int main(int argc, char **argv) in main() argument
133 if ((argc == 2) && (!strcmp(argv[1],"-rle"))) { in main()
136 if (argc > 2 && (!strcmp(argv[1], "-w"))) { in main()
137 to_565_raw_dither(atoi(argv[2])); in main()
/build/core/
Dchecktree69 if len(sys.argv) == 1:
71 elif len(sys.argv) == 2 and sys.argv[1] == "-a":
/build/tools/fs_config/
Dfs_config_generate.c54 int main(int argc, char** argv) { in main() argument
61 while((opt = getopt(argc, argv, "DFho:")) != -1) { in main()
Dfs_config.c74 int main(int argc, char** argv) { in main() argument
81 while((opt = getopt(argc, argv, "CS:D:")) != -1) { in main()

12