Lines Matching refs:y

152 int TextMenu::DrawHeader(int x, int y) const {  in DrawHeader()
157 offset += draw_funcs_.DrawWrappedTextLines(x, y + offset, text_headers()); in DrawHeader()
159 offset += draw_funcs_.DrawTextLines(x, y + offset, text_headers()); in DrawHeader()
164 offset += draw_funcs_.DrawTextLine(x, y + offset, cur_selection_str, true); in DrawHeader()
171 int TextMenu::DrawItems(int x, int y, int screen_width, bool long_press) const { in DrawItems() argument
177 offset += draw_funcs_.DrawHorizontalRule(y + offset) + 4; in DrawItems()
186 draw_funcs_.DrawHighlightBar(0, y + offset - 2, screen_width, bar_height); in DrawItems()
192 offset += draw_funcs_.DrawTextLine(x, y + offset, TextItem(i), bold); in DrawItems()
196 offset += draw_funcs_.DrawHorizontalRule(y + offset); in DrawItems()
228 int GraphicMenu::DrawHeader(int x, int y) const { in DrawHeader()
230 draw_funcs_.DrawTextIcon(x, y, graphic_headers_.get()); in DrawHeader()
234 int GraphicMenu::DrawItems(int x, int y, int screen_width, bool long_press) const { in DrawItems() argument
238 offset += draw_funcs_.DrawHorizontalRule(y + offset) + 4; in DrawItems()
246 draw_funcs_.DrawHighlightBar(0, y + offset - 2, screen_width, bar_height); in DrawItems()
251 draw_funcs_.DrawTextIcon(x, y + offset, item.get()); in DrawItems()
256 offset += draw_funcs_.DrawHorizontalRule(y + offset); in DrawItems()
279 bool GraphicMenu::ValidateGraphicSurface(size_t max_width, size_t max_height, int y, in ValidateGraphicSurface() argument
292 if (surface->width > max_width || surface->height > max_height - y) { in ValidateGraphicSurface()
296 surface->width, surface->height, max_width, max_height, y); in ValidateGraphicSurface()
427 int y = ScreenHeight() - stage_height - margin_height_; in draw_background_locked() local
430 DrawSurface(stage_surface.get(), 0, 0, stage_width, stage_height, x, y); in draw_background_locked()
616 int ScreenRecoveryUI::DrawHorizontalRule(int y) const { in DrawHorizontalRule()
617 gr_fill(0, y + 4, ScreenWidth(), y + 6); in DrawHorizontalRule()
621 void ScreenRecoveryUI::DrawHighlightBar(int x, int y, int width, int height) const { in DrawHighlightBar() argument
622 gr_fill(x, y, x + width, y + height); in DrawHighlightBar()
625 void ScreenRecoveryUI::DrawFill(int x, int y, int w, int h) const { in DrawFill() argument
626 gr_fill(x, y, w, h); in DrawFill()
629 void ScreenRecoveryUI::DrawTextIcon(int x, int y, const GRSurface* surface) const { in DrawTextIcon() argument
630 gr_texticon(x, y, surface); in DrawTextIcon()
633 int ScreenRecoveryUI::DrawTextLine(int x, int y, const std::string& line, bool bold) const { in DrawTextLine() argument
634 gr_text(gr_sys_font(), x, y, line.c_str(), bold); in DrawTextLine()
638 int ScreenRecoveryUI::DrawTextLines(int x, int y, const std::vector<std::string>& lines) const { in DrawTextLines() argument
641 offset += DrawTextLine(x, y + offset, line, false); in DrawTextLines()
646 int ScreenRecoveryUI::DrawWrappedTextLines(int x, int y, in DrawWrappedTextLines() argument
669 offset += DrawTextLine(x, y + offset, sub, false); in DrawWrappedTextLines()
710 int y = margin_height_; in draw_menu_and_text_buffer_locked() local
717 DrawSurface(fastbootd_logo_.get(), 0, 0, width, height, centered_x, y); in draw_menu_and_text_buffer_locked()
718 y += height; in draw_menu_and_text_buffer_locked()
727 y += DrawTextLine(x, y, title_lines_[i], i == 0); in draw_menu_and_text_buffer_locked()
730 y += DrawTextLines(x, y, help_message); in draw_menu_and_text_buffer_locked()
732 y += menu_->DrawHeader(x, y); in draw_menu_and_text_buffer_locked()
733 y += menu_->DrawItems(x, y, ScreenWidth(), IsLongPress()); in draw_menu_and_text_buffer_locked()
741 for (int ty = ScreenHeight() - margin_height_ - char_height_; ty >= y && count < text_rows_; in draw_menu_and_text_buffer_locked()