summaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2014-03-13 16:46:52 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-13 16:46:52 +0100
commit8e7bccd9a45504eede8c11fe86bb97cee475ad2a (patch)
treee5e40c752af36608e85841dbee81d3090c5c3b82 /ui.h
parentMerge commit 'ea868b38' into manualmerge (diff)
parentMerge "allow CheckKey to request mounting /system" (diff)
downloadandroid_bootable_recovery-8e7bccd9a45504eede8c11fe86bb97cee475ad2a.tar
android_bootable_recovery-8e7bccd9a45504eede8c11fe86bb97cee475ad2a.tar.gz
android_bootable_recovery-8e7bccd9a45504eede8c11fe86bb97cee475ad2a.tar.bz2
android_bootable_recovery-8e7bccd9a45504eede8c11fe86bb97cee475ad2a.tar.lz
android_bootable_recovery-8e7bccd9a45504eede8c11fe86bb97cee475ad2a.tar.xz
android_bootable_recovery-8e7bccd9a45504eede8c11fe86bb97cee475ad2a.tar.zst
android_bootable_recovery-8e7bccd9a45504eede8c11fe86bb97cee475ad2a.zip
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui.h b/ui.h
index 0757260b7..2dfe848e2 100644
--- a/ui.h
+++ b/ui.h
@@ -79,7 +79,7 @@ class RecoveryUI {
// Return value indicates whether an immediate operation should be
// triggered (toggling the display, rebooting the device), or if
// the key should be enqueued for use by the main thread.
- enum KeyAction { ENQUEUE, TOGGLE, REBOOT, IGNORE };
+ enum KeyAction { ENQUEUE, TOGGLE, REBOOT, IGNORE, MOUNT_SYSTEM };
virtual KeyAction CheckKey(int key);
// Called immediately before each call to CheckKey(), tell you if
@@ -123,6 +123,10 @@ private:
int key_down_count; // under key_queue_mutex
int rel_sum;
+ int consecutive_power_keys;
+ int consecutive_alternate_keys;
+ int last_key;
+
typedef struct {
RecoveryUI* ui;
int key_code;