Lines Matching refs:key_code
59 void RecoveryUI::OnKeyDetected(int key_code) {
60 if (key_code == KEY_POWER) {
62 } else if (key_code == KEY_DOWN || key_code == KEY_VOLUMEDOWN) {
64 } else if (key_code == KEY_UP || key_code == KEY_VOLUMEUP) {
139 void RecoveryUI::ProcessKey(int key_code, int updown) {
145 key_pressed[key_code] = updown;
148 key_last_down = key_code;
152 info->key_code = key_code;
158 if (key_last_down == key_code) {
168 switch (CheckKey(key_code, long_press)) {
184 EnqueueKey(key_code);
192 info->ui->time_key(info->key_code, info->count);
197 void RecoveryUI::time_key(int key_code, int count) {
201 if (key_last_down == key_code && key_down_count == count) {
205 if (long_press) KeyLongPress(key_code);
208 void RecoveryUI::EnqueueKey(int key_code) {
212 key_queue[key_queue_len++] = key_code;