Home
last modified time | relevance | path

Searched refs:kv (Results 1 – 5 of 5) 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.cpp39 for (auto kv : v4l2_to_metadata_) { in MetadataToV4L2() local
40 if (kv.second == value) { in MetadataToV4L2()
44 *conversion = kv.first; in MetadataToV4L2()
Dpartial_metadata_factory_test.cpp269 for (auto kv : conversion_map) { in TEST_F() local
270 EXPECT_CALL(*mock_converter_, V4L2ToMetadata(kv.first, _)) in TEST_F()
271 .WillOnce(DoAll(SetArgPointee<1>(kv.second), Return(0))); in TEST_F()
272 expected_options.push_back(kv.second); in TEST_F()
353 for (auto kv : conversion_map) { in TEST_F() local
354 EXPECT_CALL(*mock_converter_, V4L2ToMetadata(kv.first, _)) in TEST_F()
355 .WillOnce(DoAll(SetArgPointee<1>(kv.second), Return(0))); in TEST_F()
356 expected_options.push_back(kv.second); in TEST_F()
/hardware/google/av/media/sfplugin/
DReflectedParamUpdater.cpp268 for (const std::pair<const std::string, FieldDesc> &kv : mMap) { in getParamIndicesForKeys() local
269 const std::string &name = kv.first; in getParamIndicesForKeys()
270 const FieldDesc &desc = kv.second; in getParamIndicesForKeys()
357 for (const std::pair<const std::string, FieldDesc> &kv : mMap) { in parseMessageAndDoWork() local
358 const std::string &name = kv.first; in parseMessageAndDoWork()
359 const FieldDesc &desc = kv.second; in parseMessageAndDoWork()
488 for (const std::pair<const std::string, FieldDesc> &kv : mMap) { in getParams() local
489 const std::string &name = kv.first; in getParams()
490 const FieldDesc &desc = kv.second; in getParams()