Home
last modified time | relevance | path

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

/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java130 private float mMetersToPixelsX; field in AccelerometerPlayActivity.SimulationView
335 mMetersToPixelsX = mXDpi / 0.0254f; in SimulationView()
339 mDstWidth = (int) (sBallDiameter * mMetersToPixelsX + 0.5f); in SimulationView()
354 mHorizontalBound = ((w / mMetersToPixelsX - sBallDiameter) * 0.5f); in onSizeChanged()
406 final float xs = mMetersToPixelsX; in onDraw()