Home
last modified time | relevance | path

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

/art/dexdump/
Ddexdump_main.cc60 int dexdumpDriver(int argc, char** argv) { in dexdumpDriver() argument
68 const int ic = getopt(argc, argv, "acdefghijl:o:"); in dexdumpDriver()
120 if (optind == argc) { in dexdumpDriver()
144 while (optind < argc) { in dexdumpDriver()
152 int main(int argc, char** argv) { in main() argument
156 return art::dexdumpDriver(argc, argv); in main()
/art/tools/dexanalyze/
Ddexanalyze.cc67 int Parse(int argc, char** argv) { in Parse()
69 for (i = 1; i < argc; ++i) { in Parse()
75 if (i + 1 >= argc) { in Parse()
89 if (i + 1 >= argc) { in Parse()
111 filenames_.insert(filenames_.end(), argv + i, argv + argc); in Parse()
190 static int Run(int argc, char** argv) { in Run() argument
194 int result = options.Parse(argc, argv); in Run()
242 int main(int argc, char** argv) { in main() argument
243 return art::dexanalyze::DexAnalyze::Run(argc, argv); in main()
/art/dalvikvm/
Ddalvikvm.cc108 static int dalvikvm(int argc, char** argv) { in dalvikvm() argument
113 argc--; in dalvikvm()
120 int option_count = argc; in dalvikvm()
131 for (curr_opt = arg_idx = 0; arg_idx < argc; arg_idx++) { in dalvikvm()
185 if (arg_idx == argc) { in dalvikvm()
211 int main(int argc, char** argv) { in main() argument
212 return art::dalvikvm(argc, argv); in main()
/art/dexlayout/
Ddexlayout_main.cc77 int DexlayoutDriver(int argc, char** argv) { in DexlayoutDriver() argument
89 const int ic = getopt(argc, argv, "abcdefghil:o:p:stuvw:x:"); in DexlayoutDriver()
167 if (optind == argc) { in DexlayoutDriver()
216 while (optind < argc) { in DexlayoutDriver()
230 int main(int argc, char** argv) { in main() argument
234 return art::DexlayoutDriver(argc, argv); in main()
Ddexdiag.cc458 static int DexDiagMain(int argc, char* argv[]) { in DexDiagMain() argument
459 if (argc < 2) { in DexDiagMain()
466 for (int i = 1; i < argc - 1; ++i) { in DexDiagMain()
489 pid = (pid_t)strtol(argv[argc - 1], &endptr, 10); in DexDiagMain()
491 std::cerr << StringPrintf("Invalid PID \"%s\".\n", argv[argc - 1]) << std::endl; in DexDiagMain()
536 int main(int argc, char* argv[]) { in main() argument
537 return art::DexDiagMain(argc, argv); in main()
/art/dexoptanalyzer/
Ddexoptanalyzer.cc163 void ParseArgs(int argc, char **argv) { in ParseArgs() argument
164 original_argc = argc; in ParseArgs()
171 argc--; in ParseArgs()
173 if (argc == 0) { in ParseArgs()
177 for (int i = 0; i < argc; ++i) { in ParseArgs()
198 if (i + 1 == argc) { in ParseArgs()
382 static int dexoptAnalyze(int argc, char** argv) { in dexoptAnalyze() argument
386 analyzer.ParseArgs(argc, argv); in dexoptAnalyze()
392 int main(int argc, char **argv) { in main() argument
393 return art::dexoptAnalyze(argc, argv); in main()
/art/dexlist/
Ddexlist.cc209 int dexlistDriver(int argc, char** argv) { in dexlistDriver() argument
216 const int ic = getopt(argc, argv, "o:m:"); in dexlistDriver()
248 if (optind == argc) { in dexlistDriver()
271 while (optind < argc) { in dexlistDriver()
281 int main(int argc, char** argv) { in main() argument
285 return art::dexlistDriver(argc, argv); in main()
/art/libdexfile/external/
Ddex_file_ext_c_test.c49 int main(int argc, char** argv) { in main() argument
50 if (argc >= 2 && strncmp(argv[1], gtest_output_arg, sizeof(gtest_output_arg) - 1) == 0) { in main()
/art/cmdline/
Dcmdline.h142 bool Parse(int argc, char** argv) { in Parse()
145 argc--; in Parse()
147 if (argc == 0) { in Parse()
154 for (int i = 0; i < argc; i++) { in Parse()
168 if (i + 1 == argc) { in Parse()
333 int Main(int argc, char** argv) { in Main()
341 if (args_ == nullptr || !args_->Parse(argc, argv)) { in Main()
Dcmdline_parser.h472 CmdlineResult Parse(const char* argv[], int argc) { in Parse()
473 return Parse(TokenRange(&argv[1], argc - 1)); // ignore argv[0] because it's the program name in Parse()
DREADME.md53 int main(char** argv, int argc) {
55 auto result = parser.parse(argv, argc));
/art/tools/veridex/
Dveridex.cc92 static void ParseArgs(VeridexOptions* options, int argc, char** argv) { in ParseArgs() argument
95 argc--; in ParseArgs()
97 for (int i = 0; i < argc; ++i) { in ParseArgs()
126 static int Run(int argc, char** argv) { in Run() argument
128 ParseArgs(&options, argc, argv); in Run()
322 int main(int argc, char** argv) { in main() argument
323 return art::Veridex::Run(argc, argv); in main()
/art/tools/dmtracedump/
Dcreatetesttrace.cc409 int32_t parseOptions(int32_t argc, char** argv) { in parseOptions() argument
412 int32_t opt = getopt(argc, argv, "v:d"); in parseOptions()
433 int32_t main(int32_t argc, char** argv) { in main() argument
437 if (parseOptions(argc, argv) || argc - optind != 2) { in main()
Dtracedump.cc2534 int32_t parseOptions(int32_t argc, char** argv) { in parseOptions() argument
2536 int32_t opt = getopt(argc, argv, "d:hg:kos:t:"); in parseOptions()
2570 int32_t main(int32_t argc, char** argv) { in main() argument
2574 if (parseOptions(argc, argv) || argc - optind != 1) return usage(argv[0]); in main()
/art/dex2oat/
Ddex2oat_options.h62 static std::unique_ptr<Dex2oatArgumentMap> Parse(int argc,
Ddex2oat_options.cc266 std::unique_ptr<Dex2oatArgumentMap> Dex2oatArgumentMap::Parse(int argc, in Parse() argument
270 CmdlineResult parse_result = parser.Parse(argv, argc); in Parse()
Ddex2oat.cc1018 void InsertCompileOptions(int argc, char** argv) { in InsertCompileOptions() argument
1021 for (int i = 0; i < argc; ++i) { in InsertCompileOptions()
1041 for (int i = 0; i < argc; ++i) { in InsertCompileOptions()
1096 void ParseArgs(int argc, char** argv) { in ParseArgs() argument
1097 original_argc = argc; in ParseArgs()
1107 std::unique_ptr<M> args_uptr = M::Parse(argc, const_cast<const char**>(argv), &error_msg); in ParseArgs()
1243 InsertCompileOptions(argc, argv); in ParseArgs()
2951 static dex2oat::ReturnCode Dex2oat(int argc, char** argv) { in Dex2oat() argument
2963 dex2oat->ParseArgs(argc, argv); in Dex2oat()
3027 int main(int argc, char** argv) { in main() argument
[all …]
/art/tools/hiddenapi/
Dhiddenapi.cc864 void Run(int argc, char** argv) { in Run() argument
865 switch (ParseArgs(argc, argv)) { in Run()
881 Command ParseArgs(int argc, char** argv) { in ParseArgs() argument
884 argc--; in ParseArgs()
886 if (argc > 0) { in ParseArgs()
890 for (int i = 1; i < argc; ++i) { in ParseArgs()
907 for (int i = 1; i < argc; ++i) { in ParseArgs()
1118 int main(int argc, char** argv) { in main() argument
1119 art::hiddenapi::original_argc = argc; in main()
1123 art::hiddenapi::HiddenApi().Run(argc, argv); in main()
/art/profman/
Dprofman.cc241 void ParseArgs(int argc, char **argv) { in ParseArgs() argument
242 original_argc = argc; in ParseArgs()
250 argc--; in ParseArgs()
252 if (argc == 0) { in ParseArgs()
256 for (int i = 0; i < argc; ++i) { in ParseArgs()
1340 static int profman(int argc, char** argv) { in profman() argument
1344 profman.ParseArgs(argc, argv); in profman()
1377 int main(int argc, char **argv) { in main() argument
1378 return art::profman(argc, argv); in main()
/art/tools/art_verifier/
Dart_verifier.cc271 int main(int argc, char** argv) { in main() argument
276 return main.Main(argc, argv); in main()
/art/runtime/
Dcommon_runtime_test.cc469 int main(int argc, char **argv) { in main() argument
479 testing::InitGoogleTest(&argc, argv); in main()
/art/tools/jfuzz/
Djfuzz.cc1302 int32_t main(int32_t argc, char** argv) { in main() argument
1317 int32_t option = getopt(argc, argv, "s:d:l:i:n:vh"); in main()
/art/tools/timeout_dumper/
Dtimeout_dumper.cc686 int main(int argc ATTRIBUTE_UNUSED, char** argv) { in main()
/art/imgdiag/
Dimgdiag.cc1950 int main(int argc, char** argv) { in main() argument
1952 return main.Main(argc, argv); in main()
/art/oatdump/
Doatdump.cc3656 int main(int argc, char** argv) { in main() argument
3661 return main.Main(argc, argv); in main()