Home
last modified time | relevance | path

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

123

/build/make/tools/
Dfindleaves.py83 "progName": os.path.split(sys.argv[0])[1],
87 def main(argv): argument
92 while i<len(argv) and len(argv[i])>2 and argv[i][0:2] == "--":
93 arg = argv[i]
113 if len(argv)-i < 2: # need both <dirlist> and <filename>
115 dirlist = argv[i:-1]
116 filenames = [argv[-1]]
118 if len(argv)-i < 1: # need <filename>
120 filenames = argv[i:]
127 main(sys.argv)
Dauto_gen_test_config.py37 def main(argv): argument
45 if len(argv) != 4 and len(argv) != 6:
54 target_config = argv[0]
55 android_manifest = argv[1]
56 empty_config = argv[2]
57 instrumentation_test_config_template = argv[3]
58 extra_configs = '\n'.join(argv[5].split('\\n')) if len(argv) == 6 else ''
95 sys.exit(main(sys.argv[1:]))
Dfileslist_util.py39 def main(argv): argument
41 opts, args = getopt.getopt(argv[1:], "nc", "")
44 PrintUsage(argv[0])
49 PrintUsage(argv[0])
54 PrintUsage(argv[0])
68 main(sys.argv)
Dgenerate-self-extracting-archive.py121 def main(argv): argument
122 if len(argv) != 5:
126 output_filename = argv[1]
127 input_archive_filename = argv[2]
128 comment = argv[3]
129 license_filename = argv[4]
181 main(sys.argv)
Dauto_gen_test_config_test.py134 argv = [self.config_file,
138 auto_gen_test_config.main(argv)
149 argv = [self.config_file,
153 auto_gen_test_config.main(argv)
163 argv = [self.config_file,
167 auto_gen_test_config.main(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])
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:]
Dnormalize_path.py23 if len(sys.argv) > 1:
24 for p in sys.argv[1:]:
Dcompare_fileslist.py31 def main(argv): argument
32 inputs = argv[1:]
104 main(sys.argv)
Dgenerate-enforce-rro-android-manifest.py54 def main(argv): argument
74 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)
/build/make/tools/fs_get_stats/
Dfs_get_stats.c39 main(int argc, const char *argv[]) in main() argument
53 perms = (unsigned)strtoul(argv[1], &endptr, 0); in main()
54 if (!endptr || (endptr == argv[1]) || (*endptr != '\0')) { in main()
55 ERROR("current permissions must be a number. Got '%s'.\n", argv[1]); in main()
59 if (!strcmp(argv[2], "1")) in main()
63 fs_config(argv[3], is_dir, argv[4], &uid, &gid, &perms, &capabilities); in main()
/build/make/tools/zipalign/
DZipAlign.cpp224 int main(int argc, char* const argv[]) in main() argument
242 argv++; in main()
244 while (argc && argv[0][0] == '-') { in main()
245 const char* cp = argv[0] +1; in main()
274 argv++; in main()
282 alignment = strtol(argv[0], &endp, 10); in main()
284 fprintf(stderr, "Invalid value for alignment: %s\n", argv[0]); in main()
291 result = verify(argv[1], alignment, verbose, pageAlignSharedLibs); in main()
294 result = process(argv[1], argv[2], alignment, force, zopfli, pageAlignSharedLibs); in main()
298 result = verify(argv[2], alignment, verbose, pageAlignSharedLibs); in main()
/build/soong/python/tests/
Dpy-cmd_test.py33 assert_equal("len(sys.argv)", len(sys.argv), 3)
34 assert_equal("sys.argv[1]", sys.argv[1], "arg1")
35 assert_equal("sys.argv[2]", sys.argv[2], "arg2")
37 assert_equal("len(sys.argv)", len(sys.argv), 3)
38 assert_equal("sys.argv[1]", sys.argv[1], "--arg1")
39 assert_equal("sys.argv[2]", sys.argv[2], "arg2")
41 assert_equal("len(sys.argv)", len(sys.argv), 1)
49 assert_equal("sys.argv[0]", sys.argv[0], 'py-cmd_test.py')
Dpar_test.py35 assert_equal("sys.argv[0]", sys.argv[0], archive)
48 assert_equal("len(sys.argv)", len(sys.argv), 3)
49 assert_equal("sys.argv[1]", sys.argv[1], "--arg1")
50 assert_equal("sys.argv[2]", sys.argv[2], "arg2")
52 assert_equal("len(sys.argv)", len(sys.argv), 1)
/build/make/tools/acp/
Dacp.c41 int process(int argc, char* const argv[], unsigned int options) in process() argument
60 stripDestLen = strlen(argv[argc-1]); in process()
62 memcpy(stripDest, argv[argc-1], stripDestLen+1); in process()
121 srcLen = strlen(argv[i]); in process()
123 memcpy(src, argv[i], srcLen+1); in process()
171 int main(int argc, char* const argv[]) in main() argument
183 ic = getopt(argc, argv, "defprtuv"); in main()
247 retVal = process(argc-optind, argv+optind, options); in main()
/build/make/core/tasks/check_boot_jars/
Dcheck_boot_jars.py69 def main(argv): argument
70 if len(argv) < 2:
73 allow_list_path = argv[0]
79 for jar in argv[1:]:
89 sys.exit(main(sys.argv[1:]))
/build/make/tools/ziptime/
DZipTime.cpp34 int main(int argc, char* const argv[]) in main() argument
42 if (zip.rewrite(argv[1]) != 0) { in main()
43 fprintf(stderr, "Unable to rewrite '%s' as zip archive\n", argv[1]); in main()
/build/make/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/make/tools/releasetools/
Dmake_recovery_patch.py34 def main(argv): argument
35 args = common.ParseOptions(argv, __doc__)
67 main(sys.argv[1:])
Dsign_apex.py72 def main(argv): argument
108 argv, __doc__,
143 main(sys.argv[1:])
Dcheck_target_files_vintf.py224 def main(argv): argument
225 args = common.ParseOptions(argv, __doc__)
237 main(sys.argv[1:])
/build/make/core/tasks/
Dfind-shareduid-violation.py24 if len(sys.argv) < 3:
28 product_out = sys.argv[1]
29 aapt = sys.argv[2]
/build/soong/scripts/
Dmergenotice.py36 def main(argv): argument
49 main(sys.argv)
/build/make/core/
Dchecktree69 if len(sys.argv) == 1:
71 elif len(sys.argv) == 2 and sys.argv[1] == "-a":

123