Home
last modified time | relevance | path

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

/bootable/recovery/
Dui.cpp83 void RecoveryUI::OnKeyDetected(int key_code) { in OnKeyDetected() argument
84 if (key_code == KEY_POWER) { in OnKeyDetected()
86 } else if (key_code == KEY_DOWN || key_code == KEY_VOLUMEDOWN) { in OnKeyDetected()
88 } else if (key_code == KEY_UP || key_code == KEY_VOLUMEUP) { in OnKeyDetected()
90 } else if (key_code == ABS_MT_POSITION_X || key_code == ABS_MT_POSITION_Y) { in OnKeyDetected()
340 void RecoveryUI::ProcessKey(int key_code, int updown) { in ProcessKey() argument
346 key_pressed[key_code] = updown; in ProcessKey()
349 key_last_down = key_code; in ProcessKey()
353 info->key_code = key_code; in ProcessKey()
359 if (key_last_down == key_code) { in ProcessKey()
[all …]
Dui.h144 void EnqueueKey(int key_code);
167 int key_code; member
175 void OnKeyDetected(int key_code);
178 void ProcessKey(int key_code, int updown);
183 void time_key(int key_code, int count);
/bootable/recovery/minui/
Devents.cpp229 for (int key_code = 0; key_code <= KEY_MAX; ++key_code) { in ev_iterate_available_keys() local
230 if (test_bit(key_code, key_bits)) { in ev_iterate_available_keys()
231 f(key_code); in ev_iterate_available_keys()
253 for (int key_code = 0; key_code <= KEY_MAX; ++key_code) { in ev_iterate_touch_inputs() local
254 if (test_bit(key_code, key_bits)) { in ev_iterate_touch_inputs()
255 action(key_code); in ev_iterate_touch_inputs()