Home
last modified time | relevance | path

Searched refs:GRSurface (Results 1 – 22 of 22) sorted by relevance

/aosp12/bootable/recovery/recovery_ui/include/recovery_ui/
H A Dscreen_ui.h32 class GRSurface; variable
170 GraphicMenu(const GRSurface* graphic_headers, const std::vector<const GRSurface*>& graphic_items,
188 std::unique_ptr<GRSurface> graphic_headers_;
299 const GRSurface* GetCurrentFrame() const;
300 const GRSurface* GetCurrentText() const;
339 std::unique_ptr<GRSurface> erasing_text_;
340 std::unique_ptr<GRSurface> error_text_;
341 std::unique_ptr<GRSurface> installing_text_;
347 std::unique_ptr<GRSurface> try_again_text_;
351 std::unique_ptr<GRSurface> fastbootd_logo_;
[all …]
H A Dvr_ui.h36 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;
/aosp12/bootable/recovery/minui/include/minui/
H A Dminui.h35 class GRSurface {
39 virtual ~GRSurface() = default;
49 std::unique_ptr<GRSurface> Clone() const;
83 DISALLOW_COPY_AND_ASSIGN(GRSurface);
87 GRSurface* texture;
127 void gr_texticon(int x, int y, const GRSurface* icon);
138 unsigned int gr_get_width(const GRSurface* surface);
139 unsigned int gr_get_height(const GRSurface* surface);
197 GRSurface*** pSurface);
209 GRSurface** pSurface);
[all …]
/aosp12/bootable/recovery/tests/unit/
H A Dminui_test.cpp28 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()
H A Dscreen_ui_test.cpp54 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()
H A Dresources_test.cpp75 GRSurface** frames; in TEST()
/aosp12/bootable/recovery/minui/
H A Dresources.cpp43 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()
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()
314 auto surface = GRSurface::Create(width, height, width, 1); in res_create_alpha_surface()
396 GRSurface** pSurface) { in res_create_localized_alpha_surface()
430 auto surface = GRSurface::Create(w, h, w, 1); in res_create_localized_alpha_surface()
[all …]
H A Dgraphics_fbdev.h31 class GRSurfaceFbdev : public GRSurface {
42 using GRSurface::GRSurface;
56 GRSurface* Init() override;
57 GRSurface* Flip() override;
H A Dgraphics_drm.h29 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;
H A Dgraphics.h25 virtual GRSurface* Init() = 0;
29 virtual GRSurface* Flip() = 0;
H A Dgraphics.cpp42 static GRSurface* gr_draw = nullptr;
123 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt()
190 void gr_texticon(int x, int y, const GRSurface* icon) { in gr_texticon()
260 void gr_blit(const GRSurface* source, int sx, int sy, int w, int h, int dx, int dy) { in gr_blit()
302 unsigned int gr_get_width(const GRSurface* surface) { in gr_get_width()
309 unsigned int gr_get_height(const GRSurface* surface) { in gr_get_height()
H A Dgraphics_fbdev.cpp58 GRSurface* MinuiBackendFbdev::Init() { in Init()
141 GRSurface* MinuiBackendFbdev::Flip() { in Flip()
H A Dgraphics_drm.cpp285 GRSurface* MinuiBackendDrm::Init() { in Init()
372 GRSurface* MinuiBackendDrm::Flip() { in Flip()
/aosp12/system/core/healthd/
H A Dhealthd_mode_charger.h30 class GRSurface; variable
57 virtual int CreateDisplaySurface(const std::string& name, GRSurface** surface);
59 GRSurface*** surface);
83 GRSurface* surf_unknown_ = nullptr;
H A Dhealthd_draw.h34 void redraw_screen(const animation* batt_anim, GRSurface* surf_unknown);
43 virtual int draw_surface_centered(GRSurface* surface);
59 virtual void draw_unknown(GRSurface* surf_unknown);
H A Dhealthd_mode_charger_test.cpp111 MOCK_METHOD(int, CreateDisplaySurface, (const std::string& name, GRSurface** surface));
113 (const std::string& name, int* frames, int* fps, GRSurface*** surface));
139 GRSurface* multi[] = {nullptr}; in ExpectChargerResAt()
142 .WillRepeatedly(Invoke([](const auto&, GRSurface** surface) { in ExpectChargerResAt()
148 .WillRepeatedly(Invoke([&](const auto&, int* frames, int* fps, GRSurface*** surface) { in ExpectChargerResAt()
H A Danimation.h24 class GRSurface; variable
37 GRSurface* surface;
H A Dhealthd_draw.cpp81 void HealthdDraw::redraw_screen(const animation* batt_anim, GRSurface* surf_unknown) { in redraw_screen()
105 int HealthdDraw::draw_surface_centered(GRSurface* surface) { in draw_surface_centered()
226 void HealthdDraw::draw_unknown(GRSurface* surf_unknown) { in draw_unknown()
H A Dhealthd_mode_charger.cpp707 GRSurface** scale_frames; in Init()
741 int Charger::CreateDisplaySurface(const std::string& name, GRSurface** surface) { in CreateDisplaySurface()
746 GRSurface*** surface) { in CreateMultiDisplaySurface()
/aosp12/bootable/recovery/recovery_ui/
H A Dscreen_ui.cpp201 GraphicMenu::GraphicMenu(const GRSurface* graphic_headers, in GraphicMenu()
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()
817 GRSurface* surface; in LoadBitmap()
822 return std::unique_ptr<GRSurface>(surface); in LoadBitmap()
826 GRSurface* surface; in LoadLocalizedBitmap()
829 return std::unique_ptr<GRSurface>(surface); in LoadLocalizedBitmap()
837 return std::unique_ptr<GRSurface>(surface); in LoadLocalizedBitmap()
[all …]
H A Dvr_ui.cpp37 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()
/aosp12/system/extras/slideshow/
H A Dslideshow.cpp60 GRSurface* surface; in draw()