Lines Matching refs:handler

70     PowerComponentHandlerTest() { handler.init(); }  in PowerComponentHandlerTest()
72 PowerComponentHandler handler; member in android::frameworks::automotive::powerpolicy::PowerComponentHandlerTest
76 CarPowerPolicyPtr policy = handler.getAccumulatedPolicy(); in TEST_F()
92 handler.applyPowerPolicy(policy); in TEST_F()
94 ASSERT_TRUE(*handler.getPowerComponentState(PowerComponent::WIFI)); in TEST_F()
95 ASSERT_TRUE(*handler.getPowerComponentState(PowerComponent::NFC)); in TEST_F()
96 ASSERT_FALSE(*handler.getPowerComponentState(PowerComponent::AUDIO)); in TEST_F()
97 ASSERT_FALSE(*handler.getPowerComponentState(PowerComponent::DISPLAY)); in TEST_F()
105 handler.applyPowerPolicy(policy); in TEST_F()
107 ASSERT_TRUE(*handler.getCustomPowerComponentState(CUSTOM_COMPONENT_ID_1000)); in TEST_F()
108 ASSERT_FALSE(*handler.getCustomPowerComponentState(CUSTOM_COMPONENT_ID_1002)); in TEST_F()
138 handler.applyPowerPolicy(policy); in TEST_F()
141 ASSERT_NO_FATAL_FAILURE(assertEqual(expectedPolicy, handler.getAccumulatedPolicy())); in TEST_F()
148 handler.applyPowerPolicy(policy); in TEST_F()
159 ASSERT_NO_FATAL_FAILURE(assertEqual(expectedPolicy, handler.getAccumulatedPolicy())); in TEST_F()
163 handler.applyPowerPolicy(policy); in TEST_F()
168 ASSERT_NO_FATAL_FAILURE(assertEqual(handler.getAccumulatedPolicy(), expectedPolicy)); in TEST_F()
173 handler.applyPowerPolicy(policy); in TEST_F()
179 ASSERT_NO_FATAL_FAILURE(assertEqual(handler.getAccumulatedPolicy(), expectedPolicy)); in TEST_F()
184 handler.applyPowerPolicy(policy); in TEST_F()
190 ASSERT_NO_FATAL_FAILURE(assertEqual(handler.getAccumulatedPolicy(), expectedPolicy)); in TEST_F()