Searched refs:mCenterX (Results 1 – 7 of 7) sorted by relevance
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | SweepWatchFaceService.java | 72 private float mCenterX; field in SweepWatchFaceService.Engine 268 mCenterX = width / 2f; in onSurfaceChanged() 274 mSecondHandLength = (float) (mCenterX * 0.875); in onSurfaceChanged() 275 mMinuteHandLength = (float) (mCenterX * 0.75); in onSurfaceChanged() 276 mHourHandLength = (float) (mCenterX * 0.5); in onSurfaceChanged() 336 float innerTickRadius = mCenterX - 10; in onDraw() 337 float outerTickRadius = mCenterX; in onDraw() 344 canvas.drawLine(mCenterX + innerX, mCenterY + innerY, in onDraw() 345 mCenterX + outerX, mCenterY + outerY, mTickAndCirclePaint); in onDraw() 366 canvas.rotate(hoursRotation, mCenterX, mCenterY); in onDraw() [all …]
|
D | AnalogWatchFaceService.java | 81 private float mCenterX; field in AnalogWatchFaceService.Engine 303 mCenterX = width / 2f; in onSurfaceChanged() 309 mSecondHandLength = (float) (mCenterX * 0.875); in onSurfaceChanged() 310 sMinuteHandLength = (float) (mCenterX * 0.75); in onSurfaceChanged() 311 sHourHandLength = (float) (mCenterX * 0.5); in onSurfaceChanged() 371 float innerTickRadius = mCenterX - 10; in onDraw() 372 float outerTickRadius = mCenterX; in onDraw() 379 canvas.drawLine(mCenterX + innerX, mCenterY + innerY, in onDraw() 380 mCenterX + outerX, mCenterY + outerY, mTickAndCirclePaint); in onDraw() 401 canvas.rotate(hoursRotation, mCenterX, mCenterY); in onDraw() [all …]
|
D | ComplicationSimpleWatchFaceService.java | 103 private float mCenterX; field in ComplicationSimpleWatchFaceService.Engine 488 mCenterX = mWidth / 2f; in onSurfaceChanged() 500 mSecondHandLength = (float) (mCenterX * 0.875); in onSurfaceChanged() 501 mMinuteHandLength = (float) (mCenterX * 0.75); in onSurfaceChanged() 502 mHourHandLength = (float) (mCenterX * 0.5); in onSurfaceChanged() 635 float innerTickRadius = mCenterX - 10; in drawWatchFace() 636 float outerTickRadius = mCenterX; in drawWatchFace() 643 canvas.drawLine(mCenterX + innerX, mCenterY + innerY, in drawWatchFace() 644 mCenterX + outerX, mCenterY + outerY, mTickAndCirclePaint); in drawWatchFace() 665 canvas.rotate(hoursRotation, mCenterX, mCenterY); in drawWatchFace() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | Rotate3dAnimation.java | 31 private final float mCenterX; field in Rotate3dAnimation 56 mCenterX = centerX; in Rotate3dAnimation() 73 final float centerX = mCenterX; in applyTransformation()
|
/development/apps/OBJViewer/com/android/objviewer/ |
D | OBJViewer.java | 72 private float mCenterX = 0.0f; field in OBJView 99 mCenterX = 0.0f; in reset() 181 mCenterX = (obj.getBoundsMinX() + obj.getBoundsMaxX())/2.0f; in onDraw() 221 gl.glTranslatef(-mCenterX, -mCenterY, -mCenterZ); in onDraw()
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/ |
D | CubeWallpaper1.java | 58 private float mCenterX; field in CubeWallpaper1.CubeEngine 108 mCenterX = width/2.0f; in onSurfaceChanged() 180 c.translate(mCenterX, mCenterY); in drawCube()
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/ |
D | CubeWallpaper2.java | 78 private float mCenterX; field in CubeWallpaper2.CubeEngine 172 mCenterX = width/2.0f; in onSurfaceChanged() 242 c.translate(mCenterX, mCenterY); in drawCube()
|