Searched refs:mSlicedConditionState (Results 1 – 3 of 3) sorted by relevance
/packages/modules/StatsD/statsd/src/condition/ |
D | SimpleConditionTracker.cpp | 133 for (const auto& pair : mSlicedConditionState) { in dumpState() 152 (mInitialValue == ConditionState::kFalse && mSlicedConditionState.empty()) ? false in handleStopAll() 155 for (const auto& cond : mSlicedConditionState) { in handleStopAll() 163 mSlicedConditionState.clear(); in handleStopAll() 168 if (!mSliced || mSlicedConditionState.find(newKey) != mSlicedConditionState.end()) { in hitGuardRail() 173 if (mSlicedConditionState.size() >= StatsdStats::kDimensionKeySizeSoftLimit) { in hitGuardRail() 174 size_t newTupleCount = mSlicedConditionState.size() + 1; in hitGuardRail() 190 auto outputIt = mSlicedConditionState.find(outputKey); in handleConditionEvent() 198 if (outputIt == mSlicedConditionState.end()) { in handleConditionEvent() 202 mSlicedConditionState[outputKey] = 1; in handleConditionEvent() [all …]
|
D | SimpleConditionTracker.h | 81 return &mSlicedConditionState; in getSlicedDimensionMap() 121 std::map<HashableDimensionKey, int> mSlicedConditionState; variable
|
/packages/modules/StatsD/statsd/tests/condition/ |
D | SimpleConditionTracker_test.cpp | 427 ASSERT_EQ(1UL, conditionTracker.mSlicedConditionState.size()); in TEST_P() 450 ASSERT_EQ(1UL, conditionTracker.mSlicedConditionState.size()); in TEST_P() 466 ASSERT_EQ(1UL, conditionTracker.mSlicedConditionState.size()); in TEST_P() 480 ASSERT_EQ(conditionTracker.mSlicedConditionState.size(), in TEST_P() 532 ASSERT_EQ(1UL, conditionTracker.mSlicedConditionState.size()); in TEST() 580 ASSERT_EQ(0UL, conditionTracker.mSlicedConditionState.size()); in TEST() 623 ASSERT_EQ(1UL, conditionTracker.mSlicedConditionState.size()); in TEST_P() 647 ASSERT_EQ(2UL, conditionTracker.mSlicedConditionState.size()); in TEST_P() 674 ASSERT_EQ(0UL, conditionTracker.mSlicedConditionState.size()); in TEST_P() 722 ASSERT_EQ(1UL, conditionTracker.mSlicedConditionState.size()); in TEST() [all …]
|