summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong2018-03-14 18:03:11 -0500
committerYifan Hong2018-03-14 19:35:18 -0500
commit075b363fb67edc80e688ea5de75fb1fb122509b1 (patch)
tree2369fc3cd3f0669d80ff4c4c30189ee90f4cafbe /ManifestHal.cpp
parentdc65a78fea7e879041ee351e65d9efa53b6e5eeb (diff)
downloadplatform-system-libvintf-075b363fb67edc80e688ea5de75fb1fb122509b1.tar.gz
platform-system-libvintf-075b363fb67edc80e688ea5de75fb1fb122509b1.tar.xz
platform-system-libvintf-075b363fb67edc80e688ea5de75fb1fb122509b1.zip
HalManifest::checkIncompatibleHals uses instances API.
Now that <hal> is not the smallest unit of a manifest, the compatibility check logic is updated accordingly. Test: libvintf_test Test: vintf_object_test Bug: 73556059 Change-Id: Ief73afc61bace0dcc3d02410c16c7e261fa63315
Diffstat (limited to 'ManifestHal.cpp')
-rw-r--r--ManifestHal.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ManifestHal.cpp b/ManifestHal.cpp
index 7d687fc..cd30f16 100644
--- a/ManifestHal.cpp
+++ b/ManifestHal.cpp
@@ -75,5 +75,13 @@ bool ManifestHal::isDisabledHal() const {
75 return !hasInstance; 75 return !hasInstance;
76} 76}
77 77
78void ManifestHal::appendAllVersions(std::set<Version>* ret) const {
79 ret->insert(versions.begin(), versions.end());
80 forEachInstance([&](const auto& e) {
81 ret->insert(e.version());
82 return true;
83 });
84}
85
78} // namespace vintf 86} // namespace vintf
79} // namespace android 87} // namespace android