Home
last modified time | relevance | path

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

12

/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java61 public SweepGradient(float cx, float cy, @NonNull @ColorInt int[] colors, in SweepGradient() argument
63 this(cx, cy, convertColors(colors), positions, ColorSpace.get(ColorSpace.Named.SRGB)); in SweepGradient()
83 public SweepGradient(float cx, float cy, @NonNull @ColorLong long[] colors, in SweepGradient() argument
85 this(cx, cy, colors.clone(), positions, detectColorSpace(colors)); in SweepGradient()
92 private SweepGradient(float cx, float cy, @NonNull @ColorLong long[] colors, in SweepGradient() argument
101 mCy = cy; in SweepGradient()
114 public SweepGradient(float cx, float cy, @ColorInt int color0, @ColorInt int color1) { in SweepGradient() argument
115 this(cx, cy, Color.pack(color0), Color.pack(color1)); in SweepGradient()
129 public SweepGradient(float cx, float cy, @ColorLong long color0, @ColorLong long color1) { in SweepGradient() argument
130 this(cx, cy, new long[] {color0, color1}, null); in SweepGradient()
DRecordingCanvas.java246 public void drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, in drawCircle() argument
248 nDrawCircle(mNativeCanvasWrapper, cx.getNativeContainer(), cy.getNativeContainer(), in drawCircle()
DBaseCanvas.java237 public void drawCircle(float cx, float cy, float radius, @NonNull Paint paint) { in drawCircle() argument
239 nDrawCircle(mNativeCanvasWrapper, cx, cy, radius, paint.getNativeInstance()); in drawCircle()
699 private static native void nDrawCircle(long nativeCanvas, float cx, float cy, float radius, in nDrawCircle() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonRipple.java120 final float cy = h * .5f; in drawSoftware() local
122 final float ry = horizontal ? cy : radius; in drawSoftware()
123 final float corner = horizontal ? cy : cx; in drawSoftware()
126 canvas.drawRoundRect(cx - rx, cy - ry, cx + rx, cy + ry, corner, corner, p); in drawSoftware()
129 canvas.translate(cx, cy); in drawSoftware()
173 CanvasProperty<Float> cy = CanvasProperty.createFloat(getBounds().height() / 2); in drawHardware() local
176 c.drawCircle(cx, cy, r, mPaintProp); in drawHardware()
DKeyButtonView.java398 int cy = (getTop() + getBottom()) / 2; in draw() local
399 canvas.translate(cx, cy); in draw()
DRemoteInputView.java467 public void setRevealParameters(int cx, int cy, int r) { in setRevealParameters() argument
469 mRevealCy = cy; in setRevealParameters()
/frameworks/layoutlib/bridge/src/android/util/
DPathParser_Delegate.java740 double cy; in drawArc() local
743 cy = ym + sdx; in drawArc()
746 cy = ym - sdx; in drawArc()
749 double eta0 = Math.atan2((y0p - cy), (x0p - cx)); in drawArc()
750 LOGGER.log(Level.FINE, "eta0 = Math.atan2( " + (y0p - cy) + " , " in drawArc()
753 double eta1 = Math.atan2((y1p - cy), (x1p - cx)); in drawArc()
754 LOGGER.log(Level.FINE, "eta1 = Math.atan2( " + (y1p - cy) + " , " in drawArc()
766 cy *= b; in drawArc()
768 cx = cx * cosTheta - cy * sinTheta; in drawArc()
769 cy = tcx * sinTheta + cy * cosTheta; in drawArc()
[all …]
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp534 for (etc1_uint32 cy = 0; cy < yEnd; cy++) { in etc1_encode_image() local
535 etc1_byte* q = block + (cy * 4) * 3; in etc1_encode_image()
536 const etc1_byte* p = pIn + pixelSize * x + stride * (y + cy); in etc1_encode_image()
587 for (etc1_uint32 cy = 0; cy < yEnd; cy++) { in etc1_decode_image() local
588 const etc1_byte* q = block + (cy * 4) * 3; in etc1_decode_image()
589 etc1_byte* p = pOut + pixelSize * x + stride * (y + cy); in etc1_decode_image()
/frameworks/layoutlib/bridge/src/android/graphics/
DSweepGradient_Delegate.java83 private SweepGradient_Delegate(long nativeMatrix, float cx, float cy, in SweepGradient_Delegate() argument
86 mJavaPaint = new SweepGradientPaint(cx, cy, mColors, mPositions); in SweepGradient_Delegate()
94 public SweepGradientPaint(float cx, float cy, int[] colors, in SweepGradientPaint() argument
98 mCy = cy; in SweepGradientPaint()
DBaseCanvas_Delegate.java265 float cx, float cy, float radius, long paint) { in nDrawCircle() argument
267 cx - radius, cy - radius, cx + radius, cy + radius, in nDrawCircle()
/frameworks/layoutlib/bridge/src/android/view/math/
DMath3DHelper.java83 double cy = 0; in centroid3d() local
99 cy += areaOfTriangle * (poly[i * 3 + 1] + poly[k * 3 + 1] + poly[0 * 3 + 1]); in centroid3d()
103 ret[1] = (float) (cy / (3 * area)); in centroid3d()
186 private static boolean rightTurn(float ax, float ay, float bx, float by, float cx, float cy) { in rightTurn() argument
187 return (bx - ax) * (cy - ay) - (by - ay) * (cx - ax) > 0.00001; in rightTurn()
456 float cy = retxy[1]; in donutPie2() local
464 t2[i] = rayIntersectPoly(umbra, umbraLength, cx, cy, dx, dy, 2)[0]; in donutPie2()
465 t1[i] = rayIntersectPoly(penumbra, penumbraLength, cx, cy, dx, dy, 2)[0]; in donutPie2()
482 retstrips[p * 3 + 1] = dy * t + cy; in donutPie2()
520 retstrips[p * 3 + 1] = dy * t + cy; in donutPie2()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rscript46 int2 fit_pos = gfindMin(fit, cx, cy, cwidth, cheight);
100 static int2 gfindMin(rs_allocation fit, int cx, int cy, int cwidth, int cheight) {
106 int reg_miny = cy;
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/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/layoutlib/bridge/src/android/view/shadow/
DAmbientShadowVertexCalculator.java58 float cy = centroidxy[1]; in generateVertex() local
70 float[] intersection = Math3DHelper.rayIntersectPoly(polygon, polygonLength, cx, cy, in generateVertex()
96 mVertex[p * 2 + 1] = dy * t + cy; in generateVertex()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp982 const float cx, const float cy, const float f) { in undistort() argument
984 double yp = (y - cy) / f; in undistort()
1003 y = ypp * f + cy; in undistort()
1010 const float cx, const float cy, const float f, in unDistortWithinPreCorrArray() argument
1012 undistort(x, y, distortion, cx, cy, f); in unDistortWithinPreCorrArray()
1025 const float cx, const float cy, const float f, in boxWithinPrecorrectionArray() argument
1029 distortion, cx, cy, f, preCorrW, preCorrH, xMin, yMin)) { in boxWithinPrecorrectionArray()
1034 distortion, cx, cy, f, preCorrW, preCorrH, xMin, yMin)) { in boxWithinPrecorrectionArray()
1039 distortion, cx, cy, f, preCorrW, preCorrH, xMin, yMin)) { in boxWithinPrecorrectionArray()
1044 if (!unDistortWithinPreCorrArray(left, cy, in boxWithinPrecorrectionArray()
[all …]
/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/statusbar/
DNotificationRemoteInputManager.java435 int cy = view.getTop() + view.getHeight() / 2; in activateRemoteInput() local
439 Math.max(cx + cy, cx + (h - cy)), in activateRemoteInput()
440 Math.max((w - cx) + cy, (w - cx) + (h - cy))); in activateRemoteInput()
442 riv.setRevealParameters(cx, cy, r); in activateRemoteInput()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/utilities/
DUtilities.java157 float cy = r.centerY(); in scaleRectAboutCenter() local
158 r.offset(-cx, -cy); in scaleRectAboutCenter()
163 r.offset(cx, cy); in scaleRectAboutCenter()
/frameworks/base/core/java/android/view/
DDisplayListCanvas.java52 public abstract void drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, in drawCircle() argument
/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/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileBaseView.java148 final int cy = mIconFrame.getMeasuredHeight() / 2 + mIconFrame.getTop(); in updateRippleSize() local
150 mRipple.setHotspotBounds(cx - rad, cy - rad, cx + rad, cy + rad); in updateRippleSize()
/frameworks/native/libs/math/include/math/
DTMatHelpers.h564 T cy = std::cos(yaw); in eulerZYX() local
570 T cc = cr * cy; in eulerZYX()
572 T sc = sr * cy; in eulerZYX()
574 r[0][0] = cp * cy; in eulerZYX()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDessertCaseView.java533 final int cy = (int) (top + h * 0.5f);
534 mView.layout(cx - w2, cy - h2, cx + w2, cy + h2);
/frameworks/rs/tests/java_api/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/av/media/codec2/tests/vndk/
DC2BufferTest.cpp558 const uint8_t *cy = constData[C2PlanarLayout::PLANE_Y]; in TEST_F() local
565 …ASSERT_TRUE(verifyPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), yInfo, cy, 0x… in TEST_F()
568 ASSERT_TRUE(verifyPlane({ kWidth, kHeight / 4 }, yInfo, cy, 0)); in TEST_F()
571 ASSERT_TRUE(verifyPlane({ kWidth / 4, kHeight }, yInfo, cy, 0)); in TEST_F()

12