Home
last modified time | relevance | path

Searched refs:text_percent (Results 1 – 5 of 5) sorted by relevance

/system/core/healthd/
Danimation.h65 if (!text_percent.font_file.empty()) { in set_resource_root()
66 text_percent.font_file = root + text_percent.font_file + ".png"; in set_resource_root()
74 text_field text_percent; member
Dhealthd_mode_charger.cpp127 .text_percent =
653 LOGV(" percent: %d %d %d %d %d %d '%s'\n", batt_anim_.text_percent.pos_x, in InitAnimation()
654 batt_anim_.text_percent.pos_y, batt_anim_.text_percent.color_r, in InitAnimation()
655 batt_anim_.text_percent.color_g, batt_anim_.text_percent.color_b, in InitAnimation()
656 batt_anim_.text_percent.color_a, batt_anim_.text_percent.font_file.c_str()); in InitAnimation()
Dhealthd_draw.cpp73 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()
198 const animation::text_field& field = anim->text_percent; in draw_percent()
DAnimationParser.cpp114 if (!parse_text_field(rest, &anim->text_percent)) { in parse_animation_desc()
/system/core/healthd/tests/
DAnimationParser_test.cpp175 EXPECT_EQ(21, anim.text_percent.pos_x); in TEST()
176 EXPECT_EQ(22, anim.text_percent.pos_y); in TEST()
177 EXPECT_EQ(23, anim.text_percent.color_r); in TEST()
178 EXPECT_EQ(24, anim.text_percent.color_g); in TEST()
179 EXPECT_EQ(25, anim.text_percent.color_b); in TEST()
180 EXPECT_EQ(26, anim.text_percent.color_a); in TEST()
181 EXPECT_STREQ("test/percent_font", anim.text_percent.font_file.c_str()); in TEST()