Home
last modified time | relevance | path

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

/base/powermgr/thermal_manager/application/protector/src/policy/
Dthermal_kernel_policy.cpp70 … ThermalDeviceControl::ThermalActionMap actionMap = g_service.GetControl()->GetThermalAction(); in ActionDecision() local
71 auto nameIter = actionMap.find(actionIter->name); in ActionDecision()
72 if (nameIter != actionMap.end()) { in ActionDecision()
91 ThermalDeviceControl::ThermalActionMap actionMap = g_service.GetControl()->GetThermalAction(); in ActionExecution() local
92 THERMAL_HILOGI(FEATURE_PROTECTOR, "size: %{public}zu", actionMap.size()); in ActionExecution()
94 auto executeIter = actionMap.find(name); in ActionExecution()
95 if (executeIter != actionMap.end()) { in ActionExecution()
/base/powermgr/power_manager/services/native/src/
Dpower_mode_policy.cpp115 actionMap.emplace(type, action); in AddAction()
123 for (auto iterator = actionMap.begin(); iterator != actionMap.end(); iterator++) { in TriggerAllActions()
136 auto iterator = actionMap.find(type); in IsValidType()
137 if (iterator == actionMap.end()) { in IsValidType()
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_policy.cpp152 …ThermalActionManager::ThermalActionMap actionMap = g_service->GetActionManagerObj()->GetActionMap(… in ActionDecision() local
153 auto actionIter = actionMap.find(action->actionName); in ActionDecision()
154 if (actionIter == actionMap.end() || actionIter->second == nullptr) { in ActionDecision()
213 ThermalActionManager::ThermalActionMap actionMap = actionMgr->GetActionMap(); in ActionExecution() local
214 for (auto iter = actionMap.begin(); iter != actionMap.end(); iter++) { in ActionExecution()
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_service_test.cpp610 auto& actionMap = g_service->actionMgr_->actionMap_; variable
611 actionMap["test"] = nullptr;
613 EXPECT_FALSE(actionMap.empty());
642 auto& actionMap = g_service->actionMgr_->actionMap_; variable
643 actionMap["test"] = std::make_shared<ActionCpuBig>(CPU_BIG_ACTION_NAME);
644 actionMap["test1"] = std::make_shared<ActionCpuBig>(CPU_BIG_ACTION_NAME);
645 actionMap["test2"] = std::make_shared<ActionCpuBig>(CPU_BIG_ACTION_NAME);
647 EXPECT_FALSE(actionMap.empty());
/base/powermgr/power_manager/services/native/include/
Dpower_mode_policy.h56 std::map<uint32_t, ModeAction> actionMap; variable