Searched refs:key_code (Results 1 – 4 of 4) sorted by relevance
95 void RecoveryUI::OnKeyDetected(int key_code) { in OnKeyDetected() argument96 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() argument362 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 …]
318 for (int key_code = 0; key_code <= KEY_MAX; ++key_code) { in ev_iterate_available_keys() local319 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() local343 if (test_bit(key_code, key_bits)) { in ev_iterate_touch_inputs()344 action(key_code); in ev_iterate_touch_inputs()
198 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);
327 KeyCode key_code = static_cast<KeyCode>(key); in KeyHandler() local328 if (kKeyMapping.find(key_code) != kKeyMapping.end()) { in KeyHandler()329 return kKeyMapping.at(key_code); in KeyHandler()