Home
last modified time | relevance | path

Searched refs:voltagePath (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/
H A Dhdi_interface_test.cpp109 std::string voltagePath = "/data/service/el0/battery/voltage_limit"; variable
110 CreateFile(voltagePath, "");
129 std::ifstream fin(voltagePath.c_str());
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dbattery_config.cpp182 Json::Value voltagePath = GetValue(chargerConfig, "voltage_limit.path"); in ParseChargerConfig() local
183 if (isValidJsonString(voltagePath)) { in ParseChargerConfig()
184 chargerConfig_.voltagePath = voltagePath.asString(); in ParseChargerConfig()
H A Dpower_supply_provider.cpp256 FormatPath(batterySysfsInfo_.voltagePath, PATH_MAX, "%s/%s/voltage_now", path_.c_str(), in FormatSysfsPaths()
631 std::string mockVoltageLimitPath = chargerConfig.voltagePath; in InitChargerSysfs()
807 int32_t ret = ReadBatterySysfsToBuff(batterySysfsInfo_.voltagePath.c_str(), buf, sizeof(buf)); in ParseVoltage()
1004 std::string& currentPath, std::string& voltagePath) in SetChargingLimit() argument
1018 limitPath = voltagePath; in SetChargingLimit()
H A Dbattery_interface_impl.cpp230 …lyProvider_->SetChargingLimit(chargingLimit, chargerConfig.currentPath, chargerConfig.voltagePath); in SetChargingLimit()
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/include/
H A Dpower_supply_provider.h100 std::string& currentPath, std::string& voltagePath);
110 std::string voltagePath; member
H A Dbattery_config.h44 std::string voltagePath; member
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/test/systemtest/src/
H A Dbattery_sys_test.cpp103 ASSERT_TRUE(chargerConf.voltagePath.size());