Home
last modified time | relevance | path

Searched refs:motionEvent (Results 1 – 9 of 9) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowGestureDetectorTest.java23 private MotionEvent motionEvent; field in ShadowGestureDetectorTest
29 motionEvent = newBuilder().setAction(MotionEvent.ACTION_UP).setPointer(100, 30).build(); in setUp()
35 detector.onTouchEvent(motionEvent); in test_getOnTouchEventMotionEvent()
36 assertSame(motionEvent, shadowOf(detector).getOnTouchEventMotionEvent()); in test_getOnTouchEventMotionEvent()
41 detector.onTouchEvent(motionEvent); in test_reset()
42 assertSame(motionEvent, shadowOf(detector).getOnTouchEventMotionEvent()); in test_reset()
59 newDetector.onTouchEvent(motionEvent); in canAnswerLastGestureDetector()
DShadowScaleGestureDetectorTest.java20 private MotionEvent motionEvent; field in ShadowScaleGestureDetectorTest
25 motionEvent = MotionEvent.obtain(-1, -1, MotionEvent.ACTION_UP, 100, 30, -1); in setUp()
30 detector.onTouchEvent(motionEvent); in test_getOnTouchEventMotionEvent()
31 assertSame(motionEvent, shadowOf(detector).getOnTouchEventMotionEvent()); in test_getOnTouchEventMotionEvent()
60 detector.onTouchEvent(motionEvent); in test_reset()
63 assertSame(motionEvent, shadowOf(detector).getOnTouchEventMotionEvent()); in test_reset()
DShadowViewTest.java453 public boolean onTouch(View view, MotionEvent motionEvent) { in dispatchTouchEvent_listensToFalseFromListener()
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/
DGestureHelper.java109 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
110 boolean val = gestureDetector.onTouchEvent(motionEvent); in onTouch()
113 if (motionEvent.getAction() == MotionEvent.ACTION_UP && isScrolling) { in onTouch()
/external/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/
DGestureHelper.java109 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
110 boolean val = gestureDetector.onTouchEvent(motionEvent); in onTouch()
113 if (motionEvent.getAction() == MotionEvent.ACTION_UP && isScrolling) { in onTouch()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
DXYPlotZoomPan.java262 private void pan(final MotionEvent motionEvent) { in pan() argument
264 … firstFingerPos = new PointF(motionEvent.getX(), motionEvent.getY()); //update finger position in pan()
323 private void zoom(final MotionEvent motionEvent) { in zoom() argument
325 final float newDist = getXDistance(motionEvent); in zoom()
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/eventhandlingadvanced/
DAdvancedEventHandlingActivity.java72 public boolean onTouch(View view, MotionEvent motionEvent) { in onCreate()
73 return gestureDetector.onTouchEvent(motionEvent); in onCreate()
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DBarPlotExampleActivity.java155 public boolean onTouch(View view, MotionEvent motionEvent) { in onCreate()
156 if(motionEvent.getAction() == MotionEvent.ACTION_DOWN) { in onCreate()
157 onPlotClicked(new PointF(motionEvent.getX(), motionEvent.getY())); in onCreate()
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/extension/views/
DFreehandView.java47 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument