/packages/apps/Camera/src/com/android/camera/ |
D | CaptureAnimManager.java | 112 float centerX = mCenterX; in drawAnimation() local 115 centerX = mCenterX + mCenterDelta * mSlideInterpolator.getInterpolation(fraction); in drawAnimation() 122 int previewX = (int) centerX; in drawAnimation() 124 int reviewX = (int) centerX; in drawAnimation() 128 previewX = Math.round(centerX - width - mHalfGap * scale); in drawAnimation() 130 reviewX = Math.round(centerX + mHalfGap * scale); in drawAnimation() 135 previewX = Math.round(centerX - width / 2f); in drawAnimation() 140 previewX = Math.round(centerX + width + mHalfGap * scale); in drawAnimation() 142 reviewX = Math.round(centerX - mHalfGap * scale); in drawAnimation() 147 previewX = Math.round(centerX - width / 2f); in drawAnimation()
|
D | SwitchAnimManager.java | 79 float centerX = x + width / 2f; in drawAnimation() local 84 int previewX = Math.round(centerX - previewWidth / 2); in drawAnimation() 104 int reviewX = Math.round(centerX - reviewWidth / 2); in drawAnimation() 124 float centerX = x + width / 2f; in drawDarkPreview() local 134 int reviewX = Math.round(centerX - reviewWidth / 2); in drawDarkPreview()
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
D | RotateView.java | 59 private int centerX; field in RotateView 108 centerX = w / 2; in onSizeChanged() 113 float radius = (float) Math.hypot(centerX, centerY); in onSizeChanged() 114 float delta = radius - centerX; in onSizeChanged() 118 referenceLine.moveTo(centerX, -delta); in onSizeChanged() 119 referenceLine.lineTo(centerX, getHeight() + delta); in onSizeChanged() 145 canvas.rotate(-currentRotatedAngle * RADIAN_TO_DEGREE, centerX, centerY); in onDraw() 153 float x = ev.getX() - centerX; in calculateAngle()
|
D | CropView.java | 207 private void drawIndicator(Canvas canvas, Drawable indicator, float centerX, float centerY) { in drawIndicator() argument 208 int left = (int) centerX - indicatorSize / 2; in drawIndicator() 235 drawIndicator(canvas, cropIndicator, cropped.centerX(), cropped.top); in onDraw() 238 drawIndicator(canvas, cropIndicator, cropped.centerX(), cropped.bottom); in onDraw()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | PieChartView.java | 127 final float centerX = getWidth() / 2; in onLayout() local 131 mMatrix.postScale(0.665f, 0.95f, centerX, centerY); in onLayout() 132 mMatrix.postRotate(-40, centerX, centerY); in onLayout() 181 slice.path.moveTo(rect.centerX(), rect.centerY()); in generatePath() 183 slice.path.lineTo(rect.centerX(), rect.centerY()); in generatePath() 193 slice.pathSide.moveTo(rect.centerX(), rect.centerY()); in generatePath() 202 slice.pathOutline.moveTo(rect.centerX(), rect.centerY()); in generatePath() 207 slice.pathOutline.moveTo(rect.centerX(), rect.centerY()); in generatePath()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 194 private void layoutTiles(int centerX, int centerY, float scale, int rotation) { in layoutTiles() argument 212 getRange(range, centerX, centerY, mLevel, scale, rotation); in layoutTiles() 213 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale); in layoutTiles() 219 mOffsetX = Math.round(width / 2f - centerX * scale); in layoutTiles() 228 getRange(range[i - fromLevel], centerX, centerY, i, rotation); in layoutTiles() 342 public boolean setPosition(int centerX, int centerY, float scale, int rotation) { in setPosition() argument 343 if (mCenterX == centerX && mCenterY == centerY in setPosition() 345 mCenterX = centerX; in setPosition() 349 layoutTiles(centerX, centerY, scale, rotation); in setPosition() 408 int centerX = getWidth() / 2, centerY = getHeight() / 2; in render() local [all …]
|
D | CropView.java | 154 private boolean setImageViewPosition(int centerX, int centerY, float scale) { in setImageViewPosition() argument 155 int inverseX = mImageWidth - centerX; in setImageViewPosition() 160 case 0: return t.setPosition(centerX, centerY, scale, 0); in setImageViewPosition() 163 case 270: return t.setPosition(inverseY, centerX, scale, 270); in setImageViewPosition() 386 int centerX = Math.round( in calculateTarget() local 393 centerX = Math.round( in calculateTarget() 395 centerX = Utils.clamp(centerX, limitX, mImageWidth - limitX); in calculateTarget() 397 centerX = mImageWidth / 2; in calculateTarget() 407 mTargetX = centerX; in calculateTarget() 599 float centerX = (r.left + r.right) / 2; in renderBackground() local [all …]
|
D | Paper.java | 71 float screenX = rect.centerX() - scrollX; in getTransform() 84 Matrix.translateM(mMatrix, 0, mMatrix, 0, rect.centerX(), rect.centerY(), 0); in getTransform()
|
D | SlideshowView.java | 149 float centerX = viewWidth / 2 + mMovingVector.x * mProgress; in apply() local 152 canvas.translate(centerX, centerY); in apply()
|
D | PhotoFallbackEffect.java | 105 float cx = d.centerX() * p + s.centerX() * (1 - p); in drawEntry()
|
D | PhotoView.java | 720 int centerX = (int) (imageW / 2f + (viewW / 2f - cx) / scale + 0.5f); in setTileViewPosition() local 723 int inverseX = imageW - centerX; in setTileViewPosition() 727 case 0: x = centerX; y = centerY; break; in setTileViewPosition() 730 case 270: x = inverseY; y = centerX; break; in setTileViewPosition() 792 ? (int) (interpolate(filmRatio, w / 2, r.centerX()) + 0.5f) in draw() 793 : r.centerX(); in draw() 798 float progress = (float) (w / 2 - r.centerX()) / w; in draw()
|
D | PositionController.java | 351 mPlatform.mCurrentX = r.centerX() - mViewW / 2; in startOpeningAnimationIfNeeded() 882 sb.append(r.centerX()); in dumpRect() 1027 b.mAbsoluteX = r.centerX() - mViewW / 2; in moveBox() 1494 mDefaultX = mConstrainedFrame.centerX() - mViewW / 2; in updateDefaultXY()
|
D | SlotView.java | 368 (mCenter.getX() - target.centerX()) * (1 - mProgress), in apply()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 307 protected void zoomTo(float scale, float centerX, float centerY) { in zoomTo() argument 315 mSuppMatrix.postScale(deltaScale, deltaScale, centerX, centerY); in zoomTo() 320 protected void zoomTo(final float scale, final float centerX, in zoomTo() argument 331 zoomTo(target, centerX, centerY); in zoomTo()
|
D | CropImage.java | 584 protected void zoomTo(float scale, float centerX, float centerY) { in zoomTo() argument 585 super.zoomTo(scale, centerX, centerY); in zoomTo() 773 float [] coordinates = new float[] {hv.mCropRect.centerX(), in centerBasedOnHighlightView()
|
D | HighlightView.java | 185 float distX = x - r.centerX(); in getHit()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardView.java | 557 final float centerX = keyWidth * 0.5f; in onDrawKeyTopVisuals() local 566 float positionX = centerX; in onDrawKeyTopVisuals() 591 positionX = centerX - labelCharWidth * 7 / 4; in onDrawKeyTopVisuals() 596 positionX = centerX + labelWidth / 2; in onDrawKeyTopVisuals() 601 positionX = centerX - labelWidth / 2; in onDrawKeyTopVisuals() 604 positionX = centerX; in onDrawKeyTopVisuals() 632 final int iconX = (int)(centerX - labelWidth / 2); in onDrawKeyTopVisuals() 635 final int iconX = (int)(centerX + labelWidth / 2 - iconWidth); in onDrawKeyTopVisuals()
|
D | ProximityInfo.java | 224 final int centerX = x + mCellWidth / 2; in computeNearestNeighbors() local 229 if (key.squaredDistanceToEdge(centerX, centerY) < threshold) { in computeNearestNeighbors()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | FloatingChildLayout.java | 156 final int childLeft = target.centerX() - (childWidth / 2); in onLayout() 254 mChild.setPivotX(mTargetScreen.centerX() - mChild.getLeft()); in animateScale()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | ImageViewTouchBase.java | 359 public void zoomTo(float scale, float centerX, float centerY) { in zoomTo() argument 365 mSuppMatrix.postScale(deltaScale, deltaScale, centerX, centerY); in zoomTo()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | AccessibilityEntityProvider.java | 218 final int x = key.mHitBox.centerX(); in simulateKeyPress()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | CellLayout.java | 454 int centerX = mTempLocation[0] + mCellWidth / 2; in onDraw() local 458 canvas.translate(centerX - width / 2, centerY - height / 2); in onDraw() 469 centerX = mTempLocation[0] + mCellWidth / 2; in onDraw() 472 canvas.translate(centerX - width / 2, centerY - width / 2); in onDraw() 484 int centerX = mTempLocation[0] + mCellWidth / 2; in onDraw() local 488 canvas.translate(centerX - width / 2, centerY - width / 2); in onDraw() 2199 dragRect.offset(dragViewCenterX - dragRect.centerX(), dragViewCenterY - dragRect.centerY()); in getDirectionVectorForDrop() 2211 int deltaX = (dropRegionRect.centerX() - dragViewCenterX) / spanX; in getDirectionVectorForDrop()
|
D | Folder.java | 810 int centerX = mTempRect.centerX(); in centerAboutIcon() local 812 int centeredLeft = centerX - width / 2; in centerAboutIcon()
|