aboutsummaryrefslogtreecommitdiff
path: root/minui/graphics_fbdev.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-13.0.0_r16' into ↵Michael Bestas2022-12-061-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | staging/lineage-20.0_merge-android-13.0.0_r16 Android 13.0.0 Release 16 (TQ1A.221205.011) # -----BEGIN PGP SIGNATURE----- # # iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCY45r9QAKCRDorT+BmrEO # eIu9AJ9LTDvELjvd/VCi/3krLTeKYx3R8wCbB+NiqpsnVsKKuZ/40XkPXtm19FU= # =YZIx # -----END PGP SIGNATURE----- # gpg: Signature made Tue Dec 6 00:08:53 2022 EET # gpg: using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78 # gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal] # gpg: initial-contribution@android.com: Verified 1389 signatures in the past # 13 months. Encrypted 4 messages in the past 10 months. # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 4340 D135 70EF 945E 8381 0964 E8AD 3F81 9AB1 0E78 # By Bill Yi (11) and others # Via Automerger Merge Worker (44) and others * tag 'android-13.0.0_r16': Fix misconfigured recovery host test Import translations. DO NOT MERGE ANYWHERE Import translations. DO NOT MERGE ANYWHERE Import translations. DO NOT MERGE ANYWHERE recovery_ui:Add support for multiple connectors switch minui: Add API to support multiple connectors detection Import translations. DO NOT MERGE ANYWHERE Import translations. DO NOT MERGE ANYWHERE Import translations. DO NOT MERGE ANYWHERE Fix misconfigured recovery host test Fix misconfigured recovery host test Fix misconfigured recovery host test Import translations. DO NOT MERGE ANYWHERE Import translations. DO NOT MERGE ANYWHERE Import translations. DO NOT MERGE ANYWHERE Import translations. DO NOT MERGE ANYWHERE Import translations. DO NOT MERGE ANYWHERE Conflicts: recovery_ui/include/recovery_ui/screen_ui.h Change-Id: I8372bb359dade75a38425096fac4f2ce7220dc35
| * minui: Add API to support multiple connectors detectionWeizhung Ding2022-08-311-0/+5
| | | | | | | | | | | | | | | | | | Add API to support multiple connectors detection Bug: 227468133 Test: check log in recovery mode Change-Id: I18c5e0f373a29b153aab038bd289eed18847f2af Merged-In: I18c5e0f373a29b153aab038bd289eed18847f2af
* | minui: Support main fbdev connector in multi connector Blank functionTim Zimmermann2022-09-131-1/+5
|/ | | | | | | Test: Power off device, observe display no longer stays on in offline charging mode after animation finished Change-Id: I49b0fda43f0866583be04afb32214b2c2da2ed92
* minui: Add support for multiple connectorsWeizhung Ding2022-01-251-0/+4
| | | | | | | | Add support for multiple connectors. Bug: 194732653 Test: charging animation can be displayed on different connectors Change-Id: If9b9eac25ce6e4c582aeb7c52e94ca266f623438
* Remove magic code to flash the screenKelvin Zhang2021-07-271-2/+0
| | | | | | | | | | | The code is originally introduced in aosp/87740 , not sure why it's necessary to do `blank(true); blank(false);` . Partners have complained that such code causes device's screen to flicker, so remove it. Test: th Bug: 194757527 Change-Id: I271883ea8c96a5612283aa34806b18e1590288f6
* Use O_CLOEXEC at a few places.Tao Bao2019-03-011-1/+1
| | | | | | | | | | Found these FDs unintentionally propagated into forked processes (e.g. updater) during my local debugging. Use O_CLOEXEC to avoid that. Test: Dump open FDs in updater process. Test: Sideload a package on taimen (which uses framebuffer). Test: Run graphics test on taimen. Change-Id: I1fb65dd4a103c47d28b15973def9e9359c251ca3
* minui: GRSurface::Create() computes data_size on its own.Tao Bao2018-11-261-3/+3
| | | | | | | | | | | | | GRSurface::Create() doesn't need to rely on caller specifying the buffer size, as it can compute that info based on the given args. This CL also uses `size_t` for all the parameters in GRSurface::Create(). Test: Run recovery_unit_test on marlin. Test: Build and boot into blueline recovery. `Run graphics test`. Test: Build and boot into blueline charger mode. Change-Id: Idec9381079196abf13553a475006fefcfca10950
* minui: Use android::base::unique_fd in MinuiBackendFbdev.Tao Bao2018-11-021-12/+5
| | | | | | Test: mmma -j bootable/recovery Test: `Run graphics test` on taimen. Change-Id: I5b25cafbd0107943606a87f0619242cf950174ac
* minui: Refactor GRSurfaceFbdev.Tao Bao2018-10-311-36/+32
| | | | | | | | | | | | - Adds Create() that returns a GRSurfaceFbdev instance. - Moves away from using the copy ctor (precisely assignment operator) of GRSurfaceFbdev. - Moves the GRSurfaceFbdev deallocation code into GRSurfaceFbdev's dtor. - Manages MinuiBackendFbdev::gr_framebuffer with std::unique_ptr. Test: mmma -j bootable/recovery Test: `Run graphics test` on taimen. Change-Id: I8e67cda7bc3a2feec0790124d035caa36fb58a89
* minui: Move GRSurface into a class.Tao Bao2018-10-221-16/+12
| | | | | | | | | | | | | | | | | | | | | | This CL adds GRSurface::Create() and dtor for managing the allocated memory in GRSurface class. It also adds GRSurface::data() that hides the underlying implementation, with both of const and non-const overloads. This allows `const GRSurface&` to be more useful - previously it only ensured a const member variable of `data`, instead of a read-only buffer it points to. It also marks the parameters in gr_texticon() and gr_blit() as const, as they're incoming source that shouldn't be altered. It corrects the type of gr_draw, which is the sink to be painted on (an earlier attempt was made in [1], but didn't get the full picture correctly). [1] https://android-review.googlesource.com/c/platform/bootable/recovery/+/704757/ Test: mmma -j bootable/recovery Test: recovery_unit_test on marlin Test: Run graphics test on marlin (fbdev). Test: Run graphics test on blueline (drm). Change-Id: I7904df084cd6c08fa04a9da97d01b4b1a6e3a20c
* minui: Move graphics_{adf,drm,fbdev} into classes.Tao Bao2017-02-101-37/+14
| | | | | | | | This CL defines minui_backend as an interface, and expresses the three backends (adf, drm and fbdev) as subclasses to the interface. Test: 'Run graphics test' on N9, Pixel C and N5X. Change-Id: I0e23951c7b2e2ff918957a8d9fc8b0085b6e5952
* minui: Clean up graphics_fbdev.cpp.Tao Bao2017-02-071-139/+129
| | | | | | | | | Remove unneeded header includes. Otherwise mostly cosmetic changes like reformatting. Test: 'Run graphics test' on bullhead (which uses fbdev). Change-Id: I9b92c96128fa332ac940f73764f9c5fc93ff6c8c
* minui: Export minui/minui.h.Tao Bao2017-01-161-2/+1
| | | | | | | For libminui static and shared libraries. Test: build Change-Id: Ib30dc5e2ef4a3c8b3ca3a0cec68cb65e229a0c16
* Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap.Rahul Chaudhry2016-11-151-1/+1
| | | | | | | | | | | static_cast is preferable to reinterpret_cast when casting from void* pointers returned by malloc/calloc/realloc/mmap calls. Discovered while looking at compiler warnings (b/26936282). Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mma Change-Id: Iaffd537784aa857108f6981fdfd82d0496eb5592 Merged-In: I151642d5a60c94f312d0611576ad0143c249ba3d
* Revert "Byte swap to support BGRA in recovery mode"Andriy Naborskyy2016-01-081-12/+0
| | | | | | | | | | | | | This reverts commit e5879c3639789d61803605c12371a4f291e0b3cc. The swap in page flip code is not needed any more. New changes take care of ABGR and BGRA formats swapping bytes in png and drawing routines See commit fd778e3e406a7e83536ea66776996f032f24af64 Bug: 26243152 Change-Id: I313ee41bee2c143b4e5412515285a65ac394ec77
* Don't use typedefs that hide *s.Elliott Hughes2015-04-151-4/+4
| | | | | | gr_surface was causing confusion for no good reason. Change-Id: If7120187f9a00dd16297877fc49352185a4d4ea6
* Switch minui over to C++.Elliott Hughes2015-04-101-0/+213
Change-Id: I59e08a304ae514a3fdb6fab58721f11670bc1b01