/aosp12/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_utilities_geometry.h | 34 double cx,cy,m; in db_PointCentroid2D() local 36 cx=0;cy=0; in db_PointCentroid2D() 39 cx+= *X++; in db_PointCentroid2D() 45 c[0]=cx*m; in db_PointCentroid2D() 54 double cx,cy,m; in db_PointCentroid2D() local 57 cx=0;cy=0; in db_PointCentroid2D() 67 c[0]=cx*m; in db_PointCentroid2D() 80 cx=0;cy=0;cz=0; in db_PointCentroid3D() 83 cx+= *X++; in db_PointCentroid3D() 90 c[0]=cx*m; in db_PointCentroid3D() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | IconShape.java | 219 float cx = radius + offsetX; 222 canvas.drawRoundRect(cx - radius, cy - radius, cx + radius, cy + radius, cr, cr, p); 227 float cx = radius + offsetX; 230 path.addRoundRect(cx - radius, cy - radius, cx + radius, cy + radius, cr, cr, 255 float cx = r1 + offsetX; 258 p.addRoundRect(cx - r1, cy - r1, cx + r1, cy + r1, getRadiiArray(r1, r2), 305 float cx = r + offsetX; 309 p.moveTo(cx, cy - r); 319 cx - control, cy - r, 321 cx - r, cy); [all …]
|
/aosp12/frameworks/base/graphics/java/android/graphics/ |
H A D | SweepGradient.java | 62 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 101 mCx = cx; 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()
|
H A D | RecordingCanvas.java | 210 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()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | PhotoFallbackEffect.java | 107 float cx = d.centerX() * p + s.centerX() * (1 - p); in drawEntry() local 115 mTarget.set(cx - ch / 2, cy - ch / 2, cx + ch / 2, cy + ch / 2); in drawEntry() 123 mTarget.set(cx - cw / 2, cy - ch / 2, cx - ch / 2, cy + ch / 2); in drawEntry() 128 mTarget.set(cx + ch / 2, cy - ch / 2, cx + cw / 2, cy + ch / 2); in drawEntry() 135 mTarget.set(cx - cw / 2, cy - cw / 2, cx + cw / 2, cy + cw / 2); in drawEntry() 143 mTarget.set(cx - cw / 2, cy - ch / 2, cx + cw / 2, cy - cw / 2); in drawEntry() 148 mTarget.set(cx - cw / 2, cy + cw / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
|
H A D | SurfaceTextureScreenNail.java | 116 int cx = x + width / 2; in draw() local 118 canvas.translate(cx, cy); in draw() 120 canvas.translate(-cx, -cy); in draw()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | EclipseControl.java | 226 if (Float.isNaN(cx)) { in paintRadius() 231 RectF rect = new RectF(cx - rx, cy - ry, cx + rx, cy + ry); in paintRadius() 254 rect.left = cx - dx; in paintOvallines() 256 rect.right = cx + dx; in paintOvallines() 261 rect.left = cx - dx; in paintOvallines() 263 rect.right = cx + dx; in paintOvallines() 273 float x = cx + (float) (rx * Math.cos(angle)); in paintOvallines() 278 rect.left = cx - rx; in paintOvallines() 280 rect.right = cx + rx; in paintOvallines() 285 handlex[0] = cx; in fillHandles() [all …]
|
/aosp12/bionic/libc/arch-x86/bionic/ |
H A D | __x86.get_pc_thunk.S | 44 .section .text.__x86.get_pc_thunk.cx,"axG",@progbits,__x86.get_pc_thunk.cx,comdat 45 .globl __x86.get_pc_thunk.cx 46 .hidden __x86.get_pc_thunk.cx 48 .type __x86.get_pc_thunk.cx,@function 49 __x86.get_pc_thunk.cx:
|
/aosp12/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageViewTouchBase.java | 341 float cx = getWidth() / 2F; in zoomTo() local 344 zoomTo(scale, cx, cy); in zoomTo() 348 float cx = getWidth() / 2F; in zoomToPoint() local 351 panBy(cx - pointX, cy - pointY); in zoomToPoint() 352 zoomTo(scale, cx, cy); in zoomToPoint() 371 float cx = getWidth() / 2F; in zoomIn() local 374 mSuppMatrix.postScale(rate, rate, cx, cy); in zoomIn() 383 float cx = getWidth() / 2F; in zoomOut() local 388 tmp.postScale(1F / rate, 1F / rate, cx, cy); in zoomOut() 391 mSuppMatrix.setScale(1F, 1F, cx, cy); in zoomOut() [all …]
|
H A D | RotateBitmap.java | 60 int cx = mBitmap.getWidth() / 2; in getRotateMatrix() local 62 matrix.preTranslate(-cx, -cy); in getRotateMatrix()
|
/aosp12/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicYuvToRGB.cpp | 153 int cx = (x1 >> 1) * cstep; in kernel() local 154 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]); in kernel() 187 int cx = (x1 >> 1) * cstep; in kernel() local 188 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]); in kernel() 191 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]); in kernel()
|
/aosp12/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | RotateAndCropMapper.cpp | 71 int32_t cx = 0; in updateCaptureRequest() local 77 cx = entry.data.i32[0]; in updateCaptureRequest() 170 transformPoints(entry.data.i32 + i, 2, transformMat, xShift, yShift, cx, cy); in updateCaptureRequest() 187 int32_t cx = 0; in updateCaptureResult() local 193 cx = entry.data.i32[0]; in updateCaptureResult() 262 rx = cx; in updateCaptureResult() 271 rx = cx + (cw - rw) / 2; in updateCaptureResult()
|
/aosp12/frameworks/layoutlib/bridge/src/android/util/ |
H A D | PathParser_Delegate.java | 739 double cx; in drawArc() local 742 cx = xm - sdy; in drawArc() 745 cx = xm + sdy; in drawArc() 749 double eta0 = Math.atan2((y0p - cy), (x0p - cx)); in drawArc() 751 + (x0p - cx) + ") = " + Math.toDegrees(eta0)); in drawArc() 753 double eta1 = Math.atan2((y1p - cy), (x1p - cx)); in drawArc() 755 + (x1p - cx) + ") = " + Math.toDegrees(eta1)); in drawArc() 765 cx *= a; in drawArc() 767 double tcx = cx; in drawArc() 768 cx = cx * cosTheta - cy * sinTheta; in drawArc() [all …]
|
/aosp12/frameworks/layoutlib/bridge/src/android/view/shadow/ |
H A D | AmbientShadowVertexCalculator.java | 48 float cx = mConfig.getLightSourcePosition()[0]; in generateVertex() local 71 mVertex[shift + 2] = cx + h * (px - cx); in generateVertex()
|
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/navigationbar/buttons/ |
H A D | KeyButtonRipple.java | 138 final float cx = w * .5f; in drawSoftware() local 140 final float rx = horizontal ? radius : cx; in drawSoftware() 142 final float corner = horizontal ? cy : cx; in drawSoftware() 145 canvas.drawRoundRect(cx - rx, cy - ry, cx + rx, cy + ry, corner, corner, p); in drawSoftware() 148 canvas.translate(cx, cy); in drawSoftware() 191 CanvasProperty<Float> cx = CanvasProperty.createFloat(getBounds().width() / 2); in drawHardware() local 195 c.drawCircle(cx, cy, r, mPaintProp); in drawHardware()
|
/aosp12/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | SweepGradient_Delegate.java | 83 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 97 mCx = cx; in SweepGradientPaint()
|
/aosp12/hardware/google/graphics/common/libscaler/ |
H A D | libscaler-swscaler.cpp | 43 unsigned int cx = (src_x >> 16) & ~1; in Scale() local 46 m_pSrc[0][(src_y >> 16) * (m_nSrcStride * 2) + cx * 2 + 1]; in Scale() 48 m_pSrc[0][(src_y >> 16) * (m_nSrcStride * 2) + cx * 2 + 3]; in Scale()
|
/aosp12/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | find_region.rscript | 46 int2 fit_pos = gfindMin(fit, cx, cy, cwidth, cheight); 100 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);
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_DngCreator.cpp | 1067 double xp = (x - cx) / f; in undistort() 1086 x = xpp * f + cx; 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 1117 if (!unDistortWithinPreCorrArray(cx, top, in boxWithinPrecorrectionArray() 1144 if (!unDistortWithinPreCorrArray(cx, bottom, in boxWithinPrecorrectionArray() 1163 double left = cx * (1.0 - scale); in scaledBoxWithinPrecorrectionArray() 1204 cx, cy, f, preCorrW, preCorrH, in normalizeLensDistortion() 2069 float cx = entry4.data.f[/*c_x*/2]; in DngCreator_setup() local [all …]
|
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleDrawable.java | 768 s.getProperties().getShader().setOrigin(cx, cy); in onHotspotBoundsChanged() 769 s.getProperties().setOrigin(cx, cy); in onHotspotBoundsChanged() 875 final float x, y, cx, cy, w, h; in drawPatterned() local 877 cx = bounds.centerX(); 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() 966 float x, float y, float cx, float cy, float w, float h) { in createAnimationProperties() argument 979 shader.setOrigin(cx, cy); in createAnimationProperties() [all …]
|
/aosp12/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | TiledImageView.java | 259 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()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | CropDrawingUtils.java | 119 float cx = cropBounds.centerX(); in drawWallpaperSelectionFrame() local 121 RectF r1 = new RectF(cx - sx / 2, cy - sy / 2, cx + sx / 2, cy + sy / 2); in drawWallpaperSelectionFrame() 125 RectF r2 = new RectF(cx - sx / 2, cy - sy / 2, cx + sx / 2, cy + sy / 2); in drawWallpaperSelectionFrame()
|
/aosp12/packages/apps/Gallery2/src/com/android/photos/views/ |
H A D | TiledImageView.java | 259 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()
|
/aosp12/frameworks/base/core/java/android/gesture/ |
H A D | OrientedBoundingBox.java | 36 OrientedBoundingBox(float angle, float cx, float cy, float w, float h) { in OrientedBoundingBox() argument 40 centerX = cx; in OrientedBoundingBox()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
H A D | PipPinchResizingAlgorithm.java | 127 int cx = r.centerX(); in scaleRectAboutCenter() local 129 r.offset(-cx, -cy); in scaleRectAboutCenter() 131 r.offset(cx, cy); in scaleRectAboutCenter()
|