Home
last modified time | relevance | path

Searched refs:y1 (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/util/
DDebugBoundsRenderer.java48 public static void drawBounds(Canvas canvas, Paint paint, float size, float x1, float y1, in drawBounds() argument
52 canvas.drawLine(x1, y1, x1 + size, y1, paint); in drawBounds()
54 canvas.drawLine(x1, y1, x1, y1 + size, paint); in drawBounds()
58 canvas.drawLine(x2 - size, y1, x2, y1, paint); in drawBounds()
60 canvas.drawLine(x2, y1, x2, y1 + size, paint); in drawBounds()
76 float cY = (y1 + y2) / 2; in drawBounds()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, in FindTriangleCentroid() argument
71 centY = (y0 + y1 + y2) / 3.0; in FindTriangleCentroid()
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a in FindTriangleCentroid()
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b in FindTriangleCentroid()
112 double b2 = y1 - m2 * x1; in FindTriangleCentroid()
119 dy = y1 - m1 * x + b1; in FindTriangleCentroid()
124 mass = fabs( (y1 - y0) * (x2 - x0) ); in FindTriangleCentroid()
129 inline void FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, doub… in FindQuadCentroid() argument
143 FindTriangleCentroid(x0, y0, x1, y1, x2, y2, mass1, cent1x, cent1y); in FindQuadCentroid()
DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; in runBlend() local
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1); in runBlend()
192 …if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is high… in runBlend()
194 yBottomCorners[0] = y1; in runBlend()
200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend()
982 int y1 = (yy >= 0.0) ? (int) yy : (int) floor(yy); in ProcessPyramidForThisFrame() local
987 inSegment(y1, sptr->height, BORDER-1)) in ProcessPyramidForThisFrame()
990 double yfrac = yy - y1; in ProcessPyramidForThisFrame()
992 wt1 * ciCalc(sptr, x1, y1, xfrac, yfrac)); in ProcessPyramidForThisFrame()
996 wt1 * ciCalc(suptr, x1, y1, xfrac, yfrac)); in ProcessPyramidForThisFrame()
[all …]
/packages/apps/DevCamera/src/com/android/devcamera/
DPreviewOverlay.java176 float y1 = (0.04f) * previewH; in onDraw() local
178 canvas.drawCircle(x1, y1, 20, mPaint2); in onDraw()
180 canvas.drawCircle(x1, y1, 18, mPaint2); in onDraw()
235 float x1, x2, y1, y2; in onDraw() local
256 y1 = y2 = previewH / 2 + focalLengthH * (float) Math.tan(i); in onDraw()
257 canvas.drawLine(x1, y1, x2, y2, mPaint); in onDraw()
263 y1 = 0; in onDraw()
265 canvas.drawLine(x1, y1, x2, y2, mPaint); in onDraw()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_utils.h89 static inline float getSquaredDistanceFloat(const float x1, const float y1, const float x2, in getSquaredDistanceFloat() argument
91 return GeometryUtils::SQUARE_FLOAT(x1 - x2) + GeometryUtils::SQUARE_FLOAT(y1 - y2); in getSquaredDistanceFloat()
95 const float x1, const float y1, const float x2, const float y2, const bool extend) { in pointToLineSegSquaredDistanceFloat() argument
97 const float ray1y = y - y1; in pointToLineSegSquaredDistanceFloat()
99 const float ray2y = y2 - y1; in pointToLineSegSquaredDistanceFloat()
106 return getSquaredDistanceFloat(x, y, x1, y1); in pointToLineSegSquaredDistanceFloat()
114 projectionY = y1; in pointToLineSegSquaredDistanceFloat()
120 projectionY = y1 + projectionLengthSqr * ray2y; in pointToLineSegSquaredDistanceFloat()
Dgeometry_utils.h33 static AK_FORCE_INLINE float getAngle(const int x1, const int y1, const int x2, const int y2) { in getAngle() argument
35 const int dy = y1 - y2; in getAngle()
52 static AK_FORCE_INLINE int getDistanceInt(const int x1, const int y1, const int x2, in getDistanceInt() argument
54 return static_cast<int>(hypotf(static_cast<float>(x1 - x2), static_cast<float>(y1 - y2))); in getDistanceInt()
/packages/modules/Bluetooth/system/stack/smp/
Dp_256_ecc_pp.cc48 uint32_t* y1; in ECC_Double() local
59 y1 = p->y; in ECC_Double()
72 multiprecision_mersenns_mult_mod(z3, y1, z1); // z3=y1*z1 in ECC_Double()
75 multiprecision_mersenns_squa_mod(y3, y1); // y3=y1^2 in ECC_Double()
97 uint32_t* y1; in ECC_Add() local
105 y1 = p->y; in ECC_Add()
132 multiprecision_sub_mod(t2, t2, y1); // t2=t2-y1 in ECC_Add()
154 multiprecision_mersenns_mult_mod(z1, z1, y1); // t4=t4*t1 in ECC_Add()
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Drect.cc32 Rectangle_i IntRect(const int x1, const int y1, const int x2, const int y2) { in IntRect() argument
35 output.top = std::min(y1, y2); in IntRect()
37 output.bottom = std::max(y1, y2); in IntRect()
53 Rectangle_d DoubleRect(const double x1, const double y1, const double x2, const double y2) { in DoubleRect() argument
56 output.top = std::min(y1, y2); in DoubleRect()
58 output.bottom = std::max(y1, y2); in DoubleRect()
Dpage.cc209 double x1, x2, y1, y2; in GetTextBounds() local
211 FPDFText_GetCharBox(text_page(), index, &x1, &x2, &y1, &y2); in GetTextBounds()
212 if (x1 != x2 && y1 != y2) { in GetTextBounds()
214 rect = DoubleRect(x1, y1, x2, y2); in GetTextBounds()
216 rect = Union(rect, DoubleRect(x1, y1, x2, y2)); in GetTextBounds()
604 double x1, x2, y1, y2; in GetRawCharBounds() local
605 FPDFText_GetCharBox(text_page(), char_index, &x1, &x2, &y1, &y2); in GetRawCharBounds()
606 return DoubleRect(x1, y1, x2, y2); in GetRawCharBounds()
Drect.h107 Rectangle_i IntRect(const int x1, const int y1, const int x2, const int y2);
119 Rectangle_d DoubleRect(const double x1, const double y1, const double x2, const double y2);
/packages/modules/Bluetooth/system/gd/security/ecc/
Dp_256_ecc_pp.cc53 const uint32_t* y1; in ECC_Double() local
64 y1 = p->y; in ECC_Double()
77 multiprecision_mersenns_mult_mod(z3, y1, z1, modp); // z3=y1*z1 in ECC_Double()
80 multiprecision_mersenns_squa_mod(y3, y1, modp); // y3=y1^2 in ECC_Double()
102 uint32_t* y1; in ECC_Add() local
110 y1 = p->y; in ECC_Add()
137 multiprecision_sub_mod(t2, t2, y1, modp); // t2=t2-y1 in ECC_Add()
159 multiprecision_mersenns_mult_mod(z1, z1, y1, modp); // t4=t4*t1 in ECC_Add()
/packages/modules/NeuralNetworks/common/cpu_operations/
DRoiAlign.cpp129 uint32_t y1 = std::floor(static_cast<float>(y)); in roiAlignNhwc() local
130 uint32_t x2 = x1 + 1, y2 = y1 + 1; in roiAlignNhwc()
132 T_Roi dy1 = y - static_cast<T_Roi>(y1); in roiAlignNhwc()
139 if (y1 >= inHeight - 1) { in roiAlignNhwc()
140 y1 = y2 = inHeight - 1; in roiAlignNhwc()
146 uint32_t offsets[] = {y1 * inWidth * inDepth + x1 * inDepth, in roiAlignNhwc()
147 y1 * inWidth * inDepth + x2 * inDepth, in roiAlignNhwc()
255 uint32_t x1 = std::floor(x), y1 = std::floor(y); in roiAlignQuantNhwc() local
256 uint32_t x2 = x1 + 1, y2 = y1 + 1; in roiAlignQuantNhwc()
258 float dy1 = y - static_cast<float>(y1); in roiAlignQuantNhwc()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DSplineMath.java52 double y1 = cur[1]; in calculatetCurve() local
61 double ta = a * y1; in calculatetCurve()
93 double y1 = cur[1]; in getValue() local
102 double ta = a * y1; in getValue()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DBogusMoveEventDetector.java107 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { in getDistance() argument
108 return (int)Math.hypot(x1 - x2, y1 - y2); in getDistance()
DGestureStrokeRecognitionPoints.java331 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { in getDistance() argument
332 return (int)Math.hypot(x1 - x2, y1 - y2); in getDistance()
/packages/apps/Messaging/src/com/android/messaging/util/
DCubicBezierInterpolator.java31 public CubicBezierInterpolator(final float x1, final float y1, final float x2, final float y2) { in CubicBezierInterpolator() argument
33 mY1 = y1; in CubicBezierInterpolator()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLCanvas.java85 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); in drawLine() argument
89 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); in drawRect() argument
DGLES11Canvas.java193 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { in drawLine() argument
200 translate(x1, y1); in drawLine()
201 scale(x2 - x1, y2 - y1, 1); in drawLine()
317 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { in mapPoints() argument
321 float x3 = m[0] * x1 + m[4] * y1 + m[12]; in mapPoints()
322 float y3 = m[1] * x1 + m[5] * y1 + m[13]; in mapPoints()
323 float w3 = m[3] * x1 + m[7] * y1 + m[15]; in mapPoints()
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/
Dsynthesis-sbc.c529 int32_t y0, y1, y2, y3; in cosineModulateSynth4() local
545 y1 = -SCALE(f10 - f9, DCT_SHIFT); in cosineModulateSynth4()
552 out[5] = (int16_t)y1; in cosineModulateSynth4()
554 out[7] = (int16_t)y1; in cosineModulateSynth4()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java131 float y1 = line[1]; in shortestVectorFromPointToLine() local
134 float ydelt = y2 - y1; in shortestVectorFromPointToLine()
137 float u = ((point[0] - x1) * xdelt + (point[1] - y1) * ydelt) in shortestVectorFromPointToLine()
140 (x1 + u * (x2 - x1)), (y1 + u * (y2 - y1)) in shortestVectorFromPointToLine()
DSpline.java185 double y1 = cur.y; in getAppliedCurve() local
194 double ta = a * y1; in getAppliedCurve()
279 double y1 = points[i].y; in draw() local
289 double ta = a * y1; in draw()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DReorderPreviewAnimation.kt86 val (x1, y1) = tmpRes constant
88 val dY = y1 - y0
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTouchListener.java116 final float y1 = y0 + s * dY / v; in onFling() local
118 mTable.fling(target, x1 - x0, y1 - y0, (int) (1000f * n / 60f), false); in onFling()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DDynamicGridKeyboard.java234 public void updateCoordinates(final int x0, final int y0, final int x1, final int y1) { in updateCoordinates() argument
237 getHitBox().set(x0, y0, x1, y1); in updateCoordinates()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DOrientationTouchTransformerTest.java261 float y1 = generateTouchRegionHeight(NORMAL_SCREEN_SIZE, Surface.ROTATION_90) + 1; in applyTransform_taskNotFrozen_90Rotate_withTwoRegions() local
262 MotionEvent inRegion1_down = generateMotionEvent(MotionEvent.ACTION_DOWN, 10, y1); in applyTransform_taskNotFrozen_90Rotate_withTwoRegions()
263 MotionEvent inRegion1_up = generateMotionEvent(MotionEvent.ACTION_UP, 10, y1); in applyTransform_taskNotFrozen_90Rotate_withTwoRegions()

12