Home
last modified time | relevance | path

Searched refs:stateMap (Results 1 – 5 of 5) sorted by relevance

/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_service_test.cpp664 std::map<std::string, std::string> stateMap; variable
665 stateMap["test"] = "test";
666 EXPECT_FALSE(policy.StateMachineDecision(stateMap));
671 EXPECT_FALSE(policy.StateMachineDecision(stateMap));
675 EXPECT_FALSE(policy.StateMachineDecision(stateMap));
678 stateMap["test"] = "1";
681 EXPECT_TRUE(policy.StateMachineDecision(stateMap));
683 EXPECT_FALSE(policy.StateMachineDecision(stateMap));
685 stateMap["test1"] = "0";
687 EXPECT_FALSE(policy.StateMachineDecision(stateMap));
Dthermal_action_report_test.cpp176 std::map<std::string, std::string> stateMap; in StateDecision() local
177 GetStateMap(stateMap); in StateDecision()
179 auto stateIter = stateMap.find(prop.first); in StateDecision()
184 if (stateIter != stateMap.end()) { in StateDecision()
219 void ThermalActionReportTest::GetStateMap(std::map<std::string, std::string>& stateMap) in GetStateMap() argument
231 stateMap.emplace(std::pair(stateIter.name, state)); in GetStateMap()
233 for (auto iter : stateMap) { in GetStateMap()
/base/powermgr/thermal_manager/test/unittest/include/
Dthermal_action_report_test.h42 static void GetStateMap(std::map<std::string, std::string>& stateMap);
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_policy.cpp188 bool ThermalPolicy::StateMachineDecision(const std::map<std::string, std::string>& stateMap) in StateMachineDecision() argument
190 for (auto prop = stateMap.begin(); prop != stateMap.end(); prop++) { in StateMachineDecision()
/base/powermgr/thermal_manager/services/native/include/thermal_policy/
Dthermal_policy.h64 bool StateMachineDecision(const std::map<std::string, std::string>& stateMap);