Lines Matching refs:KeyCode
282 enum class KeyCode : int { enum
292 static const std::map<KeyCode, int> kKeyMapping{
294 { KeyCode::NO_OP, Device::kNoAction },
295 { KeyCode::UP, Device::kHighlightUp },
296 { KeyCode::DOWN, Device::kHighlightDown },
297 { KeyCode::ENTER, Device::kInvokeItem },
298 { KeyCode::MAGIC, kMagicAction },
306 void SetKeyBuffer(const std::vector<KeyCode>& buffer);
317 std::vector<KeyCode> key_buffer_;
321 void TestableScreenRecoveryUI::SetKeyBuffer(const std::vector<KeyCode>& buffer) { in SetKeyBuffer()
327 KeyCode key_code = static_cast<KeyCode>(key); in KeyHandler()
423 KeyCode::UP, in TEST_F()
424 KeyCode::DOWN, in TEST_F()
425 KeyCode::UP, in TEST_F()
426 KeyCode::DOWN, in TEST_F()
427 KeyCode::ENTER, in TEST_F()
434 KeyCode::UP, in TEST_F()
435 KeyCode::UP, in TEST_F()
436 KeyCode::NO_OP, in TEST_F()
437 KeyCode::NO_OP, in TEST_F()
438 KeyCode::UP, in TEST_F()
439 KeyCode::ENTER, in TEST_F()
451 KeyCode::MAGIC, in TEST_F()
464 KeyCode::TIMEOUT, in TEST_F()
479 KeyCode::TIMEOUT, in TEST_F()
480 KeyCode::DOWN, in TEST_F()
481 KeyCode::ENTER, in TEST_F()
493 KeyCode::UP, in TEST_F()
494 KeyCode::DOWN, in TEST_F()
495 KeyCode::UP, in TEST_F()
496 KeyCode::DOWN, in TEST_F()
497 KeyCode::ENTER, in TEST_F()
507 KeyCode::UP, in TEST_F()
508 KeyCode::UP, in TEST_F()
509 KeyCode::NO_OP, in TEST_F()
510 KeyCode::NO_OP, in TEST_F()
511 KeyCode::UP, in TEST_F()
512 KeyCode::ENTER, in TEST_F()