Home
last modified time | relevance | path

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

/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/
H A Dhdi_service_test.cpp43 const std::string SYSTEM_BATTERY_PATH = "/sys/class/power_supply"; variable
89 std::string batteryPath = SYSTEM_BATTERY_PATH + "/" + path; in CheckSubfolderNode()
175 dir = opendir(SYSTEM_BATTERY_PATH.c_str()); in InitBaseSysfs()
222 std::string sysBattTemPath = SYSTEM_BATTERY_PATH + "/" + tempNode + "/" + "temp"; in ReadTemperatureSysfs()
296 std::string sysBattCapPath = SYSTEM_BATTERY_PATH + "/" + capacityNode + "/" + "capacity"; in ReadCapacitySysfs()
600 std::string onlinePath = SYSTEM_BATTERY_PATH + "/" + *iter + "/" + "online"; in ReadPluggedTypeSysfs()
614 std::string typePath = SYSTEM_BATTERY_PATH + "/" + node + "/" + "type"; in ReadPluggedTypeSysfs()
726 std::string sysPresentPath = SYSTEM_BATTERY_PATH + "/" + presentNode + "/" + "present"; in ReadPresentSysfs()
787 bool rootExist = access(SYSTEM_BATTERY_PATH.c_str(), F_OK) == 0; in IsNotMock()
788 bool lowerExist = access((SYSTEM_BATTERY_PATH + "/battery").c_str(), F_OK) == 0; in IsNotMock()
[all …]