Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dcommand_test.cpp79 std::vector<std::pair<OptionName, OptionValue>> ordered_options; 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()
129 ASSERT_EQ(ordered_options.size(), 3); in TEST()
130 ASSERT_EQ(ordered_options[0].first, "--ord-str-option"); in TEST()
131 ASSERT_EQ(*(ordered_options[0].second.str_value), "str1"); in TEST()
132 ASSERT_EQ(ordered_options[1].first, "--ord-uint-option"); in TEST()
133 ASSERT_EQ(ordered_options[1].second.uint_value, 32); in TEST()
134 ASSERT_EQ(ordered_options[2].first, "--ord-str-option"); in TEST()
135 ASSERT_EQ(*(ordered_options[2].second.str_value), "str2"); in TEST()
[all …]
Dcmd_api.cpp111 std::vector<std::pair<OptionName, OptionValue>> ordered_options; in ParseOptions() local
114 if (!PreprocessOptions(args, GetApiCollectCmdOptionFormats(), &options, &ordered_options, in ParseOptions()
135 CHECK(ordered_options.empty()); in ParseOptions()
Dcommand.cpp46 std::vector<std::pair<OptionName, OptionValue>>* ordered_options, in PreprocessOptions() argument
49 ordered_options->clear(); in PreprocessOptions()
113 ordered_options->emplace_back(name, value); in PreprocessOptions()
Dcommand.h167 std::vector<std::pair<OptionName, OptionValue>>* ordered_options,
Dcmd_stat.cpp631 std::vector<std::pair<OptionName, OptionValue>> ordered_options; in ParseOptions() local
633 if (!PreprocessOptions(args, GetStatCmdOptionFormats(), &options, &ordered_options, in ParseOptions()
727 CHECK(ordered_options.empty()); in ParseOptions()
Dcmd_record.cpp730 std::vector<std::pair<OptionName, OptionValue>> ordered_options; in ParseOptions() local
732 if (!PreprocessOptions(args, GetRecordCmdOptionFormats(), &options, &ordered_options, in ParseOptions()
906 for (const auto& pair : ordered_options) { in ParseOptions()