Home
last modified time | relevance | path

Searched refs:centerY (Results 1 – 25 of 65) sorted by relevance

123

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info.cpp139 const float centerY = static_cast<float>(getKeyCenterYOfKeyIdG(keyId, y, isGeometric)); in getNormalizedSquaredDistanceFromCenterFloatG() local
142 return ProximityInfoUtils::getSquaredDistanceFloat(centerX, centerY, touchX, touchY) in getNormalizedSquaredDistanceFromCenterFloatG()
226 int centerY; in getKeyCenterYOfKeyIdG() local
228 centerY = mCenterYsG[keyId]; in getKeyCenterYOfKeyIdG()
230 centerY = static_cast<int>(mSweetSpotCenterYsG[keyId]); in getKeyCenterYOfKeyIdG()
232 centerY = static_cast<int>(mSweetSpotCenterYs[keyId]); in getKeyCenterYOfKeyIdG()
235 centerY + mKeyHeights[keyId] > KEYBOARD_HEIGHT && centerY < referencePointY) { in getKeyCenterYOfKeyIdG()
241 return centerY; in getKeyCenterYOfKeyIdG()
/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()
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 …]
DPhotoView.java690 && 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 …]
/packages/apps/Settings/src/com/android/settings/widget/
DPieChartView.java128 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/imageshow/
DImageShow.java394 float centerY = dp.centerY(); 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.java121 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()
DImageStraighten.java165 float centerY = getHeight() / 2f; in getCurrentTouchAngle() local
170 float dY1 = mTouchCenterY - centerY; in getCurrentTouchAngle()
172 float dY2 = mCurrentY - centerY; in getCurrentTouchAngle()
229 tmp.offset(viewWidth / 2f - tmp.centerX(), viewHeight / 2f - tmp.centerY()); in updateCurrentCrop()
DGeometryMathUtils.java432 float centerY = bitmapHeight / 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
78 int top = (int) centerY - indicatorSize / 2; in drawIndicator()
107 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.centerY()); in drawIndicators()
110 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.centerY()); in drawIndicators()
120 float cy = cropBounds.centerY(); 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()
176 float centY = r.centerY(); in fixAspectRatio()
199 r.top = r.centerY() - finalH / 2; in fixAspectRatioContained()
/packages/apps/Camera2/src/com/android/camera/crop/
DCropDrawingUtils.java76 float centerX, float centerY) { in drawIndicator() argument
78 int top = (int) centerY - indicatorSize / 2; in drawIndicator()
107 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.centerY()); in drawIndicators()
110 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.centerY()); in drawIndicators()
120 float cy = cropBounds.centerY(); 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()
174 float centY = r.centerY(); in fixAspectRatio()
197 r.top = r.centerY() - finalH / 2; in fixAspectRatioContained()
/packages/apps/Camera/src/com/android/camera/
DSwitchAnimManager.java80 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/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()
96 centerY + mProgressRadius); in onDraw()
98 canvas.drawCircle(centerX, centerY, mProgressRadius, mProgressBasePaint); in onDraw()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DCropView.java103 float centerY = (height / 2f - rendererCenter[1] + (imageHeight - height) / 2f) in getEdgesHelper() local
107 float topEdge = centerY - imageHeight / 2f * scale; in getEdgesHelper()
108 float bottomEdge = centerY + imageHeight / 2f * scale; in getEdgesHelper()
140 mCenterY = mRenderer.centerY; in setTileSource()
212 mRenderer.centerY = Math.round(mCenterY); 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()
246 mCenterY = centerY; 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
160 mRenderer.centerY = source != null ? source.getImageHeight() / 2 : 0; in setTileSource()
276 mRenderer.centerY = swap ? cx : cy; 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()
246 mCenterY = centerY; 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
172 mRenderer.centerY = source != null ? source.getImageHeight() / 2 : 0; in setTileSource()
288 mRenderer.centerY = swap ? cx : cy; 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()
321 final float centerY, final float durationMs) { in zoomTo() argument
331 zoomTo(target, centerX, centerY); in zoomTo()
/packages/apps/Launcher3/src/com/android/launcher3/
DCling.java518 bubbleRect.centerY(), radius, in dispatchDraw()
526 eraseCanvas.drawCircle(cutOutBounds.centerX(), cutOutBounds.centerY(), in dispatchDraw()
531 eraseCanvas.drawCircle(cutOutBounds.centerX(), cutOutBounds.centerY(), in dispatchDraw()
552 pageIndicatorBounds.centerY(), in dispatchDraw()
558 pageIndicatorBounds.centerY(), in dispatchDraw()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java342 for (int centerY = yStart; centerY <= yEnd; centerY += mCellHeight) { in computeNearestNeighbors()
345 if (key.squaredDistanceToEdge(centerX, centerY) < thresholdSquared) { in computeNearestNeighbors()
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/
DLetterTileDrawable.java123 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()), in drawBitmap()
125 (int) (destRect.centerY() + halfLength + mOffset * destRect.height())); in drawBitmap()
156 bounds.centerY() + mOffset * bounds.height() + sRect.height() / 2, in drawLetterTile()
/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java419 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/Camera2/src/com/android/camera/
DAnimationManager.java57 int centerY = view.getTop() + view.getHeight() / 2; in startCaptureAnimation() local
64 parentView.getHeight() / 2 - centerY, 0f) in startCaptureAnimation()

123