Lines Matching refs:argv
35 int HandleSubcommand(char** argv) { in HandleSubcommand() argument
36 if (strcmp("--pre-install", argv[1]) == 0) { in HandleSubcommand()
38 return android::apex::RunPreInstall(argv); in HandleSubcommand()
41 if (strcmp("--post-install", argv[1]) == 0) { in HandleSubcommand()
43 return android::apex::RunPostInstall(argv); in HandleSubcommand()
46 if (strcmp("--bootstrap", argv[1]) == 0) { in HandleSubcommand()
51 if (strcmp("--unmount-all", argv[1]) == 0) { in HandleSubcommand()
56 if (strcmp("--snapshotde", argv[1]) == 0) { in HandleSubcommand()
80 LOG(ERROR) << "Unknown subcommand: " << argv[1]; in HandleSubcommand()
100 int main(int /*argc*/, char** argv) { in main() argument
101 android::base::InitLogging(argv, &android::base::KernelLogger); in main()
112 const bool has_subcommand = argv[1] != nullptr; in main()
118 } else if (strcmp("--snapshotde", argv[1]) == 0) { in main()
126 return HandleSubcommand(argv); in main()