Searched refs:motionEvent (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventTest.java | 261 MotionEvent motionEvent = MotionEvent.CREATOR.createFromParcel(parcel); in testWriteToParcel() local 262 assertEquals(mMotionEvent2.getRawY(), motionEvent.getRawY(), DELTA); in testWriteToParcel() 263 assertEquals(mMotionEvent2.getRawX(), motionEvent.getRawX(), DELTA); in testWriteToParcel() 264 assertEquals(mMotionEvent2.getY(), motionEvent.getY(), DELTA); in testWriteToParcel() 265 assertEquals(mMotionEvent2.getX(), motionEvent.getX(), DELTA); in testWriteToParcel() 266 assertEquals(mMotionEvent2.getAction(), motionEvent.getAction()); in testWriteToParcel() 267 assertEquals(mMotionEvent2.getDownTime(), motionEvent.getDownTime()); in testWriteToParcel() 268 assertEquals(mMotionEvent2.getEventTime(), motionEvent.getEventTime()); in testWriteToParcel() 269 assertEquals(mMotionEvent2.getEdgeFlags(), motionEvent.getEdgeFlags()); in testWriteToParcel() 270 assertEquals(mMotionEvent2.getDeviceId(), motionEvent.getDeviceId()); in testWriteToParcel() [all …]
|
D | MotionEventUtils.java | 69 public void verifyMatchesPointerProperties(MotionEvent motionEvent, int pointerIndex) { in verifyMatchesPointerProperties() argument 71 motionEvent.getPointerProperties(pointerIndex, that); in verifyMatchesPointerProperties() 378 public void verifyMatchesPointerCoords(MotionEvent motionEvent, int pointerIndex) { in verifyMatchesPointerCoords() argument 380 motionEvent.getPointerCoords(pointerIndex, that); in verifyMatchesPointerCoords() 385 public void verifyMatchesHistoricalPointerCoords(MotionEvent motionEvent, int pointerIndex, in verifyMatchesHistoricalPointerCoords() argument 388 motionEvent.getHistoricalPointerCoords(pointerIndex, pos, that); in verifyMatchesHistoricalPointerCoords()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | EventCapturingTouchListener.java | 33 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument 34 assertTrue(events.offer(MotionEvent.obtain(motionEvent))); in onTouch()
|
/cts/tests/app/src/android/app/cts/ |
D | InstrumentationTest.java | 218 MotionEvent motionEvent = mActivity.getMotionEvent(); in testSendTrackballEventSync() local 219 assertEquals(orig.getMetaState(), motionEvent.getMetaState()); in testSendTrackballEventSync() 220 assertEquals(orig.getEventTime(), motionEvent.getEventTime()); in testSendTrackballEventSync() 221 assertEquals(orig.getDownTime(), motionEvent.getDownTime()); in testSendTrackballEventSync()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityGestureDispatchTest.java | 554 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument 556 if (motionEvent.getActionMasked() == MotionEvent.ACTION_UP) { in onTouch() 559 mMotionEvents.add(MotionEvent.obtain(motionEvent)); in onTouch() 644 protected boolean matchesSafely(MotionEvent motionEvent) { in matchesSafely() argument 645 return motionEvent.getActionMasked() == mAction; in matchesSafely()
|