Home
last modified time | relevance | path

Searched refs:mPosX (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DRenderPatchAnimation.java35 private float mPosX; field in RenderPatchAnimation
49 mPosX = 2.0f * mAvailableX * RANDOM.nextFloat() - mAvailableX; in RenderPatchAnimation()
77 mPosX += mDirX * t;
79 if (mPosX < -mAvailableX) {
81 } else if (mPosX > mAvailableX) {
96 mMatrix[12] = mPosX;
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java66 private float mPosX; field in TransformTestActivity.TransformView
93 Log.d("ttest", "mScale: " + mScale + " mPos: (" + mPosX + ", " + mPosY + ")"); in onScale()
99 float diffX = centerX - mPosX; in onScale()
103 mPosX -= diffX; in onScale()
108 mMatrix.postTranslate(mPosX, mPosY); in onScale()
130 mPosX = metrics.widthPixels/2; in TransformView()
142 mMatrix.postTranslate(mPosX, mPosY); in setDrawable()
160 mPosX += x - mLastX; in onTouchEvent()
171 mMatrix.postTranslate(mPosX, mPosY); in onTouchEvent()