Searched defs:anim (Results 1 - 3 of 3) 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_mode_charger.cpp | 316 static void draw_clock(const animation& anim) argument 321 const animation::text_field& field = anim.text_clock; 344 static void draw_percent(const animation& anim) argument 346 int cur_level = anim.cur_level; 347 if (anim.cur_status == BATTERY_STATUS_FULL) { 353 const animation::text_field& field = anim.text_percent; 400 const struct animation& anim = *charger->batt_anim; local 401 const struct animation::frame& frame = anim.frames[anim.cur_frame]; 403 if (anim 427 kick_animation(struct animation *anim) argument 432 reset_animation(struct animation *anim) argument 439 init_status_display(struct animation* anim) argument 851 struct animation* anim = init_animation(); local [all...] |
Completed in 58 milliseconds