Home
last modified time | relevance | path

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

/bootable/recovery/
Dui.cpp58 void RecoveryUI::OnKeyDetected(int key_code) { in OnKeyDetected() argument
59 if (key_code == KEY_POWER) { in OnKeyDetected()
61 } else if (key_code == KEY_DOWN || key_code == KEY_VOLUMEDOWN) { in OnKeyDetected()
63 } else if (key_code == KEY_UP || key_code == KEY_VOLUMEUP) { in OnKeyDetected()
138 void RecoveryUI::ProcessKey(int key_code, int updown) { in ProcessKey() argument
144 key_pressed[key_code] = updown; in ProcessKey()
147 key_last_down = key_code; in ProcessKey()
151 info->key_code = key_code; in ProcessKey()
157 if (key_last_down == key_code) { in ProcessKey()
167 switch (CheckKey(key_code, long_press)) { in ProcessKey()
[all …]
Dui.h123 void EnqueueKey(int key_code);
146 int key_code; member
152 void OnKeyDetected(int key_code);
156 void ProcessKey(int key_code, int updown);
161 void time_key(int key_code, int count);
/bootable/recovery/minui/
Devents.cpp226 for (int key_code = 0; key_code <= KEY_MAX; ++key_code) { in ev_iterate_available_keys() local
227 if (test_bit(key_code, key_bits)) { in ev_iterate_available_keys()
228 f(key_code); in ev_iterate_available_keys()