/base/powermgr/thermal_manager/services/native/src/thermal_action/action/action_soc/ |
H A D | action_cpu_big.cpp | 54 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 74 valueList_.clear(); in Execute() 80 if (!valueList_.empty()) { in GetActionValue() 82 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 84 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_cpu_boost.cpp | 53 valueList_.push_back(static_cast<uint32_t>(atoi(value.c_str()))); in AddActionValue() 73 valueList_.clear(); in Execute() 79 if (!valueList_.empty()) { in GetActionValue() 81 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 83 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_cpu_isolate.cpp | 52 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 67 valueList_.clear(); in Execute() 73 if (!valueList_.empty()) { in GetActionValue() 75 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 77 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_cpu_lit.cpp | 52 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 67 valueList_.clear(); in Execute() 73 if (!valueList_.empty()) { in GetActionValue() 75 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 77 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_cpu_med.cpp | 52 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 67 valueList_.clear(); in Execute() 73 if (!valueList_.empty()) { in GetActionValue() 75 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 77 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_gpu.cpp | 52 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 67 valueList_.clear(); in Execute() 73 if (!valueList_.empty()) { in GetActionValue() 75 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 77 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
/base/powermgr/thermal_manager/services/native/src/thermal_action/action/ |
H A D | action_display.cpp | 62 valueList_.push_back(static_cast<float>(strtof(value.c_str(), nullptr))); in AddActionValue() 81 valueList_.clear(); in Execute() 87 if (!valueList_.empty()) { in GetActionValue() 89 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 91 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_node.cpp | 64 valueList_.push_back(atoi(value.c_str())); in AddActionValue() 70 if (!valueList_.empty()) { in Execute() 72 value = *min_element(valueList_.begin(), valueList_.end()); in Execute() 74 value = *max_element(valueList_.begin(), valueList_.end()); in Execute() 87 valueList_.clear(); in Execute()
|
H A D | action_charger.cpp | 60 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 76 valueList_.clear(); in Execute() 82 if (!valueList_.empty()) { in GetActionValue() 84 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 86 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_airplane.cpp | 64 valueList_.push_back(static_cast<uint32_t>(result)); in AddActionValue() 83 valueList_.clear(); in Execute() 89 if (!valueList_.empty()) { in GetActionValue() 91 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 93 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_shutdown.cpp | 65 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 84 valueList_.clear(); in Execute() 90 if (!valueList_.empty()) { in GetActionValue() 92 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 94 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_popup.cpp | 61 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 76 valueList_.clear(); in Execute() 82 if (!valueList_.empty()) { in GetActionValue() 84 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 86 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_volume.cpp | 64 valueList_.push_back(static_cast<float>(strtof(value.c_str(), nullptr))); in AddActionValue() 83 valueList_.clear(); in Execute() 89 if (!valueList_.empty()) { in GetActionValue() 91 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 93 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_voltage.cpp | 61 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 77 valueList_.clear(); in Execute() 83 if (!valueList_.empty()) { in GetActionValue() 85 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 87 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_application_process.cpp | 70 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 88 valueList_.clear(); in Execute() 94 if (!valueList_.empty()) { in GetActionValue() 96 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 98 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
H A D | action_thermal_level.cpp | 68 valueList_.push_back(static_cast<uint32_t>(strtol(value.c_str(), nullptr, STRTOL_FORMART_DEC))); in AddActionValue() 83 valueList_.clear(); in Execute() 89 if (!valueList_.empty()) { in GetActionValue() 91 value = *min_element(valueList_.begin(), valueList_.end()); in GetActionValue() 93 value = *max_element(valueList_.begin(), valueList_.end()); in GetActionValue()
|
/base/powermgr/thermal_manager/test/unittest/src/ |
H A D | thermal_action_test.cpp | 206 EXPECT_FALSE(g_actionDisplay->valueList_.empty()); in HWTEST_F() 251 EXPECT_TRUE(g_actionApplicationProcess->valueList_.empty()); in HWTEST_F() 267 EXPECT_TRUE(g_actionCpuBig->valueList_.empty()); in HWTEST_F() 283 EXPECT_TRUE(g_actionCpuMed->valueList_.empty()); in HWTEST_F() 299 EXPECT_TRUE(g_actionCpuLit->valueList_.empty()); in HWTEST_F() 315 EXPECT_TRUE(g_actionGpu->valueList_.empty()); in HWTEST_F() 333 EXPECT_FALSE(g_actionCpuIsolate->valueList_.empty()); in HWTEST_F() 369 EXPECT_TRUE(g_actionAirplane->valueList_.empty()); in HWTEST_F() 427 EXPECT_TRUE(g_actionPopup->valueList_.empty()); in HWTEST_F()
|
/base/powermgr/thermal_manager/services/native/include/thermal_action/action/action_soc/ |
H A D | action_cpu_lit.h | 37 std::vector<uint32_t> valueList_; member in OHOS::PowerMgr::ActionCpuLit
|
H A D | action_cpu_med.h | 37 std::vector<uint32_t> valueList_; member in OHOS::PowerMgr::ActionCpuMed
|
H A D | action_gpu.h | 37 std::vector<uint32_t> valueList_; member in OHOS::PowerMgr::ActionGpu
|
H A D | action_cpu_boost.h | 39 std::vector<uint32_t> valueList_; member in OHOS::PowerMgr::ActionCpuBoost
|
/base/powermgr/thermal_manager/services/native/include/thermal_action/action/ |
H A D | action_volume.h | 37 std::vector<float> valueList_; member in OHOS::PowerMgr::ActionVolume
|
H A D | action_airplane.h | 40 std::vector<uint32_t> valueList_; member in OHOS::PowerMgr::ActionAirplane
|
H A D | action_popup.h | 40 std::vector<uint32_t> valueList_; member in OHOS::PowerMgr::ActionPopup
|
H A D | action_shutdown.h | 39 std::vector<uint32_t> valueList_; member in OHOS::PowerMgr::ActionShutdown
|