Home
last modified time | relevance | path

Searched refs:TouchPoint (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/accessibilityservice/
DGestureDescription.java124 private int getPointsForTime(long time, TouchPoint[] touchPoints) { in getPointsForTime()
393 public static class TouchPoint implements Parcelable { class in GestureDescription
404 public TouchPoint() { in TouchPoint() method in GestureDescription.TouchPoint
407 public TouchPoint(TouchPoint pointToCopy) { in TouchPoint() method in GestureDescription.TouchPoint
411 public TouchPoint(Parcel parcel) { in TouchPoint() method in GestureDescription.TouchPoint
421 public void copyFrom(TouchPoint other) { in copyFrom()
458 public static final @android.annotation.NonNull Parcelable.Creator<TouchPoint> CREATOR
459 = new Parcelable.Creator<TouchPoint>() {
460 public TouchPoint createFromParcel(Parcel in) {
461 return new TouchPoint(in);
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java21 import android.accessibilityservice.GestureDescription.TouchPoint;
74 private TouchPoint[] mLastTouchPoints;
249 TouchPoint touchPoint = firstStep.touchPoints[i]; in prepareToContinueOldGesture()
344 TouchPoint[] lastTouchPoints = getLastTouchPoints(); in getMotionEventsFromGestureSteps()
365 private TouchPoint[] getLastTouchPoints() { in getLastTouchPoints()
368 mLastTouchPoints = new TouchPoint[capacity]; in getLastTouchPoints()
370 mLastTouchPoints[i] = new GestureDescription.TouchPoint(); in getLastTouchPoints()
377 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendMoveEventIfNeeded()
380 TouchPoint[] lastTouchPoints = getLastTouchPoints(); in appendMoveEventIfNeeded()
398 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendUpEvents()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java43 import android.accessibilityservice.GestureDescription.TouchPoint;
214 TouchPoint[] startTouchPoints = new TouchPoint[tooManyPointsCount]; in testInjectEvents_gestureWithTooManyPoints_shouldNotCrash()
215 TouchPoint[] endTouchPoints = new TouchPoint[tooManyPointsCount]; in testInjectEvents_gestureWithTooManyPoints_shouldNotCrash()
217 startTouchPoints[i] = new TouchPoint(); in testInjectEvents_gestureWithTooManyPoints_shouldNotCrash()
221 endTouchPoints[i] = new TouchPoint(); in testInjectEvents_gestureWithTooManyPoints_shouldNotCrash()
331 TouchPoint clickTouchPoint = new TouchPoint(); in testOnMotionEvents_closedInjectedGestureInProgress_shouldOnlyNotifyAndPassReal()
335 mLineList.add(new GestureStep(0, 1, new TouchPoint[] {clickTouchPoint})); in testOnMotionEvents_closedInjectedGestureInProgress_shouldOnlyNotifyAndPassReal()
377 TouchPoint clickTouchPoint = new TouchPoint(); in testInjectEvents_closedInjectedGestureInProgress_shouldOnlyNotifyAndPassNew()
381 mLineList.add(new GestureStep(0, 1, new TouchPoint[] {clickTouchPoint})); in testInjectEvents_closedInjectedGestureInProgress_shouldOnlyNotifyAndPassNew()
721 TouchPoint[] touchPoints = new TouchPoint[1]; in createSimpleGestureFromPoints()
[all …]