Searched refs:cx (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
H A DSweepGradient.java40 * @param cx The x-coordinate of the center
51 public SweepGradient(float cx, float cy, argument
61 mCx = cx;
65 init(nativeCreate1(cx, cy, colors, positions));
71 * @param cx The x-coordinate of the center
76 public SweepGradient(float cx, float cy, int color0, int color1) { argument
78 mCx = cx;
82 init(nativeCreate2(cx, cy, color0, color1));
H A DCanvas.java1163 * @param cx The x-coordinate of the center of the cirle to be drawn
1168 public void drawCircle(float cx, float cy, float radius, @NonNull Paint paint) { argument
1169 native_drawCircle(mNativeCanvasWrapper, cx, cy, radius, paint.getNativeInstance());
2054 private static native void native_drawCircle(long nativeCanvas, float cx, argument
/frameworks/support/v4/java/android/support/v4/widget/
H A DSwipeProgressBar.java141 final int cx = width / 2;
171 mClipRect.set(cx - clearRadius, 0, cx + clearRadius, height);
203 drawCircle(canvas, cx, cy, mColor1, pct);
207 drawCircle(canvas, cx, cy, mColor2, pct);
211 drawCircle(canvas, cx, cy, mColor3, pct);
215 drawCircle(canvas, cx, cy, mColor4, pct);
219 drawCircle(canvas, cx, cy, mColor1, pct);
229 drawTrigger(canvas, cx, cy);
237 drawTrigger(canvas, cx, c
243 drawTrigger(Canvas canvas, int cx, int cy) argument
257 drawCircle(Canvas canvas, float cx, float cy, int color, float pct) argument
[all...]
/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java36 OrientedBoundingBox(float angle, float cx, float cy, float w, float h) { argument
40 centerX = cx;
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicYuvToRGB.cpp159 int cx = (x1 >> 1) * cstep; local
160 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]);
193 int cx = (x1 >> 1) * cstep; local
194 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]);
197 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]);
/frameworks/base/core/java/android/util/
H A DPathParser.java589 double cx;
592 cx = xm - sdy;
595 cx = xm + sdy;
599 double eta0 = Math.atan2((y0p - cy), (x0p - cx));
601 double eta1 = Math.atan2((y1p - cy), (x1p - cx));
612 cx *= a;
614 double tcx = cx;
615 cx = cx * cosTheta - cy * sinTheta;
618 arcToBezier(p, cx, c
635 arcToBezier(Path p, double cx, double cy, double a, double b, double e1x, double e1y, double theta, double start, double sweep) argument
[all...]
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DPathParser.java617 double cx;
620 cx = xm - sdy;
623 cx = xm + sdy;
627 double eta0 = Math.atan2((y0p - cy), (x0p - cx));
629 double eta1 = Math.atan2((y1p - cy), (x1p - cx));
640 cx *= a;
642 double tcx = cx;
643 cx = cx * cosTheta - cy * sinTheta;
646 arcToBezier(p, cx, c
663 arcToBezier(Path p, double cx, double cy, double a, double b, double e1x, double e1y, double theta, double start, double sweep) argument
[all...]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Davcenc_int.h58 #define MV_COST(f,s,cx,cy,px,py) (WEIGHTED_COST(f,mvbits[((cx)<<(s))-px]+mvbits[((cy)<<(s))-py]))
59 #define MV_COST_S(f,cx,cy,px,py) (WEIGHTED_COST(f,mvbits[cx-px]+mvbits[cy-py]))
/frameworks/base/libs/hwui/
H A DPathTessellator.h125 float cx, float cy,
H A DSpotShadow.h49 static bool ccw(float ax, float ay, float bx, float by, float cx, float cy);
H A DPathTessellator.cpp1094 float cx, float cy,
1100 float d = (cx - bx) * dy - (cy - by) * dx;
1107 float acx = (ax + cx) * 0.5f;
1108 float bcx = (bx + cx) * 0.5f;
1091 recursiveQuadraticBezierVertices( float ax, float ay, float bx, float by, float cx, float cy, const PathApproximationInfo& approximationInfo, Vector<Vertex>& outputVertices, int depth) argument
H A DSpotShadow.cpp229 float cx, float cy) {
230 return (bx - ax) * (cy - ay) - (by - ay) * (cx - ax) > EPSILON;
228 ccw(float ax, float ay, float bx, float by, float cx, float cy) argument
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DSweepGradient_Delegate.java70 * @param cx The x-coordinate of the center
81 private SweepGradient_Delegate(float cx, float cy, argument
84 mJavaPaint = new SweepGradientPaint(cx, cy, mColors, mPositions);
92 public SweepGradientPaint(float cx, float cy, int[] colors, argument
95 mCx = cx;
H A DCanvas_Delegate.java630 float cx, float cy, float radius, long paint) {
632 cx - radius, cy - radius, cx + radius, cy + radius,
629 native_drawCircle(long nativeCanvas, float cx, float cy, float radius, long paint) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyButtonRipple.java93 final float cx = w * .5f;
95 final float rx = horizontal ? radius : cx;
97 final float corner = horizontal ? cy : cx;
99 canvas.drawRoundRect(cx - rx, cy - ry,
100 cx + rx, cy + ry,
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageView.java259 int cx = width / 2;
265 cx += (mTempRectF.left / scale) - xoffset;
267 cx -= (mTempRectF.left / scale) - xoffset;
275 mRenderer.centerX = swap ? cy : cx;
276 mRenderer.centerY = swap ? cx : cy;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DUtilities.java33 int cx = r.centerX();
35 r.offset(-cx, -cy);
40 r.offset(cx, cy);
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp544 for (etc1_uint32 cx = 0; cx < xEnd; cx++) {
597 for (etc1_uint32 cx = 0; cx < xEnd; cx++) {
/frameworks/base/core/java/android/view/
H A DDisplayListCanvas.java292 public void drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, argument
294 nDrawCircle(mNativeCanvasWrapper, cx.getNativeContainer(), cy.getNativeContainer(),
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSTileView.java287 final int cx = width / 2;
290 mRipple.setHotspotBounds(cx - rad, cy - rad, cx + rad, cy + rad);
/frameworks/base/opengl/java/android/opengl/
H A DMatrix.java651 float cx = (float) Math.cos(x);
657 float cxsy = cx * sy;
665 rm[rmOffset + 4] = cxsy * cz + cx * sz;
666 rm[rmOffset + 5] = -cxsy * sz + cx * cz;
672 rm[rmOffset + 10] = cx * cy;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDessertCaseView.java525 final int cx = (int) (left + w * 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/
H A DViewMatrix.java351 double cx = mScreenDim[0] / 2.;
354 double dx = (cx - x) / ballRadius;
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLand.java986 c.drawCircle(pop.cx, pop.cy, pop.r, pt);
1240 int cx, cy, r; field in class:MLand.Pop
1269 if (Math.hypot(x-cx, y-cy) <= r) return true;
1281 cx = (hitRect.left + hitRect.right)/2;
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp264 static void drawCircle(JNIEnv* env, jobject, jlong canvasHandle, jfloat cx, jfloat cy, argument
267 get_canvas(canvasHandle)->drawCircle(cx, cy, radius, *paint);

Completed in 547 milliseconds

12