Home
last modified time | relevance | path

Searched refs:chargerConfig (Results 1 - 4 of 4) sorted by relevance

/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dbattery_config.cpp170 void BatteryConfig::ParseChargerConfig(const Json::Value& chargerConfig) in ParseChargerConfig() argument
172 if (chargerConfig.isNull() || !chargerConfig.isObject()) { in ParseChargerConfig()
173 BATTERY_HILOGW(COMP_HDI, "chargerConfig is invalid"); in ParseChargerConfig()
177 Json::Value currentPath = GetValue(chargerConfig, "current_limit.path"); in ParseChargerConfig()
182 Json::Value voltagePath = GetValue(chargerConfig, "voltage_limit.path"); in ParseChargerConfig()
187 Json::Value chargeTypePath = GetValue(chargerConfig, "type.path"); in ParseChargerConfig()
H A Dbattery_interface_impl.cpp228 BatteryConfig::ChargerConfig chargerConfig = batteryConfig.GetChargerConfig(); in SetChargingLimit() local
230 return powerSupplyProvider_->SetChargingLimit(chargingLimit, chargerConfig.currentPath, chargerConfig.voltagePath); in SetChargingLimit()
236 BatteryConfig::ChargerConfig chargerConfig = batteryConfig.GetChargerConfig(); in GetChargeType() local
239 int32_t ret = powerSupplyProvider_->ParseChargeType(&type, chargerConfig.chargeTypePath); in GetChargeType()
H A Dpower_supply_provider.cpp624 BatteryConfig::ChargerConfig chargerConfig = batteryConfig.GetChargerConfig(); in InitChargerSysfs() local
626 std::string mockCurrentLimitPath = chargerConfig.currentPath; in InitChargerSysfs()
631 std::string mockVoltageLimitPath = chargerConfig.voltagePath; in InitChargerSysfs()
636 std::string mockChargeTypePath = chargerConfig.chargeTypePath; in InitChargerSysfs()
/drivers/peripheral/battery/interfaces/hdi_service/include/
H A Dbattery_config.h74 void ParseChargerConfig(const Json::Value& chargerConfig);

Completed in 4 milliseconds