Lines Matching refs:event
23 KeyEvent event; in getKeyEventWithFlags() local
24 event.initialize(InputEvent::nextId(), 2 /*deviceId*/, AINPUT_SOURCE_GAMEPAD, in getKeyEventWithFlags()
28 return event; in getKeyEventWithFlags()
32 MotionEvent event; in getMotionEventWithFlags() local
42 event.initialize(InputEvent::nextId(), 0 /*deviceId*/, AINPUT_SOURCE_MOUSE, ADISPLAY_ID_DEFAULT, in getMotionEventWithFlags()
49 return event; in getMotionEventWithFlags()
53 KeyEvent event = getKeyEventWithFlags(0); in TEST() local
54 VerifiedKeyEvent verified = verifiedKeyEventFromKeyEvent(event); in TEST()
58 ASSERT_EQ(event.getDeviceId(), verified.deviceId); in TEST()
59 ASSERT_EQ(event.getEventTime(), verified.eventTimeNanos); in TEST()
60 ASSERT_EQ(event.getSource(), verified.source); in TEST()
61 ASSERT_EQ(event.getDisplayId(), verified.displayId); in TEST()
63 ASSERT_EQ(event.getAction(), verified.action); in TEST()
64 ASSERT_EQ(event.getDownTime(), verified.downTimeNanos); in TEST()
65 ASSERT_EQ(event.getFlags() & VERIFIED_KEY_EVENT_FLAGS, verified.flags); in TEST()
66 ASSERT_EQ(event.getKeyCode(), verified.keyCode); in TEST()
67 ASSERT_EQ(event.getScanCode(), verified.scanCode); in TEST()
68 ASSERT_EQ(event.getMetaState(), verified.metaState); in TEST()
69 ASSERT_EQ(event.getRepeatCount(), verified.repeatCount); in TEST()
73 KeyEvent event = getKeyEventWithFlags(AKEY_EVENT_FLAG_CANCELED | AKEY_EVENT_FLAG_FALLBACK); in TEST() local
74 VerifiedKeyEvent verified = verifiedKeyEventFromKeyEvent(event); in TEST()
79 KeyEvent event = getKeyEventWithFlags(AKEY_EVENT_FLAG_EDITOR_ACTION); in TEST() local
80 VerifiedKeyEvent verified = verifiedKeyEventFromKeyEvent(event); in TEST()
85 MotionEvent event = getMotionEventWithFlags(0); in TEST() local
86 VerifiedMotionEvent verified = verifiedMotionEventFromMotionEvent(event); in TEST()
90 ASSERT_EQ(event.getDeviceId(), verified.deviceId); in TEST()
91 ASSERT_EQ(event.getEventTime(), verified.eventTimeNanos); in TEST()
92 ASSERT_EQ(event.getSource(), verified.source); in TEST()
93 ASSERT_EQ(event.getDisplayId(), verified.displayId); in TEST()
95 ASSERT_EQ(event.getRawX(0), verified.rawX); in TEST()
96 ASSERT_EQ(event.getRawY(0), verified.rawY); in TEST()
97 ASSERT_EQ(event.getAction(), verified.actionMasked); in TEST()
98 ASSERT_EQ(event.getDownTime(), verified.downTimeNanos); in TEST()
99 ASSERT_EQ(event.getFlags() & VERIFIED_MOTION_EVENT_FLAGS, verified.flags); in TEST()
100 ASSERT_EQ(event.getMetaState(), verified.metaState); in TEST()
101 ASSERT_EQ(event.getButtonState(), verified.buttonState); in TEST()
105 MotionEvent event = getMotionEventWithFlags(AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED | in TEST() local
107 VerifiedMotionEvent verified = verifiedMotionEventFromMotionEvent(event); in TEST()
112 MotionEvent event = getMotionEventWithFlags(AMOTION_EVENT_FLAG_TAINTED); in TEST() local
113 VerifiedMotionEvent verified = verifiedMotionEventFromMotionEvent(event); in TEST()