Searched refs:key_code (Results 1 – 4 of 4) sorted by relevance
91 void RecoveryUI::OnKeyDetected(int key_code) { in OnKeyDetected() argument92 if (key_code == KEY_POWER) { in OnKeyDetected()94 } else if (key_code == KEY_DOWN || key_code == KEY_VOLUMEDOWN) { in OnKeyDetected()96 } else if (key_code == KEY_UP || key_code == KEY_VOLUMEUP) { in OnKeyDetected()98 } else if (key_code == ABS_MT_POSITION_X || key_code == ABS_MT_POSITION_Y) { in OnKeyDetected()343 void RecoveryUI::ProcessKey(int key_code, int updown) { in ProcessKey() argument349 key_pressed[key_code] = updown; in ProcessKey()352 key_last_down = key_code; in ProcessKey()354 std::thread time_key_thread(&RecoveryUI::TimeKey, this, key_code, key_down_count); in ProcessKey()357 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()
196 void EnqueueKey(int key_code);223 void OnKeyDetected(int key_code);226 void ProcessKey(int key_code, int updown);227 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()