summaryrefslogtreecommitdiffstats
path: root/gui/blanktimer.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gui: simplify blanktimerthat2015-01-111-66/+40
| | | | | | | | | - 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
* 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
* Support reading since_epoch and secondary brightness filesxNUTx2014-08-101-29/+11
| | | | | | | | | | | | | | | TWFunc::Fixup_Time_On_Boot: Will now try to read /sys/class/rtc/rtc0/since_epoch to correct time, if that fails it will try to use the ats files to correct time. TWFunc::Set_Brightness: One single function to set brightness from both the automated functions and the gui actions. It is able to set a second brightness path if present, it will set them both the same value. Many Sony devices have 2 brightness files in the sysfs that must be set to properly set the brightness. Change-Id: I7ca582109085dfbcb46b8de73ad031e4b7903fca
* Make blank timer read brightness path from data managerEthan Yonker2014-04-161-2/+4
| | | | | | | | | After implementing the find_file class, the blank timer code needed to be updated to pull the brightness path from the data manager instead of using the build flag to ensure that we use the proper path for brightness. Change-Id: I084983ac0bd68b2fcdd69b93c2d18e2862ba0c77
* Force GUI render after setting brightnessMatt Mower2014-01-211-0/+1
| | | | Change-Id: I4470a3a090d10f400575d45338a8349fbee8a027
* Kang in older minzip for building in CM9 & CM7Dees Troy2013-09-101-1/+6
| | | | CM7 and CM9 do not have libselinux needed in the newer minzip.
* Add ability to run scripts after screen timeout/wakeDees_Troy2013-08-241-0/+2
|
* Do not render the GUI when the blanktimer turns off the display.gordon13372013-06-081-0/+7
| | | | | Normally, when the display has been turned off by blanktimer, the GUI actually still renders the GUI elements (eg. progressbar while doing backup/restore/etc.) This patch will check whenever the display is turned off, and if it is turned off simply dont render. This avoids heating up the device and will save battery.
* Move all AOSP code out of recovery binaryDees_Troy2013-04-041-3/+2
| | | | | | Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
* Add partition list GUI elementDees_Troy2013-03-301-1/+11
| | | | | | | | | | | | Add partition list GUI element and update backup, restore, mount, storage selection, and wipe sections of GUI and partition manager code to reflect the new GUI element. Update ORS engine to handle new backup and restore setup. Fix a bug with decrypt. Add 1080x1920 layout. Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4
* add no fb blankingbigbiff bigbiff2013-03-111-0/+4
| | | | Change-Id: Iaf771257d8f904807ca6f6c1a6c3d7993abadb85
* Add 2 second pre-dim and bugfix blank timerDees_Troy2013-03-011-23/+31
| | | | | | 2 second predim code courtesy of bigbiff Change-Id: I052ac422f78dc82c05f58c188587534b800b935a
* Load user saved setting for blank timer on recovery startupbigbiff bigbiff2013-02-281-1/+1
| | | | Fix persistence of military time
* Configurable timeout and brightness settingsDees_Troy2013-02-201-2/+8
| | | | Change-Id: I924297ab0dcf920cd4b4b617949c3b16cbc68e43
* This adds a 60 second screen timeout for TWRP. Might consider making this configurable in the future.bigbiff bigbiff2013-02-131-0/+128
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