Home
last modified time | relevance | path

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

/bootable/recovery/recovery_ui/
Dui.cpp95 void RecoveryUI::OnKeyDetected(int key_code) { in OnKeyDetected() argument
96 if (key_code == KEY_POWER) { in OnKeyDetected()
98 } else if (key_code == KEY_DOWN || key_code == KEY_VOLUMEDOWN) { in OnKeyDetected()
100 } else if (key_code == KEY_UP || key_code == KEY_VOLUMEUP) { in OnKeyDetected()
102 } else if (key_code == ABS_MT_POSITION_X || key_code == ABS_MT_POSITION_Y) { in OnKeyDetected()
356 void RecoveryUI::ProcessKey(int key_code, int updown) { in ProcessKey() argument
362 key_pressed[key_code] = updown; in ProcessKey()
365 key_last_down = key_code; in ProcessKey()
367 std::thread time_key_thread(&RecoveryUI::TimeKey, this, key_code, key_down_count); in ProcessKey()
370 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.h198 void EnqueueKey(int key_code);
225 void OnKeyDetected(int key_code);
228 void ProcessKey(int key_code, int updown);
229 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()