Lines Matching refs:y
111 int y = (screen_height_ - h) / 2; in draw_surface_centered() local
113 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered()
114 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered()
117 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered()
118 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered()
121 return y + h; in draw_surface_centered()
124 int HealthdDraw::draw_text(const GRFont* font, int x, int y, const char* str) { in draw_text() argument
129 if (y < 0) y = (screen_height_ - char_height_) / 2; in draw_text()
130 gr_text(font, x + kSplitOffset, y, str, false /* bold */); in draw_text()
131 if (kSplitScreen) gr_text(font, x - kSplitOffset + screen_width_, y, str, false /* bold */); in draw_text()
133 return y + char_height_; in draw_text()
137 const int length, int* x, int* y) { in determine_xy() argument
149 *y = field.pos_y; in determine_xy()
152 *y = (screen_height_ - field.font->char_height) / 2; in determine_xy()
154 *y = field.pos_y; in determine_xy()
156 *y = screen_height_ + field.pos_y - field.font->char_height; in determine_xy()
181 int x, y; in draw_clock() local
182 determine_xy(field, length, &x, &y); in draw_clock()
184 LOGV("drawing clock %s %d %d\n", clock_str, x, y); in draw_clock()
186 draw_text(field.font, x, y, clock_str); in draw_clock()
205 int x, y; in draw_percent() local
206 determine_xy(field, str.size(), &x, &y); in draw_percent()
208 LOGV("drawing percent %s %d %d\n", str.c_str(), x, y); in draw_percent()
210 draw_text(field.font, x, y, str.c_str()); in draw_percent()
227 int y; in draw_unknown() local
232 y = draw_text(sys_font, -1, -1, "Charging!"); in draw_unknown()
233 draw_text(sys_font, -1, y + 25, "?\?/100"); in draw_unknown()