platform_bootable_recovery/recovery_ui
Tianjie Xu b8a959b00f Add a new key_pressed_mutex
The following variables in recovery ui were protected by
key_queue_mutex. But the purpose of key_queue_mutex is to protect the
key_queue, which will be changed after we already have a key code. So
getting the key pressed should be orthogonal to the key queue. And
adding a mutex will help to avoid deadlocks in b/135078366.

Variables include:
  char key_pressed[KEY_MAX + 1];
  int key_last_down;
  bool key_long_press;
  int key_down_count;
  bool enable_reboot;

Bug: 135078366
Test: boot into recovery and press keys
Change-Id: Ie2cfcf1f2fec49b53f8fac97aa9a2c60f15b84f9
2019-07-09 16:47:07 -07:00
..
include/recovery_ui Add a new key_pressed_mutex 2019-07-09 16:47:07 -07:00
Android.bp Implement ShowMenu for StubRecoveryUI 2019-06-27 15:54:59 -07:00
default_device.cpp Move librecovery_ui to a sub-directory 2019-03-21 10:46:11 -07:00
device.cpp Allow entering rescue mode via recovery UI. 2019-04-17 14:07:23 -07:00
screen_ui.cpp recovery_ui: Remove redundant menu creation. 2019-06-27 09:07:51 -07:00
stub_ui.cpp Implement ShowMenu for StubRecoveryUI 2019-06-27 15:54:59 -07:00
ui.cpp Add a new key_pressed_mutex 2019-07-09 16:47:07 -07:00
vr_device.cpp Move librecovery_ui to a sub-directory 2019-03-21 10:46:11 -07:00
vr_ui.cpp Move librecovery_ui to a sub-directory 2019-03-21 10:46:11 -07:00
wear_device.cpp Move librecovery_ui to a sub-directory 2019-03-21 10:46:11 -07:00
wear_ui.cpp Move librecovery_ui to a sub-directory 2019-03-21 10:46:11 -07:00