Home
last modified time | relevance | path

Searched refs:touchPoints (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/accessibilityservice/
DGestureDescription.java124 private int getPointsForTime(long time, TouchPoint[] touchPoints) { in getPointsForTime() argument
129 touchPoints[numPointsFound].mStrokeId = strokeDescription.getId(); in getPointsForTime()
130 touchPoints[numPointsFound].mContinuedStrokeId = in getPointsForTime()
132 touchPoints[numPointsFound].mIsStartOfPath = in getPointsForTime()
135 touchPoints[numPointsFound].mIsEndOfPath = !strokeDescription.willContinue() in getPointsForTime()
138 touchPoints[numPointsFound].mX = Math.round(mTempPos[0]); in getPointsForTime()
139 touchPoints[numPointsFound].mY = Math.round(mTempPos[1]); in getPointsForTime()
466 public TouchPoint[] touchPoints; field in GestureDescription.GestureStep
472 this.touchPoints = new TouchPoint[numTouchPoints]; in GestureStep()
474 this.touchPoints[i] = new TouchPoint(touchPointsToCopy[i]); in GestureStep()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java237 if (!firstStep.touchPoints[i].mIsStartOfPath) { in newGestureTriesToContinueOldOne()
260 TouchPoint touchPoint = firstStep.touchPoints[i]; in prepareToContinueOldGesture()
359 appendMoveEventIfNeeded(motionEvents, step.touchPoints, currentTouchPointSize, in getMotionEventsFromGestureSteps()
361 appendUpEvents(motionEvents, step.touchPoints, currentTouchPointSize, in getMotionEventsFromGestureSteps()
363 appendDownEvents(motionEvents, step.touchPoints, currentTouchPointSize, in getMotionEventsFromGestureSteps()
450 TouchPoint[] touchPoints, int touchPointsSize) { in obtainMotionEvent() argument
464 int pointerId = mStrokeIdToPointerId.get(touchPoints[i].mStrokeId, -1); in obtainMotionEvent()
467 mStrokeIdToPointerId.put(touchPoints[i].mStrokeId, pointerId); in obtainMotionEvent()
474 sPointerCoords[i].x = touchPoints[i].mX; in obtainMotionEvent()
475 sPointerCoords[i].y = touchPoints[i].mY; in obtainMotionEvent()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java700 TouchPoint[] touchPoints = new TouchPoint[1]; in createSimpleGestureFromPoints() local
701 touchPoints[0] = new TouchPoint(); in createSimpleGestureFromPoints()
703 touchPoints[0].mX = points[i].x; in createSimpleGestureFromPoints()
704 touchPoints[0].mY = points[i].y; in createSimpleGestureFromPoints()
705 touchPoints[0].mIsStartOfPath = ((i == 0) && (continuedStrokeId <= 0)); in createSimpleGestureFromPoints()
706 touchPoints[0].mContinuedStrokeId = continuedStrokeId; in createSimpleGestureFromPoints()
707 touchPoints[0].mStrokeId = strokeId; in createSimpleGestureFromPoints()
708 touchPoints[0].mIsEndOfPath = ((i == points.length - 1) && !continued); in createSimpleGestureFromPoints()
709 gesture.add(new GestureStep(interval * i, 1, touchPoints)); in createSimpleGestureFromPoints()
720 TouchPoint[] touchPoints = new TouchPoint[numPoints1 + numPoints2]; in combineGestureSteps() local
[all …]
DGestureDescriptionTest.java309 if (gestureStep.touchPoints[i].mIsStartOfPath) {
329 if (gestureStep.touchPoints[i].mIsEndOfPath) {
348 if ((gestureStep.touchPoints[i].mX == point.x)
349 && (gestureStep.touchPoints[i].mY == point.y)) {
368 if (gestureStep.touchPoints[i].mStrokeId == strokeId) {
387 if (gestureStep.touchPoints[i].mContinuedStrokeId == strokeId) {