/hardware/libhardware/modules/camera/3_4/ |
D | request_tracker_test.cpp | 30 dut_.reset(new RequestTracker()); in SetUp() 37 dut_->SetStreamConfiguration(config); in SetUp() 61 EXPECT_EQ(dut_->CanAddRequest(*request), expected); in AddRequest() 63 EXPECT_FALSE(dut_->InFlight(frame)); in AddRequest() 65 EXPECT_EQ(dut_->Add(request), expected); in AddRequest() 67 EXPECT_TRUE(dut_->InFlight(frame)); in AddRequest() 74 std::shared_ptr<RequestTracker> dut_; member in default_camera_hal::RequestTrackerTest 79 EXPECT_FALSE(dut_->InFlight(frame)); in TEST_F() 84 EXPECT_TRUE(dut_->Empty()); in TEST_F() 94 EXPECT_TRUE(dut_->Add(expected)); in TEST_F() [all …]
|
D | static_properties_test.cpp | 39 dut_.reset(); in SetUp() 44 dut_.reset(StaticProperties::NewStaticProperties(std::move(mock_reader_))); in PrepareDUT() 50 ASSERT_NE(dut_, nullptr); in PrepareDefaultDUT() 117 EXPECT_EQ(dut_->StreamConfigurationSupported(&config), expected); in ExpectConfigurationSupported() 120 std::unique_ptr<StaticProperties> dut_; member in default_camera_hal::StaticPropertiesTest 203 EXPECT_EQ(dut_->facing(), test_facing_); in TEST_F() 204 EXPECT_EQ(dut_->orientation(), test_orientation_); in TEST_F() 214 EXPECT_EQ(dut_, nullptr); in TEST_F() 222 EXPECT_EQ(dut_, nullptr); in TEST_F() 230 EXPECT_EQ(dut_, nullptr); in TEST_F() [all …]
|
/hardware/libhardware/modules/camera/3_4/metadata/ |
D | slider_control_options_test.cpp | 37 dut_.reset(new SliderControlOptions<int>(min_, max_, mock_defaults_)); in SetUp() 40 std::unique_ptr<SliderControlOptions<int>> dut_; member in v4l2_camera_hal::SliderControlOptionsTest 50 EXPECT_EQ(dut_->MetadataRepresentation(), expected); in TEST_F() 55 EXPECT_TRUE(dut_->IsSupported(i)); in TEST_F() 58 EXPECT_FALSE(dut_->IsSupported(min_ - 1)); in TEST_F() 59 EXPECT_FALSE(dut_->IsSupported(max_ + 1)); in TEST_F() 65 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F() 69 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F() 79 ASSERT_FALSE(dut_->IsSupported(default_val)); in TEST_F() 80 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F() [all …]
|
D | menu_control_options_test.cpp | 37 dut_.reset(new MenuControlOptions<int>(options_, mock_defaults_)); in SetUp() 40 std::unique_ptr<MenuControlOptions<int>> dut_; member in v4l2_camera_hal::MenuControlOptionsTest 48 EXPECT_EQ(dut_->MetadataRepresentation(), options_); in TEST_F() 53 EXPECT_TRUE(dut_->IsSupported(option)); in TEST_F() 56 EXPECT_FALSE(dut_->IsSupported(99)); in TEST_F() 62 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F() 66 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F() 74 ASSERT_FALSE(dut_->IsSupported(default_val)); in TEST_F() 80 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F() 82 EXPECT_TRUE(dut_->IsSupported(actual)); in TEST_F() [all …]
|
D | metadata_reader_test.cpp | 35 dut_.reset(); in SetUp() 43 dut_ = std::make_unique<MetadataReader>(std::move(metadata_)); in FillDUT() 47 std::unique_ptr<MetadataReader> dut_; member in default_camera_hal::MetadataReaderTest 77 EXPECT_EQ(dut_->Facing(&actual), 0); in TEST_F() 89 EXPECT_EQ(dut_->Facing(&actual), -EINVAL); in TEST_F() 95 EXPECT_EQ(dut_->Facing(&actual), -ENOENT); in TEST_F() 106 EXPECT_EQ(dut_->Orientation(&actual), 0); in TEST_F() 119 EXPECT_EQ(dut_->Orientation(&actual), -EINVAL); in TEST_F() 128 EXPECT_EQ(dut_->Orientation(&actual), -EINVAL); in TEST_F() 135 EXPECT_EQ(dut_->Orientation(&actual), -ENOENT); in TEST_F() [all …]
|
D | tagged_control_options_test.cpp | 36 dut_.reset(); in SetUp() 43 dut_.reset( in PrepareDUT() 47 std::unique_ptr<TaggedControlOptions<uint8_t>> dut_; member in v4l2_camera_hal::TaggedControlOptionsTest 54 EXPECT_EQ(dut_->tag(), tag_); in TEST_F() 62 ASSERT_EQ(dut_->MetadataRepresentation(), expected); in TEST_F() 70 ASSERT_EQ(dut_->IsSupported(value), supported); in TEST_F() 78 ASSERT_EQ(dut_->IsSupported(value), supported); in TEST_F() 88 EXPECT_EQ(dut_->DefaultValueForTemplate(template_id, &actual), 0); in TEST_F() 99 EXPECT_EQ(dut_->DefaultValueForTemplate(template_id, &unused), err); in TEST_F()
|
D | tagged_control_delegate_test.cpp | 36 dut_.reset(); in SetUp() 43 dut_.reset( in PrepareDUT() 47 std::unique_ptr<TaggedControlDelegate<uint8_t>> dut_; member in v4l2_camera_hal::TaggedControlDelegateTest 54 EXPECT_EQ(dut_->tag(), tag_); in TEST_F() 63 ASSERT_EQ(dut_->GetValue(&actual), 0); in TEST_F() 72 ASSERT_EQ(dut_->GetValue(&unused), err); in TEST_F() 79 ASSERT_EQ(dut_->SetValue(value), 0); in TEST_F() 87 ASSERT_EQ(dut_->SetValue(value), err); in TEST_F()
|
D | default_option_delegate_test.cpp | 31 dut_.reset(new DefaultOptionDelegate<int>(defaults_)); in SetUp() 34 std::unique_ptr<DefaultOptionDelegate<int>> dut_; member in v4l2_camera_hal::DefaultOptionDelegateTest 43 dut_->DefaultValueForTemplate(CAMERA3_TEMPLATE_STILL_CAPTURE, &actual)); in TEST_F() 50 EXPECT_TRUE(dut_->DefaultValueForTemplate(CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG, in TEST_F() 56 dut_.reset(new DefaultOptionDelegate<int>({})); in TEST_F() 58 EXPECT_FALSE(dut_->DefaultValueForTemplate(CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG, in TEST_F()
|
D | metadata_test.cpp | 40 dut_.reset(); in SetUp() 58 dut_.reset(new Metadata(std::move(components))); in AddComponents() 70 std::unique_ptr<Metadata> dut_; member in v4l2_camera_hal::MetadataTest 102 ASSERT_EQ(dut_->FillStaticMetadata(metadata_.get()), 0); in TEST_F() 161 EXPECT_EQ(dut_->FillStaticMetadata(metadata_.get()), err); in TEST_F() 166 EXPECT_EQ(dut_->FillStaticMetadata(nullptr), -EINVAL); in TEST_F() 178 EXPECT_TRUE(dut_->IsValidRequest(*non_empty_metadata_)); in TEST_F() 193 EXPECT_FALSE(dut_->IsValidRequest(*non_empty_metadata_)); in TEST_F() 204 EXPECT_TRUE(dut_->IsValidRequest(*metadata_)); in TEST_F() 218 EXPECT_EQ(dut_->GetRequestTemplate(template_type, metadata_.get()), 0); in TEST_F() [all …]
|
D | v4l2_control_delegate_test.cpp | 36 dut_.reset(new V4L2ControlDelegate<uint8_t>( in SetUp() 40 std::unique_ptr<V4L2ControlDelegate<uint8_t>> dut_; member in v4l2_camera_hal::V4L2ControlDelegateTest 55 ASSERT_EQ(dut_->GetValue(&actual), 0); in TEST_F() 68 ASSERT_EQ(dut_->GetValue(&unused), err); in TEST_F() 76 ASSERT_EQ(dut_->GetValue(&unused), err); in TEST_F() 87 ASSERT_EQ(dut_->SetValue(input), 0); in TEST_F() 94 ASSERT_EQ(dut_->SetValue(input), err); in TEST_F() 106 ASSERT_EQ(dut_->SetValue(input), err); in TEST_F()
|
D | map_converter_test.cpp | 35 dut_.reset(new MapConverter<int, int32_t, int32_t>(converter_, map_)); in SetUp() 44 ASSERT_EQ(dut_->MetadataToV4L2(initial, &actual), 0); in ExpectConvertToV4L2() 49 std::unique_ptr<MapConverter<int, int32_t, int32_t>> dut_; member in v4l2_camera_hal::MapConverterTest 91 EXPECT_EQ(dut_->MetadataToV4L2(initial, &unused), err); in TEST_F() 101 ASSERT_EQ(dut_->V4L2ToMetadata(kv->second, &actual), 0); in TEST_F() 107 ASSERT_EQ(dut_->V4L2ToMetadata(100, &unused), -EINVAL); in TEST_F()
|
D | ranged_converter_test.cpp | 35 dut_.reset( in SetUp() 45 ASSERT_EQ(dut_->MetadataToV4L2(initial, &actual), 0); in ExpectConvert() 50 std::unique_ptr<RangedConverter<int, int32_t>> dut_; member in v4l2_camera_hal::RangedConverterTest 83 EXPECT_EQ(dut_->MetadataToV4L2(initial, &unused), err); in TEST_F()
|