Searched refs:voltagePath (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/ |
H A D | hdi_interface_test.cpp | 109 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 D | battery_config.cpp | 182 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 D | power_supply_provider.cpp | 256 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 D | battery_interface_impl.cpp | 230 …lyProvider_->SetChargingLimit(chargingLimit, chargerConfig.currentPath, chargerConfig.voltagePath); in SetChargingLimit()
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/include/ |
H A D | power_supply_provider.h | 100 std::string& currentPath, std::string& voltagePath); 110 std::string voltagePath; member
|
H A D | battery_config.h | 44 std::string voltagePath; member
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/test/systemtest/src/ |
H A D | battery_sys_test.cpp | 103 ASSERT_TRUE(chargerConf.voltagePath.size());
|