/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() 49 vi.yres_virtual = gr_framebuffer[0]->height * 2; in SetDisplayedFramebuffer() 50 vi.yoffset = n * gr_framebuffer[0]->height; in SetDisplayedFramebuffer() 107 memset(gr_framebuffer[0]->buffer_, 0, gr_framebuffer[0]->height * gr_framebuffer[0]->row_bytes); in Init() 110 GRSurfaceFbdev::Create(gr_framebuffer[0]->width, gr_framebuffer[0]->height, in Init() 118 gr_framebuffer[0]->buffer_ + gr_framebuffer[0]->height * gr_framebuffer[0]->row_bytes; in Init() 124 memory_buffer.resize(gr_framebuffer[1]->height * gr_framebuffer[1]->row_bytes); in Init() 129 memset(gr_draw->buffer_, 0, gr_draw->height * gr_draw->row_bytes); in Init() 133 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() 194 png_uint_32 height = png_handler.height(); in res_create_display_surface() local 196 auto surface = GRSurface::Create(width, height, width * 4, 4); in res_create_display_surface() 206 for (png_uint_32 y = 0; y < height; ++y) { in res_create_display_surface() 228 png_uint_32 height = png_handler.height(); in res_create_multi_display_surface() local [all …]
|
D | graphics.cpp | 49 return x < 0 || x >= (swapped ? gr_draw->height : gr_draw->width) || y < 0 || in outside() 50 y >= (swapped ? gr_draw->width : gr_draw->height); in outside() 131 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - y) * row_pixels + in PixelAt() 134 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - x) * row_pixels + in PixelAt() 143 int width, int height) { in TextBlend() argument 145 for (int j = 0; j < height; ++j) { in TextBlend() 166 bold = bold && (font->texture->height != font->char_height); in gr_text() 202 if (outside(x, y) || outside(x + icon->width - 1, y + icon->height - 1)) return; in gr_texticon() 207 TextBlend(src_p, icon->row_bytes, dst_p, row_pixels, icon->width, icon->height); in gr_texticon() 224 memset(gr_draw->data(), gr_current & 0xff, gr_draw->height * gr_draw->row_bytes); in gr_clear() [all …]
|
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_drm.cpp | 40 munmap(mmapped_buffer_, row_bytes * height); in ~GRSurfaceDrm() 77 std::unique_ptr<GRSurfaceDrm> GRSurfaceDrm::Create(int drm_fd, int width, int height) { in Create() argument 95 create_dumb.height = height; in Create() 107 width, height, create_dumb.pitch, create_dumb.bpp / 8, drm_fd, create_dumb.handle)); in Create() 114 if (drmModeAddFB2(drm_fd, width, height, format, handles, pitches, offsets, &surface->fb_id, 0) != in Create() 127 auto mmapped = mmap(nullptr, surface->height * surface->row_bytes, PROT_READ | PROT_WRITE, in Create() 340 int height = main_monitor_crtc->mode.vdisplay; in Init() local 344 GRSurfaceDrms[0] = GRSurfaceDrm::Create(drm_fd, width, height); in Init() 345 GRSurfaceDrms[1] = GRSurfaceDrm::Create(drm_fd, width, height); in Init()
|
D | graphics_adf.h | 44 GRSurfaceAdf(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes, __u32 offset, in GRSurfaceAdf() argument 46 : GRSurface(width, height, row_bytes, pixel_bytes), offset(offset), pitch(pitch), fd(fd) {} in GRSurfaceAdf()
|
D | graphics_adf.cpp | 34 munmap(mmapped_buffer_, pitch * height); in ~GRSurfaceAdf() 61 mmap(nullptr, surf->pitch * surf->height, PROT_WRITE, MAP_SHARED, surf->fd, surf->offset); in Create() 184 int fence_fd = adf_interface_simple_post(intf_fd, eng_id, surf->width, surf->height, format, in Flip()
|
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 | 230 return graphic_headers_->height; in DrawHeader() 244 int bar_height = item->height + 4; in DrawItems() 251 offset += item->height; in DrawItems() 266 offset += graphic_headers->height; in Validate() 272 offset += item->height; in Validate() 291 if (surface->width > max_width || surface->height > max_height - y) { in ValidateGraphicSurface() 295 surface->width, surface->height, max_width, max_height, y); in ValidateGraphicSurface() 456 int height = gr_get_height(progress_bar_empty_.get()); in draw_foreground_locked() local 463 DrawFill(progress_x, progress_y, width, height); in draw_foreground_locked() 472 DrawSurface(progress_bar_fill_.get(), width - pos, 0, pos, height, in draw_foreground_locked() [all …]
|
/bootable/recovery/tests/component/ |
D | resources_test.cpp | 84 ASSERT_LT(static_cast<png_uint_32>(0), png_->height()); in SetUp() 94 for (png_uint_32 y = 0; y < png_->height(); ++y) { in TEST_P() 104 ASSERT_GE(png_->height(), y + 1 + h) << "Locale: " << kLocale << " is not found in the file."; in TEST_P()
|
/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; 322 void DrawHighlightBar(int x, int y, int width, int height) const override;
|
/bootable/recovery/minui/include/private/ |
D | resources.h | 39 png_uint_32 height() const { in height() function
|
/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/tools/image_generator/ |
D | ImageGenerator.java | 467 private List<Integer> encodeTextInfo(int width, int height, String locale) { in encodeTextInfo() argument 473 height & 0xff, in encodeTextInfo() 474 height >> 8, in encodeTextInfo() 582 private void resize(int width, int height) { in resize() argument 583 BufferedImage resizedImage = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_GRAY); in resize() 590 mImageHeight = height; in resize()
|