/art/dexlayout/ |
D | dexlayout_main.cc | 82 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/ |
D | parsed_options_test.cc | 55 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 …]
|
D | parsed_options.h | 54 static bool Parse(const RuntimeOptions& options, 66 bool ProcessSpecialOptions(const RuntimeOptions& options, 77 bool DoParse(const RuntimeOptions& options,
|
/art/compiler/driver/ |
D | compiler_options_map-inl.h | 54 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::LargeMethodMaxThreshold, &options->large_method_threshold_); 61 map.AssignIfExists(Base::NumDexMethodsThreshold, &options->num_dex_methods_threshold_); 62 map.AssignIfExists(Base::InlineMaxCodeUnitsThreshold, &options->inline_max_code_units_); 63 map.AssignIfExists(Base::GenerateDebugInfo, &options->generate_debug_info_); 64 map.AssignIfExists(Base::GenerateMiniDebugInfo, &options->generate_mini_debug_info_); 65 map.AssignIfExists(Base::GenerateBuildID, &options->generate_build_id_); [all …]
|
/art/ |
D | test.py | 37 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: 66 build_command += ' -j' + str(options.n_threads)
|
/art/test/ti-agent/ |
D | common_load.cc | 36 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() 99 static bool FindAgentNameAndOptions(char* options, in FindAgentNameAndOptions() argument 103 *name = options; in FindAgentNameAndOptions() 104 char* rest = options; in FindAgentNameAndOptions() 117 static void SetIsJVM(const char* options) { in SetIsJVM() argument [all …]
|
/art/tools/dexanalyze/ |
D | dexanalyze.cc | 134 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/test/odsign/test-src/com/android/tests/odsign/ |
D | ActivationTest.java | 53 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/ |
D | disassembler_arm64.h | 34 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() 79 explicit DisassemblerArm64(DisassemblerOptions* options) : in DisassemblerArm64() argument 80 Disassembler(options), disasm(options) { in DisassemblerArm64()
|
D | disassembler.cc | 45 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/ |
D | boot_image_profile.cc | 153 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 …]
|
D | profile_assistant.cc | 34 const Options& options) { in ProcessProfilesInternal() argument 37 ProfileCompilationInfo info(options.IsBootImageMerge()); in ProcessProfilesInternal() 45 if (options.IsBootImageMerge() && !info.IsForBootImage()) { in ProcessProfilesInternal() 56 ProfileCompilationInfo cur_info(options.IsBootImageMerge()); in ProcessProfilesInternal() 59 if (options.IsForceMerge()) { in ProcessProfilesInternal() 66 ProfileCompilationInfo wrong_info(!options.IsBootImageMerge()); in ProcessProfilesInternal() 80 if (!options.IsForceMerge()) { in ProcessProfilesInternal() 85 (options.GetMinNewMethodsPercentChangeForCompilation() * number_of_methods) / 100, in ProcessProfilesInternal() 88 (options.GetMinNewClassesPercentChangeForCompilation() * number_of_classes) / 100, in ProcessProfilesInternal() 108 return options.IsForceMerge() ? kSuccess : kCompile; in ProcessProfilesInternal() [all …]
|
/art/runtime/jit/ |
D | profile_saver_test.cc | 31 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/tools/veridex/ |
D | veridex.cc | 95 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/jvmti-agents/wrapagentproperties/ |
D | wrapagentproperties.cc | 250 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/ |
D | ti_alloc_sample.cc | 377 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/tools/jvmti-agents/enable-vlog/ |
D | enablevlog.cc | 92 static jint AgentStart(JavaVM* vm, char* options, void* reserved ATTRIBUTE_UNUSED) { 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/jit-load/ |
D | jitload.cc | 92 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/chain-agents/ |
D | chainagents.cc | 97 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/libartpalette/apex/ |
D | palette_test.cc | 82 JavaVMOption options[] = { in TEST_F() 86 vm_args.nOptions = std::size(options); in TEST_F() 87 vm_args.options = options; in TEST_F()
|
/art/test/testrunner/ |
D | testrunner.py | 1173 options = vars(parser.parse_args()) 1174 if options['csv_result'] is not None: 1175 csv_result = options['csv_result'] 1179 if options['all_' + variant_type]: 1181 options[variant] = True 1184 env.EXTRA_DISABLED_TESTS.update(set(options['skips'])) 1185 if options['tests']: 1187 for test_name in options['tests']: 1192 if options.get(variant): 1195 if options['verbose']: [all …]
|
D | run_build_test_target.py | 44 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/test/900-hello-plugin/ |
D | load_unload.cc | 55 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/tools/jvmti-agents/dump-jvmti-state/ |
D | dump-jvmti.cc | 91 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/ |
D | breakpoint_logger.cc | 332 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()
|