Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/metrics/
DMetricProducer.cpp92 if (it.second->state == ActivationState::kActive && in evaluateActiveStateLocked()
94 it.second->state = ActivationState::kNotActive; in evaluateActiveStateLocked()
96 if (it.second->state == ActivationState::kActive) { in evaluateActiveStateLocked()
139 if (ActivationState::kNotActive == activation->state) { in activateLocked()
140 activation->state = ActivationState::kActiveOnBoot; in activateLocked()
146 activation->state = ActivationState::kActive; in activateLocked()
160 activationToCancelIt->state = ActivationState::kNotActive; in cancelEventActivationLocked()
184 activation->state = ActivationState::kActive; in loadActiveMetricLocked()
187 activation->state = ActivationState::kActiveOnBoot; in loadActiveMetricLocked()
199 if (ActivationState::kNotActive == activation->state || in writeActiveMetricToProtoOutputStream()
[all …]
DMetricProducer.h56 enum ActivationState { enum
398 state(ActivationState::kNotActive), in Activation()
403 ActivationState state;
/frameworks/base/cmds/statsd/tests/e2e/
DMetricActivation_e2e_test.cpp283 EXPECT_EQ(eventActivationMap[0]->state, ActivationState::kNotActive); in TEST()
286 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST()
306 EXPECT_EQ(eventActivationMap[0]->state, ActivationState::kActive); in TEST()
309 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST()
323 EXPECT_EQ(eventActivationMap[0]->state, ActivationState::kActive); in TEST()
326 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kActive); in TEST()
336 EXPECT_EQ(eventActivationMap[0]->state, ActivationState::kActive); in TEST()
339 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST()
357 EXPECT_EQ(eventActivationMap[0]->state, ActivationState::kNotActive); in TEST()
360 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST()
[all …]
DDurationMetric_e2e_test.cpp265 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST()
292 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kActive); in TEST()
306 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST()
336 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kActive); in TEST()
611 EXPECT_EQ(eventActivationMap[4]->state, ActivationState::kNotActive); in TEST()
623 EXPECT_EQ(eventActivationMap[4]->state, ActivationState::kNotActive); in TEST()
631 EXPECT_EQ(eventActivationMap[4]->state, ActivationState::kNotActive); in TEST()
640 EXPECT_EQ(eventActivationMap[4]->state, ActivationState::kActive); in TEST()
650 EXPECT_EQ(eventActivationMap[4]->state, ActivationState::kNotActive); in TEST()
675 EXPECT_EQ(eventActivationMap[4]->state, ActivationState::kActive); in TEST()