summaryrefslogtreecommitdiffstats
path: root/gui/blanktimer.hpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gui: simplify blanktimerthat2015-01-111-18/+14
| | | | | | | | | - 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
* Support reading since_epoch and secondary brightness filesxNUTx2014-08-101-2/+2
| | | | | | | | | | | | | | | 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
* Unify indentation and little clean-up in TWRP filesVojtech Bocek2013-08-241-25/+29
| | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Do not render the GUI when the blanktimer turns off the display.gordon13372013-06-081-0/+2
| | | | | 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.
* Add 2 second pre-dim and bugfix blank timerDees_Troy2013-03-011-4/+2
| | | | | | 2 second predim code courtesy of bigbiff Change-Id: I052ac422f78dc82c05f58c188587534b800b935a
* Configurable timeout and brightness settingsDees_Troy2013-02-201-55/+56
| | | | 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/+55
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