Searched refs:ActivationState (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/cmds/statsd/src/metrics/ |
D | MetricProducer.cpp | 91 if (it.second->state == ActivationState::kActive && in evaluateActiveStateLocked() 93 it.second->state = ActivationState::kNotActive; in evaluateActiveStateLocked() 95 if (it.second->state == ActivationState::kActive) { in evaluateActiveStateLocked() 138 if (ActivationState::kNotActive == activation->state) { in activateLocked() 139 activation->state = ActivationState::kActiveOnBoot; in activateLocked() 145 activation->state = ActivationState::kActive; in activateLocked() 159 activationToCancelIt->state = ActivationState::kNotActive; in cancelEventActivationLocked() 183 activation->state = ActivationState::kActive; in loadActiveMetricLocked() 186 activation->state = ActivationState::kActiveOnBoot; in loadActiveMetricLocked() 198 if (ActivationState::kNotActive == activation->state || in writeActiveMetricToProtoOutputStream() [all …]
|
D | MetricProducer.h | 54 enum ActivationState { enum 391 state(ActivationState::kNotActive), in Activation() 396 ActivationState state;
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | MetricActivation_e2e_test.cpp | 283 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 …]
|
D | DurationMetric_e2e_test.cpp | 265 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()
|