Home
last modified time | relevance | path

Searched refs:anim (Results 1 – 8 of 8) sorted by relevance

/system/core/healthd/tests/
DAnimationParser_test.cpp113 animation anim; in TEST() local
115 EXPECT_TRUE(parse_animation_desc(TEST_ANIMATION, &anim)); in TEST()
123 animation anim; in TEST() local
125 EXPECT_FALSE(parse_animation_desc(TEST_ANIMATION, &anim)); in TEST()
133 animation anim; in TEST() local
135 EXPECT_FALSE(parse_animation_desc(TEST_ANIMATION, &anim)); in TEST()
144 animation anim; in TEST() local
146 EXPECT_FALSE(parse_animation_desc(TEST_ANIMATION, &anim)); in TEST()
159 animation anim; in TEST() local
161 EXPECT_TRUE(parse_animation_desc(TEST_ANIMATION, &anim)); in TEST()
[all …]
/system/core/healthd/
Dhealthd_draw.cpp47 HealthdDraw::HealthdDraw(animation* anim) in HealthdDraw() argument
69 if (!anim->text_clock.font_file.empty() && in HealthdDraw()
70 (res = gr_init_font(anim->text_clock.font_file.c_str(), &anim->text_clock.font)) < 0) { in HealthdDraw()
73 if (!anim->text_percent.font_file.empty() && in HealthdDraw()
74 (res = gr_init_font(anim->text_percent.font_file.c_str(), &anim->text_percent.font)) < 0) { in HealthdDraw()
160 void HealthdDraw::draw_clock(const animation* anim) { in draw_clock() argument
164 const animation::text_field& field = anim->text_clock; in draw_clock()
189 void HealthdDraw::draw_percent(const animation* anim) { in draw_percent() argument
191 int cur_level = anim->cur_level; in draw_percent()
192 if (anim->cur_status == BATTERY_STATUS_FULL) { in draw_percent()
[all …]
DAnimationParser.cpp82 bool parse_animation_desc(const std::string& content, animation* anim) { in parse_animation_desc() argument
98 if (sscanf(rest, "%d %d %n%*s%n", &anim->num_cycles, &anim->first_frame_repeats, in parse_animation_desc()
104 anim->animation_file.assign(&rest[start], end - start); in parse_animation_desc()
107 anim->fail_file.assign(rest); in parse_animation_desc()
109 if (!parse_text_field(rest, &anim->text_clock)) { in parse_animation_desc()
114 if (!parse_text_field(rest, &anim->text_percent)) { in parse_animation_desc()
127 if (anim->animation_file.empty() || frames.empty()) { in parse_animation_desc()
133 anim->num_frames = frames.size(); in parse_animation_desc()
134 anim->frames = new animation::frame[frames.size()]; in parse_animation_desc()
135 std::copy(frames.begin(), frames.end(), anim->frames); in parse_animation_desc()
Dhealthd_draw.h30 HealthdDraw(animation* anim);
53 virtual void draw_battery(const animation* anim);
55 virtual void draw_clock(const animation* anim);
57 virtual void draw_percent(const animation* anim);
DAnimationParser.h24 bool parse_animation_desc(const std::string& content, animation* anim);
Dhealthd_mode_charger.cpp273 static void kick_animation(animation* anim) { in kick_animation() argument
274 anim->run = true; in kick_animation()
277 static void reset_animation(animation* anim) { in reset_animation() argument
278 anim->cur_cycle = 0; in reset_animation()
279 anim->cur_frame = 0; in reset_animation()
280 anim->run = false; in reset_animation()
/system/extras/ioblame/
Dioblame-gmail-launch.example109 android.anim Reads: 24 KB
175 PID: android.anim
Dioblame-gmail-run.example711 android.anim Reads: 16 KB
898 PID: android.anim