Home
last modified time | relevance | path

Searched refs:centerX (Results 1 – 25 of 63) sorted by relevance

123

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info.cpp138 const float centerX = static_cast<float>(getKeyCenterXOfKeyIdG(keyId, x, isGeometric)); in getNormalizedSquaredDistanceFromCenterFloatG() local
142 return ProximityInfoUtils::getSquaredDistanceFloat(centerX, centerY, touchX, touchY) in getNormalizedSquaredDistanceFromCenterFloatG()
199 int centerX = (hasTouchPositionCorrectionData()) ? static_cast<int>(mSweetSpotCenterXs[keyId]) in getKeyCenterXOfKeyIdG() local
207 if (referencePointX < centerX - keyWidthHalfDiff) { in getKeyCenterXOfKeyIdG()
208 centerX -= keyWidthHalfDiff; in getKeyCenterXOfKeyIdG()
209 } else if (referencePointX > centerX + keyWidthHalfDiff) { in getKeyCenterXOfKeyIdG()
210 centerX += keyWidthHalfDiff; in getKeyCenterXOfKeyIdG()
212 centerX = referencePointX; in getKeyCenterXOfKeyIdG()
215 return centerX; in getKeyCenterXOfKeyIdG()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java206 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 …]
DPhotoView.java753 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/Settings/src/com/android/settings/widget/
DPieChartView.java127 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/filtershow/imageshow/
DImageShow.java393 float centerX = dp.centerX(); in drawImageAndAnimate() local
438 canvas.rotate(master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate() local
439 canvas.scale(finalScale, finalScale, centerX, centerY); in drawImageAndAnimate()
455 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate()
457 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate()
459 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local
461 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local
465 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local
467 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local
469 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate()
[all …]
DImageRedEye.java119 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()
DImageStraighten.java164 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()
DGeometryMathUtils.java431 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/
DCropDrawingUtils.java76 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()
DCropMath.java143 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/Camera2/src/com/android/camera/crop/
DCropDrawingUtils.java76 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()
DCropMath.java141 m.setRotate(rot, bound.centerX(), bound.centerY()); in pointInRotatedRect()
173 float centX = r.centerX(); in fixAspectRatio()
201 r.left = r.centerX() - finalW / 2; in fixAspectRatioContained()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardView.java359 final float centerX = keyWidth * 0.5f; in onDrawKeyTopVisuals() local
368 float positionX = centerX; in onDrawKeyTopVisuals()
391 positionX = centerX - labelCharWidth * 7.0f / 4.0f; in onDrawKeyTopVisuals()
396 positionX = centerX + labelWidth / 2.0f; in onDrawKeyTopVisuals()
401 positionX = centerX - labelWidth / 2.0f; in onDrawKeyTopVisuals()
404 positionX = centerX; in onDrawKeyTopVisuals()
431 final int iconX = (int)(centerX - labelWidth / 2.0f); in onDrawKeyTopVisuals()
434 final int iconX = (int)(centerX + labelWidth / 2.0f - iconWidth); in onDrawKeyTopVisuals()
DProximityInfo.java344 for (int centerX = xStart; centerX <= xEnd; centerX += mCellWidth) { in computeNearestNeighbors()
345 if (key.squaredDistanceToEdge(centerX, centerY) < thresholdSquared) { in computeNearestNeighbors()
/packages/apps/Camera/src/com/android/camera/
DSwitchAnimManager.java79 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/ui/
DProgressRenderer.java90 public void onDraw(Canvas canvas, int centerX, int centerY) { in onDraw() argument
94 mArcBounds = new RectF(centerX - mProgressRadius, centerY - mProgressRadius, centerX in onDraw()
98 canvas.drawCircle(centerX, centerY, mProgressRadius, mProgressBasePaint); in onDraw()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DCropView.java101 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/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java240 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()
DTiledImageView.java65 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/Launcher3/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java240 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()
DTiledImageView.java65 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/Gallery/src/com/android/camera/
DImageViewTouchBase.java307 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/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/
DLetterTileDrawable.java122 destRect.set(destRect.centerX() - halfLength, in drawBitmap()
124 destRect.centerX() + halfLength, in drawBitmap()
155 canvas.drawText(sFirstChar, 0, 1, bounds.centerX(), in drawLetterTile()
/packages/apps/Launcher3/src/com/android/launcher3/
DCling.java526 eraseCanvas.drawCircle(cutOutBounds.centerX(), cutOutBounds.centerY(), in dispatchDraw()
531 eraseCanvas.drawCircle(cutOutBounds.centerX(), cutOutBounds.centerY(), in dispatchDraw()
551 eraseCanvas.drawCircle(pageIndicatorBounds.centerX(), in dispatchDraw()
557 eraseCanvas.drawCircle(pageIndicatorBounds.centerX(), in dispatchDraw()
/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java418 int cx = in.centerX(); in scaleRectAboutCenter()
502 int centerX = mTempLocation[0] + mCellWidth / 2; in onDraw() local
506 canvas.translate(centerX - width / 2, centerY - height / 2); in onDraw()
517 centerX = mTempLocation[0] + mCellWidth / 2; in onDraw()
520 canvas.translate(centerX - width / 2, centerY - width / 2); in onDraw()
532 int centerX = mTempLocation[0] + mCellWidth / 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()
2485 int deltaX = (dropRegionRect.centerX() - dragViewCenterX) / spanX; in getDirectionVectorForDrop()

123