Home
last modified time | relevance | path

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

/system/core/healthd/
Dhealthd_mode_charger.cpp113 animation* batt_anim; member
290 animation* batt_anim = charger->batt_anim; in update_screen_state() local
293 if (!batt_anim->run || now < charger->next_screen_transition) return; in update_screen_state()
314 batt_anim->run = false; in update_screen_state()
321 healthd_draw.reset(new HealthdDraw(batt_anim)); in update_screen_state()
330 if (batt_anim->num_cycles > 0 && batt_anim->cur_cycle == batt_anim->num_cycles) { in update_screen_state()
331 reset_animation(batt_anim); in update_screen_state()
340 disp_time = batt_anim->frames[batt_anim->cur_frame].disp_time; in update_screen_state()
348 if (batt_anim->cur_frame == 0) { in update_screen_state()
351 batt_anim->cur_level = batt_prop->batteryLevel; in update_screen_state()
[all …]
Dhealthd_draw.cpp62 void HealthdDraw::redraw_screen(const animation* batt_anim, GRSurface* surf_unknown) { in redraw_screen() argument
67 if (batt_anim->cur_status == BATTERY_STATUS_UNKNOWN || batt_anim->cur_level < 0 || in redraw_screen()
68 batt_anim->num_frames == 0) in redraw_screen()
71 draw_battery(batt_anim); in redraw_screen()
Dhealthd_draw.h34 void redraw_screen(const animation* batt_anim, GRSurface* surf_unknown);