Home
last modified time | relevance | path

Searched refs:cy (Results 1 – 25 of 33) 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/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/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/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/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java180 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrix() local
181 matrix[invert ? (m - cx - 1) : cx][cy] = i; in createSparseMatrix()
235 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithHotseat() local
242 if (!isHotseatHorizontal && cy >= allappsiconRank) { in createSparseMatrixWithHotseat()
244 cy++; in createSparseMatrixWithHotseat()
247 matrix[cx][cy] = i; in createSparseMatrixWithHotseat()
257 int cy = ((CellLayout.LayoutParams) in createSparseMatrixWithHotseat() local
259 matrix[iconLayout.getCountX()][cy] = iconParent.getChildCount() + i; in createSparseMatrixWithHotseat()
293 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithPivotColumn() local
295 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()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DFabDrawable.java157 int cy = canvas.getHeight() / 2; in draw() local
159 canvas.drawCircle(cx, cy, mStrokeRadius, mStrokePaint); in draw()
160 canvas.drawCircle(cx, cy, mFabRadius, mFabPaint); in draw()
207 int cy = getBounds().height() / 2; in updateOutline() local
211 cy - mStrokeRadius, in updateOutline()
213 cy + mStrokeRadius, in updateOutline()
/packages/apps/Test/connectivity/PMC/
Dbuild_pmc.sh20 cy='\e[0;36m'
26 echo -e "Welcome to ${r}U${brn}N${y}I${g}C${lb}O${cy}R${p}N${NC} build system for ${g}PMC${NC}"
112 echo -e " ${r}U${brn}N${y}I${g}C${cy}O${lb}R${p}N ${r}P${brn}O${y}W${g}E${cy}R${lb}!${p}!${NC}"
/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/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()
636 cy - mCircleSize + mInnerOffset, in setCircle()
638 cy + 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
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.java237 int cy = r.centerY(); in scaleRectAboutCenter() local
238 r.offset(-cx, -cy); in scaleRectAboutCenter()
245 r.offset(cx, cy); in scaleRectAboutCenter()
/packages/inputmethods/LatinIME/dictionaries/
Dpl_wordlist.combined.gz1dictionary=main:pl,locale=pl,description=Polski,date=1414726264, ...
/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