Home
last modified time | relevance | path

Searched refs:options_ (Results 1 – 4 of 4) sorted by relevance

/hardware/libhardware/modules/camera/3_4/metadata/
Dmenu_control_options.h35 : options_(options), defaults_(defaults){}; in MenuControlOptions()
37 : options_(options), in MenuControlOptions()
40 virtual std::vector<T> MetadataRepresentation() override { return options_; }; in MetadataRepresentation()
42 return (std::find(options_.begin(), options_.end(), option) != in IsSupported()
43 options_.end()); in IsSupported()
48 if (options_.empty()) { in DefaultValueForTemplate()
60 *default_value = options_[0]; in DefaultValueForTemplate()
65 std::vector<T> options_;
Dcontrol.h56 std::unique_ptr<TaggedControlOptions<T>> options_; variable
66 : delegate_(std::move(delegate)), options_(std::move(options)) {} in Control()
71 if (options_ && options_->tag() != DO_NOT_REPORT_OPTIONS) { in StaticTags()
72 result.push_back(options_->tag()); in StaticTags()
89 if (!options_) { in PopulateStaticFields()
93 } else if (options_->tag() == DO_NOT_REPORT_OPTIONS) { in PopulateStaticFields()
102 metadata, options_->tag(), options_->MetadataRepresentation()); in PopulateStaticFields()
122 if (options_) { in PopulateTemplateRequest()
123 res = options_->DefaultValueForTemplate(template_type, &value); in PopulateTemplateRequest()
157 if (!options_) { in SupportsRequestValues()
[all …]
Dtagged_control_options.h39 : tag_(tag), options_(std::move(options)){}; in TaggedControlOptions()
44 return options_->MetadataRepresentation(); in MetadataRepresentation()
47 return options_->IsSupported(value); in IsSupported()
51 return options_->DefaultValueForTemplate(template_type, default_value); in DefaultValueForTemplate()
56 std::unique_ptr<ControlOptionsInterface<T>> options_; variable
Dmenu_control_options_test.cpp37 dut_.reset(new MenuControlOptions<int>(options_, mock_defaults_)); in SetUp()
41 const std::vector<int> options_{1, 10, 19, 30}; member in v4l2_camera_hal::MenuControlOptionsTest
48 EXPECT_EQ(dut_->MetadataRepresentation(), options_); in TEST_F()
52 for (auto option : options_) { in TEST_F()
61 int expected = options_[2]; in TEST_F()