/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | Rotate3dAnimation.java | 53 float centerX, float centerY, float depthZ, boolean reverse) { in Rotate3dAnimation() argument 56 mCenterX = centerX; in Rotate3dAnimation() 73 final float centerX = mCenterX; in applyTransformation() local 89 matrix.preTranslate(-centerX, -centerY); in applyTransformation() 90 matrix.postTranslate(centerX, centerY); in applyTransformation()
|
D | Transition3d.java | 89 final float centerX = mContainer.getWidth() / 2.0f; in applyRotation() local 95 new Rotate3dAnimation(start, end, centerX, centerY, 310.0f, true); in applyRotation() 149 final float centerX = mContainer.getWidth() / 2.0f; in run() local 158 rotation = new Rotate3dAnimation(90, 180, centerX, centerY, 310.0f, false); in run() 164 rotation = new Rotate3dAnimation(90, 0, centerX, centerY, 310.0f, false); in run()
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | SweepWatchFaceService.java | 195 float centerX = width / 2f; in onDraw() local 199 float innerTickRadius = centerX - 10; in onDraw() 200 float outerTickRadius = centerX; in onDraw() 207 canvas.drawLine(centerX + innerX, centerY + innerY, in onDraw() 208 centerX + outerX, centerY + outerY, mTickPaint); in onDraw() 217 float secLength = centerX - 20; in onDraw() 218 float minLength = centerX - 40; in onDraw() 219 float hrLength = centerX - 80; in onDraw() 224 canvas.drawLine(centerX, centerY, centerX + secX, centerY + secY, mSecondPaint); in onDraw() 229 canvas.drawLine(centerX, centerY, centerX + minX, centerY + minY, mMinutePaint); in onDraw() [all …]
|
D | AnalogWatchFaceService.java | 232 float centerX = width / 2f; in onDraw() local 236 float innerTickRadius = centerX - 10; in onDraw() 237 float outerTickRadius = centerX; in onDraw() 244 canvas.drawLine(centerX + innerX, centerY + innerY, in onDraw() 245 centerX + outerX, centerY + outerY, mTickPaint); in onDraw() 253 float secLength = centerX - 20; in onDraw() 254 float minLength = centerX - 40; in onDraw() 255 float hrLength = centerX - 80; in onDraw() 260 canvas.drawLine(centerX, centerY, centerX + secX, centerY + secY, mSecondPaint); in onDraw() 265 canvas.drawLine(centerX, centerY, centerX + minX, centerY + minY, mMinutePaint); in onDraw() [all …]
|
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/ |
D | Camera2VideoFragment.java | 480 float centerX = viewRect.centerX(); in configureTransform() local 483 bufferRect.offset(centerX - bufferRect.centerX(), centerY - bufferRect.centerY()); in configureTransform() 488 matrix.postScale(scale, scale, centerX, centerY); in configureTransform() 489 matrix.postRotate(90 * (rotation - 2), centerX, centerY); in configureTransform()
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | Camera2BasicFragment.java | 605 float centerX = viewRect.centerX(); in configureTransform() local 608 bufferRect.offset(centerX - bufferRect.centerX(), centerY - bufferRect.centerY()); in configureTransform() 613 matrix.postScale(scale, scale, centerX, centerY); in configureTransform() 614 matrix.postRotate(90 * (rotation - 2), centerX, centerY); in configureTransform()
|
/development/samples/Support4Demos/src/com/example/android/supportv4/widget/ |
D | ExploreByTouchHelperActivity.java | 169 canvas.drawText(item.description, bounds.centerX(), bounds.centerY(), paint); in onDraw()
|