/bootable/recovery/recovery_ui/include/recovery_ui/ |
D | screen_ui.h | 32 class GRSurface; variable 63 virtual void DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx, 70 virtual void DrawTextIcon(int x, int y, const GRSurface* surface) const = 0; 170 GraphicMenu(const GRSurface* graphic_headers, const std::vector<const GRSurface*>& graphic_items, 179 static bool Validate(size_t max_width, size_t max_height, const GRSurface* graphic_headers, 180 const std::vector<const GRSurface*>& graphic_items); 184 const GRSurface* surface); 188 std::unique_ptr<GRSurface> graphic_headers_; 189 std::vector<std::unique_ptr<GRSurface>> graphic_items_; 269 virtual std::unique_ptr<Menu> CreateMenu(const GRSurface* graphic_header, [all …]
|
D | vr_ui.h | 36 void DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx, 41 void DrawTextIcon(int x, int y, const GRSurface* surface) const override;
|
/bootable/recovery/minui/include/minui/ |
D | minui.h | 35 class GRSurface { 39 virtual ~GRSurface() = default; 45 static std::unique_ptr<GRSurface> Create(size_t width, size_t height, size_t row_bytes, 49 std::unique_ptr<GRSurface> Clone() const; 56 return const_cast<const uint8_t*>(const_cast<GRSurface*>(this)->data()); in data() 69 GRSurface(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes) in GRSurface() function 83 DISALLOW_COPY_AND_ASSIGN(GRSurface); 87 GRSurface* texture; 127 void gr_texticon(int x, int y, const GRSurface* icon); 137 void gr_blit(const GRSurface* source, int sx, int sy, int w, int h, int dx, int dy); [all …]
|
/bootable/recovery/tests/unit/ |
D | minui_test.cpp | 28 auto surface = GRSurface::Create(9, 11, 9, 1); in TEST() 30 ASSERT_EQ(0, reinterpret_cast<uintptr_t>(surface->data()) % GRSurface::kSurfaceDataAlignment); in TEST() 32 ASSERT_EQ(0, surface->data_size() % GRSurface::kSurfaceDataAlignment); in TEST() 37 ASSERT_FALSE(GRSurface::Create(9, 11, 0, 1)); in TEST() 38 ASSERT_FALSE(GRSurface::Create(9, 0, 9, 1)); in TEST() 39 ASSERT_FALSE(GRSurface::Create(0, 11, 9, 1)); in TEST() 40 ASSERT_FALSE(GRSurface::Create(9, 11, 9, 0)); in TEST() 41 ASSERT_FALSE(GRSurface::Create(9, 101, std::numeric_limits<size_t>::max() / 100, 1)); in TEST() 45 auto image = GRSurface::Create(50, 10, 50, 1); in TEST()
|
D | screen_ui_test.cpp | 54 void DrawSurface(const GRSurface* /* surface */, int /* sx */, int /* sy */, int /* w */, in DrawSurface() argument 57 void DrawTextIcon(int /* x */, int /* y */, const GRSurface* /* surface */) const override {} in DrawTextIcon() 234 auto image = GRSurface::Create(50, 50, 50, 1); in TEST_F() 236 std::vector<const GRSurface*> items = { in TEST_F() 261 auto image = GRSurface::Create(50, 50, 50, 1); in TEST_F() 263 std::vector<const GRSurface*> items = { in TEST_F() 272 auto wide_surface = GRSurface::Create(300, 50, 300, 1); in TEST_F()
|
D | resources_test.cpp | 75 GRSurface** frames; in TEST()
|
/bootable/recovery/minui/ |
D | resources.cpp | 43 std::unique_ptr<GRSurface> GRSurface::Create(size_t width, size_t height, size_t row_bytes, in Create() 49 auto result = std::unique_ptr<GRSurface>(new GRSurface(width, height, row_bytes, pixel_bytes)); in Create() 59 std::unique_ptr<GRSurface> GRSurface::Clone() const { in Clone() 60 auto result = GRSurface::Create(width, height, row_bytes, pixel_bytes); in Clone() 186 int res_create_display_surface(const char* name, GRSurface** pSurface) { in res_create_display_surface() 196 auto surface = GRSurface::Create(width, height, width * 4, 4); in res_create_display_surface() 219 GRSurface*** pSurface) { in res_create_multi_display_surface() 247 GRSurface** surface = nullptr; in res_create_multi_display_surface() 260 surface = static_cast<GRSurface**>(calloc(*frames, sizeof(GRSurface*))); in res_create_multi_display_surface() 266 auto created_surface = GRSurface::Create(width, height / *frames, width * 4, 4); in res_create_multi_display_surface() [all …]
|
D | graphics_fbdev.h | 31 class GRSurfaceFbdev : public GRSurface { 42 using GRSurface::GRSurface; 56 GRSurface* Init() override; 57 GRSurface* Flip() override;
|
D | graphics_adf.h | 30 class GRSurfaceAdf : public GRSurface { 46 : GRSurface(width, height, row_bytes, pixel_bytes), offset(offset), pitch(pitch), fd(fd) {} in GRSurfaceAdf() 60 GRSurface* Init() override; 61 GRSurface* Flip() override;
|
D | graphics_drm.h | 29 class GRSurfaceDrm : public GRSurface { 45 : GRSurface(width, height, row_bytes, pixel_bytes), drm_fd_(drm_fd), handle(handle) {} in GRSurfaceDrm() 59 GRSurface* Init() override; 60 GRSurface* Flip() override;
|
D | graphics.h | 25 virtual GRSurface* Init() = 0; 29 virtual GRSurface* Flip() = 0;
|
D | graphics.cpp | 43 static GRSurface* gr_draw = nullptr; 124 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt() 191 void gr_texticon(int x, int y, const GRSurface* icon) { in gr_texticon() 261 void gr_blit(const GRSurface* source, int sx, int sy, int w, int h, int dx, int dy) { in gr_blit() 303 unsigned int gr_get_width(const GRSurface* surface) { in gr_get_width() 310 unsigned int gr_get_height(const GRSurface* surface) { in gr_get_height()
|
D | graphics_adf.cpp | 116 GRSurface* MinuiBackendAdf::Init() { in Init() 157 GRSurface* ret = Flip(); in Init() 181 GRSurface* MinuiBackendAdf::Flip() { in Flip()
|
D | graphics_fbdev.cpp | 58 GRSurface* MinuiBackendFbdev::Init() { in Init() 141 GRSurface* MinuiBackendFbdev::Flip() { in Flip()
|
D | graphics_drm.cpp | 285 GRSurface* MinuiBackendDrm::Init() { in Init() 372 GRSurface* MinuiBackendDrm::Flip() { in Flip()
|
/bootable/recovery/recovery_ui/ |
D | screen_ui.cpp | 201 GraphicMenu::GraphicMenu(const GRSurface* graphic_headers, in GraphicMenu() 202 const std::vector<const GRSurface*>& graphic_items, in GraphicMenu() 261 bool GraphicMenu::Validate(size_t max_width, size_t max_height, const GRSurface* graphic_headers, in Validate() 262 const std::vector<const GRSurface*>& graphic_items) { in Validate() 280 const GRSurface* surface) { in ValidateGraphicSurface() 348 const GRSurface* ScreenRecoveryUI::GetCurrentFrame() const { in GetCurrentFrame() 355 const GRSurface* ScreenRecoveryUI::GetCurrentText() const { in GetCurrentText() 530 std::unordered_map<std::string, std::unique_ptr<GRSurface>> surfaces; in SelectAndShowBackgroundText() 611 void ScreenRecoveryUI::DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx, in DrawSurface() 629 void ScreenRecoveryUI::DrawTextIcon(int x, int y, const GRSurface* surface) const { in DrawTextIcon() [all …]
|
D | vr_ui.cpp | 37 void VrRecoveryUI::DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx, in DrawSurface() 43 void VrRecoveryUI::DrawTextIcon(int x, int y, const GRSurface* surface) const { in DrawTextIcon()
|