Lines Matching refs:keyArgs
1540 NotifyKeyArgs keyArgs; in TEST_F() local
1542 ASSERT_NO_FATAL_FAILURE(mTestListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
1543 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F()
1544 ASSERT_NE(prevId, keyArgs.id); in TEST_F()
1545 prevId = keyArgs.id; in TEST_F()
1546 ASSERT_LE(prevTimestamp, keyArgs.eventTime); in TEST_F()
1547 ASSERT_LE(keyArgs.eventTime, keyArgs.readTime); in TEST_F()
1548 prevTimestamp = keyArgs.eventTime; in TEST_F()
1550 ASSERT_NO_FATAL_FAILURE(mTestListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
1551 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F()
1552 ASSERT_NE(prevId, keyArgs.id); in TEST_F()
1553 ASSERT_LE(prevTimestamp, keyArgs.eventTime); in TEST_F()
1554 ASSERT_LE(keyArgs.eventTime, keyArgs.readTime); in TEST_F()
1641 NotifyKeyArgs keyArgs; in TEST_F() local
1644 ASSERT_NO_FATAL_FAILURE(mTestListener->assertNotifyKeyWasCalled(&keyArgs)); // ACTION_DOWN in TEST_F()
1645 ASSERT_NO_FATAL_FAILURE(mTestListener->assertNotifyKeyWasCalled(&keyArgs)); // ACTION_UP in TEST_F()
1646 ASSERT_EQ(BTN_GEAR_DOWN, keyArgs.scanCode); in TEST_F()
1649 ASSERT_NO_FATAL_FAILURE(mTestListener->assertNotifyKeyWasCalled(&keyArgs)); // ACTION_DOWN in TEST_F()
1650 ASSERT_NO_FATAL_FAILURE(mTestListener->assertNotifyKeyWasCalled(&keyArgs)); // ACTION_UP in TEST_F()
1651 ASSERT_EQ(BTN_GEAR_UP, keyArgs.scanCode); in TEST_F()
4719 NotifyKeyArgs keyArgs; in TEST_F() local
4727 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
4728 ASSERT_EQ(ARBITRARY_TIME, keyArgs.eventTime); in TEST_F()
4729 ASSERT_EQ(DEVICE_ID, keyArgs.deviceId); in TEST_F()
4730 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, keyArgs.source); in TEST_F()
4731 ASSERT_EQ(POLICY_FLAG_VIRTUAL, keyArgs.policyFlags); in TEST_F()
4732 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F()
4733 ASSERT_EQ(AKEY_EVENT_FLAG_FROM_SYSTEM | AKEY_EVENT_FLAG_VIRTUAL_HARD_KEY, keyArgs.flags); in TEST_F()
4734 ASSERT_EQ(AKEYCODE_HOME, keyArgs.keyCode); in TEST_F()
4735 ASSERT_EQ(KEY_HOME, keyArgs.scanCode); in TEST_F()
4736 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, keyArgs.metaState); in TEST_F()
4737 ASSERT_EQ(ARBITRARY_TIME, keyArgs.downTime); in TEST_F()
4745 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
4746 ASSERT_EQ(ARBITRARY_TIME, keyArgs.eventTime); in TEST_F()
4747 ASSERT_EQ(DEVICE_ID, keyArgs.deviceId); in TEST_F()
4748 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, keyArgs.source); in TEST_F()
4749 ASSERT_EQ(POLICY_FLAG_VIRTUAL, keyArgs.policyFlags); in TEST_F()
4750 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F()
4752 | AKEY_EVENT_FLAG_CANCELED, keyArgs.flags); in TEST_F()
4753 ASSERT_EQ(AKEYCODE_HOME, keyArgs.keyCode); in TEST_F()
4754 ASSERT_EQ(KEY_HOME, keyArgs.scanCode); in TEST_F()
4755 ASSERT_EQ(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_ON, keyArgs.metaState); in TEST_F()
4756 ASSERT_EQ(ARBITRARY_TIME, keyArgs.downTime); in TEST_F()
5511 NotifyKeyArgs keyArgs; in TEST_F() local
5581 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
5582 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F()
5583 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode); in TEST_F()
5603 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
5604 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F()
5605 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode); in TEST_F()
5610 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
5611 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F()
5612 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode); in TEST_F()
5632 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
5633 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F()
5634 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode); in TEST_F()
5639 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
5640 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F()
5641 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode); in TEST_F()
5661 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
5662 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F()
5663 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode); in TEST_F()
5668 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
5669 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F()
5670 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode); in TEST_F()
5690 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
5691 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F()
5692 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode); in TEST_F()
8085 NotifyKeyArgs keyArgs; in TEST_F() local
8156 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
8157 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F()
8158 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode); in TEST_F()
8178 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
8179 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F()
8180 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode); in TEST_F()
8185 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
8186 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F()
8187 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode); in TEST_F()
8207 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
8208 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F()
8209 ASSERT_EQ(AKEYCODE_BACK, keyArgs.keyCode); in TEST_F()
8214 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
8215 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F()
8216 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode); in TEST_F()
8236 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
8237 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F()
8238 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode); in TEST_F()
8243 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
8244 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, keyArgs.action); in TEST_F()
8245 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode); in TEST_F()
8265 ASSERT_NO_FATAL_FAILURE(mFakeListener->assertNotifyKeyWasCalled(&keyArgs)); in TEST_F()
8266 ASSERT_EQ(AKEY_EVENT_ACTION_UP, keyArgs.action); in TEST_F()
8267 ASSERT_EQ(AKEYCODE_FORWARD, keyArgs.keyCode); in TEST_F()