Home
last modified time | relevance | path

Searched refs:cy (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_geometry.h34 double cx,cy,m; in db_PointCentroid2D() local
36 cx=0;cy=0; in db_PointCentroid2D()
40 cy+= *X++; in db_PointCentroid2D()
46 c[1]=cy*m; in db_PointCentroid2D()
54 double cx,cy,m; in db_PointCentroid2D() local
57 cx=0;cy=0; in db_PointCentroid2D()
62 cy+=temp[1]; in db_PointCentroid2D()
68 c[1]=cy*m; in db_PointCentroid2D()
78 double cx,cy,cz,m; in db_PointCentroid3D() local
80 cx=0;cy=0;cz=0; in db_PointCentroid3D()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java108 float cy = d.centerY() * p + s.centerY() * (1 - p); in drawEntry() local
115 mTarget.set(cx - ch / 2, cy - ch / 2, cx + ch / 2, cy + ch / 2); in drawEntry()
123 mTarget.set(cx - cw / 2, cy - ch / 2, cx - ch / 2, cy + ch / 2); in drawEntry()
128 mTarget.set(cx + ch / 2, cy - ch / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
135 mTarget.set(cx - cw / 2, cy - cw / 2, cx + cw / 2, cy + cw / 2); in drawEntry()
143 mTarget.set(cx - cw / 2, cy - ch / 2, cx + cw / 2, cy - cw / 2); in drawEntry()
148 mTarget.set(cx - cw / 2, cy + cw / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
DSurfaceTextureScreenNail.java117 int cy = y + height / 2; in draw() local
118 canvas.translate(cx, cy); in draw()
120 canvas.translate(-cx, -cy); in draw()
DGLRootView.java449 int cy = h / 2; in rotateCanvas() local
450 mCanvas.translate(cx, cy); in rotateCanvas()
453 mCanvas.translate(-cy, -cx); in rotateCanvas()
455 mCanvas.translate(-cx, -cy); in rotateCanvas()
DPhotoView.java680 float cy = r.exactCenterY(); in drawTileView() local
728 setTileViewPosition(cx, cy, viewW, viewH, imageScale); in drawTileView()
732 canvas.translate((int) (cx + 0.5f), (int) (cy + 0.5f)); in drawTileView()
747 private void setTileViewPosition(float cx, float cy, in setTileViewPosition() argument
753 int centerY = (int) (imageH / 2f + (viewH / 2f - cy) / scale + 0.5f); in setTileViewPosition()
828 int cy = r.centerY(); in draw() local
830 canvas.translate(cx, cy); in draw()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DEclipseControl.java225 void paintRadius(Canvas canvas, float cx, float cy, float rx, float ry) { in paintRadius() argument
231 RectF rect = new RectF(cx - rx, cy - ry, cx + rx, cy + ry); in paintRadius()
236 paintOvallines(canvas, rect, paint, cx, cy, rx, ry); in paintRadius()
240 paintOvallines(canvas, rect, paint, cx, cy, rx, ry); in paintRadius()
244 Canvas canvas, RectF rect, Paint paint, float cx, float cy, float rx, float ry) { in paintOvallines() argument
255 rect.top = cy - dy; in paintOvallines()
257 rect.bottom = cy + dy; in paintOvallines()
262 rect.top = cy - dy; in paintOvallines()
264 rect.bottom = cy + dy; in paintOvallines()
274 float y = cy + (float) (ry * Math.sin(angle)); in paintOvallines()
[all …]
DImageGrad.java144 float cy = MasterImage.getImage().getOriginalBounds().height() / 2; in setRepresentation() local
145 float rx = Math.min(cx, cy) * .4f; in setRepresentation()
147 mGradRep.setPoint1(cx, cy-rx); in setRepresentation()
148 mGradRep.setPoint2(cx, cy+rx); in setRepresentation()
150 c1[1] = cy-rx; in setRepresentation()
155 c2[1] = cy+rx; in setRepresentation()
DGeometryMathUtils.java361 float cy = h / 2f; in getPartialToScreenMatrix() local
363 compensation.postScale(scale, scale, cx, cy); in getPartialToScreenMatrix()
364 compensation.postRotate(angle, cx, cy); in getPartialToScreenMatrix()
365 compensation.postRotate(rotation, cx, cy); in getPartialToScreenMatrix()
366 compensation.postTranslate(-cx, -cy); in getPartialToScreenMatrix()
368 compensation.postTranslate(cx, cy); in getPartialToScreenMatrix()
DGradControl.java236 float cy = (p1y + p2y) / 2; in paintOvallines() local
249 float cy = (p1y + p2y) / 2; in fillHandles() local
251 handley[0] = cy; in fillHandles()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterVignette.java61 Bitmap bitmap, int w, int h, int cx, int cy, float radx, float rady, in nativeApplyFilter() argument
64 private float calcRadius(float cx, float cy, int w, int h) { in calcRadius() argument
69 if (d < cy) { in calcRadius()
70 d = cy; in calcRadius()
72 if (d < (h - cy)) { in calcRadius()
73 d = h - cy; in calcRadius()
92 float cy = h / 2; in runFilter() local
93 float r = calcRadius(cx, cy, w, h); in runFilter()
105 cy = c[1]; in runFilter()
121 mScript.set_centery(cy); in runFilter()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java342 float cy = getHeight() / 2F; in zoomTo() local
344 zoomTo(scale, cx, cy); in zoomTo()
349 float cy = getHeight() / 2F; in zoomToPoint() local
351 panBy(cx - pointX, cy - pointY); in zoomToPoint()
352 zoomTo(scale, cx, cy); in zoomToPoint()
372 float cy = getHeight() / 2F; in zoomIn() local
374 mSuppMatrix.postScale(rate, rate, cx, cy); in zoomIn()
384 float cy = getHeight() / 2F; in zoomOut() local
388 tmp.postScale(1F / rate, 1F / rate, cx, cy); in zoomOut()
391 mSuppMatrix.setScale(1F, 1F, cx, cy); in zoomOut()
[all …]
DRotateBitmap.java61 int cy = mBitmap.getHeight() / 2; in getRotateMatrix() local
62 matrix.preTranslate(-cx, -cy); in getRotateMatrix()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DFabDrawable.java156 int cy = canvas.getHeight() / 2; in draw() local
158 canvas.drawCircle(cx, cy, mStrokeRadius, mStrokePaint); in draw()
159 canvas.drawCircle(cx, cy, mFabRadius, mFabPaint); in draw()
206 int cy = getBounds().height() / 2; in updateOutline() local
210 cy - mStrokeRadius, in updateOutline()
212 cy + mStrokeRadius, in updateOutline()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java178 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrix() local
179 matrix[invert ? (m - cx - 1) : cx][cy] = i; in createSparseMatrix()
230 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithHotseat() local
236 if (!isHotseatHorizontal && cy >= allappsiconRank) { in createSparseMatrixWithHotseat()
238 cy++; in createSparseMatrixWithHotseat()
241 matrix[cx][cy] = i; in createSparseMatrixWithHotseat()
251 int cy = ((CellLayout.LayoutParams) in createSparseMatrixWithHotseat() local
253 matrix[iconLayout.getCountX()][cy] = iconParent.getChildCount() + i; in createSparseMatrixWithHotseat()
287 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithPivotColumn() local
289 matrix[cx - pivotX][cy] = i; in createSparseMatrixWithPivotColumn()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DCling.java232 int cy = -1; in dispatchDraw() local
241 cy = positions[i + 1]; in dispatchDraw()
242 if (cx > -1 && cy > -1) { in dispatchDraw()
243 c.drawCircle(cx, cy, mRevealRadius, mErasePaint); in dispatchDraw()
244 mPunchThroughGraphic.setBounds(cx - dw/2, cy - dh/2, cx + dw/2, cy + dh/2); in dispatchDraw()
257 mHandTouchGraphic.setBounds(cx + offset, cy + offset, in dispatchDraw()
259 cy + mHandTouchGraphic.getIntrinsicHeight() + offset); in dispatchDraw()
DCellLayout.java419 int cy = in.centerY(); in scaleRectAboutCenter() local
421 out.offset(-cx, -cy); in scaleRectAboutCenter()
423 out.offset(cx, cy); in scaleRectAboutCenter()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/
DTiledImageView.java186 int cy = height / 2; in positionFromMatrix() local
196 cy += (mTempRectF.top / scale) - yoffset; in positionFromMatrix()
198 cy -= (mTempRectF.top / scale) - yoffset; in positionFromMatrix()
201 mRenderer.centerX = swap ? cy : cx; in positionFromMatrix()
202 mRenderer.centerY = swap ? cx : cy; in positionFromMatrix()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageView.java260 int cy = height / 2; in positionFromMatrix() local
270 cy += (mTempRectF.top / scale) - yoffset; in positionFromMatrix()
272 cy -= (mTempRectF.top / scale) - yoffset; in positionFromMatrix()
275 mRenderer.centerX = swap ? cy : cx; in positionFromMatrix()
276 mRenderer.centerY = swap ? cx : cy; in positionFromMatrix()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java120 float cy = cropBounds.centerY(); in drawWallpaperSelectionFrame() local
121 RectF r1 = new RectF(cx - sx / 2, cy - sy / 2, cx + sx / 2, cy + sy / 2); in drawWallpaperSelectionFrame()
125 RectF r2 = new RectF(cx - sx / 2, cy - sy / 2, cx + sx / 2, cy + sy / 2); in drawWallpaperSelectionFrame()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java633 private void setCircle(int cx, int cy) { in setCircle() argument
634 mCircle.set(cx - mCircleSize, cy - mCircleSize, in setCircle()
635 cx + mCircleSize, cy + mCircleSize); in setCircle()
636 mDial.set(cx - mCircleSize + mInnerOffset, cy - mCircleSize + mInnerOffset, in setCircle()
637 cx + mCircleSize - mInnerOffset, cy + mCircleSize - mInnerOffset); in setCircle()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
DPointCloud.java220 final float cy = mDrawable.getIntrinsicHeight() * 0.5f; in draw() local
223 canvas.translate(px - cx, py - cy); in draw()
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
Dvp_motionmodel.c343 VP_PAR cx, cy; in vp_zoom_motion2d() local
357 cy = (VP_PAR) (h/2.0); in vp_zoom_motion2d()
364 MYW(R2r)=cy*(((VP_PAR)1.0) - inv_zoom); in vp_zoom_motion2d()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.cpp502 double cy = sa[c].Y(); in ccw() local
504 double val = (ax - cx)*(by - cy) - (bx - cx)*(ay - cy); in ccw()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java433 int cy = r.centerY(); in scaleRectAboutCenter() local
434 r.offset(-cx, -cy); in scaleRectAboutCenter()
436 r.offset(cx, cy); in scaleRectAboutCenter()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java328 final float[] cy = {0.3f, 0.7f, 0.5f, 0.3f, 0.7f}; in randMultiDrop() local
331 float y = cy[n % cx.length]; in randMultiDrop()

12