/art/dexdump/ |
D | dexdump_main.cc | 60 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/ |
D | dexanalyze.cc | 67 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/ |
D | dalvikvm.cc | 109 static int dalvikvm(int argc, char** argv) { in dalvikvm() argument 114 argc--; in dalvikvm() 121 int option_count = argc; in dalvikvm() 132 for (curr_opt = arg_idx = 0; arg_idx < argc; arg_idx++) { in dalvikvm() 186 if (arg_idx == argc) { in dalvikvm() 217 int main(int argc, char** argv) { in main() argument 220 art::FastExit(art::dalvikvm(argc, argv)); in main()
|
/art/dexlayout/ |
D | dexlayout_main.cc | 77 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()
|
D | dexdiag.cc | 458 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() 538 int main(int argc, char* argv[]) { in main() argument 539 return art::DexDiagMain(argc, argv); in main()
|
/art/dexlist/ |
D | dexlist.cc | 209 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/test/common/ |
D | gtest_main.cc | 40 int main(int argc, char** argv, char** envp) { in main() argument 54 return IsolateMain(argc, argv, envp); in main()
|
/art/dexoptanalyzer/ |
D | dexoptanalyzer.cc | 155 void ParseArgs(int argc, char **argv) { in ParseArgs() argument 156 original_argc = argc; in ParseArgs() 163 argc--; in ParseArgs() 165 if (argc == 0) { in ParseArgs() 169 for (int i = 0; i < argc; ++i) { in ParseArgs() 198 if (i + 1 == argc) { in ParseArgs() 481 static ReturnCode dexoptAnalyze(int argc, char** argv) { in dexoptAnalyze() argument 485 analyzer.ParseArgs(argc, argv); in dexoptAnalyze() 492 int main(int argc, char **argv) { in main() argument 493 art::dexoptanalyzer::ReturnCode return_code = art::dexoptanalyzer::dexoptAnalyze(argc, argv); in main()
|
/art/cmdline/ |
D | cmdline.h | 142 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() 337 int Main(int argc, char** argv) { in Main() 345 if (args_ == nullptr || !args_->Parse(argc, argv)) { in Main()
|
D | cmdline_parser.h | 573 CmdlineResult Parse(const char* argv[], int argc) { in Parse() 574 return Parse(TokenRange(&argv[1], argc - 1)); // ignore argv[0] because it's the program name in Parse()
|
D | README.md | 53 int main(char** argv, int argc) { 55 auto result = parser.parse(argv, argc));
|
/art/tools/veridex/ |
D | veridex.cc | 95 static void ParseArgs(VeridexOptions* options, int argc, char** argv) { in ParseArgs() argument 98 argc--; in ParseArgs() 100 for (int i = 0; i < argc; ++i) { in ParseArgs() 135 static int Run(int argc, char** argv) { in Run() argument 137 ParseArgs(&options, argc, argv); in Run() 345 int main(int argc, char** argv) { in main() argument 346 return art::Veridex::Run(argc, argv); in main()
|
/art/tools/create_minidebuginfo/ |
D | create_minidebuginfo.cc | 138 static int Main(int argc, char** argv) { in Main() argument 140 if (argc != 3) { in Main() 173 int main(int argc, char** argv) { in main() argument 174 return art::Main(argc, argv); in main()
|
/art/tools/dmtracedump/ |
D | createtesttrace.cc | 409 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()
|
D | tracedump.cc | 2534 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/odrefresh/ |
D | odrefresh.cc | 1371 static int InitializeHostConfig(int argc, const char** argv, OdrConfig* config) { in InitializeHostConfig() argument 1387 for (; n < argc - 1; ++n) { in InitializeHostConfig() 1419 static int InitializeTargetConfig(int argc, const char** argv, OdrConfig* config) { in InitializeTargetConfig() argument 1438 for (; n < argc - 1; ++n) { in InitializeTargetConfig() 1446 static int InitializeConfig(int argc, const char** argv, OdrConfig* config) { in InitializeConfig() argument 1448 return InitializeTargetConfig(argc, argv, config); in InitializeConfig() 1450 return InitializeHostConfig(argc, argv, config); in InitializeConfig() 1454 static int main(int argc, const char** argv) { in main() argument 1456 int n = InitializeConfig(argc, argv, &config); in main() 1458 argc -= n; in main() [all …]
|
/art/dex2oat/ |
D | dex2oat_options.h | 62 static std::unique_ptr<Dex2oatArgumentMap> Parse(int argc,
|
D | dex2oat_options.cc | 432 std::unique_ptr<Dex2oatArgumentMap> Dex2oatArgumentMap::Parse(int argc, in Parse() argument 436 CmdlineResult parse_result = parser.Parse(argv, argc); in Parse()
|
D | dex2oat.cc | 930 void InsertCompileOptions(int argc, char** argv) { in InsertCompileOptions() argument 933 for (int i = 0; i < argc; ++i) { in InsertCompileOptions() 950 for (int i = 0; i < argc; ++i) { in InsertCompileOptions() 1014 void ParseArgs(int argc, char** argv) { in ParseArgs() argument 1015 original_argc = argc; in ParseArgs() 1025 std::unique_ptr<M> args_uptr = M::Parse(argc, const_cast<const char**>(argv), &error_msg); in ParseArgs() 3089 static dex2oat::ReturnCode Dex2oat(int argc, char** argv) { in Dex2oat() argument 3101 dex2oat->ParseArgs(argc, argv); in Dex2oat() 3122 dex2oat->InsertCompileOptions(argc, argv); in Dex2oat() 3182 int main(int argc, char** argv) { in main() argument [all …]
|
/art/tools/hiddenapi/ |
D | hiddenapi.cc | 887 void Run(int argc, char** argv) { in Run() argument 888 switch (ParseArgs(argc, argv)) { in Run() 904 Command ParseArgs(int argc, char** argv) { in ParseArgs() argument 907 argc--; in ParseArgs() 909 if (argc > 0) { in ParseArgs() 913 for (int i = 1; i < argc; ++i) { in ParseArgs() 932 for (int i = 1; i < argc; ++i) { in ParseArgs() 1207 int main(int argc, char** argv) { in main() argument 1208 art::hiddenapi::original_argc = argc; in main() 1212 art::hiddenapi::HiddenApi().Run(argc, argv); in main()
|
/art/tools/art_verifier/ |
D | art_verifier.cc | 272 int main(int argc, char** argv) { in main() argument 277 return main.Main(argc, argv); in main()
|
/art/profman/ |
D | profman.cc | 327 void ParseArgs(int argc, char **argv) { in ParseArgs() argument 328 original_argc = argc; in ParseArgs() 336 argc--; in ParseArgs() 338 if (argc == 0) { in ParseArgs() 342 for (int i = 0; i < argc; ++i) { in ParseArgs() 1954 static int profman(int argc, char** argv) { in profman() argument 1958 profman.ParseArgs(argc, argv); in profman() 1995 int main(int argc, char **argv) { in main() argument 1996 return art::profman(argc, argv); in main()
|
/art/tools/jfuzz/ |
D | jfuzz.cc | 1302 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/signal_dumper/ |
D | signal_dumper.cc | 664 int main(int argc ATTRIBUTE_UNUSED, char** argv) { in main()
|
/art/imgdiag/ |
D | imgdiag.cc | 1967 int main(int argc, char** argv) { in main() argument 1969 return main.Main(argc, argv); in main()
|