Home
last modified time | relevance | path

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

/titanic_44/usr/src/cmd/hal/hald/
H A Dutil_pm.c90 int chargeLevel, in util_compute_percentage_charge() argument
95 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() argument
144 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 …]
H A Dutil_pm.h32 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);