summaryrefslogtreecommitdiffstats
path: root/minui/Android.mk (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-24Switch between dependencies and modulesEthan Yonker1-1/+5
Use LOCAL_REQUIRED_MODULES for Pie and up and LOCAL_ADDITIONAL_DEPENDENCIES for Oreo and down. Change-Id: I5365e782f98f3bbf4bf246be22c8f573824b65ee
2017-11-29minui: Do not overwrite previously set CFLAGSAndreas Schneider1-2/+2
Change-Id: Ifa5bcffa12c045cb629974684882f1e0f56dcce6
2017-10-20libdrm_platform is now libdrmDan Willemsen1-1/+1
Since it's converted to Soong and is using vendor_available. Test: mmma bootable/recovery Change-Id: I57b40c26abc2f6031241de893b3184ed1283e1fe
2017-10-20Build libminui with BOARD_VNDK_VERSIONJiyong Park1-1/+1
Use libdrm_platform which is a platform variant of libdrm. Bug: 63741047 Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j libminui Test: ryu recovery graphics test shows various graphics Change-Id: Ifd2c1432781a96538585cdf818aa728d628a2f5a Merged-In: Ifd2c1432781a96538585cdf818aa728d628a2f5a
2017-10-12Drop -Wno-unused-parameter.Tao Bao1-0/+5
The only one left is libedify. Will handle that in a separate CL. Test: mmma bootable/recovery Change-Id: I732a5f85229da90fd767bee2e46c5c95f529c396
2017-09-28graphics: add rotation logicLuke Song1-0/+6
Bug: 65556996 Bug: 63541890 Test: Tried 4 rotations, viewed logs and graphics test Change-Id: I2a6c18c28df03f0461663f63bf16db32c45211ec
2017-08-29Turn on -Wall for recovery modulesTianjie Xu1-2/+2
Turn on -Wall for all modules. Also remove the obsolete file_cmp() in apply_patch test and now() in wear_ui. The only exception is lib_edify due to the unused functions in the intermediate cpp files generated from the lex files. It will be handled in a seperate CL. Bug: 64939312 Test: mma, unit tests pass Change-Id: Ic53f76b60b6401ab20db3d98130d674c08e3702f
2017-07-21Build libminui with BOARD_VNDK_VERSIONJiyong Park1-1/+1
Use libdrm_platform which is a platform variant of libdrm. Bug: 63741047 Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j libminui Test: ryu recovery graphics test shows various graphics Change-Id: Ifd2c1432781a96538585cdf818aa728d628a2f5a Merged-In: Ifd2c1432781a96538585cdf818aa728d628a2f5a (cherry picked from commit a48c494f138ddb99320583d00120674be1e3297c)
2017-07-19Build libminui with BOARD_VNDK_VERSIONJiyong Park1-1/+1
Use libdrm_platform which is a platform variant of libdrm. Bug: 63741047 Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j libminui Test: ryu recovery graphics test shows various graphics Change-Id: Ifd2c1432781a96538585cdf818aa728d628a2f5a
2017-06-06Fix minui issues for some build treesEthan Yonker1-2/+3
In trees where TWRP is the primary recovery, minui.h was not setting rules properly for healthd because healthd uses clang. Must use CLANG_TARGET_GLOBAL_CFLAGS to set global flags. Change-Id: I4cd9c88f8fcaec345fe012d09abcb9f24be06ef4
2017-03-29Merge "Add the missing sr-Latn into png files and rename the png locale header" am: 713d915636 am: dc235b5ab9Tianjie Xu1-2/+8
am: 5ec12126f0 Change-Id: Ia6b861c91958d3be23a4a7456d6d5d8e4a1607c8 (cherry picked from commit 9166f66eee883d6d6cc280a6c355e5528bb4a3f0)
2017-03-25Add the missing sr-Latn into png files and rename the png locale headerTianjie Xu1-2/+8
Switch the locale header in the png files from Locale.toString() to Locale.toLanguageTag(). For example, en_US --> en-us and sr__#Latn --> sr-Latn. Also clean up recovery a bit to expect the new locale format. Bug: 35215015 Test: sr-Latn shows correctly under graphic tests && recovery tests pass Change-Id: Ic62bab7756cdc6e5f98f26076f7c2dd046f811db
2017-01-21ifdef overlay graphicsEthan Yonker1-2/+2
Change-Id: If3173ddbfaccb95cc48636240ee3a918dac1e23f
2017-01-17minui: Export minui/minui.h.Tao Bao1-7/+24
For libminui static and shared libraries. Test: build Change-Id: Ib30dc5e2ef4a3c8b3ca3a0cec68cb65e229a0c16
2016-09-30Turn on -Werror for recoveryTianjie Xu1-0/+2
Also remove the 0xff comparison when validating the bootloader message fields. As the fields won't be erased to 0xff after we remove the MTD support. Bug: 28202046 Test: The recovery folder compiles for aosp_x86-eng Change-Id: Ibb30ea1b2b28676fb08c7e92a1e5f7b6ef3247ab (cherry picked from commit 7aa88748f6ec4e53333d1a15747bc44826ccc410)
2016-09-30Turn on -Werror for recoveryTianjie Xu1-0/+2
Also remove the 0xff comparison when validating the bootloader message fields. As the fields won't be erased to 0xff after we remove the MTD support. Bug: 28202046 Test: The recovery folder compiles for aosp_x86-eng Change-Id: Ibb30ea1b2b28676fb08c7e92a1e5f7b6ef3247ab
2016-08-06Recovery mode UI flickerxinglong.zhu1-0/+1
[root cause ] miniui has no mechanism to protect the buffer which is displaying [changes ] recovery [side effects] ui show [self test ] sc9850-2 general operation has not display abnormal [reviewers ] xinglong.zhu Signed-off-by: xinglong.zhu <xinglong.zhu@spreadtrum.com> [change_type ] AOB --> google_original [tag_product ] common Change-Id: I989a0b2943ff6070a0e98718cfbe95144510d3a2
2015-12-01minui: bring back custom font supportmaxwen1-1/+3
Change-Id: I6cb97b236ff8ada46d270e99ab37656f5f1b73f8
2015-11-16recovery: Switch to clangTao Bao1-0/+1
And a few trival fixes to suppress warnings. Change-Id: Id28e3581aaca4bda59826afa80c0c1cdfb0442fc (cherry picked from commit 80e46e08de5f65702fa7f7cd3ef83f905d919bbc)
2015-10-14Add support for RGBA_8888 pixel formatKra1o51-0/+3
Change-Id: Ia15d49e51cad5bc8a3291975e1ff515a2b1c419c
2015-10-14Add qcom overlay graphics support to minuiEthan Yonker1-2/+17
graphics_overlay.cpp is based on a mix of AOSP code for graphics_fbdev.cpp along with overlay graphics code from CAF that was brought into earlier versions of TWRP and then further adapted and improved before being brought into this patch set. Also added a rule to build a minuitest binary for testing the minui engine to ensure proper operation on a device. Change-Id: I3972d3a6baa7002615319421ac07d9299c3cec69
2015-07-16minui: add BOARD_USE_CUSTOM_RECOVERY_FONTmaxwen1-1/+6
we want to use it in charger Change-Id: I3e0288b074bd7203214d218aaee69cb4798e9531
2015-07-02Add drm support to minuiStéphane Marchesin1-0/+2
Bug: 22231636 Change-Id: I103c8e906b7dd9862b7bb89d8642268e9a3006b4 Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
2015-06-03recovery: Switch to clangTao Bao1-0/+1
And a few trival fixes to suppress warnings. Change-Id: I38734b5f4434643e85feab25f4807b46a45d8d65
2015-04-23Add option to use new heap_id_mask instead of old heap_maskKra1o51-0/+4
Use TW_NEW_ION_HEAP := true to use it Change-Id: I2ad105fa6d122b460ed4b5dc78563077b7904567
2015-04-10Switch minui over to C++.Elliott Hughes1-4/+4
Change-Id: I59e08a304ae514a3fdb6fab58721f11670bc1b01
2015-04-10Add ev_iterate_available_keys to minui.Elliott Hughes1-2/+7
This lets us recognize whether we have up/down/power, say, and tailor the UI accordingly. Change-Id: If94e454f14243b59d2f473ac9a436bd60591da01
2015-03-24Fix recovery image text rendering.Elliott Hughes1-2/+3
Previously most devices would lose the character before a line wrap. The log's text rendering was starting at offset 4 but none of the arithmetic was taking this into account. It just happened to work on the Nexus 9's 1536-pixel wide display (1536/18=85.3) but not on a device such as the Nexus 5 (1080/18=60). The only active part of this change is the change from 4 to 0 in the gr_text call. The rest is just a few bits of trivial cleanup while I was working out what was going on. Change-Id: I9279ae323c77bc8b6ea87dc0fe009aaaec6bfa0e
2015-02-26Drop hardcoded LOCAL_C_INCLUDES from minui/Android.mkTrevor Drake1-4/+1
The zlib include was not required. libpng is now handled by referencing the libpng static library Change-Id: Ie4e0abad3fff5b763eba363d3d0fa96128ff49bc
2015-02-12Fix Droid and animation color in recovery modeTony Kuo1-0/+3
[Problem] Droid and animation color in recovery mode are incorrect [Modify] - Add support for flipping (zero copy) with RECOVERY_ABGR. - Decodes PNG files to BGRA directly, and other fills, text and alpha blending are also done directly in BGRA (i.e. blits can still bypass conversion) - Remove the BGRA workaround added previous for single buffer mode (f766396) Bug:19216535 Change-Id: Ie864419fc6da776ff58b2d02e130f203c194500f Signed-off-by: Tony Kuo <tony.kuo@mediatek.com>
2015-02-11recovery: Generate libminui dynamic libraryAjay Dudani1-0/+7
Allow factory test images to use minui functionaltiy by making use of libminui dynamic library. Change-Id: I63e77420d5addbcc6eebeedc213f629085766b4c
2014-12-17Add support for custom kernel headersKra1o51-2/+10
Change-Id: I39fe4de8919e59dd75e8cb535fa0648948035c26
2014-11-07Fix up old libminui to compileEthan Yonker1-2/+4
Implement some needed updates to libminui to make it compile for healthd. Note that res_create_multi_display_surface is not fully implemented so healthd may still have issues with displaying some graphics. Will update later when we are able to test these changes. Change-Id: Ic1095a998f5dfe7e36a08384c86da28e0524a03f
2014-11-06Revert to old libminui and fix upEthan Yonker1-5/+2
We will wait for CAF to give us a new libminui that supports qualcomm overlay before moving up to the new format if possible. Attempt to fix up old libminui to work with new libpng. Change-Id: I494b7287b347f4730aa8f9d27d4cc17b6e93919a
2014-09-03Build block TWRP with RECOVERY_VARIANTMatt Mower1-4/+4
Enable TWRP to reside alongside other recoveries with the naming convention: bootable/recovery(-flag). If TWRP resides at bootable/recovery and a device does not specify RECOVERY_VARIANT, then it will build like normal. If TWRP resides at bootable/recovery-twrp, then its makefiles will only be parsed if a device specifies 'RECOVERY_VARIANT := twrp'. This prevents TWRP specific makefile warnings/errors (notably, missing DEVICE_RESOLUTION) when another recovery is being built. Change-Id: I8f02fffcd79c309c7123b9428eedc69af02e126e
2014-05-02Update minui to support overlay graphicsDees Troy1-1/+76
Fix path in minuitwrp for includes Change-Id: I9e9e5f67e8574cdcbc6f8873ceeb56eab71143ed
2014-04-26recovery: minui: add adf backendGreg Hackmann1-1/+4
Change-Id: I1ad97b5b62bddbcb1104fa0b4e54415b793a4194 Signed-off-by: Greg Hackmann <ghackmann@google.com>
2014-03-11separate fbdev-specific code out from minuiDoug Zongker1-1/+1
Isolate the code that interacts with fbdev, in preparation for adding a new backend. Change-Id: I19105e9da1ca6408cebc110f7e2bb5abfb481ee9
2014-03-11separate fbdev-specific code out from minuiDoug Zongker1-1/+1
Isolate the code that interacts with fbdev, in preparation for adding a new backend. Change-Id: I19105e9da1ca6408cebc110f7e2bb5abfb481ee9
2014-02-06minui: adapt backlight blanking commit to TWRPMatt Mower1-2/+10
Change-Id: I79417d218c84fcdaf2ce5ecdf314031831d89575
2014-02-03minui: Allow devices to blank/unblank using LCD backlightEthan Chen1-0/+4
* Some devices rely on the LCD backlight to blank/unblank the display, support them by allowing a custom LCD backlight path to be used. Change-Id: I8406b4b55cd7a2afc4f8f8ba65de2c53b949489d
2013-12-12Support custom graphics.c.Koushik Dutta1-1/+6
TWRP does not use this, but is needed for other things that depend on it like charger. Change-Id: Ic7d10e8230151bcc4be6cfa222a1e07231e7139f
2012-12-19add optional overscan compensation to recovery graphicsDoug Zongker1-0/+6
If your screen is a TV, it may not actually be displaying the edges of the framebuffer. Allow specifying an overscan percentage, and move each edge of the framebuffer in by that percent of the width/height. (The gr_* layer just lies to the caller about the size of the framebuffer, telling the caller it's smaller than it really is, and offsets all drawing commands to match.) Change-Id: I11bb2feb39ae522bd3e957a14ebdecf3609e0fdc
2012-09-05TWRP-ify AOSP codeDees_Troy1-1/+1
Pull in most TWRP sources Stub out partition management code Make it compile -- probably will not boot Kind of a mess but have to start somewhere
2012-07-11allow double-quotes or not in TARGET_RECOVERY_PIXEL_FORMATDoug Zongker1-2/+6
Change-Id: I0bf22c87c51a34ee4a839c4966277fad8150bd59
2011-06-23Graphics can handle stride != xres, and BGRA support.Michael Ward1-2/+5
Change-Id: Ifee94ac08028e62a40241a089ac7c36346fea3a3
2011-01-14option to allow recovery to use 24-bit graphics in UIDoug Zongker1-0/+4
Add "RECOVERY_24_BIT := true" to the device's BoardConfig.mk to use 24-bit framebuffers in the recovery ui. Change-Id: Iaede138bf7870becf237f12f1c0e49c9ff82d007
2009-03-04auto import from //depot/cupcake/@135843The Android Open Source Project1-0/+12
2009-03-04auto import from //depot/cupcake/@135843The Android Open Source Project1-12/+0