Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/accessibilityservice/
DGestureDescription.java143 private int getPointsForTime(long time, TouchPoint[] touchPoints) { in getPointsForTime() argument
148 touchPoints[numPointsFound].mStrokeId = strokeDescription.getId(); in getPointsForTime()
149 touchPoints[numPointsFound].mContinuedStrokeId = in getPointsForTime()
151 touchPoints[numPointsFound].mIsStartOfPath = in getPointsForTime()
154 touchPoints[numPointsFound].mIsEndOfPath = !strokeDescription.willContinue() in getPointsForTime()
157 touchPoints[numPointsFound].mX = Math.round(mTempPos[0]); in getPointsForTime()
158 touchPoints[numPointsFound].mY = Math.round(mTempPos[1]); in getPointsForTime()
513 public TouchPoint[] touchPoints; field in GestureDescription.GestureStep
519 this.touchPoints = new TouchPoint[numTouchPoints]; in GestureStep()
521 this.touchPoints[i] = new TouchPoint(touchPointsToCopy[i]); in GestureStep()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java228 if (!firstStep.touchPoints[i].mIsStartOfPath) { in newGestureTriesToContinueOldOne()
251 TouchPoint touchPoint = firstStep.touchPoints[i]; in prepareToContinueOldGesture()
357 appendMoveEventIfNeeded(motionEvents, step.touchPoints, currentTouchPointSize, in getMotionEventsFromGestureSteps()
359 appendUpEvents(motionEvents, step.touchPoints, currentTouchPointSize, in getMotionEventsFromGestureSteps()
361 appendDownEvents(motionEvents, step.touchPoints, currentTouchPointSize, in getMotionEventsFromGestureSteps()
448 TouchPoint[] touchPoints, int touchPointsSize) { in obtainMotionEvent() argument
462 int pointerId = mStrokeIdToPointerId.get(touchPoints[i].mStrokeId, -1); in obtainMotionEvent()
465 mStrokeIdToPointerId.put(touchPoints[i].mStrokeId, pointerId); in obtainMotionEvent()
472 sPointerCoords[i].x = touchPoints[i].mX; in obtainMotionEvent()
473 sPointerCoords[i].y = touchPoints[i].mY; in obtainMotionEvent()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java725 TouchPoint[] touchPoints = new TouchPoint[1]; in createSimpleGestureFromPoints() local
726 touchPoints[0] = new TouchPoint(); in createSimpleGestureFromPoints()
728 touchPoints[0].mX = points[i].x; in createSimpleGestureFromPoints()
729 touchPoints[0].mY = points[i].y; in createSimpleGestureFromPoints()
730 touchPoints[0].mIsStartOfPath = ((i == 0) && (continuedStrokeId <= 0)); in createSimpleGestureFromPoints()
731 touchPoints[0].mContinuedStrokeId = continuedStrokeId; in createSimpleGestureFromPoints()
732 touchPoints[0].mStrokeId = strokeId; in createSimpleGestureFromPoints()
733 touchPoints[0].mIsEndOfPath = ((i == points.length - 1) && !continued); in createSimpleGestureFromPoints()
734 gesture.add(new GestureStep(interval * i, 1, touchPoints)); in createSimpleGestureFromPoints()
745 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) {