Home
last modified time | relevance | path

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

/system/core/healthd/
Dhealthd_mode_charger.cpp113 int64_t next_pwr_check; member
575 if (charger->next_pwr_check == -1) { in handle_power_supply_state()
576 charger->next_pwr_check = now + UNPLUGGED_SHUTDOWN_TIME; in handle_power_supply_state()
578 now, (int64_t)UNPLUGGED_SHUTDOWN_TIME, charger->next_pwr_check); in handle_power_supply_state()
579 } else if (now >= charger->next_pwr_check) { in handle_power_supply_state()
587 if (charger->next_pwr_check != -1) { in handle_power_supply_state()
591 charger->next_pwr_check = -1; in handle_power_supply_state()
636 charger->next_pwr_check); in healthd_mode_charger_preparetowait()
642 if (charger->next_pwr_check != -1 && charger->next_pwr_check < next_event) in healthd_mode_charger_preparetowait()
643 next_event = charger->next_pwr_check; in healthd_mode_charger_preparetowait()
[all …]