Home
last modified time | relevance | path

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

12

/frameworks/support/v4/java/android/support/v4/widget/
DSwipeProgressBar.java142 final int cy = height / 2; in draw() local
203 drawCircle(canvas, cx, cy, mColor1, pct); in draw()
207 drawCircle(canvas, cx, cy, mColor2, pct); in draw()
211 drawCircle(canvas, cx, cy, mColor3, pct); in draw()
215 drawCircle(canvas, cx, cy, mColor4, pct); in draw()
219 drawCircle(canvas, cx, cy, mColor1, pct); in draw()
229 drawTrigger(canvas, cx, cy); in draw()
237 drawTrigger(canvas, cx, cy); in draw()
243 private void drawTrigger(Canvas canvas, int cx, int cy) { in drawTrigger() argument
245 canvas.drawCircle(cx, cy, cx * mTriggerPercentage, mPaint); in drawTrigger()
[all …]
/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java51 public SweepGradient(float cx, float cy, in SweepGradient() argument
62 mCy = cy; in SweepGradient()
65 init(nativeCreate1(cx, cy, colors, positions)); in SweepGradient()
76 public SweepGradient(float cx, float cy, int color0, int color1) { in SweepGradient() argument
79 mCy = cy; in SweepGradient()
82 init(nativeCreate2(cx, cy, color0, color1)); in SweepGradient()
DCanvas.java1168 public void drawCircle(float cx, float cy, float radius, @NonNull Paint paint) { in drawCircle() argument
1169 native_drawCircle(mNativeCanvasWrapper, cx, cy, radius, paint.getNativeInstance()); in drawCircle()
2055 float cy, float radius, in native_drawCircle() argument
/frameworks/base/core/java/android/util/
DPathParser.java590 double cy; in drawArc() local
593 cy = ym + sdx; in drawArc()
596 cy = ym - sdx; in drawArc()
599 double eta0 = Math.atan2((y0p - cy), (x0p - cx)); in drawArc()
601 double eta1 = Math.atan2((y1p - cy), (x1p - cx)); in drawArc()
613 cy *= b; in drawArc()
615 cx = cx * cosTheta - cy * sinTheta; in drawArc()
616 cy = tcx * sinTheta + cy * cosTheta; in drawArc()
618 arcToBezier(p, cx, cy, a, b, x0, y0, thetaD, eta0, sweep); in drawArc()
637 double cy, in arcToBezier() argument
[all …]
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
DPathParser.java618 double cy; in drawArc() local
621 cy = ym + sdx; in drawArc()
624 cy = ym - sdx; in drawArc()
627 double eta0 = Math.atan2((y0p - cy), (x0p - cx)); in drawArc()
629 double eta1 = Math.atan2((y1p - cy), (x1p - cx)); in drawArc()
641 cy *= b; in drawArc()
643 cx = cx * cosTheta - cy * sinTheta; in drawArc()
644 cy = tcx * sinTheta + cy * cosTheta; in drawArc()
646 arcToBezier(p, cx, cy, a, b, x0, y0, thetaD, eta0, sweep); in drawArc()
665 double cy, in arcToBezier() argument
[all …]
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp538 for (etc1_uint32 cy = 0; cy < yEnd; cy++) { in etc1_encode_image() local
539 etc1_byte* q = block + (cy * 4) * 3; in etc1_encode_image()
540 const etc1_byte* p = pIn + pixelSize * x + stride * (y + cy); in etc1_encode_image()
591 for (etc1_uint32 cy = 0; cy < yEnd; cy++) { in etc1_decode_image() local
592 const etc1_byte* q = block + (cy * 4) * 3; in etc1_decode_image()
593 etc1_byte* p = pOut + pixelSize * x + stride * (y + cy); in etc1_decode_image()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DSweepGradient_Delegate.java81 private SweepGradient_Delegate(float cx, float cy, in SweepGradient_Delegate() argument
84 mJavaPaint = new SweepGradientPaint(cx, cy, mColors, mPositions); in SweepGradient_Delegate()
92 public SweepGradientPaint(float cx, float cy, int[] colors, in SweepGradientPaint() argument
96 mCy = cy; in SweepGradientPaint()
DCanvas_Delegate.java630 float cx, float cy, float radius, long paint) { in native_drawCircle() argument
632 cx - radius, cy - radius, cx + radius, cy + radius, in native_drawCircle()
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Davcenc_int.h58 #define MV_COST(f,s,cx,cy,px,py) (WEIGHTED_COST(f,mvbits[((cx)<<(s))-px]+mvbits[((cy)<<(s))-py… argument
59 #define MV_COST_S(f,cx,cy,px,py) (WEIGHTED_COST(f,mvbits[cx-px]+mvbits[cy-py])) argument
/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java36 OrientedBoundingBox(float angle, float cx, float cy, float w, float h) { in OrientedBoundingBox() argument
41 centerY = cy; in OrientedBoundingBox()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonRipple.java94 final float cy = h * .5f; in drawSoftware() local
96 final float ry = horizontal ? cy : radius; in drawSoftware()
97 final float corner = horizontal ? cy : cx; in drawSoftware()
99 canvas.drawRoundRect(cx - rx, cy - ry, in drawSoftware()
100 cx + rx, cy + ry, in drawSoftware()
/frameworks/base/packages/WallpaperCropper/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DUtilities.java34 int cy = r.centerY(); in scaleRectAboutCenter() local
35 r.offset(-cx, -cy); in scaleRectAboutCenter()
40 r.offset(cx, cy); in scaleRectAboutCenter()
/frameworks/base/opengl/java/android/opengl/
DMatrix.java653 float cy = (float) Math.cos(y); in setRotateEulerM() local
660 rm[rmOffset + 0] = cy * cz; in setRotateEulerM()
661 rm[rmOffset + 1] = -cy * sz; in setRotateEulerM()
667 rm[rmOffset + 6] = -sx * cy; in setRotateEulerM()
672 rm[rmOffset + 10] = cx * cy; in setRotateEulerM()
/frameworks/base/core/java/android/view/
DDisplayListCanvas.java292 public void drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, in drawCircle() argument
294 nDrawCircle(mNativeCanvasWrapper, cx.getNativeContainer(), cy.getNativeContainer(), in drawCircle()
/frameworks/base/libs/hwui/
DPathTessellator.h125 float cx, float cy,
DSpotShadow.h49 static bool ccw(float ax, float ay, float bx, float by, float cx, float cy);
DPathTessellator.cpp1094 float cx, float cy, in recursiveQuadraticBezierVertices() argument
1100 float d = (cx - bx) * dy - (cy - by) * dx; in recursiveQuadraticBezierVertices()
1109 float acy = (ay + cy) * 0.5f; in recursiveQuadraticBezierVertices()
1110 float bcy = (by + cy) * 0.5f; in recursiveQuadraticBezierVertices()
DSpotShadow.cpp229 float cx, float cy) { in ccw() argument
230 return (bx - ax) * (cy - ay) - (by - ay) * (cx - ax) > EPSILON; in ccw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileView.java288 final int cy = mDual ? mIcon.getTop() + mIcon.getHeight() / 2 : height / 2; in updateRippleSize() local
290 mRipple.setHotspotBounds(cx - rad, cy - rad, cx + rad, cy + rad); in updateRippleSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDessertCaseView.java526 final int cy = (int) (top + h * 0.5f);
527 mView.layout(cx - w2, cy - h2, cx + w2, cy + h2);
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
DViewMatrix.java352 double cy = mScreenDim[1] / 2.; in ballToVec() local
355 double dy = (cy - y) / ballRadius; in ballToVec()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java986 c.drawCircle(pop.cx, pop.cy, pop.r, pt);
1240 int cx, cy, r;
1269 if (Math.hypot(x-cx, y-cy) <= r) return true;
1282 cy = (hitRect.top + hitRect.bottom)/2;
/frameworks/base/docs/html/training/material/
Danimations.jd85 int cy = myView.getHeight() / 2;
92 ViewAnimationUtils.createCircularReveal(myView, cx, cy, 0, finalRadius);
107 int cy = myView.getHeight() / 2;
114 ViewAnimationUtils.createCircularReveal(myView, cx, cy, initialRadius, 0);
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp264 static void drawCircle(JNIEnv* env, jobject, jlong canvasHandle, jfloat cx, jfloat cy, in drawCircle() argument
267 get_canvas(canvasHandle)->drawCircle(cx, cy, radius, *paint); in drawCircle()

12