Home
last modified time | relevance | path

Searched refs:cx (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/support/core-ui/java/android/support/v4/widget/
DSwipeProgressBar.java141 final int cx = width / 2; in draw() local
171 mClipRect.set(cx - clearRadius, 0, cx + clearRadius, height); in draw()
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
[all …]
/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java51 public SweepGradient(float cx, float cy, in SweepGradient() argument
61 mCx = cx; 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
78 mCx = cx; in SweepGradient()
82 init(nativeCreate2(cx, cy, color0, color1)); in SweepGradient()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicYuvToRGB.cpp159 int cx = (x1 >> 1) * cstep; in kernel() local
160 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]); in kernel()
193 int cx = (x1 >> 1) * cstep; in kernel() local
194 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]); in kernel()
197 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]); in kernel()
/frameworks/base/libs/hwui/utils/
DVectorDrawableUtils.cpp114 double cx, in arcToBezier() argument
142 double e2x = cx + (a * cosTheta * cosEta2) - (b * sinTheta * sinEta2); in arcToBezier()
215 double cx; in drawArc() local
218 cx = xm - sdy; in drawArc()
221 cx = xm + sdy; in drawArc()
225 double eta0 = atan2((y0p - cy), (x0p - cx)); in drawArc()
227 double eta1 = atan2((y1p - cy), (x1p - cx)); in drawArc()
238 cx *= a; in drawArc()
240 double tcx = cx; in drawArc()
241 cx = cx * cosTheta - cy * sinTheta; in drawArc()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DPathParser_Delegate.java736 double cx; in drawArc() local
739 cx = xm - sdy; in drawArc()
742 cx = xm + sdy; in drawArc()
746 double eta0 = Math.atan2((y0p - cy), (x0p - cx)); in drawArc()
748 + (x0p - cx) + ") = " + Math.toDegrees(eta0)); in drawArc()
750 double eta1 = Math.atan2((y1p - cy), (x1p - cx)); in drawArc()
752 + (x1p - cx) + ") = " + Math.toDegrees(eta1)); in drawArc()
762 cx *= a; in drawArc()
764 double tcx = cx; in drawArc()
765 cx = cx * cosTheta - cy * sinTheta; in drawArc()
[all …]
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
DPathParser.java637 double cx; in drawArc() local
640 cx = xm - sdy; in drawArc()
643 cx = xm + sdy; in drawArc()
647 double eta0 = Math.atan2((y0p - cy), (x0p - cx)); in drawArc()
649 double eta1 = Math.atan2((y1p - cy), (x1p - cx)); in drawArc()
660 cx *= a; in drawArc()
662 double tcx = cx; in drawArc()
663 cx = cx * cosTheta - cy * sinTheta; in drawArc()
666 arcToBezier(p, cx, cy, a, b, x0, y0, thetaD, eta0, sweep); in drawArc()
684 double cx, in arcToBezier() argument
[all …]
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rs100 static int2 gfindMin(rs_allocation fit, int cx, int cy, int cwidth, int cheight) {
105 int reg_minx = cx;
132 void findMin(rs_allocation fit, rs_allocation fit_max,int cx, int cy, int cwidth, int cheight) {
133 int2 fit_pos = gfindMin(fit, cx, cy, cwidth, cheight);
/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
95 mCx = cx; in SweepGradientPaint()
/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonRipple.java92 final float cx = w * .5f; in drawSoftware() local
94 final float rx = horizontal ? radius : cx; in drawSoftware()
96 final float corner = horizontal ? cy : cx; in drawSoftware()
98 canvas.drawRoundRect(cx - rx, cy - ry, in drawSoftware()
99 cx + rx, cy + ry, in drawSoftware()
/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java36 OrientedBoundingBox(float angle, float cx, float cy, float w, float h) { in OrientedBoundingBox() argument
40 centerX = cx; in OrientedBoundingBox()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageView.java259 int cx = width / 2; in positionFromMatrix() local
265 cx += (mTempRectF.left / scale) - xoffset; in positionFromMatrix()
267 cx -= (mTempRectF.left / scale) - xoffset; 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/qs/
DQSTileBaseView.java86 final int cx = width / 2; in updateRippleSize() local
89 mRipple.setHotspotBounds(cx - rad, cy - rad, cx + rad, cy + rad); in updateRippleSize()
/frameworks/base/services/core/java/com/android/server/wm/
DCircularDisplayMask.java129 static private double calcPixelShading(double cx, double cy, double px, in calcPixelShading() argument
132 px -= cx; in calcPixelShading()
244 double cx = (maskWidth - 1.0) / 2.0; in drawIfNeeded() local
251 double shading = calcPixelShading(cx, cy, px, py, radius); in drawIfNeeded()
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp544 for (etc1_uint32 cx = 0; cx < xEnd; cx++) { in etc1_encode_image() local
597 for (etc1_uint32 cx = 0; cx < xEnd; cx++) { in etc1_decode_image() local
/frameworks/base/core/java/android/view/
DDisplayListCanvas.java234 public void drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, in drawCircle() argument
236 nDrawCircle(mNativeCanvasWrapper, cx.getNativeContainer(), cy.getNativeContainer(), in drawCircle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DUtilities.java163 float cx = r.centerX(); in scaleRectAboutCenter() local
165 r.offset(-cx, -cy); in scaleRectAboutCenter()
170 r.offset(cx, cy); in scaleRectAboutCenter()
/frameworks/base/opengl/java/android/opengl/
DMatrix.java651 float cx = (float) Math.cos(x); in setRotateEulerM() local
657 float cxsy = cx * sy; in setRotateEulerM()
665 rm[rmOffset + 4] = cxsy * cz + cx * sz; in setRotateEulerM()
666 rm[rmOffset + 5] = -cxsy * sz + cx * cz; in setRotateEulerM()
672 rm[rmOffset + 10] = cx * cy; in setRotateEulerM()
/frameworks/base/libs/hwui/
DPathTessellator.h129 float cx, float cy,
DSpotShadow.h49 static bool ccw(float ax, float ay, float bx, float by, float cx, float cy);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDessertCaseView.java532 final int cx = (int) (left + w * 0.5f);
534 mView.layout(cx - w2, cy - h2, cx + w2, cy + h2);
/frameworks/base/docs/html-intl/intl/ru/training/material/
Danimations.jd84 int cx = (myView.getLeft() + myView.getRight()) / 2;
92 ViewAnimationUtils.createCircularReveal(myView, cx, cy, 0, finalRadius);
106 int cx = (myView.getLeft() + myView.getRight()) / 2;
114 ViewAnimationUtils.createCircularReveal(myView, cx, cy, initialRadius, 0);
/frameworks/base/docs/html-intl/intl/zh-tw/training/material/
Danimations.jd84 int cx = (myView.getLeft() + myView.getRight()) / 2;
92 ViewAnimationUtils.createCircularReveal(myView, cx, cy, 0, finalRadius);
106 int cx = (myView.getLeft() + myView.getRight()) / 2;
114 ViewAnimationUtils.createCircularReveal(myView, cx, cy, initialRadius, 0);
/frameworks/base/docs/html-intl/intl/zh-cn/training/material/
Danimations.jd84 int cx = (myView.getLeft() + myView.getRight()) / 2;
92 ViewAnimationUtils.createCircularReveal(myView, cx, cy, 0, finalRadius);
106 int cx = (myView.getLeft() + myView.getRight()) / 2;
114 ViewAnimationUtils.createCircularReveal(myView, cx, cy, initialRadius, 0);
/frameworks/base/docs/html-intl/intl/ja/training/material/
Danimations.jd84 int cx = (myView.getLeft() + myView.getRight()) / 2;
92 ViewAnimationUtils.createCircularReveal(myView, cx, cy, 0, finalRadius);
106 int cx = (myView.getLeft() + myView.getRight()) / 2;
114 ViewAnimationUtils.createCircularReveal(myView, cx, cy, initialRadius, 0);

12