/art/dalvikvm/ |
D | dalvikvm.cc | 59 static int InvokeMain(JNIEnv* env, char** argv) { in InvokeMain() argument 63 ScopedLocalRef<jobjectArray> args(env, toStringArray(env, argv + 1)); in InvokeMain() 72 std::string class_name(argv[0]); in InvokeMain() 108 static int dalvikvm(int argc, char** argv) { in dalvikvm() argument 112 argv++; in dalvikvm() 132 if (argv[arg_idx][0] != '-' && !need_extra) { in dalvikvm() 135 if (strncmp(argv[arg_idx], "-XXlib:", strlen("-XXlib:")) == 0) { in dalvikvm() 136 lib = argv[arg_idx] + strlen("-XXlib:"); in dalvikvm() 140 options[curr_opt++].optionString = argv[arg_idx]; in dalvikvm() 144 if (strcmp(argv[arg_idx], "-classpath") == 0 || strcmp(argv[arg_idx], "-cp") == 0) { in dalvikvm() [all …]
|
/art/tools/dexanalyze/ |
D | dexanalyze.cc | 50 static int Usage(char** argv) { in Usage() argument 52 << "Usage " << argv[0] << " [options] <dex files>\n" in Usage() 67 int Parse(int argc, char** argv) { in Parse() 70 const std::string arg = argv[i]; in Parse() 76 return Usage(argv); in Parse() 78 std::istringstream iss(argv[i + 1]); in Parse() 82 return Usage(argv); in Parse() 90 return Usage(argv); in Parse() 92 std::istringstream iss(argv[i + 1]); in Parse() 106 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 | 95 static void ParseArgs(VeridexOptions* options, int argc, char** argv) { in ParseArgs() argument 97 argv++; in ParseArgs() 101 if (StartsWith(argv[i], kDexFileOption)) { in ParseArgs() 102 options->dex_file = Substr(argv[i], strlen(kDexFileOption)); in ParseArgs() 103 } else if (StartsWith(argv[i], kStubsOption)) { in ParseArgs() 104 options->core_stubs = Substr(argv[i], strlen(kStubsOption)); in ParseArgs() 105 } else if (StartsWith(argv[i], kFlagsOption)) { in ParseArgs() 106 options->flags_file = Substr(argv[i], strlen(kFlagsOption)); in ParseArgs() 107 } else if (strcmp(argv[i], kImprecise) == 0) { in ParseArgs() 109 } else if (StartsWith(argv[i], kTargetSdkVersion)) { in ParseArgs() [all …]
|
/art/runtime/ |
D | common_runtime_test.cc | 390 bool CommonRuntimeTestImpl::StartDex2OatCommandLine(/*out*/std::vector<std::string>* argv, in StartDex2OatCommandLine() argument 393 DCHECK(argv != nullptr); in StartDex2OatCommandLine() 394 DCHECK(argv->empty()); in StartDex2OatCommandLine() 402 argv->push_back(runtime->GetCompilerExecutable()); in StartDex2OatCommandLine() 404 argv->push_back("--debuggable"); in StartDex2OatCommandLine() 406 runtime->AddCurrentRuntimeFeaturesAsDex2OatArguments(argv); in StartDex2OatCommandLine() 409 argv->push_back("--runtime-arg"); in StartDex2OatCommandLine() 410 argv->push_back(GetClassPathOption("-Xbootclasspath:", GetLibCoreDexFileNames())); in StartDex2OatCommandLine() 411 argv->push_back("--runtime-arg"); in StartDex2OatCommandLine() 412 argv->push_back(GetClassPathOption("-Xbootclasspath-locations:", GetLibCoreDexLocations())); in StartDex2OatCommandLine() [all …]
|
D | dexopt_test.cc | 51 std::vector<std::string> argv; in Dex2Oat() local 52 if (!CommonRuntimeTest::StartDex2OatCommandLine(&argv, error_msg)) { in Dex2Oat() 58 argv.push_back("--runtime-arg"); in Dex2Oat() 59 argv.push_back("-Xhidden-api-policy:enabled"); in Dex2Oat() 63 argv.push_back("--host"); in Dex2Oat() 66 argv.insert(argv.end(), args.begin(), args.end()); in Dex2Oat() 68 std::string command_line(android::base::Join(argv, ' ')); in Dex2Oat() 69 return Exec(argv, error_msg); in Dex2Oat()
|
/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() 145 result |= processFile(argv[optind++]); in dexdumpDriver() 152 int main(int argc, char** argv) { in main() argument 156 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 47 art::InitLogging(argv, art::Runtime::Abort); in main() 53 return IsolateMain(argc, argv, envp); in main()
|
/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/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/libdexfile/external/ |
D | dex_file_ext_c_test.c | 49 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() 52 return write_gtest_output_xml(argv[1] + sizeof(gtest_output_arg) - 1); in main()
|
/art/libnativeloader/test/ |
D | api_test.c | 21 int main(int argc, char** argv) { in main() argument 23 (void)argv; in main()
|
/art/libnativebridge/tests/ |
D | NativeBridgeApi.c | 21 int main(int argc, char** argv) { in main() argument 23 (void)argv; in main()
|
/art/dexlayout/ |
D | dexlayout_main.cc | 77 int DexlayoutDriver(int argc, char** argv) { in DexlayoutDriver() argument 79 InitLogging(argv, Abort); in DexlayoutDriver() 89 const int ic = getopt(argc, argv, "abcdefghil:o:p:stuvw:x:"); in DexlayoutDriver() 217 result |= dex_layout.ProcessFile(argv[optind++]); in DexlayoutDriver() 230 int main(int argc, char** argv) { in main() argument 234 return art::DexlayoutDriver(argc, argv); in main()
|
/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 …]
|
D | cmdline.h | 142 bool Parse(int argc, char** argv) { in Parse() 144 argv++; in Parse() 155 const char* const raw_option = argv[i]; in Parse() 174 runtime_args_.push_back(argv[i]); in Parse() 337 int Main(int argc, char** argv) { in Main() 339 InitLogging(argv, Runtime::Abort); in Main() 345 if (args_ == nullptr || !args_->Parse(argc, argv)) { in Main()
|
/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/test/971-iface-super/util-src/ |
D | generate_java.py | 115 def main(argv): argument 116 javac_exec = Path(argv[1]) 120 temp_dir = Path(argv[2]) 124 classes_dir = Path(argv[3]) 128 expected_txt = Path(argv[4]) 138 main(sys.argv)
|
/art/test/968-default-partial-compile-gen/util-src/ |
D | generate_java.py | 111 def main(argv): argument 112 javac_exec = Path(argv[1]) 116 temp_dir = Path(argv[2]) 120 classes_dir = Path(argv[3]) 124 expected_txt = Path(argv[4]) 134 main(sys.argv)
|
/art/dexoptanalyzer/ |
D | dexoptanalyzer.cc | 163 void ParseArgs(int argc, char **argv) { in ParseArgs() argument 165 original_argv = argv; in ParseArgs() 168 InitLogging(argv, Runtime::Abort); in ParseArgs() 170 argv++; in ParseArgs() 178 const char* raw_option = argv[i]; in ParseArgs() 202 runtime_args_.push_back(argv[i]); 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/tools/ |
D | dt_fds_forward.py | 170 end_idx = 0 if '--' not in sys.argv else sys.argv.index('--') 171 if end_idx == 0 and ('--help' in sys.argv or '-h' in sys.argv): 174 args = parser.parse_args(sys.argv[:end_idx][1:]) 175 rest = sys.argv[1 + end_idx:]
|
/art/tools/signal_dumper/ |
D | signal_dumper.cc | 664 int main(int argc ATTRIBUTE_UNUSED, char** argv) { in main() argument 665 android::base::InitLogging(argv); in main() 671 CHECK(argv[index] != nullptr); in main() 675 if (strcmp(argv[index], "-l") == 0) { in main() 677 CHECK(argv[index] != nullptr); in main() 685 if (strcmp(argv[index], "-s") == 0) { in main() 687 CHECK(argv[index] != nullptr); in main() 689 CHECK(android::base::ParseUint(argv[index], &signal_uint)) << "Signal not a number."; in main() 692 CHECK(argv[index] != nullptr); in main() 695 if (strcmp(argv[index], "-e") == 0) { in main() [all …]
|
/art/test/648-many-direct-methods/util-src/ |
D | generate_java.py | 128 def main(argv): argument 129 java_dir = Path(argv[1]) 137 main(sys.argv)
|
/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() 272 result |= processFile(argv[optind++]); in dexlistDriver() 281 int main(int argc, char** argv) { in main() argument 285 return art::dexlistDriver(argc, argv); in main()
|
/art/test/137-cfi/ |
D | cfi.cc | 79 std::vector<char*> argv; in Java_Main_startSecondaryProcess() local 81 argv.push_back(&cmdline[i]); in Java_Main_startSecondaryProcess() 83 argv.push_back(nullptr); // Terminate the list. in Java_Main_startSecondaryProcess() 89 execv(argv[0], argv.data()); in Java_Main_startSecondaryProcess()
|