Lines Matching refs:width
286 if (surface->pixel_bytes != 1 || surface->width != surface->row_bytes) { in ValidateGraphicSurface()
288 surface->pixel_bytes, surface->width, surface->row_bytes); in ValidateGraphicSurface()
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()
458 int width = gr_get_width(progress_bar_empty_.get()); in draw_foreground_locked() local
461 int progress_x = (ScreenWidth() - width) / 2; in draw_foreground_locked()
466 DrawFill(progress_x, progress_y, width, height); in draw_foreground_locked()
470 int pos = static_cast<int>(p * width); in draw_foreground_locked()
475 DrawSurface(progress_bar_fill_.get(), width - pos, 0, pos, height, in draw_foreground_locked()
476 progress_x + width - pos, progress_y); in draw_foreground_locked()
478 if (pos < width - 1) { in draw_foreground_locked()
479 DrawSurface(progress_bar_empty_.get(), 0, 0, width - pos, height, progress_x, progress_y); in draw_foreground_locked()
486 if (pos < width - 1) { in draw_foreground_locked()
487 DrawSurface(progress_bar_empty_.get(), pos, 0, width - pos, height, progress_x + pos, in draw_foreground_locked()
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()
714 auto width = gr_get_width(fastbootd_logo_.get()); in draw_menu_and_text_buffer_locked() local
716 auto centered_x = ScreenWidth() / 2 - width / 2; in draw_menu_and_text_buffer_locked()
717 DrawSurface(fastbootd_logo_.get(), 0, 0, width, height, centered_x, y); in draw_menu_and_text_buffer_locked()
1035 int width = gr_get_width(progress_bar_empty_.get()); in SetProgress() local
1036 float scale = width * progressScopeSize; in SetProgress()