summaryrefslogtreecommitdiffstats
path: root/gui/blanktimer.hpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2016-01-21 01:12:47 +0100
committerDees Troy <dees_troy@teamw.in>2017-01-18 19:55:33 +0100
commit9472ba1d39e85b11c28d16b793fac1150ba153e5 (patch)
treea7d671186626ffe8c8b9a0bfb2d7e8c6bfc72424 /gui/blanktimer.hpp
parentSELinux can be assumed for Android 4.4+ (diff)
downloadandroid_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar.gz
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar.bz2
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar.lz
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar.xz
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar.zst
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.zip
Diffstat (limited to '')
-rw-r--r--gui/blanktimer.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/blanktimer.hpp b/gui/blanktimer.hpp
index 5e617901f..fe7b77c17 100644
--- a/gui/blanktimer.hpp
+++ b/gui/blanktimer.hpp
@@ -37,11 +37,15 @@ public:
// call this when an input event is received or when an operation is finished
void resetTimerAndUnblank();
+ // call this when power button is pressed
+ void toggleBlank(void);
+
bool isScreenOff();
private:
void setTimer(void);
string getBrightness(void);
+ void blank(void);
pthread_mutex_t mutex;
enum State { kOn = 0, kDim = 1, kOff = 2, kBlanked = 3 };