Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dcommand_test.cpp82 OptionFormatMap option_formats = { in TEST() local
108 ASSERT_TRUE(cmd.PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)); in TEST()
128 ASSERT_TRUE(cmd.PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)); in TEST()
138 ASSERT_TRUE(cmd.PreprocessOptions({"arg1", "--arg2"}, option_formats, &options, &ordered_options, in TEST()
142 ASSERT_TRUE(cmd.PreprocessOptions({"--", "--bool-option"}, option_formats, &options, in TEST()
148 ASSERT_FALSE(cmd.PreprocessOptions({"--unknown-option"}, option_formats, &options, in TEST()
152 cmd.PreprocessOptions({"--str-option"}, option_formats, &options, &ordered_options, nullptr)); in TEST()
154 ASSERT_FALSE(cmd.PreprocessOptions({"--uint-option", "-2"}, option_formats, &options, in TEST()
156 ASSERT_FALSE(cmd.PreprocessOptions({"--double-option", "str"}, option_formats, &options, in TEST()
159 ASSERT_FALSE(cmd.PreprocessOptions({"non_option_args"}, option_formats, &options, in TEST()
Dcmd_api_impl.h24 static const OptionFormatMap option_formats = { in GetApiCollectCmdOptionFormats() local
31 return option_formats; in GetApiCollectCmdOptionFormats()
Dcommand.h130 static const OptionFormatMap option_formats = { in GetCommonOptionFormatMap() local
138 return option_formats; in GetCommonOptionFormatMap()
166 const OptionFormatMap& option_formats, OptionValueMap* options,
Dcmd_record_impl.h31 static const OptionFormatMap option_formats = { in GetRecordCmdOptionFormats() local
81 return option_formats; in GetRecordCmdOptionFormats()
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_stat_impl.h328 static const OptionFormatMap option_formats = { in GetStatCmdOptionFormats() local
355 return option_formats; in GetStatCmdOptionFormats()