Home
last modified time | relevance | path

Searched refs:y (Results 1 – 9 of 9) sorted by relevance

/bootable/recovery/recovery_ui/
Dvr_ui.cpp43 void VrRecoveryUI::DrawTextIcon(int x, int y, const GRSurface* surface) const { in DrawTextIcon() argument
44 gr_texticon(x + stereo_offset_, y, surface); in DrawTextIcon()
45 gr_texticon(x - stereo_offset_ + ScreenWidth(), y, surface); in DrawTextIcon()
48 int VrRecoveryUI::DrawTextLine(int x, int y, const std::string& line, bool bold) const { in DrawTextLine() argument
49 gr_text(gr_sys_font(), x + stereo_offset_, y, line.c_str(), bold); in DrawTextLine()
50 gr_text(gr_sys_font(), x - stereo_offset_ + ScreenWidth(), y, line.c_str(), bold); in DrawTextLine()
54 int VrRecoveryUI::DrawHorizontalRule(int y) const { in DrawHorizontalRule()
55 y += 4; in DrawHorizontalRule()
56 gr_fill(margin_width_ + stereo_offset_, y, ScreenWidth() - margin_width_ + stereo_offset_, y + 2); in DrawHorizontalRule()
57 gr_fill(ScreenWidth() + margin_width_ - stereo_offset_, y, in DrawHorizontalRule()
[all …]
Dscreen_ui.cpp157 int TextMenu::DrawHeader(int x, int y) const { in DrawHeader()
162 offset += draw_funcs_.DrawWrappedTextLines(x, y + offset, text_headers()); in DrawHeader()
164 offset += draw_funcs_.DrawTextLines(x, y + offset, text_headers()); in DrawHeader()
169 offset += draw_funcs_.DrawTextLine(x, y + offset, cur_selection_str, true); in DrawHeader()
176 int TextMenu::DrawItems(int x, int y, int screen_width, bool long_press) const { in DrawItems() argument
182 offset += draw_funcs_.DrawHorizontalRule(y + offset) + 4; in DrawItems()
191 draw_funcs_.DrawHighlightBar(0, y + offset - 2, screen_width, bar_height); in DrawItems()
197 offset += draw_funcs_.DrawTextLine(x, y + offset, TextItem(i), bold); in DrawItems()
201 offset += draw_funcs_.DrawHorizontalRule(y + offset); in DrawItems()
233 int GraphicMenu::DrawHeader(int x, int y) const { in DrawHeader()
[all …]
/bootable/recovery/minui/
Dgraphics.cpp48 static bool outside(int x, int y) { in outside() argument
50 return x < 0 || x >= (swapped ? gr_draw->height : gr_draw->width) || y < 0 || in outside()
51 y >= (swapped ? gr_draw->width : gr_draw->height); in outside()
70 int gr_font_size(const GRFont* font, int* x, int* y) { in gr_font_size() argument
76 *y = font->char_height; in gr_font_size()
167 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt() argument
170 return reinterpret_cast<uint32_t*>(surface->data()) + y * row_pixels + x; in PixelAt()
172 return reinterpret_cast<uint32_t*>(surface->data()) + x * row_pixels + (surface->width - y); in PixelAt()
174 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - y) * row_pixels + in PixelAt()
178 y; in PixelAt()
[all …]
Dresources.cpp233 for (png_uint_32 y = 0; y < height; ++y) { in res_create_display_surface() local
236 TransformRgbToDraw(p_row.data(), surface->data() + y * surface->row_bytes, in res_create_display_surface()
307 for (png_uint_32 y = 0; y < height; ++y) { in res_create_multi_display_surface() local
310 int frame = y % *frames; in res_create_multi_display_surface()
311 uint8_t* out_row = surface[frame]->data() + (y / *frames) * surface[frame]->row_bytes; in res_create_multi_display_surface()
348 for (png_uint_32 y = 0; y < height; ++y) { in res_create_alpha_surface() local
349 uint8_t* p_row = surface->data() + y * surface->row_bytes; in res_create_alpha_surface()
403 for (png_uint_32 y = 0; y < png_handler.height(); ++y) { in get_locales_in_png() local
410 for (int i = 0; i < h; ++i, ++y) { in get_locales_in_png()
437 for (png_uint_32 y = 0; y < height; ++y) { in res_create_localized_alpha_surface() local
[all …]
/bootable/recovery/recovery_ui/include/recovery_ui/
Dscreen_ui.h54 virtual void DrawHighlightBar(int x, int y, int width, int height) const = 0;
57 virtual int DrawHorizontalRule(int y) const = 0;
60 virtual int DrawTextLine(int x, int y, const std::string& line, bool bold) const = 0;
67 virtual void DrawFill(int x, int y, int w, int h) const = 0;
70 virtual void DrawTextIcon(int x, int y, const GRSurface* surface) const = 0;
73 virtual int DrawTextLines(int x, int y, const std::vector<std::string>& lines) const = 0;
78 virtual int DrawWrappedTextLines(int x, int y, const std::vector<std::string>& lines) const = 0;
91 virtual int DrawHeader(int x, int y) const = 0;
93 virtual int DrawItems(int x, int y, int screen_width, bool long_press) const = 0;
113 int DrawHeader(int x, int y) const override;
[all …]
Dvr_ui.h38 int DrawHorizontalRule(int y) const override;
39 void DrawHighlightBar(int x, int y, int width, int height) const override;
40 void DrawFill(int x, int y, int w, int h) const override;
41 void DrawTextIcon(int x, int y, const GRSurface* surface) const override;
42 int DrawTextLine(int x, int y, const std::string& line, bool bold) const override;
/bootable/recovery/tests/testdata/
Drecovery_body198  !"#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`ABCDEFGHIJKLMNOP…
199 y�����u:object_r:rootfs:s0�
205  !"#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`ABCDEFGHIJKLMNOP…
206 y�����u:object_r:rootfs:s0� ���/res(/.*)?������������������S2RP
211  !"#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`ABCDEFGHIJKLMNOP…
212 y� y�����u:object_r:rootfs:s0�
219  !"#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`ABCDEFGHIJKLMNOP…
220 y�����u:object_r:rootfs:s0� ���/sbin(/.*)?������������������S2RP
225  !"#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`ABCDEFGHIJKLMNOP…
226 y� y�����u:object_r:device:s0� ���/dev(/.*)?������������������S2RP
[all …]
/bootable/recovery/tests/unit/
Dresources_test.cpp110 for (png_uint_32 y = 0; y < png_->height(); ++y) { in TEST_P() local
120 ASSERT_GE(png_->height(), y + 1 + h) << "Locale: " << kLocale << " is not found in the file."; in TEST_P()
126 for (int i = 0; i < h; ++i, ++y) { in TEST_P()
/bootable/recovery/minui/include/minui/
Dminui.h139 void gr_texticon(int x, int y, const GRSurface* icon);
143 void gr_text(const GRFont* font, int x, int y, const char* s, bool bold);
147 int gr_font_size(const GRFont* font, int* x, int* y);