Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 100) sorted by relevance

1234

/art/dexlayout/
Ddexlayout_main.cc82 Options options; in DexlayoutDriver() local
83 options.dump_ = true; in DexlayoutDriver()
84 options.verbose_ = true; in DexlayoutDriver()
95 options.show_annotations_ = true; in DexlayoutDriver()
98 options.build_dex_ir_ = true; in DexlayoutDriver()
101 options.checksum_only_ = true; in DexlayoutDriver()
104 options.disassemble_ = true; in DexlayoutDriver()
107 options.exports_only_ = true; in DexlayoutDriver()
110 options.show_file_headers_ = true; in DexlayoutDriver()
113 options.show_section_headers_ = true; in DexlayoutDriver()
[all …]
/art/runtime/
Dparsed_options_test.cc55 RuntimeOptions options; in TEST_F() local
56 options.push_back(std::make_pair(boot_class_path.c_str(), nullptr)); in TEST_F()
57 options.push_back(std::make_pair("-classpath", nullptr)); in TEST_F()
58 options.push_back(std::make_pair(class_path.c_str(), nullptr)); in TEST_F()
59 options.push_back(std::make_pair("-cp", nullptr)); in TEST_F()
60 options.push_back(std::make_pair(class_path.c_str(), nullptr)); in TEST_F()
61 options.push_back(std::make_pair("-Ximage:boot_image", nullptr)); in TEST_F()
62 options.push_back(std::make_pair("-Xcheck:jni", nullptr)); in TEST_F()
63 options.push_back(std::make_pair("-Xms2048", nullptr)); in TEST_F()
64 options.push_back(std::make_pair("-Xmx4k", nullptr)); in TEST_F()
[all …]
Dparsed_options.h54 static bool Parse(const RuntimeOptions& options,
66 bool ProcessSpecialOptions(const RuntimeOptions& options,
77 bool DoParse(const RuntimeOptions& options,
/art/compiler/driver/
Dcompiler_options_map-inl.h35 inline bool ReadCompilerOptions(Base& map, CompilerOptions* options, std::string* error_msg) { in ReadCompilerOptions() argument
44 options->SetCompilerFilter(compiler_filter); in ReadCompilerOptions()
46 map.AssignIfExists(Base::HugeMethodMaxThreshold, &options->huge_method_threshold_); in ReadCompilerOptions()
47 map.AssignIfExists(Base::LargeMethodMaxThreshold, &options->large_method_threshold_); in ReadCompilerOptions()
48 map.AssignIfExists(Base::NumDexMethodsThreshold, &options->num_dex_methods_threshold_); in ReadCompilerOptions()
49 map.AssignIfExists(Base::InlineMaxCodeUnitsThreshold, &options->inline_max_code_units_); in ReadCompilerOptions()
50 map.AssignIfExists(Base::GenerateDebugInfo, &options->generate_debug_info_); in ReadCompilerOptions()
51 map.AssignIfExists(Base::GenerateMiniDebugInfo, &options->generate_mini_debug_info_); in ReadCompilerOptions()
52 map.AssignIfExists(Base::GenerateBuildID, &options->generate_build_id_); in ReadCompilerOptions()
54 options->debuggable_ = true; in ReadCompilerOptions()
[all …]
/art/
Dtest.py37 options, unknown = parser.parse_known_args() variable
39 if options.run_test or options.help_runner or not options.gtest:
55 if subprocess.call(test_runner_cmd) or options.help_runner:
58 if options.gtest or not options.run_test:
60 if options.host or not options.target:
62 if options.target or not options.host:
65 build_command = 'm -j' + str(options.n_threads) + ' ' + build_target
/art/test/ti-agent/
Dcommon_load.cc36 jint OnLoad(JavaVM* vm, char* options, void* reserved);
40 jint OnLoad(JavaVM* vm, char* options, void* reserved);
44 jint OnLoad(JavaVM* vm, char* options, void* reserved);
49 using OnLoad = jint (*)(JavaVM* vm, char* options, void* reserved);
50 using OnAttach = jint (*)(JavaVM* vm, char* options, void* reserved);
60 char* options ATTRIBUTE_UNUSED, in MinimalOnLoad()
98 static bool FindAgentNameAndOptions(char* options, in FindAgentNameAndOptions() argument
102 *name = options; in FindAgentNameAndOptions()
103 char* rest = options; in FindAgentNameAndOptions()
116 static void SetIsJVM(const char* options) { in SetIsJVM() argument
[all …]
/art/tools/dexanalyze/
Ddexanalyze.cc134 explicit Analysis(const Options* options) : options_(options) { in Analysis() argument
135 if (options->run_all_experiments_ || options->exp_count_indices_) { in Analysis()
138 if (options->run_all_experiments_ || options->exp_analyze_strings_) { in Analysis()
141 if (options->run_all_experiments_ || options->exp_code_metrics_) { in Analysis()
144 if (options->run_all_experiments_ || options->exp_debug_info_) { in Analysis()
147 if (options->run_all_experiments_ || options->exp_bytecode_) { in Analysis()
148 for (size_t i = 0; i < options->experiment_max_; ++i) { in Analysis()
161 experiment->verbose_level_ = options->verbose_level_; in Analysis()
193 Options options; in Run() local
194 int result = options.Parse(argc, argv); in Run()
[all …]
/art/disassembler/
Ddisassembler_arm64.h34 explicit CustomDisassembler(DisassemblerOptions* options) in CustomDisassembler() argument
36 read_literals_(options->can_read_literals_), in CustomDisassembler()
37 base_address_(options->base_address_), in CustomDisassembler()
38 end_address_(options->end_address_), in CustomDisassembler()
39 options_(options) { in CustomDisassembler()
40 if (!options->absolute_addresses_) { in CustomDisassembler()
42 reinterpret_cast<const vixl::aarch64::Instruction*>(options->base_address_)); in CustomDisassembler()
74 explicit DisassemblerArm64(DisassemblerOptions* options) : in DisassemblerArm64() argument
75 Disassembler(options), disasm(options) { in DisassemblerArm64()
Ddisassembler.cc45 Disassembler* Disassembler::Create(InstructionSet instruction_set, DisassemblerOptions* options) { in Create() argument
50 return new arm::DisassemblerArm(options); in Create()
54 return new arm64::DisassemblerArm64(options); in Create()
58 return new x86::DisassemblerX86(options, /* supports_rex= */ false); in Create()
62 return new x86::DisassemblerX86(options, /* supports_rex= */ true); in Create()
79 Disassembler* create_disassembler(InstructionSet instruction_set, DisassemblerOptions* options) { in create_disassembler() argument
80 return Disassembler::Create(instruction_set, options); in create_disassembler()
/art/profman/
Dboot_image_profile.cc153 const BootImageOptions& options) { in IncludeItemInProfile() argument
158 options.special_packages_thresholds.find(annotIt.GetOriginPackageName()); in IncludeItemInProfile()
159 if (thresholdIt != options.special_packages_thresholds.end()) { in IncludeItemInProfile()
171 const BootImageOptions& options) { in IncludeMethodInProfile() argument
172 return IncludeItemInProfile(max_aggregation_count, options.method_threshold, metadata, options); in IncludeMethodInProfile()
179 const BootImageOptions& options) { in IncludeClassInProfile() argument
181 ? options.image_class_clean_threshold in IncludeClassInProfile()
182 : options.image_class_threshold; in IncludeClassInProfile()
183 return IncludeItemInProfile(max_aggregation_count, threshold, metadata, options); in IncludeClassInProfile()
191 const BootImageOptions& options) { in IncludeInPreloadedClasses() argument
[all …]
Dprofile_assistant.cc36 const Options& options) { in ProcessProfilesInternal() argument
39 ProfileCompilationInfo info(options.IsBootImageMerge()); in ProcessProfilesInternal()
47 if (options.IsBootImageMerge() && !info.IsForBootImage()) { in ProcessProfilesInternal()
61 if (options.IsForceMerge()) { in ProcessProfilesInternal()
75 if (options.IsForceMerge()) { in ProcessProfilesInternal()
92 if (!options.IsForceMerge()) { in ProcessProfilesInternal()
117 return options.IsForceMerge() ? kSuccess : kCompile; in ProcessProfilesInternal()
160 const Options& options) { in ProcessProfiles() argument
184 options); in ProcessProfiles()
191 const Options& options) { in ProcessProfiles() argument
[all …]
Dprofile_assistant.h87 const Options& options = Options());
94 const Options& options = Options());
101 const Options& options);
/art/runtime/jit/
Dprofile_saver_test.cc31 void SetUpRuntimeOptions(RuntimeOptions *options) override { in SetUpRuntimeOptions() argument
34 CommonRuntimeTest::SetUpRuntimeOptions(options); in SetUpRuntimeOptions()
36 options->push_back(std::make_pair("-Xjitsaveprofilinginfo", nullptr)); in SetUpRuntimeOptions()
37 options->push_back(std::make_pair("-Xusejit:true", nullptr)); in SetUpRuntimeOptions()
73 void SetUpRuntimeOptions(RuntimeOptions *options) override { in SetUpRuntimeOptions() argument
74 ProfileSaverTest::SetUpRuntimeOptions(options); in SetUpRuntimeOptions()
75 options->push_back(std::make_pair("-Xps-profile-boot-class-path", nullptr)); in SetUpRuntimeOptions()
/art/tools/veridex/
Dveridex.cc95 static void ParseArgs(VeridexOptions* options, int argc, char** argv) { in ParseArgs() argument
102 options->dex_file = Substr(argv[i], strlen(kDexFileOption)); in ParseArgs()
104 options->core_stubs = Substr(argv[i], strlen(kStubsOption)); in ParseArgs()
106 options->flags_file = Substr(argv[i], strlen(kFlagsOption)); in ParseArgs()
108 options->precise = false; in ParseArgs()
110 options->target_sdk_version = atoi(Substr(argv[i], strlen(kTargetSdkVersion))); in ParseArgs()
112 options->app_class_name_filter = android::base::Split( in ParseArgs()
115 options->exclude_api_lists = android::base::Split( in ParseArgs()
136 VeridexOptions options; in Run() local
137 ParseArgs(&options, argc, argv); in Run()
[all …]
/art/tools/class2greylist/src/com/android/class2greylist/
DClass2Greylist.java75 Options options = new Options(); in main() local
76 options.addOption(OptionBuilder in main()
82 options.addOption(OptionBuilder in main()
87 options.addOption(OptionBuilder in main()
92 options.addOption(OptionBuilder in main()
98 options.addOption(OptionBuilder in main()
105 options.addOption(OptionBuilder in main()
115 cmd = parser.parse(options, args); in main()
118 help(options); in main()
122 help(options); in main()
[all …]
/art/tools/jvmti-agents/wrapagentproperties/
Dwrapagentproperties.cc250 const std::string& options, in CallNextAgent() argument
254 return ((start == StartType::OnLoad) ? vm->load : vm->attach)(vm, options.c_str(), reserved); in CallNextAgent()
287 static bool ParseArgs(const std::string& options, in ParseArgs() argument
291 if (options.find(',') == std::string::npos) { in ParseArgs()
292 LOG(ERROR) << "No agent lib in " << options; in ParseArgs()
295 *prop_file = substrOf(options, 0, options.find(',')); in ParseArgs()
296 *agent_lib = substrOf(options, options.find(',') + 1, options.find('=')); in ParseArgs()
297 if (options.find('=') != std::string::npos) { in ParseArgs()
298 *agent_options = substrOf(options, options.find('=') + 1, std::string::npos); in ParseArgs()
305 static jint AgentStart(StartType start, JavaVM* vm, char* options, void* reserved) { in AgentStart() argument
[all …]
/art/tools/jvmti-agents/ti-alloc-sample/
Dti_alloc_sample.cc377 static bool ProcessOptions(std::string options) { in ProcessOptions() argument
379 if (options.empty()) { in ProcessOptions()
389 size_t comma_pos = options.find(','); in ProcessOptions()
393 sampling_rate = std::stoi(options.substr(0, comma_pos)); in ProcessOptions()
394 options = options.substr(comma_pos + 1); in ProcessOptions()
395 comma_pos = options.find(','); in ProcessOptions()
399 stack_depth_limit = std::stoi(options.substr(0, comma_pos)); in ProcessOptions()
400 output_file_path = options.substr(comma_pos + 1); in ProcessOptions()
411 char* options, in AgentStart() argument
414 if (!ProcessOptions(options)) { in AgentStart()
[all …]
/art/test/900-hello-plugin/
Dload_unload.cc55 char* options, in Agent_OnLoad() argument
57 printf("Agent_OnLoad called with options \"%s\"\n", options); in Agent_OnLoad()
58 if (strcmp("test_900_round_2", options) == 0) { in Agent_OnLoad()
Dexpected.txt2 Agent_OnLoad called with options "test_900"
6 Agent_OnLoad called with options "test_900_round_2"
/art/test/testrunner/
Dtestrunner.py951 def setup_env_for_build_target(build_target, parser, options): argument
964 target_options['n_thread'] = options['n_thread']
965 target_options['dry_run'] = options['dry_run']
1057 options = vars(parser.parse_args())
1060 if options['all_' + variant_type]:
1062 options[variant] = True
1064 if options['build_target']:
1065 options = setup_env_for_build_target(target_config[options['build_target']],
1066 parser, options)
1069 env.EXTRA_DISABLED_TESTS.update(set(options['skips']))
[all …]
Drun_build_test_target.py44 options = parser.parse_args() variable
48 if options.list:
55 if not target_config.get(options.build_target):
59 target = target_config[options.build_target]
60 n_threads = options.n_threads
/art/tools/jvmti-agents/chain-agents/
Dchainagents.cc97 static jint AgentStart(StartType start, JavaVM* vm, char* options, void* reserved) { in AgentStart() argument
98 std::string input_file(options); in AgentStart()
116 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument
117 return AgentStart(StartType::OnAttach, vm, options, reserved); in Agent_OnAttach()
123 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad() argument
124 return AgentStart(StartType::OnLoad, jvm, options, reserved); in Agent_OnLoad()
/art/tools/jvmti-agents/jit-load/
Djitload.cc92 static jvmtiEnv* SetupJvmti(JavaVM* vm, const char* options) { in SetupJvmti() argument
109 ops->fatal = (strcmp(options, "fatal") == 0); in SetupJvmti()
120 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* /* reserved */) { in Agent_OnLoad() argument
121 SetupJvmti(vm, options); in Agent_OnLoad()
126 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* /* reserved */) { in Agent_OnAttach() argument
127 jvmtiEnv* jvmti = SetupJvmti(vm, options); in Agent_OnAttach()
/art/tools/jvmti-agents/dump-jvmti-state/
Ddump-jvmti.cc91 static jint AgentStart(JavaVM* vm, char* options ATTRIBUTE_UNUSED, void* reserved ATTRIBUTE_UNUSED)… in AgentStart()
106 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument
107 return AgentStart(vm, options, reserved); in Agent_OnAttach()
111 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad() argument
112 return AgentStart(jvm, options, reserved); in Agent_OnLoad()
/art/tools/jvmti-agents/breakpoint-logger/
Dbreakpoint_logger.cc332 for (std::string options = start_options; in ParseArgs() local
333 !options.empty(); in ParseArgs()
334 options = RemoveLastOption(options)) { in ParseArgs()
336 std::string next = SubstrOf(options, 0, options.find(',')); in ParseArgs()
352 char* options, in AgentStart() argument
381 if (!ParseArgs(options, /*out*/data)) { in AgentStart()
437 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* reserved) { in Agent_OnAttach() argument
438 return AgentStart(StartType::OnAttach, vm, options, reserved); in Agent_OnAttach()
442 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad() argument
443 return AgentStart(StartType::OnLoad, jvm, options, reserved); in Agent_OnLoad()

1234