Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2af21312 authored by shrikar's avatar shrikar
Browse files

Added documentation for code explainability in SubscriptionManager VHAL

Bug: 326314500
Test: presubmit
Change-Id: If23c308ac8c3b50a4ec7b686b0cc860b29d8e8bb
parent d81c41d0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -433,6 +433,9 @@ SubscriptionManager::getSubscribedClients(std::vector<VehiclePropValue>&& update
        }

        for (const auto& [client, callback] : mClientsByPropIdAreaId[propIdAreaId]) {
            // if propId is on-change, propIdAreaId will not exist in mContSubConfigsByPropIdArea,
            // returning an empty ContSubConfigs value for subConfigs i.e. with resolution = 0 and
            // enableVur = false.
            auto& subConfigs = mContSubConfigsByPropIdArea[propIdAreaId];
            // Clients must be sent different VehiclePropValues with different levels of granularity
            // as requested by the client using resolution.