Searched refs:chargeRate (Results 1 – 2 of 2) sorted by relevance
134 int chargeRate, in util_compute_time_remaining() argument144 if (chargeRate < 0 || chargeLevel < 0 || chargeLastFull < 0) { in util_compute_time_remaining()158 if (chargeRate == 0 || guessChargeRate) { in util_compute_time_remaining()172 chargeRate = battery_info->last_chargeRate; in util_compute_time_remaining()174 …chargeRate = ((chargeLevel - battery_info->last_level) * 60 * 60) / (cur_time - battery_info->last… in util_compute_time_remaining()180 chargeRate = (chargeRate > 0) ? chargeRate : -chargeRate; in util_compute_time_remaining()184 battery_info->last_chargeRate = chargeRate; in util_compute_time_remaining()197 if (chargeRate == 0) in util_compute_time_remaining()201 remaining_time = ((double) chargeLevel / (double) chargeRate) * 60 * 60; in util_compute_time_remaining()211 remaining_time = ((double) (chargeLastFull - chargeLevel) / (double) chargeRate) * 60 * 60; in util_compute_time_remaining()
32 int util_compute_time_remaining (const char *id, int chargeRate, int chargeLevel, int chargeLastFul…