Home
last modified time | relevance | path

Searched refs:key_code (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/recovery_ui/
Dui.cpp91 void RecoveryUI::OnKeyDetected(int key_code) { in OnKeyDetected() argument
92 if (key_code == KEY_POWER) { in OnKeyDetected()
94 } else if (key_code == KEY_DOWN || key_code == KEY_VOLUMEDOWN) { in OnKeyDetected()
96 } else if (key_code == KEY_UP || key_code == KEY_VOLUMEUP) { in OnKeyDetected()
98 } else if (key_code == ABS_MT_POSITION_X || key_code == ABS_MT_POSITION_Y) { in OnKeyDetected()
343 void RecoveryUI::ProcessKey(int key_code, int updown) { in ProcessKey() argument
349 key_pressed[key_code] = updown; in ProcessKey()
352 key_last_down = key_code; in ProcessKey()
354 std::thread time_key_thread(&RecoveryUI::TimeKey, this, key_code, key_down_count); in ProcessKey()
357 if (key_last_down == key_code) { in ProcessKey()
[all …]
/bootable/recovery/minui/
Devents.cpp318 for (int key_code = 0; key_code <= KEY_MAX; ++key_code) { in ev_iterate_available_keys() local
319 if (test_bit(key_code, key_bits)) { in ev_iterate_available_keys()
320 f(key_code); in ev_iterate_available_keys()
342 for (int key_code = 0; key_code <= KEY_MAX; ++key_code) { in ev_iterate_touch_inputs() local
343 if (test_bit(key_code, key_bits)) { in ev_iterate_touch_inputs()
344 action(key_code); in ev_iterate_touch_inputs()
/bootable/recovery/recovery_ui/include/recovery_ui/
Dui.h196 void EnqueueKey(int key_code);
223 void OnKeyDetected(int key_code);
226 void ProcessKey(int key_code, int updown);
227 void TimeKey(int key_code, int count);
/bootable/recovery/tests/unit/
Dscreen_ui_test.cpp327 KeyCode key_code = static_cast<KeyCode>(key); in KeyHandler() local
328 if (kKeyMapping.find(key_code) != kKeyMapping.end()) { in KeyHandler()
329 return kKeyMapping.at(key_code); in KeyHandler()