Home
last modified time | relevance | path

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

123

/art/dalvikvm/
Ddalvikvm.cc59 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/
Ddexanalyze.cc50 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 …]
Ddexanalyze_test.cc31 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/runtime/
Ddex2oat_environment_test.h181 std::vector<std::string> argv; in Dex2Oat() local
182 if (!CommonRuntimeTest::StartDex2OatCommandLine(&argv, error_msg)) { in Dex2Oat()
188 argv.push_back("--compiler-filter=assume-verified"); in Dex2Oat()
192 argv.push_back("--runtime-arg"); in Dex2Oat()
193 argv.push_back("-Xrelocate"); in Dex2Oat()
195 argv.push_back("--runtime-arg"); in Dex2Oat()
196 argv.push_back("-Xnorelocate"); in Dex2Oat()
200 argv.push_back("--host"); in Dex2Oat()
203 argv.insert(argv.end(), dex2oat_args.begin(), dex2oat_args.end()); in Dex2Oat()
208 argv.push_back("--android-root=" + std::string(android_root)); in Dex2Oat()
[all …]
Dcommon_runtime_test.cc413 bool CommonRuntimeTestImpl::StartDex2OatCommandLine(/*out*/std::vector<std::string>* argv, in StartDex2OatCommandLine() argument
416 DCHECK(argv != nullptr); in StartDex2OatCommandLine()
417 DCHECK(argv->empty()); in StartDex2OatCommandLine()
425 argv->push_back(runtime->GetCompilerExecutable()); in StartDex2OatCommandLine()
427 argv->push_back("--debuggable"); in StartDex2OatCommandLine()
429 runtime->AddCurrentRuntimeFeaturesAsDex2OatArguments(argv); in StartDex2OatCommandLine()
432 argv->push_back("--runtime-arg"); in StartDex2OatCommandLine()
433 argv->push_back(GetClassPathOption("-Xbootclasspath:", GetLibCoreDexFileNames())); in StartDex2OatCommandLine()
434 argv->push_back("--runtime-arg"); in StartDex2OatCommandLine()
435 argv->push_back(GetClassPathOption("-Xbootclasspath-locations:", GetLibCoreDexLocations())); in StartDex2OatCommandLine()
[all …]
Ddexopt_test.cc51 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/tools/veridex/
Dveridex.cc95 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/dexdump/
Ddexdump_main.cc60 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/970-iface-super-resolution-gen/util-src/
Dgenerate_java.py53 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/
Dlogging.cc59 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/
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()
52 return write_gtest_output_xml(argv[1] + sizeof(gtest_output_arg) - 1); in main()
/art/libnativebridge/tests/
DNativeBridgeApi.c21 int main(int argc, char** argv) { in main() argument
23 (void)argv; in main()
/art/libnativeloader/test/
Dapi_test.c21 int main(int argc, char** argv) { in main() argument
23 (void)argv; in main()
/art/dexlayout/
Ddexlayout_main.cc77 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/
Dcmdline_parser_test.cc172 #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 …]
Dcmdline_parser.h446 CmdlineResult Parse(const std::string& argv) { in Parse()
448 Split(argv, ' ', &tokenized); in Parse()
454 CmdlineResult Parse(const char* argv) { in Parse()
455 return Parse(std::string(argv)); in Parse()
460 CmdlineResult Parse(const std::vector<const char*>& argv) { in Parse()
461 return Parse(TokenRange(argv.begin(), argv.end())); in Parse()
466 CmdlineResult Parse(const std::vector<std::string>& argv) { in Parse()
467 return Parse(TokenRange(argv.begin(), argv.end())); in Parse()
472 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()
Dcmdline.h142 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/
Dgen_mterp.py20 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/968-default-partial-compile-gen/util-src/
Dgenerate_java.py111 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/test/971-iface-super/util-src/
Dgenerate_java.py115 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/dexoptanalyzer/
Ddexoptanalyzer.cc163 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/
Ddt_fds_forward.py170 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/
Dsignal_dumper.cc664 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/
Dgenerate_java.py128 def main(argv): argument
129 java_dir = Path(argv[1])
137 main(sys.argv)
/art/dexlist/
Ddexlist.cc209 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()

123