Home
last modified time | relevance | path

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

/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java65 mVelocityY = 7.0f; in TouchLatencyView()
113 mBallY += mVelocityY; in drawBall()
125 mVelocityY *= -1; in drawBall()
137 mVelocityY *= -1; in drawBall()
173 private float mVelocityX, mVelocityY; field in TouchLatencyView
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java1247 private float mVelocityY; field in PhotoView.TranslateRunnable
1270 mVelocityY = velocityY; in start()
1272 float angle = (float) Math.atan2(mVelocityY, mVelocityX); in start()
1300 final int translateResult = mHeader.translate(mVelocityX * delta, mVelocityY * delta); in run()
1310 if (Math.abs(mVelocityY) > Math.abs(slowDownY)) { in run()
1311 mVelocityY -= slowDownY; in run()
1313 mVelocityY = 0f; in run()
1317 if ((mVelocityX == 0f && mVelocityY == 0f) in run()
1324 mVelocityY = 0f; in run()
1327 mDecelerationY = (mVelocityY > 0) ? DECELERATION_RATE : -DECELERATION_RATE; in run()