/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 206 private void layoutTiles(int centerX, int centerY, float scale, int rotation) { in layoutTiles() argument 224 getRange(range, centerX, centerY, mLevel, scale, rotation); in layoutTiles() 226 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale); in layoutTiles() 232 mOffsetY = Math.round(height / 2f - centerY * scale); in layoutTiles() 240 getRange(range[i - fromLevel], centerX, centerY, i, rotation); in layoutTiles() 355 public boolean setPosition(int centerX, int centerY, float scale, int rotation) { in setPosition() argument 356 if (mCenterX == centerX && mCenterY == centerY in setPosition() 359 mCenterY = centerY; in setPosition() 362 layoutTiles(centerX, centerY, scale, rotation); in setPosition() 420 int centerX = getWidth() / 2, centerY = getHeight() / 2; in render() local [all …]
|
D | PhotoView.java | 690 && filmRatio == 1f && r.centerY() != viewH / 2; in drawTileView() 723 float offset = (float) (r.centerY() - viewH / 2) / viewH; in drawTileView() 754 int centerY = (int) (imageH / 2f + (viewH / 2f - cy) / scale + 0.5f); in setTileViewPosition() local 757 int inverseY = imageH - centerY; in setTileViewPosition() 760 case 0: x = centerX; y = centerY; break; in setTileViewPosition() 761 case 90: x = centerY; y = inverseX; break; in setTileViewPosition() 825 && filmRatio == 1f && r.centerY() != h / 2; in draw() 829 int cy = r.centerY(); in draw() 842 float offset = (float) (r.centerY() - h / 2) / h; in draw() 1110 int centerY = mPositionController.getPosition(mTouchBoxIndex) in flingImages() local [all …]
|
D | SlideshowView.java | 147 float centerY = viewHeight / 2 + mMovingVector.y * mProgress; in apply() local 149 canvas.translate(centerX, centerY); in apply()
|
D | PhotoFallbackEffect.java | 108 float cy = d.centerY() * p + s.centerY() * (1 - p); in drawEntry()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMetadata.java | 342 scaledCrop.centerX(), scaledCrop.centerY() in getOriginalToScreen() 346 m1.preRotate(getStraightenRotation(), scaledPhoto.centerX(), scaledPhoto.centerY()); in getOriginalToScreen() 361 m.setRotate(straighten, photo.centerX(), photo.centerY()); in buildPhotoMatrix() 363 m.postRotate(rotation, crop.centerX(), crop.centerY()); in buildPhotoMatrix() 370 m.setRotate(rotation, crop.centerX(), crop.centerY()); in buildCropMatrix() 411 scaledCrop.centerX(), scaledCrop.centerY() in buildTotalXform() 417 scaledPhoto.centerY()); in buildTotalXform() 438 photo.centerX(), photo.centerY() in buildCenteredPhotoMatrix() 457 crop.centerX(), crop.centerY() in buildCenteredCropMatrix() 479 m.preRotate(-straighten, photo.centerX(), photo.centerY()); in buildWanderingCropMatrix()
|
D | ImageGeometry.java | 373 float dy = (getHeight() / 2) - bounds.centerY(); in straightenBounds() 380 float rotation, float centerX, float centerY) { in drawRotatedShadows() argument 382 canvas.rotate(rotation, centerX, centerY); in drawRotatedShadows() 389 float minY = centerY - longest; in drawRotatedShadows() 390 float maxY = centerY + longest; in drawRotatedShadows() 397 canvas.rotate(-rotation, centerX, centerY); in drawRotatedShadows() 509 scaledCrop.centerX(), scaledCrop.centerY() in drawTransformedCropped() 513 m1.preRotate(getLocalStraighten(), scaledPhoto.centerX(), scaledPhoto.centerY()); in drawTransformedCropped() 524 - scaledCrop.centerY()); in drawTransformedCropped()
|
D | ImageRedEye.java | 121 canvas.drawLine(fullRect.left, fullRect.centerY(), in drawPoint() 122 fullRect.right, fullRect.centerY(), paint); in drawPoint() 127 float dy = fullRect.centerY() - dh / 2; in drawPoint() 132 canvas.drawLine(drawRect.left, drawRect.centerY(), in drawPoint() 133 drawRect.right, drawRect.centerY(), paint); in drawPoint() 134 canvas.drawCircle(drawRect.centerX(), drawRect.centerY(), in drawPoint()
|
D | ImageCrop.java | 265 float newY = bounds.centerY() - (getHeight() / 2f); in setCropBounds() 279 photo.centerX(), photo.centerY() in getBoundedCrop() 372 photo.centerX(), photo.centerY() in moveEdges() 450 private void drawIndicator(Canvas canvas, Drawable indicator, float centerX, float centerY) { in drawIndicator() argument 452 int top = (int) centerY - indicatorSize / 2; in drawIndicator() 595 float cy = crop.centerY(); in drawShape() 666 drawIndicator(canvas, cropIndicator, scaledCrop.left, scaledCrop.centerY()); in drawShape() 669 drawIndicator(canvas, cropIndicator, scaledCrop.right, scaledCrop.centerY()); in drawShape()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | PieChartView.java | 128 final float centerY = getHeight() / 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/filtershow/crop/ |
D | CropDrawingUtils.java | 58 float centerX, float centerY) { in drawIndicator() argument 60 int top = (int) centerY - indicatorSize / 2; in drawIndicator() 89 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.centerY()); in drawIndicators() 92 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.centerY()); in drawIndicators() 102 float cy = cropBounds.centerY(); in drawWallpaperSelectionFrame() 158 dst.setRotate(rotation, image.centerX(), image.centerY()); in setImageToScreenMatrix() 164 boolean rot = dst.preRotate(rotation, image.centerX(), image.centerY()); in setImageToScreenMatrix()
|
D | CropMath.java | 143 m.setRotate(rot, bound.centerX(), bound.centerY()); in pointInRotatedRect() 176 float centY = r.centerY(); in fixAspectRatio() 203 float centY = r.centerY(); in fixAspectRatioContained()
|
/packages/apps/Camera/src/com/android/camera/ |
D | SwitchAnimManager.java | 80 float centerY = y + height / 2f; in drawAnimation() local 85 int previewY = Math.round(centerY - previewHeight / 2); in drawAnimation() 105 int reviewY = Math.round(centerY - reviewHeight / 2); in drawAnimation() 125 float centerY = y + height / 2f; in drawDarkPreview() local 135 int reviewY = Math.round(centerY - reviewHeight / 2); in drawDarkPreview()
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | SwitchAnimManager.java | 80 float centerY = y + height / 2f; in drawAnimation() local 85 int previewY = Math.round(centerY - previewHeight / 2); in drawAnimation() 105 int reviewY = Math.round(centerY - reviewHeight / 2); in drawAnimation() 125 float centerY = y + height / 2f; in drawDarkPreview() local 135 int reviewY = Math.round(centerY - reviewHeight / 2); in drawDarkPreview()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 212 public void setPosition(int centerX, int centerY, float scale) { in setPosition() argument 213 if (mCenterX == centerX && mCenterY == centerY in setPosition() 216 mCenterY = centerY; in setPosition() 396 int centerX = mViewWidth / 2, centerY = mViewHeight / 2; in draw() local 397 canvas.translate(centerX, centerY); in draw() 399 canvas.translate(-centerX, -centerY); in draw()
|
D | TiledImageView.java | 46 int centerX, centerY; field in TiledImageView.ImageRendererWrapper 91 renderer.centerY = renderer.source.getImageHeight() / 2; in setTileSource() 142 mFocusedRenderer.centerY += (mLastY - y) / mFocusedRenderer.scale; in onTouchEvent() 209 renderer.image.setPosition(renderer.centerX, renderer.centerY, renderer.scale); in onDrawFrame()
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | proximity_info.cpp | 141 float centerY; in getNormalizedSquaredDistanceFromCenterFloatG() local 145 centerY = visualKeyCenterY + gapY * verticalScale; in getNormalizedSquaredDistanceFromCenterFloatG() 147 centerY = visualKeyCenterY; in getNormalizedSquaredDistanceFromCenterFloatG() 152 return ProximityInfoUtils::getSquaredDistanceFloat(centerX, centerY, touchX, touchY) in getNormalizedSquaredDistanceFromCenterFloatG()
|
/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() 321 final float centerY, final float durationMs) { 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() 774 hv.mCropRect.centerY()}; in centerBasedOnHighlightView()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | CellLayout.java | 419 int cy = in.centerY(); in scaleRectAboutCenter() 503 int centerY = mTempLocation[1] + previewOffset / 2; in onDraw() local 506 canvas.translate(centerX - width / 2, centerY - height / 2); in onDraw() 518 centerY = mTempLocation[1] + previewOffset / 2; in onDraw() 520 canvas.translate(centerX - width / 2, centerY - width / 2); in onDraw() 533 int centerY = mTempLocation[1] + previewOffset / 2; in onDraw() local 536 canvas.translate(centerX - width / 2, centerY - width / 2); in onDraw() 2473 dragRect.offset(dragViewCenterX - dragRect.centerX(), dragViewCenterY - dragRect.centerY()); in getDirectionVectorForDrop() 2486 int deltaY = (dropRegionRect.centerY() - dragViewCenterY) / spanY; in getDirectionVectorForDrop()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterVignetteRepresentation.java | 65 public void setCenter(float centerX, float centerY) { in setCenter() argument 67 mCenterY = centerY; in setCenter()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/ |
D | GlowPadView.java | 1056 private void updateTargetPositions(float centerX, float centerY) { 1065 targetIcon.setPositionY(centerY); 1071 private void updatePointCloudPosition(float centerX, float centerY) { 1072 mPointCloud.setCenter(centerX, centerY);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardView.java | 349 final float centerY = keyHeight * 0.5f; in onDrawKeyTopVisuals() local 368 final float baseline = centerY + labelCharHeight / 2.0f; in onDrawKeyTopVisuals() 448 hintY = centerY in onDrawKeyTopVisuals()
|
D | ProximityInfo.java | 253 final int centerY = y + mCellHeight / 2; in computeNearestNeighbors() local 257 if (key.squaredDistanceToEdge(centerX, centerY) < threshold) { in computeNearestNeighbors()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | FloatingChildLayout.java | 158 final int childTop = target.centerY() - Math.round(childHeight * 0.35f); in onLayout() 255 mChild.setPivotY(mTargetScreen.centerY() - mChild.getTop()); 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()
|