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.java212 private void endMotion(boolean forceSnapBack, float lastX, float lastY) { in endMotion() argument
214 flingWithCurrentVelocity(forceSnapBack, lastX, lastY); in endMotion()
313 private void flingWithCurrentVelocity(boolean forceSnapBack, float lastX, float lastY) { in flingWithCurrentVelocity() argument
314 float vel = getCurrentVelocity(lastX, lastY); in flingWithCurrentVelocity()
476 private float getCurrentVelocity(float lastX, float lastY) { in getCurrentVelocity() argument
483 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/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/core/java/com/android/internal/widget/
DPointerLocationView.java361 float lastX = 0, lastY = 0; in onDraw() local
373 canvas.drawLine(lastX, lastY, x, y, mPathPaint); in onDraw()
375 canvas.drawPoint(lastX, lastY, paint); in onDraw()
378 lastX = x; in onDraw()
388 canvas.drawLine(lastX, lastY, lastX + xVel, lastY + yVel, mPaint); in onDraw()
395 canvas.drawLine(lastX, lastY, lastX + xVel, lastY + yVel, mPaint); in onDraw()
DLockPatternView.java1184 float lastX = 0f; in onDraw()
1211 currentPath.moveTo(lastX, lastY); in onDraw()
1229 lastX = centerX; in onDraw()
1237 currentPath.moveTo(lastX, lastY); in onDraw()
1241 mInProgressX, mInProgressY, lastX, lastY) * 255f)); in onDraw()
1247 private float calculateLastSegmentAlpha(float x, float y, float lastX, float lastY) {
1248 float diffX = x - lastX;
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DFalsingDataProvider.java198 float lastX = mLastMotionEvent.getX() - mFirstRecentMotionEvent.getX(); in calculateAngleInternal() local
201 mAngle = (float) Math.atan2(lastY, lastX); in calculateAngleInternal()
DZigZagClassifier.java150 float lastX = lastEvent.getX() - offsetX; in getAtan2LastPoint() local
153 return (float) Math.atan2(lastY, lastX); in getAtan2LastPoint()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java184 int lastX = 0; in updateAnimators() local
213 lastX = loc1[0]; in updateAnimators()
218 lastXDiff = loc1[0] - lastX; in updateAnimators()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchHandler.java633 float lastX = mStartPosition.x + mDelta.x;
635 float left = lastX + lastDelta.x;
648 mDelta.x += left - lastX;