Lines Matching refs:x
23 #define LOGE(x...) KLOG_ERROR("charger", x); argument
24 #define LOGV(x...) KLOG_DEBUG("charger", x); argument
71 int x = (screen_width_ - w) / 2 + kSplitOffset; in draw_surface_centered() local
74 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered()
75 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered()
77 x += screen_width_ - 2 * kSplitOffset; in draw_surface_centered()
78 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered()
79 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered()
85 int HealthdDraw::draw_text(const GRFont* font, int x, int y, const char* str) { in draw_text() argument
88 if (x < 0) x = (screen_width_ - str_len_px) / 2; in draw_text()
90 gr_text(font, x + kSplitOffset, y, str, false /* bold */); in draw_text()
92 gr_text(font, x - kSplitOffset + screen_width_, y, str, false /* bold */); in draw_text()
98 const int length, int* x, int* y) { in determine_xy() argument
99 *x = field.pos_x; in determine_xy()
103 *x = (screen_width_ - str_len_px) / 2; in determine_xy()
105 *x = field.pos_x; in determine_xy()
107 *x = screen_width_ + field.pos_x - str_len_px - kSplitOffset; in determine_xy()
142 int x, y; in draw_clock() local
143 determine_xy(field, length, &x, &y); in draw_clock()
145 LOGV("drawing clock %s %d %d\n", clock_str, x, y); in draw_clock()
147 draw_text(field.font, x, y, clock_str); in draw_clock()
166 int x, y; in draw_percent() local
167 determine_xy(field, str.size(), &x, &y); in draw_percent()
169 LOGV("drawing percent %s %d %d\n", str.c_str(), x, y); in draw_percent()
171 draw_text(field.font, x, y, str.c_str()); in draw_percent()