Home
last modified time | relevance | path

Searched refs:soc (Results 1 - 10 of 10) sorted by relevance

/base/powermgr/battery_lite/test/Interface_test/test/unittest/src/
H A Dbatterymgr_interfaces_test.cpp42 int32_t soc = GetBatSoc(); in HWTEST_F() local
43 EXPECT_EQ ((soc >= 0 && soc <= 100), 1) << "GetBatterySoc ret = " << soc << endl; in HWTEST_F()
/base/powermgr/battery_manager/charger/src/
H A Dbattery_config.cpp153 Json::Value soc = GetValue("light." + level + ".soc"); in ParseLightConf() local
155 if (!soc.isArray() || !rgb.isArray()) { in ParseLightConf()
160 if (soc.size() != MAX_SOC_RANGE || !soc[BEGIN_SOC_INDEX].isInt() || !soc[END_SOC_INDEX].isInt()) { in ParseLightConf()
161 BATTERY_HILOGW(FEATURE_CHARGING, "The battery light %{public}s soc data type error.", level.c_str()); in ParseLightConf()
170 .beginSoc = soc[BEGIN_SOC_INDEX].asInt(), in ParseLightConf()
171 .endSoc = soc[END_SOC_INDEX].asInt(), in ParseLightConf()
/base/powermgr/battery_lite/services/src/
H A Dbattery_manage_feature.c49 int32_t soc = BATT_INT_VALUE; in BatterySocImpl() local
52 return soc; in BatterySocImpl()
54 soc = g_batteryDevice->GetSoc(); in BatterySocImpl()
55 return soc; in BatterySocImpl()
/base/powermgr/battery_manager/services/native/src/
H A Dbattery_config.cpp144 Json::Value soc = GetValue("light." + level + ".soc"); in ParseLightConf() local
146 if (!soc.isArray() || !rgb.isArray()) { in ParseLightConf()
151 if (soc.size() != MAX_SOC_RANGE || !soc[BEGIN_SOC_INDEX].isInt() || !soc[END_SOC_INDEX].isInt()) { in ParseLightConf()
152 BATTERY_HILOGW(COMP_SVC, "The battery light %{public}s soc data type error.", level.c_str()); in ParseLightConf()
161 .beginSoc = soc[BEGIN_SOC_INDEX].asInt(), in ParseLightConf()
162 .endSoc = soc[END_SOC_INDEX].asInt(), in ParseLightConf()
/base/powermgr/thermal_manager/services/native/src/thermal_observer/state_machine/
H A Dcharger_state_collection.cpp100 g_cachedIdleState.soc = data.GetWant().GetIntParam(BatteryInfo::COMMON_EVENT_KEY_CAPACITY, -1); in HandleChangerStatusCompleted()
164 bool isIdle = ((g_cachedIdleState.soc >= g_idleStateConfig.soc) && in HandleChargeIdleState()
169 THERMAL_HILOGI(COMP_SVC, "soc=%{public}d, charging==%{public}d, current==%{public}d, level==%{public}d", in HandleChargeIdleState()
170 g_cachedIdleState.soc, g_cachedIdleState.charging, g_cachedIdleState.current, in HandleChargeIdleState()
H A Dstate_machine.cpp87 result.append("soc: "); in DumpIdle()
88 result.append(std::to_string(idleStateConfig_.soc)); in DumpIdle()
/base/powermgr/thermal_manager/services/native/include/thermal_observer/state_machine/
H A Dcharger_state_collection.h29 int32_t soc; member
/base/powermgr/battery_manager/frameworks/napi/src/
H A Dbattery_info.cpp466 napi_value soc = nullptr; in CreateEventBatteryChangedKey() local
476 napi_create_string_utf8(env, BatteryInfo::COMMON_EVENT_KEY_CAPACITY, NAPI_AUTO_LENGTH, &soc); in CreateEventBatteryChangedKey()
487 DECLARE_NAPI_STATIC_PROPERTY("EXTRA_SOC", soc), in CreateEventBatteryChangedKey()
509 napi_value soc = nullptr; in CreateEventBatteryChangedCode() local
522 napi_create_int32(env, (int32_t)BatteryInfo::COMMON_EVENT_CODE_CAPACITY, &soc); in CreateEventBatteryChangedCode()
536 DECLARE_NAPI_STATIC_PROPERTY("EXTRA_SOC", soc), in CreateEventBatteryChangedCode()
/base/powermgr/thermal_manager/test/unittest/src/
H A Dthermal_config_file_parser.cpp304 } else if (!xmlStrcmp(subNode->name, BAD_CAST"soc")) { in ParseIdleNode()
307 StrToInt(reinterpret_cast<char*>(value), idleState.soc); in ParseIdleNode()
326 THERMAL_HILOGI(LABEL_TEST, "level=%{public}d, soc=%{public}d, charging=%{public}d, current=%{public}d", in ParseIdleNode()
327 idleState.level, idleState.soc, idleState.charging, idleState.current); in ParseIdleNode()
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
H A Dthermal_srv_config_parser.cpp667 } else if (!xmlStrcmp(subNode->name, BAD_CAST"soc")) { in ParseIdleNode()
670 StrToInt(reinterpret_cast<char*>(value), idleState.soc); in ParseIdleNode()
689 THERMAL_HILOGI(COMP_SVC, "level=%{public}d, soc=%{public}d, charging=%{public}d, current=%{public}d", in ParseIdleNode()
690 idleState.level, idleState.soc, idleState.charging, idleState.current); in ParseIdleNode()

Completed in 6 milliseconds