summaryrefslogtreecommitdiffstats
path: root/gui/gui.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move ORS command line into main threadEthan Yonker2015-01-221-139/+110
| | | | | | | Also eliminate the mostly similar runPage function in favor of using a single runPages function to avoid code duplication. Change-Id: I46ef414beb4009fee16d4de13d8a5ab2b9678409
* Fix handling of custom themes after decryptEthan Yonker2015-01-131-0/+32
| | | | | | | | Loading a custom theme from the decrypt action was preventing the runPage function from exiting. This moves the loading of a custom theme out of the action. Change-Id: I86904b63a67a25ded56e3e1e569fe906264dc055
* gui: simplify blanktimerthat2015-01-111-34/+9
| | | | | | | | | - get rid of separate thread, check timer in rendering thread instead - use an enum for the blanking state instead of magic integers - move #ifdefs for TW_NO_SCREEN_TIMEOUT inside blanktimer class - move some #includes and enum TOUCH_STATE to pages.hpp Change-Id: Id4b104e3680dc5db41d8ba85e32d722cf4086299
* Allow for X and Y offsets in GUIEthan Yonker2015-01-091-1/+1
| | | | | | | | | | | | | | These can be used to center a lower resolution theme onto a higher resolution screen. May be useful for Nexus 9 unless or until we decide to do a 1536x2048 theme or on devices like the Moto 360 and LG G Watch R. The build flags will only affect the stock theme. If a custom theme wishes to apply an offset, it can be done by setting tw_x_offset and / or tw_y_offset in the variables section of the XML. Change-Id: I2390769ed861b96a4a3bb8a0f06d9021ec91b6b9
* Use one mizip for allEthan Yonker2014-12-101-5/+0
| | | | | | | | | | | | The new minzip did not compile in older trees due to needing mmap64. For older trees we will just use mmap instead. Remove all files and code pertaining to minzipold. Updater should now build properly in older trees as well. Eliminate use of PLATFORM_VERSION in favor of PLATFORM_SDK_VERSION which should be more consistent and reliable. Change-Id: I38d2b604a73d1b17a2072c7d60e990b81ece0c10
* Fix crash when rapid firing command line commandsEthan Yonker2014-10-221-0/+4
| | | | Change-Id: I0caaa51720fe3608b8c4cb02f046afb3cbaa54f9
* Add command line capabilitiesEthan Yonker2014-08-091-1/+98
| | | | | | | | | | | | | | | Allows sending openrecoveryscript commands to TWRP via shell. This may be handy for visually impaired users, for various one click utilities to drive TWRP commands from a computer, for using TWRP when a catastrophic hardware failure like a shattered screen prevents you from being able to use touch, or even on devices like a TV stick where touch and USB mouse input is unavailable. This patch also includes a few minor changes to openrecoveryscript including proper support for rebooting via the script and for decrypting the device via the command line. Change-Id: I796ad168efdd2da9c25334ac93d1079daaa7b0bc
* Whitespace and minor code cleanupMatt Mower2014-06-041-4/+1
| | | | | | This is by no means comprehensive, but is quite a bit better already. Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
* Add support for actions triggered by key combinationVojtech Bocek2014-04-161-17/+14
| | | | | Change-Id: I9dfa7de40229f00412d63fc9c1eb3a809a6eb2e6 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Fix touch on Sprint HTC One m8Dees Troy2014-04-151-8/+10
| | | | Change-Id: Ia9fba3be16a33b3cb0c4a3458398a2e60ba7f001
* Allow building of an OEM friendly TWRPEthan Yonker2014-04-041-3/+5
| | | | | | | | Disable theming Disable creating the TWRP folder for the settings file Change factory reset on data/media devices to a full wipe Change-Id: I3104282b5dd3f55dfff7c8cf39c72750af08563d
* Merge "Add option to print render time of each frame to log file" into android-4.4Dees Troy2014-02-071-0/+27
|\
| * Add option to print render time of each frame to log fileVojtech Bocek2014-02-061-0/+27
| | | | | | | | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Id158a6375fbadf4cdf0a8c7d143759e602419e7f
* | Implement mouse cursorVojtech Bocek2014-02-071-1/+62
|/ | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I66d6db7b3ed9cca50b469d125b36224332e06913
* Update licenses to all matchDees Troy2013-10-221-14/+16
|
* Kang in older minzip for building in CM9 & CM7Dees Troy2013-09-101-0/+4
| | | | CM7 and CM9 do not have libselinux needed in the newer minzip.
* Add a TW_NO_TIMEOUT optionRicardo Gomez2013-08-251-0/+30
| | | | Change-Id: Ifb3a5bd9f1e6c2e9810c90b0aec198e91d5956fc
* Unify indentation and little clean-up in TWRP filesVojtech Bocek2013-08-241-433/+407
| | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Revert "Fix touch not working due to gr_fb_width returning 0 in some cases"Dees_Troy2013-08-241-3/+1
| | | | | This reverts commit 70e1129612765b14e5aace0155d4683c91cde951. No longer needed after http://review.teamw.in/#/c/655/
* Fix touch not working due to gr_fb_width returning 0 in some casesDees_Troy2013-08-111-1/+3
| | | | Change-Id: Id5ce607a181110118ebc647fc07d387a7a3dc660
* Improve handling of XML errors for fix permissionsDees_Troy2013-04-051-1/+2
|
* Move all AOSP code out of recovery binaryDees_Troy2013-04-041-25/+23
| | | | | | Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
* Load user saved setting for blank timer on recovery startupbigbiff bigbiff2013-02-281-0/+3
| | | | Fix persistence of military time
* Check for root and root perms and offer to install/fixDees_Troy2013-02-211-0/+4
| | | | | | Also fix sort order for file selector by date and file sizes Change-Id: Idff9fe4232c19d4ed1082e78fabe6f921aa0a114
* This adds a 60 second screen timeout for TWRP. Might consider making this configurable in the future.bigbiff bigbiff2013-02-131-466/+546
| | | | | | | | | | | | | | | Will also set overlay to lockscreen so we don't have inadvetent screen selections. Touching the screen will bring the display back up. add back check script for poweroff move diff time function to twrp-functions.cpp make sure we chmod after copy_file add read_file and write_file functions to twrp-functions.cpp make single thread try to force update screen add forceRender drop caches after tar processing Change-Id: I3c5c509dd39dbb05451bbfe5d8b56d53c90d8d1b
* Use GUI for ORS instead of console onlyDees_Troy2013-01-251-0/+1
|
* Improve ORS sideload to display GUI with cancel buttonDees_Troy2013-01-181-3/+77
|
* Change curtain to file and remove curtain raiseDees_Troy2012-09-241-36/+6
|
* Add processing of fstab, mounting, and decryptDees_Troy2012-09-071-17/+10
|
* TWRP-ify AOSP codeDees_Troy2012-09-051-0/+629
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