/bootable/recovery/minui/ |
D | graphics_fbdev.cpp | 35 std::unique_ptr<GRSurfaceFbdev> GRSurfaceFbdev::Create(size_t width, size_t height, in Create() argument 38 return std::unique_ptr<GRSurfaceFbdev>(new GRSurfaceFbdev(width, height, row_bytes, pixel_bytes)); in Create() 62 vi.yres_virtual = gr_framebuffer[0]->height * 2; in SetDisplayedFramebuffer() 63 vi.yoffset = n * gr_framebuffer[0]->height; in SetDisplayedFramebuffer() 120 memset(gr_framebuffer[0]->buffer_, 0, gr_framebuffer[0]->height * gr_framebuffer[0]->row_bytes); in Init() 123 GRSurfaceFbdev::Create(gr_framebuffer[0]->width, gr_framebuffer[0]->height, in Init() 131 gr_framebuffer[0]->buffer_ + gr_framebuffer[0]->height * gr_framebuffer[0]->row_bytes; in Init() 137 memory_buffer.resize(gr_framebuffer[1]->height * gr_framebuffer[1]->row_bytes); in Init() 142 memset(gr_draw->buffer_, 0, gr_draw->height * gr_draw->row_bytes); in Init() 146 printf("framebuffer: %d (%zu x %zu)\n", fb_fd.get(), gr_draw->width, gr_draw->height); in Init() [all …]
|
D | resources.cpp | 43 std::unique_ptr<GRSurface> GRSurface::Create(size_t width, size_t height, size_t row_bytes, in Create() argument 45 if (width == 0 || row_bytes == 0 || height == 0 || pixel_bytes == 0) return nullptr; in Create() 46 if (std::numeric_limits<size_t>::max() / row_bytes < height) return nullptr; in Create() 49 auto result = std::unique_ptr<GRSurface>(new GRSurface(width, height, row_bytes, pixel_bytes)); in Create() 50 size_t data_size = row_bytes * height; in Create() 60 auto result = GRSurface::Create(width, height, row_bytes, pixel_bytes); in Clone() 219 png_uint_32 height = png_handler.height(); in res_create_display_surface() local 221 auto surface = GRSurface::Create(width, height, width * 4, 4); in res_create_display_surface() 233 for (png_uint_32 y = 0; y < height; ++y) { in res_create_display_surface() 255 png_uint_32 height = png_handler.height(); in res_create_multi_display_surface() local [all …]
|
D | graphics.cpp | 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() 174 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - y) * row_pixels + in PixelAt() 177 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - x) * row_pixels + in PixelAt() 186 int width, int height) { in TextBlend() argument 188 for (int j = 0; j < height; ++j) { in TextBlend() 209 bold = bold && (font->texture->height != font->char_height); in gr_text() 245 if (outside(x, y) || outside(x + icon->width - 1, y + icon->height - 1)) return; in gr_texticon() 250 TextBlend(src_p, icon->row_bytes, dst_p, row_pixels, icon->width, icon->height); in gr_texticon() 269 memset(gr_draw->data(), gr_current & 0xff, gr_draw->height * gr_draw->row_bytes); in gr_clear() [all …]
|
D | graphics_drm.cpp | 40 munmap(mmapped_buffer_, row_bytes * height); in ~GRSurfaceDrm() 79 std::unique_ptr<GRSurfaceDrm> GRSurfaceDrm::Create(int drm_fd, int width, int height) { in Create() argument 99 create_dumb.height = height; in Create() 108 printf("Allocating buffer with resolution %d x %d pitch: %d bpp: %d, size: %llu\n", width, height, in Create() 113 width, height, create_dumb.pitch, create_dumb.bpp / 8, drm_fd, create_dumb.handle)); in Create() 120 if (drmModeAddFB2(drm_fd, width, height, format, handles, pitches, offsets, &surface->fb_id, 0) != in Create() 388 int height = drm[i].monitor_crtc->mode.vdisplay; in Init() local 390 drm[i].GRSurfaceDrms[0] = GRSurfaceDrm::Create(drm_fd, width, height); in Init() 391 drm[i].GRSurfaceDrms[1] = GRSurfaceDrm::Create(drm_fd, width, height); in Init()
|
D | graphics_drm.h | 34 static std::unique_ptr<GRSurfaceDrm> Create(int drm_fd, int width, int height); 43 GRSurfaceDrm(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes, int drm_fd, in GRSurfaceDrm() argument 45 : GRSurface(width, height, row_bytes, pixel_bytes), drm_fd_(drm_fd), handle(handle) {} in GRSurfaceDrm()
|
D | graphics_fbdev.h | 34 static std::unique_ptr<GRSurfaceFbdev> Create(size_t width, size_t height, size_t row_bytes,
|
/bootable/recovery/minui/include/minui/ |
D | minui.h | 45 static std::unique_ptr<GRSurface> Create(size_t width, size_t height, size_t row_bytes, 64 size_t height; variable 69 GRSurface(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes) in GRSurface() argument 70 : width(width), height(height), row_bytes(row_bytes), pixel_bytes(pixel_bytes) {} in GRSurface()
|
/bootable/recovery/ |
D | interlace-frames.py | 81 width, height = img.size 82 height /= num_frames 84 out = Image.new('RGB', (width, height)) 87 for j in range(height):
|
/bootable/recovery/recovery_ui/ |
D | vr_ui.cpp | 62 void VrRecoveryUI::DrawHighlightBar(int /* x */, int y, int /* width */, int height) const { in DrawHighlightBar() 64 y + height); in DrawHighlightBar() 66 gr_fb_width() - margin_width_ - stereo_offset_, y + height); in DrawHighlightBar()
|
D | screen_ui.cpp | 236 return graphic_headers_->height; in DrawHeader() 250 int bar_height = item->height + 4; in DrawItems() 257 offset += item->height; in DrawItems() 272 offset += graphic_headers->height; in Validate() 278 offset += item->height; in Validate() 297 if (surface->width > max_width || surface->height > max_height - y) { in ValidateGraphicSurface() 301 surface->width, surface->height, max_width, max_height, y); in ValidateGraphicSurface() 465 int height = gr_get_height(progress_bar_empty_.get()); in draw_foreground_locked() local 472 DrawFill(progress_x, progress_y, width, height); in draw_foreground_locked() 481 DrawSurface(progress_bar_fill_.get(), width - pos, 0, pos, height, in draw_foreground_locked() [all …]
|
D | wear_ui.cpp | 157 int height = gr_get_height(first_progress_frame); in draw_circle_foreground_locked() local 166 DrawSurface(frame, 0, 0, width, height, progress_x, progress_y); in draw_circle_foreground_locked()
|
/bootable/recovery/tests/unit/ |
D | resources_test.cpp | 100 ASSERT_LT(static_cast<png_uint_32>(0), png_->height()); in SetUp() 110 for (png_uint_32 y = 0; y < png_->height(); ++y) { in TEST_P() 120 ASSERT_GE(png_->height(), y + 1 + h) << "Locale: " << kLocale << " is not found in the file."; in TEST_P()
|
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/ |
D | Main.java | 226 int height = 2; 233 height += h+1; 245 Log.i(TAG, "output bitmap is " + width + " x " + height); 246 Bitmap out = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
|
/bootable/recovery/recovery_ui/include/recovery_ui/ |
D | vr_ui.h | 39 void DrawHighlightBar(int x, int y, int width, int height) const override;
|
D | screen_ui.h | 54 virtual void DrawHighlightBar(int x, int y, int width, int height) const = 0; 328 void DrawHighlightBar(int x, int y, int width, int height) const override;
|
/bootable/recovery/tools/image_generator/ |
D | ImageGenerator.java | 463 private List<Integer> encodeTextInfo(int width, int height, String locale) { in encodeTextInfo() argument 469 height & 0xff, in encodeTextInfo() 470 height >> 8, in encodeTextInfo() 578 private void resize(int width, int height) { in resize() argument 579 BufferedImage resizedImage = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_GRAY); in resize() 586 mImageHeight = height; in resize()
|
/bootable/recovery/minui/include/private/ |
D | resources.h | 39 png_uint_32 height() const { in height() function
|