Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DShadowCardDrag.java70 float newMomentumX = (x - lastX) / (mDensity * deltaT); in onMove()
71 float newMomentumY = (y - lastY) / (mDensity * deltaT); in onMove()
142 private float mDensity; field in ShadowCardDrag
154 mDensity = getResources().getDisplayMetrics().density; in onCreate()
157 float r = 10 * mDensity; in onCreate()
219 MAX_Z_DP * mDensity); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DAnimationCloning.java65 private float mDensity; field in AnimationCloning.MyAnimationView
70 mDensity = getContext().getResources().getDisplayMetrics().density; in MyAnimationView()
108 circle.resize(50f * mDensity, 50f * mDensity); in addBall()