platform_bootable_recovery/minui
Tao Bao 2201d08f8d minui: Fix a wrong arg in calling GRSurface::Create().
This is a bug introduced while refactoring init_display_surface(), in
[1]. As a result, user of res_create_multi_display_surface(), which is
effectively `charger` right now, crashes due to buffer overrun.

This CL fixes the wrong arg and adds a sanity test for
res_create_multi_display_surface(). The testdata (battery_scale.png) is
copied from system/core/healthd/images/battery_scale.png.

[1] commit 44820ac1e3.

Bug: 119122296
Test: Run recovery_unit_test on marlin.
Test: Build and boot into charger mode on blueline. Verify that
      `charger` no longer crashes.
Change-Id: Ib6d083e1512a9c3c6eb63874d26d22658921d693
2018-11-26 17:06:53 -08:00
..
include minui: GRSurface manages data with std::unique_ptr. 2018-11-07 14:36:45 -08:00
Android.bp recovery uses more shared libraries. 2018-08-08 14:26:27 -07:00
events.cpp Add missing includes. 2017-10-11 11:47:54 -07:00
graphics.cpp minui: Move GRSurface into a class. 2018-10-22 18:18:02 -07:00
graphics.h minui: Move graphics_{adf,drm,fbdev} into classes. 2017-02-10 17:05:15 -08:00
graphics_adf.cpp minui: Refactor GRSurfaceAdf. 2018-10-31 20:28:29 -07:00
graphics_adf.h minui: Refactor GRSurfaceAdf. 2018-10-31 20:28:29 -07:00
graphics_drm.cpp minui: Remove the default and copy ctors for GRSurface. 2018-10-31 20:28:29 -07:00
graphics_drm.h minui: Remove the default and copy ctors for GRSurface. 2018-10-31 20:28:29 -07:00
graphics_fbdev.cpp minui: Use android::base::unique_fd in MinuiBackendFbdev. 2018-11-02 09:35:08 -07:00
graphics_fbdev.h minui: Use android::base::unique_fd in MinuiBackendFbdev. 2018-11-02 09:35:08 -07:00
resources.cpp minui: Fix a wrong arg in calling GRSurface::Create(). 2018-11-26 17:06:53 -08:00