Searched defs:anim (Results 1 - 4 of 4) sorted by relevance
/system/core/healthd/tests/ |
H A D | AnimationParser_test.cpp | 113 animation anim; local 115 EXPECT_TRUE(parse_animation_desc(TEST_ANIMATION, &anim)); 123 animation anim; local 125 EXPECT_FALSE(parse_animation_desc(TEST_ANIMATION, &anim)); 133 animation anim; local 135 EXPECT_FALSE(parse_animation_desc(TEST_ANIMATION, &anim)); 144 animation anim; local 146 EXPECT_FALSE(parse_animation_desc(TEST_ANIMATION, &anim)); 159 animation anim; local 161 EXPECT_TRUE(parse_animation_desc(TEST_ANIMATION, &anim)); [all...] |
/system/core/healthd/ |
H A D | AnimationParser.cpp | 82 bool parse_animation_desc(const std::string& content, animation* anim) { argument 99 if (sscanf(rest, "%d %d %n%*s%n", &anim->num_cycles, &anim->first_frame_repeats, 105 anim->animation_file.assign(&rest[start], end - start); 108 anim->fail_file.assign(rest); 110 if (!parse_text_field(rest, &anim->text_clock)) { 115 if (!parse_text_field(rest, &anim->text_percent)) { 128 if (anim->animation_file.empty() || frames.empty()) { 134 anim->num_frames = frames.size(); 135 anim [all...] |
H A D | healthd_draw.cpp | 26 HealthdDraw::HealthdDraw(animation* anim) argument 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) { argument 125 const animation::text_field& field = anim->text_clock; 150 void HealthdDraw::draw_percent(const animation* anim) { argument 174 draw_battery(const animation* anim) argument [all...] |
H A D | healthd_mode_charger.cpp | 265 static void kick_animation(animation* anim) { argument 266 anim->run = true; 269 static void reset_animation(animation* anim) { argument 270 anim->cur_cycle = 0; 271 anim->cur_frame = 0; 272 anim->run = false; 340 /* if we don't have anim frames, we only have one image, so just bump 631 animation* anim = init_animation(); local 632 charger->batt_anim = anim; 634 ret = res_create_display_surface(anim [all...] |
Completed in 584 milliseconds