Searched refs:oldOpts (Results 1 – 1 of 1) sorted by relevance
34 bool mergeSubscribeOptions(const SubscribeOptions &oldOpts, in mergeSubscribeOptions() argument37 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() local59 if (mergeSubscribeOptions(oldOpts, opts, &updatedOptions)) { in addOrUpdateSubscription()179 const SubscribeOptions& oldOpts = it->second; in updateHalEventSubscriptionLocked() local181 if (mergeSubscribeOptions(oldOpts, opts, outUpdated)) { in updateHalEventSubscriptionLocked()