Searched refs:batt_anim (Results 1 – 3 of 3) sorted by relevance
113 animation* batt_anim; member290 animation* batt_anim = charger->batt_anim; in update_screen_state() local293 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 …]
62 void HealthdDraw::redraw_screen(const animation* batt_anim, GRSurface* surf_unknown) { in redraw_screen() argument67 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()
34 void redraw_screen(const animation* batt_anim, GRSurface* surf_unknown);