Searched refs:cy (Results 1 - 25 of 26) sorted by relevance

12

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

Completed in 277 milliseconds

12