Loading cmds/lshal/ListCommand.cpp +8 −8 Original line number Diff line number Diff line Loading @@ -163,7 +163,7 @@ template <typename ObjectType> VintfInfo getVintfInfo(const std::shared_ptr<const ObjectType>& object, const FqInstance& fqInstance, vintf::TransportArch ta, VintfInfo value) { bool found = false; (void)object->forEachInstanceOfVersion(fqInstance.getPackage(), fqInstance.getVersion(), (void)object->forEachHidlInstanceOfVersion(fqInstance.getPackage(), fqInstance.getVersion(), [&](const auto& instance) { found = match(instance, fqInstance, ta); return !found; // continue if not found Loading Loading @@ -453,7 +453,7 @@ bool ListCommand::addEntryWithoutInstance(const TableEntry& entry, } bool found = false; (void)manifest->forEachInstanceOfVersion(package, version, [&found](const auto&) { (void)manifest->forEachHidlInstanceOfVersion(package, version, [&found](const auto&) { found = true; return false; // break }); Loading Loading @@ -797,9 +797,9 @@ Status ListCommand::fetchManifestHals() { std::map<std::string, TableEntry> entries; manifest->forEachInstance([&] (const vintf::ManifestInstance& manifestInstance) { manifest->forEachHidlInstance([&] (const vintf::ManifestInstance& manifestInstance) { TableEntry entry{ .interfaceName = manifestInstance.getFqInstance().string(), .interfaceName = manifestInstance.description(), .transport = manifestInstance.transport(), .arch = manifestInstance.arch(), // TODO(b/71555570): Device manifest does not distinguish HALs from vendor or ODM. Loading Loading
cmds/lshal/ListCommand.cpp +8 −8 Original line number Diff line number Diff line Loading @@ -163,7 +163,7 @@ template <typename ObjectType> VintfInfo getVintfInfo(const std::shared_ptr<const ObjectType>& object, const FqInstance& fqInstance, vintf::TransportArch ta, VintfInfo value) { bool found = false; (void)object->forEachInstanceOfVersion(fqInstance.getPackage(), fqInstance.getVersion(), (void)object->forEachHidlInstanceOfVersion(fqInstance.getPackage(), fqInstance.getVersion(), [&](const auto& instance) { found = match(instance, fqInstance, ta); return !found; // continue if not found Loading Loading @@ -453,7 +453,7 @@ bool ListCommand::addEntryWithoutInstance(const TableEntry& entry, } bool found = false; (void)manifest->forEachInstanceOfVersion(package, version, [&found](const auto&) { (void)manifest->forEachHidlInstanceOfVersion(package, version, [&found](const auto&) { found = true; return false; // break }); Loading Loading @@ -797,9 +797,9 @@ Status ListCommand::fetchManifestHals() { std::map<std::string, TableEntry> entries; manifest->forEachInstance([&] (const vintf::ManifestInstance& manifestInstance) { manifest->forEachHidlInstance([&] (const vintf::ManifestInstance& manifestInstance) { TableEntry entry{ .interfaceName = manifestInstance.getFqInstance().string(), .interfaceName = manifestInstance.description(), .transport = manifestInstance.transport(), .arch = manifestInstance.arch(), // TODO(b/71555570): Device manifest does not distinguish HALs from vendor or ODM. Loading