Home
last modified time | relevance | path

Searched refs:cx (Results 1 – 25 of 27) 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()
39 cx+= *X++; in db_PointCentroid2D()
45 c[0]=cx*m; in db_PointCentroid2D()
54 double cx,cy,m; in db_PointCentroid2D() local
57 cx=0;cy=0; in db_PointCentroid2D()
61 cx+=temp[0]; in db_PointCentroid2D()
67 c[0]=cx*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/filtershow/imageshow/
DEclipseControl.java225 void paintRadius(Canvas canvas, float cx, float cy, float rx, float ry) { in paintRadius() argument
226 if (cx == Float.NaN) { in paintRadius()
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
254 rect.left = cx - dx; in paintOvallines()
256 rect.right = cx + dx; in paintOvallines()
261 rect.left = cx - dx; in paintOvallines()
263 rect.right = cx + dx; in paintOvallines()
[all …]
DImageGrad.java143 float cx = MasterImage.getImage().getOriginalBounds().width() / 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()
149 c1[0] = cx; in setRepresentation()
154 c2[0] = cx; in setRepresentation()
DGeometryMathUtils.java360 float cx = w / 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.java235 float cx = (p1x + p2x) / 2; in paintOvallines() local
248 float cx = (p1x + p2x) / 2; in fillHandles() local
250 handlex[0] = cx; in fillHandles()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java107 float cx = d.centerX() * p + s.centerX() * (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()
DPhotoView.java679 float cx = r.exactCenterX(); in drawTileView() local
719 cx = interpolate(filmRatio, cxPage, cx); in drawTileView()
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
752 int centerX = (int) (imageW / 2f + (viewW / 2f - cx) / scale + 0.5f); in setTileViewPosition()
825 int cx = wantsCardEffect in draw() local
830 canvas.translate(cx, cy); in draw()
DSurfaceTextureScreenNail.java116 int cx = x + width / 2; in draw() local
118 canvas.translate(cx, cy); in draw()
120 canvas.translate(-cx, -cy); in draw()
DGLRootView.java448 int cx = w / 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()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java341 float cx = getWidth() / 2F; in zoomTo() local
344 zoomTo(scale, cx, cy); in zoomTo()
348 float cx = getWidth() / 2F; in zoomToPoint() local
351 panBy(cx - pointX, cy - pointY); in zoomToPoint()
352 zoomTo(scale, cx, cy); in zoomToPoint()
371 float cx = getWidth() / 2F; in zoomIn() local
374 mSuppMatrix.postScale(rate, rate, cx, cy); in zoomIn()
383 float cx = getWidth() / 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.java60 int cx = mBitmap.getWidth() / 2; in getRotateMatrix() local
62 matrix.preTranslate(-cx, -cy); in getRotateMatrix()
/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
65 float d = cx; in calcRadius()
66 if (d < (w - cx)) { in calcRadius()
67 d = w - cx; in calcRadius()
91 float cx = w / 2; in runFilter() local
93 float r = calcRadius(cx, cy, w, h); in runFilter()
104 cx = c[0]; in runFilter()
120 mScript.set_centerx(cx); in runFilter()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java179 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrix() local
181 matrix[invert ? (m - cx - 1) : cx][cy] = i; in createSparseMatrix()
234 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrixWithHotseat() local
238 if (isHotseatHorizontal && cx >= allappsiconRank) { in createSparseMatrixWithHotseat()
240 cx++; in createSparseMatrixWithHotseat()
247 matrix[cx][cy] = i; in createSparseMatrixWithHotseat()
253 int cx = ((CellLayout.LayoutParams) in createSparseMatrixWithHotseat() local
255 matrix[cx][iconLayout.getCountY()] = iconParent.getChildCount() + i; in createSparseMatrixWithHotseat()
292 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrixWithPivotColumn() local
295 matrix[cx - pivotX][cy] = i; in createSparseMatrixWithPivotColumn()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DCling.java231 int cx = -1; in dispatchDraw() local
240 cx = positions[i]; 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()
258 cx + mHandTouchGraphic.getIntrinsicWidth() + offset, in dispatchDraw()
DCellLayout.java418 int cx = in.centerX(); in scaleRectAboutCenter() local
421 out.offset(-cx, -cy); in scaleRectAboutCenter()
423 out.offset(cx, cy); in scaleRectAboutCenter()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DFabDrawable.java156 int cx = canvas.getWidth() / 2; in draw() local
159 canvas.drawCircle(cx, cy, mStrokeRadius, mStrokePaint); in draw()
160 canvas.drawCircle(cx, cy, mFabRadius, mFabPaint); in draw()
206 int cx = getBounds().width() / 2; in updateOutline() local
210 cx - mStrokeRadius, in updateOutline()
212 cx + mStrokeRadius, in updateOutline()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageView.java259 int cx = width / 2; in positionFromMatrix() local
265 cx += (mTempRectF.left / scale) - xoffset; in positionFromMatrix()
267 cx -= (mTempRectF.left / scale) - xoffset; 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.java119 float cx = cropBounds.centerX(); 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/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java632 private void setCircle(int cx, int cy) { in setCircle() argument
633 mCircle.set(cx - mCircleSize, cy - mCircleSize, cx + mCircleSize, cy + mCircleSize); in setCircle()
635 cx - mCircleSize + mInnerOffset, in setCircle()
637 cx + mCircleSize - mInnerOffset, in setCircle()
/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/LegacyCamera/jni/feature_stab/src/dbreg/
Dvp_motionmodel.c343 VP_PAR cx, cy; in vp_zoom_motion2d() local
356 cx = (VP_PAR) (w/2.0); in vp_zoom_motion2d()
363 MXW(R2r)=cx*(((VP_PAR)1.0) - inv_zoom); in vp_zoom_motion2d()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.cpp499 double cx = sa[c].X(); in ccw() local
504 double val = (ax - cx)*(by - cy) - (bx - cx)*(ay - cy); in ccw()
DBlend.cpp646 int cx = (int)imgMos.Y.width/2; in PerformFinalBlending() local
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java236 int cx = r.centerX(); in scaleRectAboutCenter() local
238 r.offset(-cx, -cy); in scaleRectAboutCenter()
245 r.offset(cx, cy); in scaleRectAboutCenter()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java327 final float[] cx = {0.3f, 0.3f, 0.5f, 0.7f, 0.7f}; in randMultiDrop() local
330 float x = cx[n % cx.length]; in randMultiDrop()
331 float y = cy[n % cx.length]; in randMultiDrop()

12