diff options
author | Doug Zongker <dougz@android.com> | 2014-03-12 03:42:56 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-12 03:42:56 +0100 |
commit | aa6b8026ed5ae32f10b948edd26e3f489ba20751 (patch) | |
tree | 4bafa1a1b4266e561fb670a7d9277cf5394106f1 /ui.h | |
parent | resolved conflicts for merge of ea868b38 to klp-modular-dev-plus-aosp (diff) | |
parent | Merge "allow CheckKey to request mounting /system" (diff) | |
download | android_bootable_recovery-aa6b8026ed5ae32f10b948edd26e3f489ba20751.tar android_bootable_recovery-aa6b8026ed5ae32f10b948edd26e3f489ba20751.tar.gz android_bootable_recovery-aa6b8026ed5ae32f10b948edd26e3f489ba20751.tar.bz2 android_bootable_recovery-aa6b8026ed5ae32f10b948edd26e3f489ba20751.tar.lz android_bootable_recovery-aa6b8026ed5ae32f10b948edd26e3f489ba20751.tar.xz android_bootable_recovery-aa6b8026ed5ae32f10b948edd26e3f489ba20751.tar.zst android_bootable_recovery-aa6b8026ed5ae32f10b948edd26e3f489ba20751.zip |
Diffstat (limited to 'ui.h')
-rw-r--r-- | ui.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |