/art/dalvikvm/ |
D | dalvikvm.cc | 60 static int InvokeMain(JNIEnv* env, char** argv) { in InvokeMain() argument 64 ScopedLocalRef<jobjectArray> args(env, toStringArray(env, argv + 1)); in InvokeMain() 73 std::string class_name(argv[0]); in InvokeMain() 109 static int dalvikvm(int argc, char** argv) { in dalvikvm() argument 113 argv++; in dalvikvm() 133 if (argv[arg_idx][0] != '-' && !need_extra) { in dalvikvm() 136 if (strncmp(argv[arg_idx], "-XXlib:", strlen("-XXlib:")) == 0) { in dalvikvm() 137 lib = argv[arg_idx] + strlen("-XXlib:"); in dalvikvm() 141 options[curr_opt++].optionString = argv[arg_idx]; in dalvikvm() 145 if (strcmp(argv[arg_idx], "-classpath") == 0 || strcmp(argv[arg_idx], "-cp") == 0) { in dalvikvm() [all …]
|
/art/tools/dexanalyze/ |
D | dexanalyze.cc | 51 static int Usage(char** argv) { in Usage() argument 53 << "Usage " << argv[0] << " [options] <dex files>\n" in Usage() 68 int Parse(int argc, char** argv) { in Parse() 71 const std::string arg = argv[i]; in Parse() 77 return Usage(argv); in Parse() 79 std::istringstream iss(argv[i + 1]); in Parse() 83 return Usage(argv); in Parse() 91 return Usage(argv); in Parse() 93 std::istringstream iss(argv[i + 1]); in Parse() 107 return Usage(argv); in Parse() [all …]
|
D | dexanalyze_test.cc | 31 std::vector<std::string> argv; in DexAnalyzeExec() local 32 argv.push_back(binary); in DexAnalyzeExec() 33 argv.insert(argv.end(), args.begin(), args.end()); in DexAnalyzeExec() 35 ASSERT_EQ(::art::Exec(argv, &error_msg), expect_success) << error_msg; in DexAnalyzeExec()
|
/art/tools/veridex/ |
D | veridex.cc | 96 static void ParseArgs(VeridexOptions* options, int argc, char** argv) { in ParseArgs() argument 98 argv++; in ParseArgs() 102 if (StartsWith(argv[i], kDexFileOption)) { in ParseArgs() 103 options->dex_file = Substr(argv[i], strlen(kDexFileOption)); in ParseArgs() 104 } else if (StartsWith(argv[i], kStubsOption)) { in ParseArgs() 105 options->core_stubs = Substr(argv[i], strlen(kStubsOption)); in ParseArgs() 106 } else if (StartsWith(argv[i], kFlagsOption)) { in ParseArgs() 107 options->flags_file = Substr(argv[i], strlen(kFlagsOption)); in ParseArgs() 108 } else if (strcmp(argv[i], kImprecise) == 0) { in ParseArgs() 110 } else if (StartsWith(argv[i], kTargetSdkVersion)) { in ParseArgs() [all …]
|
/art/artd/ |
D | artd_main.cc | 37 Options ParseOptions(int argc, char** argv) { in ParseOptions() argument 40 std::string_view arg = argv[i]; in ParseOptions() 54 int main([[maybe_unused]] int argc, char* argv[]) { in main() argument 55 android::base::InitLogging(argv); in main() 57 art::artd::Options options = art::artd::ParseOptions(argc, argv); in main()
|
/art/runtime/ |
D | common_runtime_test.cc | 419 bool CommonRuntimeTestImpl::StartDex2OatCommandLine(/*out*/std::vector<std::string>* argv, in StartDex2OatCommandLine() argument 422 DCHECK(argv != nullptr); in StartDex2OatCommandLine() 423 DCHECK(argv->empty()); in StartDex2OatCommandLine() 431 argv->push_back(runtime->GetCompilerExecutable()); in StartDex2OatCommandLine() 433 argv->push_back("--debuggable"); in StartDex2OatCommandLine() 435 runtime->AddCurrentRuntimeFeaturesAsDex2OatArguments(argv); in StartDex2OatCommandLine() 438 argv->push_back("--runtime-arg"); in StartDex2OatCommandLine() 439 argv->push_back(GetClassPathOption("-Xbootclasspath:", GetLibCoreDexFileNames())); in StartDex2OatCommandLine() 440 argv->push_back("--runtime-arg"); in StartDex2OatCommandLine() 441 argv->push_back(GetClassPathOption("-Xbootclasspath-locations:", GetLibCoreDexLocations())); in StartDex2OatCommandLine() [all …]
|
D | dex2oat_environment_test.h | 199 std::vector<std::string> argv; in Dex2Oat() local 200 if (!CommonRuntimeTest::StartDex2OatCommandLine(&argv, error_msg)) { in Dex2Oat() 206 argv.push_back("--compiler-filter=assume-verified"); in Dex2Oat() 210 argv.push_back("--runtime-arg"); in Dex2Oat() 211 argv.push_back("-Xrelocate"); in Dex2Oat() 213 argv.push_back("--runtime-arg"); in Dex2Oat() 214 argv.push_back("-Xnorelocate"); in Dex2Oat() 218 argv.push_back("--host"); in Dex2Oat() 221 argv.insert(argv.end(), dex2oat_args.begin(), dex2oat_args.end()); in Dex2Oat() 226 argv.push_back("--android-root=" + std::string(android_root)); in Dex2Oat() [all …]
|
D | dexopt_test.cc | 55 std::vector<std::string> argv; in Dex2Oat() local 56 if (!CommonRuntimeTest::StartDex2OatCommandLine(&argv, error_msg)) { in Dex2Oat() 62 argv.push_back("--runtime-arg"); in Dex2Oat() 63 argv.push_back("-Xhidden-api-policy:enabled"); in Dex2Oat() 67 argv.push_back("--host"); in Dex2Oat() 70 argv.insert(argv.end(), args.begin(), args.end()); in Dex2Oat() 72 std::string command_line(android::base::Join(argv, ' ')); in Dex2Oat() 73 return Exec(argv, error_msg); in Dex2Oat()
|
/art/libartbase/base/ |
D | logging.cc | 59 void InitLogging(char* argv[], AbortFunction& abort_function) { in InitLogging() argument 67 if (argv != nullptr) { in InitLogging() 68 gCmdLine.reset(new std::string(argv[0])); in InitLogging() 69 for (size_t i = 1; argv[i] != nullptr; ++i) { in InitLogging() 71 gCmdLine->append(argv[i]); in InitLogging() 73 gProgramInvocationName.reset(new std::string(argv[0])); in InitLogging() 74 const char* last_slash = strrchr(argv[0], '/'); in InitLogging() 76 : argv[0])); in InitLogging() 111 android::base::InitLogging(argv, INIT_LOGGING_DEFAULT_LOGGER, in InitLogging()
|
/art/test/970-iface-super-resolution-gen/util-src/ |
D | generate_java.py | 53 def main(argv): argument 54 final_java_dir = Path(argv[1]) 58 initial_java_dir = Path(argv[2]) 62 expected_txt = Path(argv[3]) 77 main(sys.argv)
|
/art/dexdump/ |
D | dexdump_main.cc | 63 int dexdumpDriver(int argc, char** argv) { in dexdumpDriver() argument 72 const int ic = getopt(argc, argv, "acdefghijl:no:s"); in dexdumpDriver() 155 result |= processFile(argv[optind++]); in dexdumpDriver() 162 int main(int argc, char** argv) { in main() argument 167 return art::dexdumpDriver(argc, argv); in main()
|
/art/test/common/ |
D | gtest_main.cc | 40 int main(int argc, char** argv, char** envp) { in main() argument 42 art::InitLogging(argv, art::Runtime::Abort); in main() 48 return IsolateMain(argc, argv, envp); in main()
|
/art/dex2oat/ |
D | dex2oat_cts_test.cc | 41 std::vector<std::string> argv = {std::string(kAndroidArtApexDefaultPath) + "/bin/dex2oat"}; in Dex2Oat() local 42 argv.insert(argv.end(), dex2oat_args.begin(), dex2oat_args.end()); in Dex2Oat() 47 argv.push_back("--android-root=" + std::string(android_root)); in Dex2Oat() 51 ForkAndExecResult res = ForkAndExec(argv, post_fork_fn, output); in Dex2Oat()
|
/art/tools/fuzzer/ |
D | create_corpus.py | 23 assert len(sys.argv) >= 3, "Usage: " + __file__ + " output_dir input_zip+" 24 dst = pathlib.Path(sys.argv[1]) 26 srcs = [pathlib.Path(f) for f in sys.argv[2:]]
|
/art/cmdline/ |
D | cmdline_parser_test.cc | 172 #define _EXPECT_SINGLE_PARSE_EMPTY_SUCCESS(argv) \ argument 174 EXPECT_TRUE(IsResultSuccessful(parser_->Parse(argv))); \ 177 #define EXPECT_SINGLE_PARSE_EMPTY_SUCCESS(argv) \ argument 178 _EXPECT_SINGLE_PARSE_EMPTY_SUCCESS(argv); \ 181 #define EXPECT_SINGLE_PARSE_DEFAULT_VALUE(expected, argv, key)\ argument 182 _EXPECT_SINGLE_PARSE_EMPTY_SUCCESS(argv); \ 187 #define _EXPECT_SINGLE_PARSE_EXISTS(argv, key) \ argument 189 EXPECT_TRUE(IsResultSuccessful(parser_->Parse(argv))); \ 194 #define EXPECT_SINGLE_PARSE_EXISTS(argv, key) \ argument 195 _EXPECT_SINGLE_PARSE_EXISTS(argv, key); \ [all …]
|
/art/libarttools/ |
D | art_exec.cc | 94 Options ParseOptions(int argc, char** argv) { in ParseOptions() argument 97 std::string_view arg = argv[i]; in ParseOptions() 189 int main(int argc, char** argv) { in main() argument 190 android::base::InitLogging(argv); in main() 192 Options options = ParseOptions(argc, argv); in main() 233 std::vector<char*> command_args(&argv[options.command_pos], &argv[argc + 1]); in main() 240 execv(argv[options.command_pos], command_args.data()); in main()
|
/art/test/968-default-partial-compile-gen/util-src/ |
D | generate_java.py | 108 def main(argv): argument 109 javac_exec = Path(argv[1]) 113 temp_dir = Path(argv[2]) 117 classes_dir = Path(argv[3]) 121 expected_txt = Path(argv[4]) 130 main(sys.argv)
|
/art/test/971-iface-super/util-src/ |
D | generate_java.py | 112 def main(argv): argument 113 javac_exec = Path(argv[1]) 117 temp_dir = Path(argv[2]) 121 classes_dir = Path(argv[3]) 125 expected_txt = Path(argv[4]) 134 main(sys.argv)
|
/art/test/generate-boot-image/ |
D | generate-boot-image.cc | 178 int Main(int argc, char** argv) { in Main() argument 179 android::base::InitLogging(argv, android::base::LogdLogger(android::base::SYSTEM)); in Main() 183 std::string_view arg{argv[i]}; in Main() 214 options.dex2oat_options.push_back(argv[i]); in Main() 217 Usage(ART_FORMAT("Unrecognized argument: '{}'", argv[i])); in Main() 263 int main(int argc, char** argv) { return art::gbi::Main(argc, argv); } in main() argument
|
/art/runtime/interpreter/mterp/ |
D | gen_mterp.py | 20 SCRIPT_DIR = os.path.dirname(sys.argv[0]) 87 if len(sys.argv) <= 3: 92 output_filename = sys.argv[1] 93 input_filenames = sys.argv[2:]
|
/art/tools/ |
D | dt_fds_forward.py | 173 end_idx = 0 if '--' not in sys.argv else sys.argv.index('--') 174 if end_idx == 0 and ('--help' in sys.argv or '-h' in sys.argv): 177 args = parser.parse_args(sys.argv[:end_idx][1:]) 178 rest = sys.argv[1 + end_idx:]
|
/art/dexoptanalyzer/ |
D | dexoptanalyzer.cc | 148 void ParseArgs(int argc, char **argv) { in ParseArgs() argument 150 original_argv = argv; in ParseArgs() 153 InitLogging(argv, Runtime::Abort); in ParseArgs() 155 argv++; in ParseArgs() 163 const char* raw_option = argv[i]; in ParseArgs() 195 runtime_args_.push_back(argv[i]); in ParseArgs() 402 static ReturnCode dexoptAnalyze(int argc, char** argv) { in dexoptAnalyze() argument 406 analyzer.ParseArgs(argc, argv); in dexoptAnalyze() 413 int main(int argc, char **argv) { in main() argument 414 art::dexoptanalyzer::ReturnCode return_code = art::dexoptanalyzer::dexoptAnalyze(argc, argv); in main()
|
/art/odrefresh/ |
D | odrefresh_main.cc | 130 int InitializeConfig(int argc, char** argv, OdrConfig* config) { in InitializeConfig() argument 143 const char* arg = argv[n]; in InitializeConfig() 258 int main(int argc, char** argv) { in main() argument 265 android::base::InitLogging(argv, android::base::LogdLogger(android::base::SYSTEM)); in main() 267 OdrConfig config(argv[0]); in main() 268 int n = InitializeConfig(argc, argv, &config); in main() 272 argv += n; in main() 283 std::string_view action(argv[0]); in main() 326 UsageHelp(argv[0]); in main()
|
/art/dexopt_chroot_setup/ |
D | dexopt_chroot_setup_main.cc | 25 int main([[maybe_unused]] int argc, char* argv[]) { in main() argument 26 android::base::InitLogging(argv); in main()
|
/art/tools/signal_dumper/ |
D | signal_dumper.cc | 656 int main([[maybe_unused]] int argc, char** argv) { in main() argument 657 android::base::InitLogging(argv); in main() 663 CHECK(argv[index] != nullptr); in main() 667 if (strcmp(argv[index], "-l") == 0) { in main() 669 CHECK(argv[index] != nullptr); in main() 677 if (strcmp(argv[index], "-s") == 0) { in main() 679 CHECK(argv[index] != nullptr); in main() 681 CHECK(android::base::ParseUint(argv[index], &signal_uint)) << "Signal not a number."; in main() 684 CHECK(argv[index] != nullptr); in main() 687 if (strcmp(argv[index], "-e") == 0) { in main() [all …]
|