Searched refs:chargeLevel (Results 1 – 2 of 2) sorted by relevance
90 int chargeLevel, in util_compute_percentage_charge() argument95 if (chargeLevel <= 0) { in util_compute_percentage_charge()96 HAL_WARNING (("chargeLevel %i, returning -1!", chargeLevel)); in util_compute_percentage_charge()101 percentage = ((double) chargeLevel / (double) chargeLastFull) * 100; in util_compute_percentage_charge()135 int chargeLevel, in util_compute_time_remaining() argument144 if (chargeRate < 0 || chargeLevel < 0 || chargeLastFull < 0) { in util_compute_time_remaining()168 if ((cur_time == battery_info->last_time) || (chargeLevel == battery_info->last_level)) { in util_compute_time_remaining()174 …chargeRate = ((chargeLevel - battery_info->last_level) * 60 * 60) / (cur_time - battery_info->last… in util_compute_time_remaining()182 battery_info->last_level = chargeLevel; in util_compute_time_remaining()190 battery_info->last_level = chargeLevel; in util_compute_time_remaining()[all …]
32 int util_compute_time_remaining (const char *id, int chargeRate, int chargeLevel, int chargeLastFul…35 int util_compute_percentage_charge (const char *id, int chargeLevel, int chargeLastFull);