/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info.cpp | 138 const float centerX = static_cast<float>(getKeyCenterXOfKeyIdG(keyId, x, isGeometric)); in getNormalizedSquaredDistanceFromCenterFloatG() local 142 return ProximityInfoUtils::getSquaredDistanceFloat(centerX, centerY, touchX, touchY) in getNormalizedSquaredDistanceFromCenterFloatG() 207 int centerX = (hasTouchPositionCorrectionData()) ? static_cast<int>(mSweetSpotCenterXs[keyId]) in getKeyCenterXOfKeyIdG() local 215 if (referencePointX < centerX - keyWidthHalfDiff) { in getKeyCenterXOfKeyIdG() 216 centerX -= keyWidthHalfDiff; in getKeyCenterXOfKeyIdG() 217 } else if (referencePointX > centerX + keyWidthHalfDiff) { in getKeyCenterXOfKeyIdG() 218 centerX += keyWidthHalfDiff; in getKeyCenterXOfKeyIdG() 220 centerX = referencePointX; in getKeyCenterXOfKeyIdG() 223 return centerX; in getKeyCenterXOfKeyIdG()
|
/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() 225 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale); in layoutTiles() 231 mOffsetX = Math.round(width / 2f - centerX * 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() 358 mCenterX = centerX; 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 | 753 int centerX = (int) (imageW / 2f + (viewW / 2f - cx) / scale + 0.5f); in setTileViewPosition() local 756 int inverseX = imageW - centerX; in setTileViewPosition() 760 case 0: x = centerX; y = centerY; break; in setTileViewPosition() 763 case 270: x = inverseY; y = centerX; break; in setTileViewPosition() 827 ? (int) (interpolate(filmRatio, w / 2, r.centerX()) + 0.5f) in draw() 828 : r.centerX(); in draw() 833 float progress = (float) (w / 2 - r.centerX()) / w; in draw()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImageShow.java | 393 float centerX = dp.centerX(); in drawImageAndAnimate() local 439 canvas.rotate(master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate() local 440 canvas.scale(finalScale, finalScale, centerX, centerY); in drawImageAndAnimate() 456 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate() 458 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate() 460 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local 462 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local 466 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local 468 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local 470 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate() [all …]
|
D | ImageRedEye.java | 119 canvas.drawLine(fullRect.centerX(), fullRect.top, in drawPoint() 120 fullRect.centerX(), fullRect.bottom, paint); in drawPoint() 126 float dx = fullRect.centerX() - dw / 2; in drawPoint() 130 canvas.drawLine(drawRect.centerX(), drawRect.top, in drawPoint() 131 drawRect.centerX(), drawRect.bottom, paint); in drawPoint() 134 canvas.drawCircle(drawRect.centerX(), drawRect.centerY(), in drawPoint()
|
D | ImageStraighten.java | 164 float centerX = getWidth() / 2f; in getCurrentTouchAngle() local 169 float dX1 = mTouchCenterX - centerX; in getCurrentTouchAngle() 171 float dX2 = mCurrentX - centerX; in getCurrentTouchAngle() 229 tmp.offset(viewWidth / 2f - tmp.centerX(), viewHeight / 2f - tmp.centerY()); in updateCurrentCrop()
|
D | GeometryMathUtils.java | 431 float centerX = bitmapWidth / 2f; in getFullGeometryMatrix() local 434 m.setTranslate(-centerX, -centerY); in getFullGeometryMatrix() 475 m.postTranslate(viewWidth / 2f - crop.centerX(), viewHeight / 2f - crop.centerY()); in getCropSelectionToScreenMatrix() 477 crop.offset(viewWidth / 2f - crop.centerX(), viewHeight / 2f - crop.centerY()); in getCropSelectionToScreenMatrix()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropDrawingUtils.java | 76 float centerX, float centerY) { in drawIndicator() argument 77 int left = (int) centerX - indicatorSize / 2; in drawIndicator() 101 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.centerX(), bounds.top); in drawIndicators() 104 … drawIndicator(canvas, cropIndicator, indicatorSize, bounds.centerX(), bounds.bottom); in drawIndicators() 119 float cx = cropBounds.centerX(); in drawWallpaperSelectionFrame() 176 dst.setRotate(rotation, image.centerX(), image.centerY()); in setImageToScreenMatrix() 182 boolean rot = dst.preRotate(rotation, image.centerX(), image.centerY()); in setImageToScreenMatrix()
|
D | CropMath.java | 143 m.setRotate(rot, bound.centerX(), bound.centerY()); in pointInRotatedRect() 175 float centX = r.centerX(); in fixAspectRatio() 203 r.left = r.centerX() - finalW / 2; in fixAspectRatioContained()
|
/packages/apps/Camera/src/com/android/camera/ |
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/Camera2/src/com/android/camera/ |
D | CaptureModule.java | 790 mUI.setAutoFocusTarget((int) mPreviewArea.centerX(), (int) mPreviewArea.centerY(), 1141 float centerX = viewRect.centerX(); 1143 bufRect.offset(centerX - bufRect.centerX(), centerY - bufRect.centerY()); 1150 centerX, centerY); 1164 mPreviewTranformationMatrix.postScale(scale, scale, centerX, centerY); 1171 mPreviewTranformationMatrix.postTranslate(previewCenterX - centerX, previewCenterY
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | ProgressRenderer.java | 85 public void onDraw(Canvas canvas, int centerX, int centerY) { in onDraw() argument 89 mArcBounds = new RectF(centerX - mProgressRadius, centerY - mProgressRadius, centerX in onDraw() 93 canvas.drawCircle(centerX, centerY, mProgressRadius, mProgressBasePaint); in onDraw()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
D | CropView.java | 101 float centerX = (width / 2f - rendererCenter[0] + (imageWidth - width) / 2f) in getEdgesHelper() local 105 float leftEdge = centerX - imageWidth / 2f * scale; in getEdgesHelper() 106 float rightEdge = centerX + imageWidth / 2f * scale; in getEdgesHelper() 139 mCenterX = mRenderer.centerX; in setTileSource() 211 mRenderer.centerX = Math.round(mCenterX); in updateCenter()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 240 public void setPosition(int centerX, int centerY, float scale) { in setPosition() argument 241 if (mCenterX == centerX && mCenterY == centerY in setPosition() 245 mCenterX = centerX; in setPosition() 430 int centerX = mViewWidth / 2, centerY = mViewHeight / 2; in draw() local 431 canvas.translate(centerX, centerY); in draw() 433 canvas.translate(-centerX, -centerY); in draw()
|
D | TiledImageView.java | 65 public int centerX, centerY; field in TiledImageView.ImageRendererWrapper 171 mRenderer.centerX = source != null ? source.getImageWidth() / 2 : 0; in setTileSource() 287 mRenderer.centerX = swap ? cy : cx; in positionFromMatrix() 317 mRenderer.image.setPosition(mRenderer.centerX, mRenderer.centerY, in onDrawFrame()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 240 public void setPosition(int centerX, int centerY, float scale) { in setPosition() argument 241 if (mCenterX == centerX && mCenterY == centerY in setPosition() 245 mCenterX = centerX; in setPosition() 430 int centerX = mViewWidth / 2, centerY = mViewHeight / 2; in draw() local 431 canvas.translate(centerX, centerY); in draw() 433 canvas.translate(-centerX, -centerY); in draw()
|
D | TiledImageView.java | 65 int centerX, centerY; field in TiledImageView.ImageRendererWrapper 159 mRenderer.centerX = source != null ? source.getImageWidth() / 2 : 0; in setTileSource() 275 mRenderer.centerX = swap ? cy : cx; in positionFromMatrix() 305 mRenderer.image.setPosition(mRenderer.centerX, mRenderer.centerY, in onDrawFrame()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/ |
D | LetterTileDrawable.java | 120 destRect.set(destRect.centerX() - halfLength, in drawBitmap() 122 destRect.centerX() + halfLength, in drawBitmap() 140 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() 158 canvas.drawText(sFirstChar, 0, 1, bounds.centerX(), in drawLetterTile()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | MainKeyboardAccessibilityDelegate.java | 211 final int x = key.getHitBox().centerX(); in performClickOn() 228 final int x = key.getHitBox().centerX(); in onHoverEnterTo() 249 final int x = key.getHitBox().centerX(); in onHoverExitFrom() 266 final int x = key.getHitBox().centerX(); in performLongClickOn()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollController.java | 878 final public void setScrollCenter(int centerX, int centerY) { in setScrollCenter() argument 879 horizontal.updateScrollCenter(centerX, false); in setScrollCenter() 882 centerX = horizontal.getScrollCenter(); in setScrollCenter() 884 mFlingScroller.setFinalX(centerX); in setScrollCenter() 887 mScrollScroller.setFinalX(centerX); in setScrollCenter()
|
/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()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | ProximityInfo.java | 349 for (int centerX = xStart; centerX <= xEnd; centerX += mCellWidth) { in computeNearestNeighbors() 350 if (key.squaredDistanceToEdge(centerX, centerY) < thresholdSquared) { in computeNearestNeighbors()
|
D | KeyboardView.java | 378 final float centerX = keyWidth * 0.5f; in onDrawKeyTopVisuals() local 383 float labelX = centerX; in onDrawKeyTopVisuals() 398 labelX = centerX + params.mLabelOffCenterRatio * labelCharWidth; in onDrawKeyTopVisuals() 401 labelX = centerX; in onDrawKeyTopVisuals()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmActivity.java | 425 final int centerX = Math.round((source.getLeft() + source.getRight()) / 2.0f); in getAlertAnimator() local 429 final int xMax = Math.max(centerX, mContainerView.getWidth() - centerX); in getAlertAnimator() 443 revealView, centerX, centerY, startRadius, endRadius); in getAlertAnimator()
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
D | ContactDrawable.java | 161 canvas.drawCircle(bounds.centerX(), bounds.centerY(), radius, mBorderPaint); in drawBitmap() 186 canvas.drawText(sFirstChar, 0, 1, bounds.centerX(), in drawLetterTile() 202 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, paint); in drawCircle()
|