Home
last modified time | relevance | path

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

/bootable/recovery/recovery_utils/
Dbattery_utils.cpp56 int32_t capacity = INT32_MIN; in GetBatteryInfo() local
59 ->getCapacity([&res, &capacity](auto out_res, auto out_capacity) { in GetBatteryInfo()
61 capacity = out_capacity; in GetBatteryInfo()
67 << ", status " << toString(res) << ", capacity " << capacity; in GetBatteryInfo()
74 if (res == Result::SUCCESS && capacity == 50) { in GetBatteryInfo()
84 capacity = 100; in GetBatteryInfo()
87 return BatteryInfo{ charging, capacity }; in GetBatteryInfo()
/bootable/recovery/tests/unit/
Dbattery_utils_test.cpp25 ASSERT_LE(0, info.capacity); in TEST()
26 ASSERT_LE(info.capacity, 100); in TEST()
/bootable/recovery/recovery_utils/include/recovery_utils/
Dbattery_utils.h29 int32_t capacity; member
/bootable/recovery/minadbd/
Dminadbd_services.cpp183 return std::to_string(battery_info.capacity); in RescueGetpropHostService()
/bootable/recovery/
Drecovery.cpp542 return battery_info.capacity >= *required_battery_level; in IsBatteryOk()
/bootable/recovery/tests/testdata/
Drecovery_body1414 …�L���/sys/devices/soc\.0/qpnp-smbcharger-[0-9a-f]+/power_supply/battery/capacity�����������$���u…