Searched refs:defVal (Results 1 - 6 of 6) sorted by relevance
/base/powermgr/battery_manager/charger/include/ |
H A D | battery_config.h | 41 int32_t GetInt(std::string key, int32_t defVal = 0) const; 42 std::string GetString(std::string key, std::string defVal = "") const;
|
/base/powermgr/battery_manager/charger/src/ |
H A D | battery_config.cpp | 92 int32_t BatteryConfig::GetInt(std::string key, int32_t defVal) const in GetInt() 95 return (value.isNull() || !value.isInt()) ? defVal : value.asInt(); in GetInt() 98 std::string BatteryConfig::GetString(std::string key, std::string defVal) const in GetString() 101 return (value.isNull() || !value.isString()) ? defVal : value.asString(); in GetString()
|
/base/customization/config_policy/frameworks/config_policy/src/ |
H A D | config_policy_utils.c | 351 char *defVal = strstr(name, SEP_FOR_X_VALUE); in ExpandStr() local 352 if (defVal) { in ExpandStr() 353 *defVal = 0; // cut for name end in ExpandStr() 354 defVal = TrimInplace(defVal + strlen(SEP_FOR_X_VALUE), false); // skip ":-", get value in ExpandStr() 357 if (value || defVal || def) { in ExpandStr() 358 ok = ok && AppendStr(&sh, value ? value : (defVal ? defVal : def)); in ExpandStr()
|
/base/powermgr/battery_manager/services/native/include/ |
H A D | battery_config.h | 47 int32_t GetInt(std::string key, int32_t defVal = 0) const;
|
/base/powermgr/battery_manager/services/native/src/ |
H A D | battery_config.cpp | 94 int32_t BatteryConfig::GetInt(std::string key, int32_t defVal) const in GetInt() 97 return (value.isNull() || !value.isInt()) ? defVal : value.asInt(); in GetInt()
|
/base/powermgr/battery_manager/test/unittest/src/ |
H A D | battert_service_inner_test.cpp | 312 int32_t defVal = 90;
in HWTEST_F() local 313 int32_t highSoc = g_configTest.GetInt(key, defVal);
in HWTEST_F()
|
Completed in 4 milliseconds