Home
last modified time | relevance | path

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

12

/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java62 public SweepGradient(float cx, float cy, @NonNull @ColorInt int[] colors, in SweepGradient() argument
64 this(cx, cy, convertColors(colors), positions, ColorSpace.get(ColorSpace.Named.SRGB)); in SweepGradient()
84 public SweepGradient(float cx, float cy, @NonNull @ColorLong long[] colors, in SweepGradient() argument
86 this(cx, cy, colors.clone(), positions, detectColorSpace(colors)); in SweepGradient()
93 private SweepGradient(float cx, float cy, @NonNull @ColorLong long[] colors, in SweepGradient() argument
102 mCy = cy; in SweepGradient()
115 public SweepGradient(float cx, float cy, @ColorInt int color0, @ColorInt int color1) { in SweepGradient() argument
116 this(cx, cy, Color.pack(color0), Color.pack(color1)); in SweepGradient()
130 public SweepGradient(float cx, float cy, @ColorLong long color0, @ColorLong long color1) { in SweepGradient() argument
131 this(cx, cy, new long[] {color0, color1}, null); in SweepGradient()
DRecordingCanvas.java210 public void drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, in drawCircle() argument
212 nDrawCircle(mNativeCanvasWrapper, cx.getNativeContainer(), cy.getNativeContainer(), in drawCircle()
228 public void drawRipple(CanvasProperty<Float> cx, CanvasProperty<Float> cy, in drawRipple() argument
232 nDrawRipple(mNativeCanvasWrapper, cx.getNativeContainer(), cy.getNativeContainer(), in drawRipple()
/frameworks/av/services/camera/libcameraservice/device3/
DRotateAndCropMapper.cpp72 int32_t cy = 0; in updateCaptureRequest() local
78 cy = entry.data.i32[1]; in updateCaptureRequest()
170 transformPoints(entry.data.i32 + i, 2, transformMat, xShift, yShift, cx, cy); in updateCaptureRequest()
188 int32_t cy = 0; in updateCaptureResult() local
194 cy = entry.data.i32[1]; in updateCaptureResult()
263 ry = cy; in updateCaptureResult()
272 ry = cy + (ch - rh) / 2; in updateCaptureResult()
278 yShift = ry - cy + ch; // top edge of rotated to bottom edge of cropped in updateCaptureResult()
DRotateAndCropMapper.h57 float xShift, float yShift, float cx, float cy);
/frameworks/layoutlib/bridge/src/android/view/shadow/
DAmbientShadowVertexCalculator.java49 float cy = mConfig.getLightSourcePosition()[1]; in generateVertex() local
72 mVertex[shift + 3] = cy + h * (py - cy); in generateVertex()
/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/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonRipple.java126 final float cy = h * .5f; in drawSoftware() local
128 final float ry = horizontal ? cy : radius; in drawSoftware()
129 final float corner = horizontal ? cy : cx; in drawSoftware()
132 canvas.drawRoundRect(cx - rx, cy - ry, cx + rx, cy + ry, corner, corner, p); in drawSoftware()
135 canvas.translate(cx, cy); in drawSoftware()
179 CanvasProperty<Float> cy = CanvasProperty.createFloat(getBounds().height() / 2); in drawHardware() local
182 c.drawCircle(cx, cy, r, mPaintProp); in drawHardware()
/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.java269 float cx, float cy, float radius, long paint) { in nDrawCircle() argument
271 cx - radius, cy - radius, cx + radius, cy + radius, in nDrawCircle()
/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/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/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/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipPinchResizingAlgorithm.java128 int cy = r.centerY(); in scaleRectAboutCenter() local
129 r.offset(-cx, -cy); in scaleRectAboutCenter()
131 r.offset(cx, cy); in scaleRectAboutCenter()
/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/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1066 const float cx, const float cy, const float f) { in undistort() argument
1068 double yp = (y - cy) / f; in undistort()
1087 y = ypp * f + cy; in undistort()
1094 const float cx, const float cy, const float f, in unDistortWithinPreCorrArray() argument
1096 undistort(x, y, distortion, cx, cy, f); in unDistortWithinPreCorrArray()
1109 const float cx, const float cy, const float f, in boxWithinPrecorrectionArray() argument
1113 distortion, cx, cy, f, preCorrW, preCorrH, xMin, yMin)) { in boxWithinPrecorrectionArray()
1118 distortion, cx, cy, f, preCorrW, preCorrH, xMin, yMin)) { in boxWithinPrecorrectionArray()
1123 distortion, cx, cy, f, preCorrW, preCorrH, xMin, yMin)) { in boxWithinPrecorrectionArray()
1128 if (!unDistortWithinPreCorrArray(left, cy, in boxWithinPrecorrectionArray()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleDrawable.java767 float cx = mHotspotBounds.centerX(), cy = mHotspotBounds.centerY(); in onHotspotBoundsChanged() local
768 s.getProperties().getShader().setOrigin(cx, cy); in onHotspotBoundsChanged()
769 s.getProperties().setOrigin(cx, cy); in onHotspotBoundsChanged()
772 .setOrigin(CanvasProperty.createFloat(cx), CanvasProperty.createFloat(cy)); in onHotspotBoundsChanged()
875 final float x, y, cx, cy, w, h; in drawPatterned() local
878 cy = bounds.centerY(); in drawPatterned()
887 drawPatternedBackground(canvas, cx, cy); in drawPatterned()
900 createAnimationProperties(x, y, cx, cy, w, h); in drawPatterned()
934 private void drawPatternedBackground(Canvas c, float cx, float cy) { in drawPatternedBackground() argument
947 c.drawCircle(cx, cy, getComputedRadius(), p); in drawPatternedBackground()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsView.java203 final float cy = mSensorRect.centerY() + translation.y; in isWithinSensorArea() local
210 && y > (cy - ry * mSensorTouchAreaCoefficient) in isWithinSensorArea()
211 && y < (cy + ry * mSensorTouchAreaCoefficient) in isWithinSensorArea()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationRemoteInputManager.java476 int cy = view.getTop() + view.getHeight() / 2; in activateRemoteInput() local
480 Math.max(cx + cy, cx + (h - cy)), in activateRemoteInput()
481 Math.max((w - cx) + cy, (w - cx) + (h - cy))); in activateRemoteInput()
483 riv.setRevealParameters(cx, cy, r); in activateRemoteInput()
/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/libs/hwui/
DSkiaInterpolator.cpp49 static float SkUnitCubicInterp(float value, float bx, float by, float cx, float cy) { in SkUnitCubicInterp() argument
82 c = pin_and_convert(cy); in SkUnitCubicInterp()
/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/base/libs/hwui/canvas/
DCanvasOps.h240 SkScalar cy;
244 canvas->drawCircle(cx, cy, radius, paint);
/frameworks/base/core/java/com/android/internal/app/
DPlatLogoActivity.java266 float cy = getHeight() / 2f; in onTouchEvent() local
267 float angle = (float) toPositiveDegrees(Math.atan2(x - cx, y - cy)); in onTouchEvent()
/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()

12