summaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2014-05-23 17:40:35 +0200
committerDoug Zongker <dougz@android.com>2014-05-23 17:52:31 +0200
commitc704e06ce596bd0a6de66b10b108aee95535468a (patch)
tree3005b89333b7500aaa78e0867e377eac2f0280ab /ui.h
parentam 502e4595: am d1c64060: am 5fbb729f: Merge "exit instead of return if sideload file creation fails" (diff)
downloadandroid_bootable_recovery-c704e06ce596bd0a6de66b10b108aee95535468a.tar
android_bootable_recovery-c704e06ce596bd0a6de66b10b108aee95535468a.tar.gz
android_bootable_recovery-c704e06ce596bd0a6de66b10b108aee95535468a.tar.bz2
android_bootable_recovery-c704e06ce596bd0a6de66b10b108aee95535468a.tar.lz
android_bootable_recovery-c704e06ce596bd0a6de66b10b108aee95535468a.tar.xz
android_bootable_recovery-c704e06ce596bd0a6de66b10b108aee95535468a.tar.zst
android_bootable_recovery-c704e06ce596bd0a6de66b10b108aee95535468a.zip
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui.h b/ui.h
index faa0acd46..31a8a7fb1 100644
--- a/ui.h
+++ b/ui.h
@@ -93,6 +93,13 @@ class RecoveryUI {
// be called with "true".
virtual void KeyLongPress(int key);
+ // Normally in recovery there's a key sequence that triggers
+ // immediate reboot of the device, regardless of what recovery is
+ // doing (with the default CheckKey implementation, it's pressing
+ // the power button 7 times in row). Call this to enable or
+ // disable that feature. It is enabled by default.
+ virtual void SetEnableReboot(bool enabled);
+
// --- menu display ---
// Display some header text followed by a menu of items, which appears
@@ -121,6 +128,7 @@ private:
int key_last_down; // under key_queue_mutex
bool key_long_press; // under key_queue_mutex
int key_down_count; // under key_queue_mutex
+ bool enable_reboot; // under key_queue_mutex
int rel_sum;
int consecutive_power_keys;