Lines Matching full:mapper1
1456 FakeInputMapper* mapper1 = new FakeInputMapper(mDevice, AINPUT_SOURCE_KEYBOARD);
1457 mapper1->setKeyboardType(AINPUT_KEYBOARD_TYPE_ALPHABETIC);
1458 mapper1->setMetaState(AMETA_ALT_ON);
1459 mapper1->addSupportedKeyCode(AKEYCODE_A);
1460 mapper1->addSupportedKeyCode(AKEYCODE_B);
1461 mapper1->setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN);
1462 mapper1->setKeyCodeState(AKEYCODE_B, AKEY_STATE_UP);
1463 mapper1->setScanCodeState(2, AKEY_STATE_DOWN);
1464 mapper1->setScanCodeState(3, AKEY_STATE_UP);
1465 mapper1->setSwitchState(4, AKEY_STATE_DOWN);
1466 mDevice->addMapper(mapper1);
1480 ASSERT_NO_FATAL_FAILURE(mapper1->assertConfigureWasCalled());
1485 ASSERT_NO_FATAL_FAILURE(mapper1->assertResetWasCalled());
1542 ASSERT_NO_FATAL_FAILURE(mapper1->assertProcessWasCalled());