Home
last modified time | relevance | path

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

/hardware/libhardware/modules/camera/3_4/metadata/
Dmap_converter_test.cpp56 auto kv = map_.begin(); in TEST_F() local
57 ExpectConvertToV4L2(kv->first, kv->second); in TEST_F()
62 auto kv = map_.begin(); in TEST_F() local
63 ExpectConvertToV4L2(kv->first + 1, kv->second); in TEST_F()
68 auto kv = map_.begin(); in TEST_F() local
69 ++kv; in TEST_F()
70 ExpectConvertToV4L2(kv->first - 1, kv->second); in TEST_F()
75 auto kv = map_.begin(); in TEST_F() local
76 ExpectConvertToV4L2(kv->first - 1, kv->second); in TEST_F()
81 auto kv = map_.rbegin(); in TEST_F() local
[all …]
Dmap_converter.h78 auto kv = conversion_map_.lower_bound(raw_conversion); in MetadataToV4L2() local
80 if (kv == conversion_map_.begin()) { in MetadataToV4L2()
82 *conversion = kv->second; in MetadataToV4L2()
83 } else if (kv == conversion_map_.end()) { in MetadataToV4L2()
85 --kv; in MetadataToV4L2()
86 *conversion = kv->second; in MetadataToV4L2()
90 *conversion = kv->second; in MetadataToV4L2()
91 TMapKey diff = kv->first - raw_conversion; in MetadataToV4L2()
95 --kv; in MetadataToV4L2()
96 if (raw_conversion - kv->first < diff) { in MetadataToV4L2()
[all …]
Denum_converter.cpp36 for (auto kv : v4l2_to_metadata_) { in MetadataToV4L2() local
37 if (kv.second == value) { in MetadataToV4L2()
41 *conversion = kv.first; in MetadataToV4L2()
Dpartial_metadata_factory_test.cpp268 for (auto kv : conversion_map) { in TEST_F() local
269 EXPECT_CALL(*mock_converter_, V4L2ToMetadata(kv.first, _)) in TEST_F()
270 .WillOnce(DoAll(SetArgPointee<1>(kv.second), Return(0))); in TEST_F()
271 expected_options.push_back(kv.second); in TEST_F()
352 for (auto kv : conversion_map) { in TEST_F() local
353 EXPECT_CALL(*mock_converter_, V4L2ToMetadata(kv.first, _)) in TEST_F()
354 .WillOnce(DoAll(SetArgPointee<1>(kv.second), Return(0))); in TEST_F()
355 expected_options.push_back(kv.second); in TEST_F()