Home
last modified time | relevance | path

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

/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DSubscriptionManager.cpp34 bool mergeSubscribeOptions(const SubscribeOptions &oldOpts, in mergeSubscribeOptions() argument
37 float updatedRate = std::max(oldOpts.sampleRate, newOpts.sampleRate); in mergeSubscribeOptions()
38 SubscribeFlags updatedFlags = SubscribeFlags(oldOpts.flags | newOpts.flags); in mergeSubscribeOptions()
40 bool updated = (updatedRate > oldOpts.sampleRate) || (updatedFlags != oldOpts.flags); in mergeSubscribeOptions()
42 *outResult = oldOpts; in mergeSubscribeOptions()
57 const SubscribeOptions& oldOpts = it->second; in addOrUpdateSubscription() local
59 if (mergeSubscribeOptions(oldOpts, opts, &updatedOptions)) { in addOrUpdateSubscription()
179 const SubscribeOptions& oldOpts = it->second; in updateHalEventSubscriptionLocked() local
181 if (mergeSubscribeOptions(oldOpts, opts, outUpdated)) { in updateHalEventSubscriptionLocked()