Home
last modified time | relevance | path

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

123456

/art/test/generate-boot-image/
Dgenerate-boot-image.cc130 int GenerateBootImage(const Options& options) { in GenerateBootImage() argument
132 args.push_back(options.dex2oat_bin); in GenerateBootImage()
135 GetLibCoreDexFileNames(options.android_root, options.core_only); in GenerateBootImage()
136 std::vector<std::string> dex_locations = GetLibCoreDexLocations(options.core_only); in GenerateBootImage()
148 args.push_back("--instruction-set=" + options.instruction_set); in GenerateBootImage()
150 args.push_back("--compiler-filter=" + options.compiler_filter); in GenerateBootImage()
151 if (options.use_profile) { in GenerateBootImage()
152 args.push_back("--profile-file=" + options.profile_file); in GenerateBootImage()
161 std::string path = ART_FORMAT("{}/{}", options.output_dir, options.instruction_set); in GenerateBootImage()
169 options.dex2oat_options.begin(), options.dex2oat_options.end(), std::back_inserter(args)); in GenerateBootImage()
[all …]
/art/runtime/jit/
Djit_options.cc46 JitOptions* JitOptions::CreateFromRuntimeArguments(const RuntimeArgumentMap& options) { in CreateFromRuntimeArguments() argument
48 jit_options->use_jit_compilation_ = options.GetOrDefault(RuntimeArgumentMap::UseJitCompilation); in CreateFromRuntimeArguments()
50 options.GetOrDefault(RuntimeArgumentMap::UseProfiledJitCompilation); in CreateFromRuntimeArguments()
53 options.GetOrDefault(RuntimeArgumentMap::JITCodeCacheInitialCapacity); in CreateFromRuntimeArguments()
55 options.GetOrDefault(RuntimeArgumentMap::JITCodeCacheMaxCapacity); in CreateFromRuntimeArguments()
57 options.Exists(RuntimeArgumentMap::DumpJITInfoOnShutdown); in CreateFromRuntimeArguments()
59 options.GetOrDefault(RuntimeArgumentMap::ProfileSaverOpts); in CreateFromRuntimeArguments()
61 options.GetOrDefault(RuntimeArgumentMap::JITPoolThreadPthreadPriority); in CreateFromRuntimeArguments()
63 options.GetOrDefault(RuntimeArgumentMap::JITZygotePoolThreadPthreadPriority); in CreateFromRuntimeArguments()
75 if (options.Exists(RuntimeArgumentMap::JITOptimizeThreshold)) { in CreateFromRuntimeArguments()
[all …]
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()
69 void SetUpRuntimeOptions(RuntimeOptions *options) override { in SetUpRuntimeOptions() argument
70 ProfileSaverTest::SetUpRuntimeOptions(options); in SetUpRuntimeOptions()
71 options->push_back(std::make_pair("-Xps-profile-boot-class-path", nullptr)); in SetUpRuntimeOptions()
/art/libarttools/
Dart_exec.cc95 Options options; in ParseOptions() local
102 options.task_profiles = Split(std::string(arg), ","); in ParseOptions()
103 if (options.task_profiles.empty()) { in ParseOptions()
108 options.priority = ANDROID_PRIORITY_BACKGROUND; in ParseOptions()
113 options.drop_capabilities = true; in ParseOptions()
120 options.keep_fds.insert(fd); in ParseOptions()
127 options.envs[std::string(arg.substr(/*pos=*/0, /*n=*/pos))] = in ParseOptions()
130 options.chroot = arg; in ParseOptions()
132 options.process_name_suffix = arg; in ParseOptions()
137 options.command_pos = i + 1; in ParseOptions()
[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 …]
/art/compiler/driver/
Dcompiler_options_map-inl.h54 inline bool ReadCompilerOptions(Base& map, CompilerOptions* options, std::string* error_msg) {
56 options->SetCompilerFilter(*map.Get(Base::CompilerFilter));
58 map.AssignIfExists(Base::CompileArtTest, &options->compile_art_test_);
59 map.AssignIfExists(Base::HugeMethodMaxThreshold, &options->huge_method_threshold_);
60 map.AssignIfExists(Base::InlineMaxCodeUnitsThreshold, &options->inline_max_code_units_);
61 map.AssignIfExists(Base::GenerateDebugInfo, &options->generate_debug_info_);
62 map.AssignIfExists(Base::GenerateMiniDebugInfo, &options->generate_mini_debug_info_);
63 map.AssignIfExists(Base::GenerateBuildID, &options->generate_build_id_);
65 options->debuggable_ = true;
68 options->baseline_ = true;
[all …]
/art/test/ti-agent/
Dcommon_load.cc37 jint OnLoad(JavaVM* vm, char* options, void* reserved);
41 jint OnLoad(JavaVM* vm, char* options, void* reserved);
45 jint OnLoad(JavaVM* vm, char* options, void* reserved);
50 using OnLoad = jint (*)(JavaVM* vm, char* options, void* reserved);
51 using OnAttach = jint (*)(JavaVM* vm, char* options, void* reserved);
61 [[maybe_unused]] char* options, in MinimalOnLoad() argument
101 static bool FindAgentNameAndOptions(char* options, in FindAgentNameAndOptions() argument
105 *name = options; in FindAgentNameAndOptions()
106 char* rest = options; in FindAgentNameAndOptions()
119 static void SetIsJVM(const char* options) { in SetIsJVM() argument
[all …]
/art/
Dtest.py40 options, unknown = parser.parse_known_args() variable
42 if options.run_test or options.help_runner or not options.gtest:
56 if subprocess.call(test_runner_cmd) or options.help_runner:
59 if options.gtest or not options.run_test:
61 if options.host or not options.target:
63 if options.target or not options.host:
67 build_command += ' -j' + str(options.n_threads)
/art/tools/dexanalyze/
Ddexanalyze.cc135 explicit Analysis(const Options* options) : options_(options) { in Analysis() argument
136 if (options->run_all_experiments_ || options->exp_count_indices_) { in Analysis()
139 if (options->run_all_experiments_ || options->exp_analyze_strings_) { in Analysis()
142 if (options->run_all_experiments_ || options->exp_code_metrics_) { in Analysis()
145 if (options->run_all_experiments_ || options->exp_debug_info_) { in Analysis()
148 if (options->run_all_experiments_ || options->exp_bytecode_) { in Analysis()
149 for (size_t i = 0; i < options->experiment_max_; ++i) { in Analysis()
162 experiment->verbose_level_ = options->verbose_level_; in Analysis()
194 Options options; in Run() local
195 int result = options.Parse(argc, argv); in Run()
[all …]
/art/test/odsign/test-src/com/android/tests/odsign/
DActivationTest.java53 DeviceTestRunOptions options = new DeviceTestRunOptions(TEST_APP_PACKAGE_NAME); in verifyArtUpgradeSignsFiles() local
54 options.setTestClassName(TEST_APP_PACKAGE_NAME + ".ArtifactsSignedTest"); in verifyArtUpgradeSignsFiles()
55 options.setTestMethodName("testArtArtifactsHaveFsverity"); in verifyArtUpgradeSignsFiles()
56 runDeviceTests(options); in verifyArtUpgradeSignsFiles()
63 DeviceTestRunOptions options = new DeviceTestRunOptions(TEST_APP_PACKAGE_NAME); in verifyArtUpgradeGeneratesAnyArtifacts() local
64 options.setTestClassName(TEST_APP_PACKAGE_NAME + ".ArtifactsSignedTest"); in verifyArtUpgradeGeneratesAnyArtifacts()
65 options.setTestMethodName("testGeneratesAnyArtArtifacts"); in verifyArtUpgradeGeneratesAnyArtifacts()
66 runDeviceTests(options); in verifyArtUpgradeGeneratesAnyArtifacts()
72 DeviceTestRunOptions options = new DeviceTestRunOptions(TEST_APP_PACKAGE_NAME); in verifyArtUpgradeGeneratesRequiredArtifacts() local
73 options.setTestClassName(TEST_APP_PACKAGE_NAME + ".ArtifactsSignedTest"); in verifyArtUpgradeGeneratesRequiredArtifacts()
[all …]
/art/disassembler/
Ddisassembler.cc49 Disassembler* Disassembler::Create(InstructionSet instruction_set, DisassemblerOptions* options) { in Create() argument
54 return new arm::DisassemblerArm(options); in Create()
58 return new arm64::DisassemblerArm64(options); in Create()
62 return new riscv64::DisassemblerRiscv64(options); in Create()
66 return new x86::DisassemblerX86(options, /* supports_rex= */ false); in Create()
70 return new x86::DisassemblerX86(options, /* supports_rex= */ true); in Create()
73 UNUSED(options); in Create()
88 Disassembler* create_disassembler(InstructionSet instruction_set, DisassemblerOptions* options) { in create_disassembler() argument
89 return Disassembler::Create(instruction_set, options); in create_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()
83 explicit DisassemblerArm64(DisassemblerOptions* options) : in DisassemblerArm64() argument
84 Disassembler(options), disasm(options) { in DisassemblerArm64()
/art/profman/
Dprofile_assistant.cc34 const Options& options) { in ProcessProfilesInternal() argument
35 ProfileCompilationInfo info(options.IsBootImageMerge()); in ProcessProfilesInternal()
43 if (options.IsBootImageMerge() && !info.IsForBootImage()) { in ProcessProfilesInternal()
54 ProfileCompilationInfo cur_info(options.IsBootImageMerge()); in ProcessProfilesInternal()
57 if (options.IsForceMerge() || options.IsForceMergeAndAnalyze()) { in ProcessProfilesInternal()
64 ProfileCompilationInfo wrong_info(!options.IsBootImageMerge()); in ProcessProfilesInternal()
78 if (!options.IsForceMerge()) { in ProcessProfilesInternal()
83 if (options.IsForceMergeAndAnalyze()) { in ProcessProfilesInternal()
94 (options.GetMinNewMethodsPercentChangeForCompilation() * number_of_methods) / 100, in ProcessProfilesInternal()
97 (options.GetMinNewClassesPercentChangeForCompilation() * number_of_classes) / 100, in ProcessProfilesInternal()
[all …]
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 …]
/art/artd/
Dartd_main.cc38 Options options; in ParseOptions() local
42 options.is_pre_reboot = true; in ParseOptions()
47 return options; in ParseOptions()
57 art::artd::Options options = art::artd::ParseOptions(argc, argv); in main() local
58 if (options.is_pre_reboot) { in main()
62 auto artd = ndk::SharedRefBase::make<art::artd::Artd>(std::move(options)); in main()
/art/tools/veridex/
Dveridex.cc96 static void ParseArgs(VeridexOptions* options, int argc, char** argv) { in ParseArgs() argument
103 options->dex_file = Substr(argv[i], strlen(kDexFileOption)); in ParseArgs()
105 options->core_stubs = Substr(argv[i], strlen(kStubsOption)); in ParseArgs()
107 options->flags_file = Substr(argv[i], strlen(kFlagsOption)); in ParseArgs()
109 options->precise = false; in ParseArgs()
111 options->target_sdk_version = atoi(Substr(argv[i], strlen(kTargetSdkVersion))); in ParseArgs()
113 options->app_class_name_filter = android::base::Split( in ParseArgs()
116 options->exclude_api_lists = android::base::Split( in ParseArgs()
137 VeridexOptions options; in Run() local
138 ParseArgs(&options, argc, argv); in Run()
[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/libartservice/service/java/com/android/server/art/
DArtFileManager.java72 @NonNull PackageState pkgState, @NonNull AndroidPackage pkg, @NonNull Options options) { in getDexAndAbis() argument
74 if (options.forPrimaryDex()) { in getDexAndAbis()
82 if (options.forSecondaryDex()) { in getDexAndAbis()
83 List<? extends SecondaryDexInfo> dexInfos = getSecondaryDexInfo(pkgState, options); in getDexAndAbis()
103 @NonNull AndroidPackage pkg, @NonNull Options options) throws RemoteException { in getWritableArtifacts() argument
107 if (options.forPrimaryDex()) { in getWritableArtifacts()
120 if (options.forSecondaryDex()) { in getWritableArtifacts()
121 for (SecondaryDexInfo dexInfo : getSecondaryDexInfo(pkgState, options)) { in getWritableArtifacts()
140 var options = ArtFileManager.Options.builder() in getUsableArtifacts() local
145 for (Pair<DetailedDexInfo, Abi> pair : getDexAndAbis(pkgState, pkg, options)) { in getUsableArtifacts()
[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()
410 static jint AgentStart(JavaVM* vm, char* options, [[maybe_unused]] void* reserved) { in AgentStart() argument
412 if (!ProcessOptions(options)) { in AgentStart()
[all …]
/art/tools/jvmti-agents/enable-vlog/
Denablevlog.cc92 static jint AgentStart(JavaVM* vm, char* options, [[maybe_unused]] void* reserved) { in AgentStart() argument
102 } else if (svfe(jvmti, options, true) != JVMTI_ERROR_NONE) { in AgentStart()
110 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument
111 return AgentStart(vm, options, reserved); in Agent_OnAttach()
115 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad() argument
116 return AgentStart(jvm, options, reserved); in Agent_OnLoad()
/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.cc90 static jvmtiEnv* SetupJvmti(JavaVM* vm, const char* options) { in SetupJvmti() argument
107 ops->fatal = (strcmp(options, "fatal") == 0); in SetupJvmti()
118 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* /* reserved */) { in Agent_OnLoad() argument
119 SetupJvmti(vm, options); in Agent_OnLoad()
124 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* /* reserved */) { in Agent_OnAttach() argument
125 jvmtiEnv* jvmti = SetupJvmti(vm, options); in Agent_OnAttach()
/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()
/art/test/testrunner/
Dtestrunner.py1145 options = vars(parser.parse_args())
1146 if options['csv_result'] is not None:
1147 csv_result = options['csv_result']
1151 if options['all_' + variant_type]:
1153 options[variant] = True
1156 env.EXTRA_DISABLED_TESTS.update(set(options['skips']))
1157 if options['tests']:
1159 for test_name in options['tests']:
1164 if options.get(variant):
1167 if options['verbose']:
[all …]
/art/tools/jvmti-agents/dump-jvmti-state/
Ddump-jvmti.cc92 [[maybe_unused]] char* options, in AgentStart() argument
108 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument
109 return AgentStart(vm, options, reserved); in Agent_OnAttach()
113 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad() argument
114 return AgentStart(jvm, options, reserved); in Agent_OnLoad()

123456