Lines Matching refs:PowerComponent

33 using ::aidl::android::frameworks::automotive::powerpolicy::PowerComponent;
43 const std::vector<PowerComponent>& enabledComponents, in createPolicy()
44 const std::vector<PowerComponent>& disabledComponents, in createPolicy()
77 std::vector<PowerComponent> allComponents; in TEST_F()
78 for (auto componentId : ::ndk::enum_range<PowerComponent>()) { in TEST_F()
79 if (componentId >= PowerComponent::MINIMUM_CUSTOM_COMPONENT_VALUE) { in TEST_F()
90 createPolicy("test_policy", {PowerComponent::WIFI, PowerComponent::NFC}, in TEST_F()
91 {PowerComponent::AUDIO, PowerComponent::DISPLAY}, {}, {}); 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()
102 createPolicy("test_policy", {PowerComponent::WIFI, PowerComponent::NFC}, in TEST_F()
103 {PowerComponent::AUDIO, PowerComponent::DISPLAY}, in TEST_F()
112 std::vector<std::tuple<std::string, std::vector<PowerComponent>, std::vector<PowerComponent>>> in TEST_F()
114 {"test_policy1", {PowerComponent::WIFI}, {PowerComponent::AUDIO}}, in TEST_F()
116 {PowerComponent::WIFI, PowerComponent::DISPLAY}, in TEST_F()
117 {PowerComponent::NFC}}, in TEST_F()
119 {PowerComponent::CPU, PowerComponent::INPUT}, in TEST_F()
120 {PowerComponent::WIFI}}, in TEST_F()
121 {"test_policy4", {PowerComponent::MEDIA, PowerComponent::AUDIO}, {}}, in TEST_F()
125 {PowerComponent::AUDIO, PowerComponent::MEDIA, PowerComponent::DISPLAY, in TEST_F()
126 PowerComponent::INPUT, PowerComponent::CPU}, in TEST_F()
127 {PowerComponent::BLUETOOTH, PowerComponent::WIFI, PowerComponent::CELLULAR, in TEST_F()
128 PowerComponent::ETHERNET, PowerComponent::PROJECTION, PowerComponent::NFC, in TEST_F()
129 PowerComponent::VOICE_INTERACTION, PowerComponent::VISUAL_INTERACTION, in TEST_F()
130 PowerComponent::TRUSTED_DEVICE_DETECTION, PowerComponent::LOCATION, in TEST_F()
131 PowerComponent::MICROPHONE}, in TEST_F()
146 createPolicy("test_policy1", {PowerComponent::WIFI, PowerComponent::AUDIO}, {}, {}, {}); in TEST_F()
151 createPolicy("test_policy1", {PowerComponent::WIFI, PowerComponent::AUDIO}, in TEST_F()
152 {PowerComponent::MEDIA, PowerComponent::DISPLAY, PowerComponent::INPUT, in TEST_F()
153 PowerComponent::CPU, PowerComponent::BLUETOOTH, PowerComponent::CELLULAR, in TEST_F()
154 PowerComponent::ETHERNET, PowerComponent::PROJECTION, PowerComponent::NFC, in TEST_F()
155 PowerComponent::VOICE_INTERACTION, PowerComponent::VISUAL_INTERACTION, in TEST_F()
156 PowerComponent::TRUSTED_DEVICE_DETECTION, PowerComponent::LOCATION, in TEST_F()
157 PowerComponent::MICROPHONE}, in TEST_F()