Home
last modified time | relevance | path

Searched refs:option_formats (Results 1 – 15 of 15) sorted by relevance

/system/extras/simpleperf/
Dcommand_test.cpp79 OptionFormatMap option_formats = { in TEST() local
98 ASSERT_TRUE(cmd.PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)); in TEST()
121 ASSERT_TRUE(cmd.PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)); in TEST()
131 ASSERT_TRUE(cmd.PreprocessOptions({"arg1", "--arg2"}, option_formats, &options, &ordered_options, in TEST()
135 ASSERT_TRUE(cmd.PreprocessOptions({"--", "--bool-option"}, option_formats, &options, in TEST()
139 ASSERT_FALSE(cmd.PreprocessOptions({"non_option_arg"}, option_formats, &options, &ordered_options, in TEST()
144 ASSERT_FALSE(cmd.PreprocessOptions({"--unknown-option"}, option_formats, &options, in TEST()
148 cmd.PreprocessOptions({"--str-option"}, option_formats, &options, &ordered_options, nullptr)); in TEST()
150 ASSERT_FALSE(cmd.PreprocessOptions({"--uint-option", "-2"}, option_formats, &options, in TEST()
152 ASSERT_FALSE(cmd.PreprocessOptions({"--double-option", "str"}, option_formats, &options, in TEST()
[all …]
Dcmd_api_impl.h24 static const OptionFormatMap option_formats = { in GetApiCollectCmdOptionFormats() local
31 return option_formats; in GetApiCollectCmdOptionFormats()
Dcmd_record_impl.h32 static OptionFormatMap option_formats; in GetRecordCmdOptionFormats() local
33 if (option_formats.empty()) { in GetRecordCmdOptionFormats()
34 option_formats = { in GetRecordCmdOptionFormats()
92 option_formats.insert(record_filter_options.begin(), record_filter_options.end()); in GetRecordCmdOptionFormats()
94 return option_formats; in GetRecordCmdOptionFormats()
DRecordFilter.h92 static const OptionFormatMap option_formats = { in GetRecordFilterOptionFormats() local
108 return option_formats; in GetRecordFilterOptionFormats()
Dcommand.h135 static const OptionFormatMap option_formats = { in GetCommonOptionFormatMap() local
143 return option_formats; in GetCommonOptionFormatMap()
163 const OptionFormatMap& option_formats, OptionValueMap* options,
Dcommand.cpp45 const OptionFormatMap& option_formats, OptionValueMap* options, in PreprocessOptions() argument
52 auto it = option_formats.find(args[i]); in PreprocessOptions()
53 if (it == option_formats.end()) { in PreprocessOptions()
Dcmd_monitor.cpp302 static OptionFormatMap option_formats; in GetMonitorCmdOptionFormats() local
303 if (option_formats.empty()) { in GetMonitorCmdOptionFormats()
304 option_formats = { in GetMonitorCmdOptionFormats()
317 option_formats.insert(record_filter_options.begin(), record_filter_options.end()); in GetMonitorCmdOptionFormats()
319 return option_formats; in GetMonitorCmdOptionFormats()
DRecordFilter_test.cpp139 const auto& option_formats = GetRecordFilterOptionFormats(); in Run() local
143 if (!PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)) { in Run()
Dcmd_stat_impl.h328 static const OptionFormatMap option_formats = { in GetStatCmdOptionFormats() local
355 return option_formats; in GetStatCmdOptionFormats()
Dcmd_merge.cpp149 const OptionFormatMap option_formats = { in ParseOptions() local
155 if (!PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)) { in ParseOptions()
Dcmd_inject.cpp163 const OptionFormatMap option_formats = { in ParseOptions() local
174 if (!PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)) { in ParseOptions()
Dcmd_dumprecord.cpp236 const OptionFormatMap option_formats = { in ParseOptions() local
244 if (!PreprocessOptions(args, option_formats, &options, &ordered_options, &non_option_args)) { in ParseOptions()
Dcmd_debug_unwind.cpp655 const OptionFormatMap option_formats = { in ParseOptions() local
667 if (!PreprocessOptions(args, option_formats, &options, &ordered_options)) { in ParseOptions()
Dcmd_report_sample.cpp290 const OptionFormatMap option_formats = { in ParseOptions() local
304 if (!PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)) { in ParseOptions()
Dcmd_report.cpp512 static OptionFormatMap option_formats = { in ParseOptions() local
540 if (!PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)) { in ParseOptions()