Home
last modified time | relevance | path

Searched refs:x (Results 1 – 11 of 11) 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()
69 void VrRecoveryUI::DrawFill(int x, int y, int w, int h) const { in DrawFill() argument
70 gr_fill(x + stereo_offset_, y, w, h); in DrawFill()
71 gr_fill(x - stereo_offset_ + ScreenWidth(), y, w, h); in DrawFill()
Dscreen_ui.cpp151 int TextMenu::DrawHeader(int x, int y) const { in DrawHeader() argument
156 offset += draw_funcs_.DrawWrappedTextLines(x, y + offset, text_headers()); in DrawHeader()
158 offset += draw_funcs_.DrawTextLines(x, y + offset, text_headers()); in DrawHeader()
163 offset += draw_funcs_.DrawTextLine(x, y + offset, cur_selection_str, true); in DrawHeader()
170 int TextMenu::DrawItems(int x, int y, int screen_width, bool long_press) const { in DrawItems() argument
191 offset += draw_funcs_.DrawTextLine(x, y + offset, TextItem(i), bold); in DrawItems()
227 int GraphicMenu::DrawHeader(int x, int y) const { in DrawHeader() argument
229 draw_funcs_.DrawTextIcon(x, y, graphic_headers_.get()); in DrawHeader()
233 int GraphicMenu::DrawItems(int x, int y, int screen_width, bool long_press) const { in DrawItems() argument
250 draw_funcs_.DrawTextIcon(x, y + offset, item.get()); in DrawItems()
[all …]
/bootable/recovery/minui/
Dgraphics.cpp47 static bool outside(int x, int y) { in outside() argument
49 return x < 0 || x >= (swapped ? gr_draw->height : gr_draw->width) || y < 0 || in outside()
69 int gr_font_size(const GRFont* font, int* x, int* y) { in gr_font_size() argument
74 *x = font->char_width; in gr_font_size()
124 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt() argument
127 return reinterpret_cast<uint32_t*>(surface->data()) + y * row_pixels + x; in PixelAt()
129 return reinterpret_cast<uint32_t*>(surface->data()) + x * row_pixels + (surface->width - y); in PixelAt()
132 (surface->width - 1 - x); in PixelAt()
134 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - x) * row_pixels + in PixelAt()
158 void gr_text(const GRFont* font, int x, int y, const char* s, bool bold) { in gr_text() argument
[all …]
Dresources.cpp160 for (int x = 0; x < width; ++x) { in TransformRgbToDraw() local
171 for (int x = 0; x < width; ++x) { in TransformRgbToDraw() local
/bootable/recovery/recovery_ui/include/recovery_ui/
Dvr_ui.h39 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;
Dscreen_ui.h54 virtual void DrawHighlightBar(int x, int y, int width, int height) 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;
114 int DrawItems(int x, int y, int screen_width, bool long_press) const override;
[all …]
/bootable/recovery/updater_sample/
DREADME.md207 - [x] Create a UI with list of configs, current version,
209 - [x] Add `PayloadSpec` and `PayloadSpecs` for working with
211 - [x] Add `UpdateConfig` for working with json config files
212 - [x] Add applying non-streaming update
213 - [x] Prepare streaming update (partially downloading package)
214 - [x] Add applying streaming update
215 - [x] Add stop/reset the update
216 - [x] Add demo for passing HTTP headers to `UpdateEngine#applyPayload`
217 - [x] [Package compatibility check](https://source.android.com/devices/architecture/vintf/match-rul…
218 - [x] Deferred switch slot demo
[all …]
/bootable/recovery/minui/include/minui/
Dminui.h126 void gr_texticon(int x, int y, const GRSurface* icon);
130 void gr_text(const GRFont* font, int x, int y, const char* s, bool bold);
134 int gr_font_size(const GRFont* font, int* x, int* y);
/bootable/recovery/edify/
Dlexer.ll36 %x STR
68 \\x[0-9a-fA-F]{2} {
72 sscanf(yytext+2, "%x", &val);
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/
DMain.java310 int x = 5;
312 out.setPixel(x, p, colorFor(b));
313 x++;
315 out.setPixel(x, p, colorFor(0));
/bootable/recovery/tools/image_generator/
DImageGenerator.java556 int x = in drawText() local
562 graphics.drawString(lineInfo.mLineContent.getIterator(), x, baseLine); in drawText() local