Lines Matching refs:second
221 for (auto& condIt : whatIt.second) { in onSlicedConditionMayChangeLocked_opt1()
222 condIt.second->onConditionChanged( in onSlicedConditionMayChangeLocked_opt1()
237 for (auto& condIt : whatIt.second) { in onSlicedConditionMayChangeLocked_opt1()
238 condIt.second->onConditionChanged(true, eventTime); in onSlicedConditionMayChangeLocked_opt1()
243 for (auto& condIt : whatIt.second) { in onSlicedConditionMayChangeLocked_opt1()
244 condIt.second->onConditionChanged(false, eventTime); in onSlicedConditionMayChangeLocked_opt1()
300 auto condIt = whatIt.second.find(changedDim); in onSlicedConditionMayChangeLocked_opt2()
301 if (condIt != whatIt.second.end()) { in onSlicedConditionMayChangeLocked_opt2()
302 condIt->second->onConditionChanged(false, eventTime); in onSlicedConditionMayChangeLocked_opt2()
314 auto condIt = whatIt.second.find(trueDim); in onSlicedConditionMayChangeLocked_opt2()
315 if (condIt != whatIt.second.end()) { in onSlicedConditionMayChangeLocked_opt2()
316 condIt->second->onConditionChanged( in onSlicedConditionMayChangeLocked_opt2()
321 if (!whatIt.second.empty()) { in onSlicedConditionMayChangeLocked_opt2()
327 whatIt.second.begin()->second->clone(eventTime); in onSlicedConditionMayChangeLocked_opt2()
331 whatIt.second[trueDim] = std::move(newTracker); in onSlicedConditionMayChangeLocked_opt2()
358 for (auto& pair : whatIt.second) { in onSlicedConditionMayChangeInternalLocked()
359 pair.second->onSlicedConditionMayChange(overallCondition, eventTimeNs); in onSlicedConditionMayChangeInternalLocked()
373 for (const auto& pair : whatIt.second) { in onSlicedConditionMayChangeInternalLocked()
379 if (!whatIt.second.empty()) { in onSlicedConditionMayChangeInternalLocked()
385 whatIt.second.begin()->second->clone(eventTimeNs); in onSlicedConditionMayChangeInternalLocked()
389 whatIt.second[conditionDimension] = std::move(newTracker); in onSlicedConditionMayChangeInternalLocked()
408 if (!whatIt.second.empty() && in onSlicedConditionMayChangeInternalLocked()
409 whatIt.second.find(conditionDimension) == whatIt.second.end()) { in onSlicedConditionMayChangeInternalLocked()
414 auto newTracker = whatIt.second.begin()->second->clone(eventTimeNs); in onSlicedConditionMayChangeInternalLocked()
418 whatIt.second[conditionDimension] = std::move(newTracker); in onSlicedConditionMayChangeInternalLocked()
456 for (auto& pair : whatIt.second) { in onActiveStateChangedLocked()
457 pair.second->onConditionChanged(mIsActive, eventTimeNs); in onActiveStateChangedLocked()
465 for (auto& pair : whatIt.second) { in onActiveStateChangedLocked()
466 pair.second->onConditionChanged(mIsActive, eventTimeNs); in onActiveStateChangedLocked()
483 for (auto& pair : whatIt.second) { in onConditionChangedLocked()
484 pair.second->onConditionChanged(conditionMet, eventTime); in onConditionChangedLocked()
572 for (const auto& bucket : pair.second) { in onDumpReportLocked()
617 for (auto it = whatIt->second.begin(); it != whatIt->second.end();) { in flushCurrentBucketLocked()
618 if (it->second->flushCurrentBucket(eventTimeNs, &mPastBuckets)) { in flushCurrentBucketLocked()
621 it = whatIt->second.erase(it); in flushCurrentBucketLocked()
626 if (whatIt->second.empty()) { in flushCurrentBucketLocked()
645 for (const auto& slice : whatIt.second) { in dumpStatesLocked()
648 slice.second->dumpStates(out, verbose); in dumpStatesLocked()
657 auto condIt = whatIt->second.find(newKey.getDimensionKeyInCondition()); in hitGuardRailLocked()
658 if (condIt != whatIt->second.end()) { in hitGuardRailLocked()
661 if (whatIt->second.size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRailLocked()
662 size_t newTupleCount = whatIt->second.size() + 1; in hitGuardRailLocked()
702 if (whatIt->second.find(condKey) == whatIt->second.end()) { in handleStartEvent()
710 auto it = mCurrentSlicedDurationTrackerMap.find(whatKey)->second.find(condKey); in handleStartEvent()
712 it->second->noteStart(whatKey, condition, in handleStartEvent()
718 it->second->noteStart(DEFAULT_DIMENSION_KEY, condition, in handleStartEvent()
723 it->second->noteStart( in handleStartEvent()
750 for (auto& pair : whatIt.second) { in onMatchedLogEventLocked()
751 pair.second->noteStopAll(event.GetElapsedTimestampNs()); in onMatchedLogEventLocked()
769 for (const auto& condIt : whatIt->second) { in onMatchedLogEventLocked()
770 condIt.second->noteStop(dimensionInWhat, event.GetElapsedTimestampNs(), false); in onMatchedLogEventLocked()
783 for (const auto& condIt : whatIt->second) { in onMatchedLogEventLocked()
784 condIt.second->noteStop( in onMatchedLogEventLocked()
826 for (const auto& condIt : whatIt->second) { in onMatchedLogEventLocked()
844 totalSize += pair.second.size() * kBucketSize; in byteSizeLocked()