Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/guardrail/
DStatsdStats_test.cpp468 for (const auto& guardrailTimes : report.activation_guardrail_stats()) { in TEST() local
469 if (uid1 == guardrailTimes.uid()) { in TEST()
471 EXPECT_EQ(2, guardrailTimes.guardrail_met_sec_size()); in TEST()
472 EXPECT_EQ(10, guardrailTimes.guardrail_met_sec(0)); in TEST()
473 EXPECT_EQ(20, guardrailTimes.guardrail_met_sec(1)); in TEST()
474 } else if (uid2 == guardrailTimes.uid()) { in TEST()
477 EXPECT_EQ(maxCount, guardrailTimes.guardrail_met_sec_size()); in TEST()
479 EXPECT_EQ(100 - maxCount + i, guardrailTimes.guardrail_met_sec(i)); in TEST()
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.cpp248 auto& guardrailTimes = mActivationBroadcastGuardrailStats[uid]; in noteActivationBroadcastGuardrailHit() local
249 if (guardrailTimes.size() == kMaxTimestampCount) { in noteActivationBroadcastGuardrailHit()
250 guardrailTimes.pop_front(); in noteActivationBroadcastGuardrailHit()
252 guardrailTimes.push_back(timeSec); in noteActivationBroadcastGuardrailHit()