Home
last modified time | relevance | path

Searched refs:shadowMotionEvent (Results 1 – 2 of 2) sorted by relevance

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DMotionEventTest.java17 private ShadowMotionEvent shadowMotionEvent; field in MotionEventTest
22 shadowMotionEvent = shadowOf(event); in setUp()
40 shadowMotionEvent.setPointer2(20.0f, 30.0f); in canSetPointerIdsByIndex()
41 shadowMotionEvent.setPointerIds(2, 5); in canSetPointerIdsByIndex()
48 shadowMotionEvent.setPointerIndex(1); in indexShowsUpInAction()
55 shadowMotionEvent.setPointerIndex(1); in canGetActionIndex()
62 shadowMotionEvent.setPointerIndex(1); in getActionMaskedStripsPointerIndexFromAction()
68 shadowMotionEvent.setPointer2(20.0f, 30.0f); in canFindPointerIndexFromId()
69 shadowMotionEvent.setPointerIds(2, 1); in canFindPointerIndexFromId()
79 shadowMotionEvent.setLocation(10.0f, 20.0f); in canSetMotionEventLocation()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowMotionEvent.java35 … ShadowMotionEvent shadowMotionEvent = (ShadowMotionEvent) Robolectric.shadowOf_(motionEvent); in obtain() local
36 shadowMotionEvent.x[0] = x; in obtain()
37 shadowMotionEvent.y[0] = y; in obtain()
38 shadowMotionEvent.action = action; in obtain()
39 shadowMotionEvent.downTime = downTime; in obtain()
40 shadowMotionEvent.eventTime = eventTime; in obtain()