Home
last modified time | relevance | path

Searched refs:policyAction (Results 1 – 2 of 2) sorted by relevance

/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_config_file_parser.cpp460 PolicyAction policyAction; in ParsePolicySubnode() local
461 policyAction.actionName = reinterpret_cast<const char*>(subNode->name); in ParsePolicySubnode()
464 policyAction.actionValue = reinterpret_cast<char*>(xmlActionValue); in ParsePolicySubnode()
467 policyAction.actionName.c_str(), policyAction.actionValue.c_str()); in ParsePolicySubnode()
473 policyAction.isProp = false; in ParsePolicySubnode()
474 policyConfig.policyActionList.push_back(policyAction); in ParsePolicySubnode()
484 policyAction.actionPropMap.emplace(std::pair(propName, propValue)); in ParsePolicySubnode()
487 policyAction.isProp = true; in ParsePolicySubnode()
489 policyConfig.policyActionList.push_back(policyAction); in ParsePolicySubnode()
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_srv_config_parser.cpp540 PolicyAction policyAction; in ParsePolicyActionInfo() local
541 policyAction.actionName = reinterpret_cast<const char*>(subNode->name); in ParsePolicyActionInfo()
544 policyAction.actionValue = reinterpret_cast<char*>(actionValue); in ParsePolicyActionInfo()
547 policyAction.actionName.c_str(), policyAction.actionValue.c_str()); in ParsePolicyActionInfo()
550 … THERMAL_HILOGE(COMP_SVC, "action [%{public}s] value is null", policyAction.actionName.c_str()); in ParsePolicyActionInfo()
555 policyAction.isProp = false; in ParsePolicyActionInfo()
556 policyConfig.policyActionList.push_back(policyAction); in ParsePolicyActionInfo()
566 policyAction.actionPropMap.emplace(std::pair(propName, propValue)); in ParsePolicyActionInfo()
572 policyAction.isProp = true; in ParsePolicyActionInfo()
574 policyConfig.policyActionList.push_back(policyAction); in ParsePolicyActionInfo()