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

/frameworks/base/graphics/java/android/graphics/
H A DSweepGradient.java24 * @param cx The x-coordinate of the center
35 public SweepGradient(float cx, float cy, argument
44 native_instance = nativeCreate1(cx, cy, colors, positions);
50 * @param cx The x-coordinate of the center
55 public SweepGradient(float cx, float cy, int color0, int color1) { argument
56 native_instance = nativeCreate2(cx, cy, color0, color1);
H A DCanvas.java892 * @param cx The x-coordinate of the center of the cirle to be drawn
897 public void drawCircle(float cx, float cy, float radius, Paint paint) { argument
898 native_drawCircle(mNativeCanvas, cx, cy, radius,
1513 private static native void native_drawCircle(int nativeCanvas, float cx, argument
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DSweepGradient.java24 * @param cx The x-coordinate of the center
35 public SweepGradient(float cx, float cy, argument
51 * @param cx The x-coordinate of the center
56 public SweepGradient(float cx, float cy, int color0, int color1) { argument
H A DCanvas.java800 public void drawCircle(float cx, float cy, float radius, Paint paint) { argument
812 g.fillOval((int)(cx - radius), (int)(cy - radius), size, size);
816 g.drawOval((int)(cx - radius), (int)(cy - radius), size, size);
/frameworks/base/awt/org/apache/harmony/awt/gl/render/
H A DJavaArcRasterizer.java30 static void addX0LineSeg(MultiRectArea mra, int[] line, int cx, int cy, int b, int start, int finish) { argument
36 mra.addRect(cx + Math.max(x1, start), y, cx + Math.min(x2, finish), y);
42 static void addX1LineSeg(MultiRectArea mra, int[] line, int cx, int cy, int b, int start, int finish) { argument
48 mra.addRect(cx + Math.max(x1, start), y, cx + Math.min(x2, finish), y);
54 static void addX2LineSeg(MultiRectArea mra, int[] line, int cx, int cy, int b, int start, int finish) { argument
60 mra.addRect(cx - Math.min(x2, finish), y, cx - Math.max(x1, start), y);
66 static void addX3LineSeg(MultiRectArea mra, int[] line, int cx, in argument
78 addY0LineSeg(MultiRectArea mra, int[] line, int cx, int cy, int b, int start, int finish) argument
90 addY1LineSeg(MultiRectArea mra, int[] line, int cx, int cy, int b, int start, int finish) argument
102 addY2LineSeg(MultiRectArea mra, int[] line, int cx, int cy, int b, int start, int finish) argument
114 addY3LineSeg(MultiRectArea mra, int[] line, int cx, int cy, int b, int start, int finish) argument
126 addX0Line(MultiRectArea mra, int[] line, int cx, int cy, int b) argument
134 addX1Line(MultiRectArea mra, int[] line, int cx, int cy, int b) argument
142 addX2Line(MultiRectArea mra, int[] line, int cx, int cy, int b) argument
150 addX3Line(MultiRectArea mra, int[] line, int cx, int cy, int b) argument
158 addY0Line(MultiRectArea mra, int[] line, int cx, int cy, int a) argument
166 addY1Line(MultiRectArea mra, int[] line, int cx, int cy, int a) argument
174 addY2Line(MultiRectArea mra, int[] line, int cx, int cy, int a) argument
182 addY3Line(MultiRectArea mra, int[] line, int cx, int cy, int a) argument
[all...]
H A DJavaBlitter.java244 int cx = clipRects[i]; // Clipping left top X
249 if(_dx > cx2 || _dy > cy2 || dstX2 < cx || dstY2 < cy) {
253 if(cx > _dx){
254 int shx = cx - _dx;
256 _dx = cx;
H A DJavaLineRasterizer.java686 static int clipY(int dx, int dy, int cx, boolean top) { argument
687 return clip(dx, dy, cx, top);
/frameworks/base/awt/org/apache/harmony/awt/gl/
H A DCrossing.java161 public QuadCurve(double x1, double y1, double cx, double cy, double x2, double y2) { argument
164 bx = cx - x1;
256 double ax, ay, bx, by, cx, cy; field in class:Crossing.CubicCurve
265 cx = cx2 - x1;
269 Bx = cx + cx + cx - Cx - Cx; // Bx = 3.0 * cx - 6.0 * bx
270 Ax = ax - Bx - Cx; // Ax = ax - 3.0 * cx + 3.0 * bx
291 if (py1 < 0.0 && (bx != 0.0 ? bx : (cx !
402 crossQuad(double x1, double y1, double cx, double cy, double x2, double y2, double x, double y) argument
665 intersectQuad(double x1, double y1, double cx, double cy, double x2, double y2, double rx1, double ry1, double rx2, double ry2) 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/base/awt/java/awt/geom/
H A DQuadCurve2D.java752 double cx = src.getCtrlX();
756 double cx1 = (x1 + cx) / 2.0;
758 double cx2 = (x2 + cx) / 2.0;
760 cx = (cx1 + cx2) / 2.0;
763 left.setCurve(x1, y1, cx1, cy1, cx, cy);
766 right.setCurve(cx, cy, cx2, cy2, x2, y2);
774 * written from arrays of values in the usual order: x1, y1, cx, cy, x2, y2.
800 double cx = src[srcoff + 2];
804 double cx1 = (x1 + cx) / 2.0;
806 double cx2 = (x2 + cx) / 2.
[all...]
H A DArc2D.java827 double cx = getCenterX();
829 bx1 = Math.min(bx1, cx);
831 bx2 = Math.max(bx2, cx);
984 double cx = getCenterX();
986 double a1 = getNormAngle(-Math.toDegrees(Math.atan2(y1 - cy, x1 - cx)));
987 double a2 = getNormAngle(-Math.toDegrees(Math.atan2(y2 - cy, x2 - cx)));
1095 double cx = getCenterX();
1097 if (r.contains(cx, cy)) {
1104 return !r.intersectsLine(cx, cy, p1.getX(), p1.getY())
1105 && !r.intersectsLine(cx, c
[all...]
H A DRoundRectangle2D.java567 double cx, cy;
570 cx = rx1 + aw;
572 cx = rx2 - aw;
585 px = (px - cx) / aw;
609 double cx = (x1 + x2) / 2.0;
612 double nx = cx < rx1 ? rx1 : (cx > rx2 ? rx2 : cx);
H A DCubicCurve2D.java865 double cx = (cx1 + cx2) / 2.0;
871 double ax = (cx1 + cx) / 2.0;
873 double bx = (cx2 + cx) / 2.0;
875 cx = (ax + bx) / 2.0;
878 left.setCurve(x1, y1, cx1, cy1, ax, ay, cx, cy);
881 right.setCurve(cx, cy, bx, by, cx2, cy2, x2, y2);
924 double cx = (cx1 + cx2) / 2.0;
930 double ax = (cx1 + cx) / 2.0;
932 double bx = (cx2 + cx) / 2.0;
934 cx
[all...]
H A DEllipse2D.java428 double cx = getX() + getWidth() / 2.0;
436 double nx = cx < rx1 ? rx1 : (cx > rx2 ? rx2 : cx);
/frameworks/base/awt/java/awt/
H A DGradientPaintContext.java177 int cx = dy;
185 c += cx;
194 c += cx;
H A DBasicStroke.java182 double mx, my, cx, cy; field in class:BasicStroke
498 mx = my = cx = cy = 0.0;
511 mx = cx = coords[0];
517 addLine(cx, cy, cx = coords[0], cy = coords[1], true);
520 addQuad(cx, cy, coords[0], coords[1], cx = coords[2], cy = coords[3]);
523 addCubic(cx, cy, coords[0], coords[1], coords[2], coords[3], cx = coords[4],
527 addLine(cx, c
[all...]
/frameworks/base/awt/com/android/internal/awt/
H A DAndroidJavaBlitter.java259 int cx = clipRects[i]; // Clipping left top X
264 if(_dx > cx2 || _dy > cy2 || dstX2 < cx || dstY2 < cy) {
268 if(cx > _dx){
269 int shx = cx - _dx;
271 _dx = cx;
/frameworks/base/opengl/java/android/opengl/
H A DMatrix.java556 float cx = (float) Math.cos(x);
562 float cxsy = cx * sy;
570 rm[rmOffset + 4] = cxsy * cz + cx * sz;
571 rm[rmOffset + 5] = -cxsy * sz + cx * cz;
577 rm[rmOffset + 10] = cx * cy;
/frameworks/base/core/java/android/webkit/
H A DWebView.java2078 private void setContentScrollBy(int cx, int cy, boolean animate) { argument
2086 cx = contentToView(cx);
2093 tempRect.offset(cx, cy);
2101 if (cy == 0 && cx != 0) {
2102 pinScrollBy(cx, 0, animate, 0);
2105 pinScrollBy(cx, cy, animate, 0);
2110 // return true if pin caused the final x/y different than the request cx/cy;
2112 private boolean setContentScrollTo(int cx, int cy) { argument
2121 int vx = contentToView(cx);
2134 spawnContentScrollTo(int cx, int cy) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DCanvas.cpp419 static void drawCircle(JNIEnv* env, jobject, SkCanvas* canvas, jfloat cx, argument
421 canvas->drawCircle(SkFloatToScalar(cx), SkFloatToScalar(cy),

Completed in 717 milliseconds