Home
last modified time | relevance | path

Searched refs:mX (Results 1 – 8 of 8) sorted by relevance

/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
DPathEvaluator.java32 x = oneMinusT * oneMinusT * oneMinusT * startValue.mX + in evaluate()
35 t * t * t * endValue.mX; in evaluate()
41 x = startValue.mX + t * (endValue.mX - startValue.mX); in evaluate()
44 x = endValue.mX; in evaluate()
DPathPoint.java37 float mX, mY; field in PathPoint
62 mX = x; in PathPoint()
74 mX = x; in PathPoint()
DCurvedMotion.java120 mButton.setTranslationX(newLoc.mX); in setButtonLoc()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DFingerPaint.java91 private float mX, mY; field in FingerPaint.MyView
97 mX = x; in touch_start()
101 float dx = Math.abs(x - mX); in touch_move()
104 mPath.quadTo(mX, mY, (x + mX)/2, (y + mY)/2); in touch_move()
105 mX = x; in touch_move()
110 mPath.lineTo(mX, mY); in touch_up()
DTextAlign.java34 private float mX; field in TextAlign.SampleView
91 float x = mX; in onDraw()
157 mX = w * 0.5f; // remember the center of the screen in onSizeChanged()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DProjector.java35 mX = x; in setCurrentView()
51 win[winOffset] = mX + mViewWidth * (mV[0] * rw + 1.0f) * 0.5f; in project()
80 private int mX; field in Projector
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DCustomEvaluator.java60 private float mX; field in CustomEvaluator.XYHolder
64 mX = x; in XYHolder()
69 return mX; in getX()
73 mX = x; in setX()
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java211 private double mX; field in LunarView.LunarThread
256 mX = mLanderWidth; in LunarThread()
293 mX = mCanvasWidth / 2; in doStart()
304 if (Math.abs(mGoalX - (mX - mLanderWidth / 2)) > mCanvasHeight / 6) in doStart()
336 mX = savedState.getDouble(KEY_X); in restoreState()
390 map.putDouble(KEY_X, Double.valueOf(mX)); in saveState()
629 int xLeft = (int) mX - mLanderWidth / 2; in doDraw()
664 canvas.rotate((float) mHeading, (float) mX, mCanvasHeight in doDraw()
745 mX += elapsed * (mDX + dxOld) / 2; in updatePhysics()
760 boolean onGoal = (mGoalX <= mX - mLanderWidth / 2 && mX in updatePhysics()