Lines Matching refs:mapper1

2697     FakeInputMapper& mapper1 =  in TEST_F()  local
2700 mapper1.setKeyboardType(AINPUT_KEYBOARD_TYPE_ALPHABETIC); in TEST_F()
2701 mapper1.setMetaState(AMETA_ALT_ON); in TEST_F()
2702 mapper1.addSupportedKeyCode(AKEYCODE_A); in TEST_F()
2703 mapper1.addSupportedKeyCode(AKEYCODE_B); in TEST_F()
2704 mapper1.setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
2705 mapper1.setKeyCodeState(AKEYCODE_B, AKEY_STATE_UP); in TEST_F()
2706 mapper1.setScanCodeState(2, AKEY_STATE_DOWN); in TEST_F()
2707 mapper1.setScanCodeState(3, AKEY_STATE_UP); in TEST_F()
2708 mapper1.setSwitchState(4, AKEY_STATE_DOWN); in TEST_F()
2723 ASSERT_NO_FATAL_FAILURE(mapper1.assertConfigureWasCalled()); in TEST_F()
2728 ASSERT_NO_FATAL_FAILURE(mapper1.assertResetWasCalled()); in TEST_F()
2785 ASSERT_NO_FATAL_FAILURE(mapper1.assertProcessWasCalled()); in TEST_F()
4027 KeyboardInputMapper& mapper1 = in TEST_F() local
4057 ASSERT_EQ(AMETA_NONE, mapper1.getMetaState()); in TEST_F()
4061 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_NUMLOCK, 1); in TEST_F()
4062 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_NUMLOCK, 0); in TEST_F()
4064 ASSERT_EQ(AMETA_NUM_LOCK_ON, mapper1.getMetaState()); in TEST_F()
4067 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_NUMLOCK, 1); in TEST_F()
4068 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_NUMLOCK, 0); in TEST_F()
4070 ASSERT_EQ(AMETA_NONE, mapper1.getMetaState()); in TEST_F()
4074 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_CAPSLOCK, 1); in TEST_F()
4075 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_CAPSLOCK, 0); in TEST_F()
4077 ASSERT_EQ(AMETA_CAPS_LOCK_ON, mapper1.getMetaState()); in TEST_F()
4080 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_CAPSLOCK, 1); in TEST_F()
4081 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_CAPSLOCK, 0); in TEST_F()
4083 ASSERT_EQ(AMETA_NONE, mapper1.getMetaState()); in TEST_F()
4087 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_SCROLLLOCK, 1); in TEST_F()
4088 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_SCROLLLOCK, 0); in TEST_F()
4090 ASSERT_EQ(AMETA_SCROLL_LOCK_ON, mapper1.getMetaState()); in TEST_F()
4093 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_SCROLLLOCK, 1); in TEST_F()
4094 process(mapper1, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_SCROLLLOCK, 0); in TEST_F()
4096 ASSERT_EQ(AMETA_NONE, mapper1.getMetaState()); in TEST_F()