Home | History | Annotate | Download | only in healthd

Lines Matching refs:anim

26 HealthdDraw::HealthdDraw(animation* anim)
36 if (!anim->text_clock.font_file.empty() &&
37 (res = gr_init_font(anim->text_clock.font_file.c_str(),
38 &anim->text_clock.font)) < 0) {
41 if (!anim->text_percent.font_file.empty() &&
42 (res = gr_init_font(anim->text_percent.font_file.c_str(),
43 &anim->text_percent.font)) < 0) {
121 void HealthdDraw::draw_clock(const animation* anim) {
125 const animation::text_field& field = anim->text_clock;
150 void HealthdDraw::draw_percent(const animation* anim) {
151 int cur_level = anim->cur_level;
152 if (anim->cur_status == BATTERY_STATUS_FULL) {
158 const animation::text_field& field = anim->text_percent;
174 void HealthdDraw::draw_battery(const animation* anim) {
175 const animation::frame& frame = anim->frames[anim->cur_frame];
177 if (anim->num_frames != 0) {
179 LOGV("drawing frame #%d min_cap=%d time=%d\n", anim->cur_frame,
182 draw_clock(anim);
183 draw_percent(anim);