Home
last modified time | relevance | path

Searched refs:lastX (Results 1 – 11 of 11) sorted by relevance

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DCachedPathIteratorFactory.java80 float lastX = 0; in CachedPathIteratorFactory() local
86 cubicCurve.setCurve(lastX, lastY, in CachedPathIteratorFactory()
88 mCoordinates[i][3], lastX = mCoordinates[i][4], in CachedPathIteratorFactory()
94 quadCurve.setCurve(lastX, lastY, mCoordinates[i][0], mCoordinates[i][1], in CachedPathIteratorFactory()
95 lastX = mCoordinates[i][2], lastY = mCoordinates[i][3]); in CachedPathIteratorFactory()
100 mSegmentsLength[i] = (float) Point2D.distance(lastX, lastY, in CachedPathIteratorFactory()
101 lastX = mCoordinates[0][0], in CachedPathIteratorFactory()
112 lastX = mCoordinates[i][0]; in CachedPathIteratorFactory()
116 mSegmentsLength[i] = (float) Point2D.distance(lastX, lastY, mCoordinates[i][0], in CachedPathIteratorFactory()
118 lastX = mCoordinates[i][0]; in CachedPathIteratorFactory()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardAffordanceHelper.java213 private void endMotion(boolean forceSnapBack, float lastX, float lastY) { in endMotion() argument
215 flingWithCurrentVelocity(forceSnapBack, lastX, lastY); in endMotion()
314 private void flingWithCurrentVelocity(boolean forceSnapBack, float lastX, float lastY) { in flingWithCurrentVelocity() argument
315 float vel = getCurrentVelocity(lastX, lastY); in flingWithCurrentVelocity()
477 private float getCurrentVelocity(float lastX, float lastY) { in getCurrentVelocity() argument
484 float bX = lastX - mInitialTouchX; in getCurrentVelocity()
DObservableScrollView.java148 void onOverscrolled(float lastX, float lastY, int amount); in onOverscrolled() argument
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java453 int firstX, lastX; in getScale() local
456 firstX = lastX = -1; in getScale()
462 lastX = x; in getScale()
469 mRightBorder[y] = lastX; in getScale()
479 rightX = Math.max(rightX, lastX); in getScale()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java339 float lastX = 0, lastY = 0; in onDraw() local
351 canvas.drawLine(lastX, lastY, x, y, mPathPaint); in onDraw()
353 canvas.drawPoint(lastX, lastY, paint); in onDraw()
356 lastX = x; in onDraw()
366 canvas.drawLine(lastX, lastY, lastX + xVel, lastY + yVel, mPaint); in onDraw()
373 canvas.drawLine(lastX, lastY, lastX + xVel, lastY + yVel, mPaint); in onDraw()
DLockPatternView.java1177 float lastX = 0f; in onDraw()
1204 currentPath.moveTo(lastX, lastY); in onDraw()
1222 lastX = centerX; in onDraw()
1230 currentPath.moveTo(lastX, lastY); in onDraw()
1234 mInProgressX, mInProgressY, lastX, lastY) * 255f)); in onDraw()
1240 private float calculateLastSegmentAlpha(float x, float y, float lastX, float lastY) {
1241 float diffX = x - lastX;
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DInteraction.java139 float lastX = xPos[xPos.length - 1]; in createInterpolatedEventList() local
142 MotionEvent.ACTION_UP, lastX, lastY, 0); in createInterpolatedEventList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DZigZagClassifier.java150 float lastX = lastEvent.getX() - offsetX; in getAtan2LastPoint() local
153 return (float) Math.atan2(lastY, lastX); in getAtan2LastPoint()
DFalsingDataProvider.java198 float lastX = mLastMotionEvent.getX() - mFirstRecentMotionEvent.getX(); in calculateAngleInternal() local
201 mAngle = (float) Math.atan2(lastY, lastX); in calculateAngleInternal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java163 int lastX = 0; in updateAnimators() local
192 lastX = loc1[0]; in updateAnimators()
197 lastXDiff = loc1[0] - lastX; in updateAnimators()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchHandler.java615 float lastX = mStartPosition.x + mDelta.x;
617 float left = lastX + lastDelta.x;
630 mDelta.x += left - lastX;