/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | MatrixFit.java | 164 for (int y2 = y + 1; y2 < h; y2++) { // Find max pivot in gaussianElimination() 165 if (Math.abs(m[y2][y]) > Math.abs(m[maxrow][y])) { in gaussianElimination() 166 maxrow = y2; in gaussianElimination() 179 for (int y2 = y + 1; y2 < h; y2++) { // Eliminate column y in gaussianElimination() 180 double c = m[y2][y] / m[y][y]; in gaussianElimination() 182 m[y2][x] -= m[y][x] * c; in gaussianElimination() 188 for (int y2 = 0; y2 < y; y2++) { in gaussianElimination() 190 m[y2][x] -= m[y][x] * m[y2][y] / c; in gaussianElimination()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 66 double x2, double y2, in FindTriangleCentroid() argument 71 centY = (y0 + y1 + y2) / 3.0; in FindTriangleCentroid() 74 if (y0 == y2) in FindTriangleCentroid() 89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 in FindTriangleCentroid() 104 double dy = y2 - y0; 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() 144 FindTriangleCentroid(x0, y0, x3, y3, x2, y2, mass2, cent2x, cent2y); in FindQuadCentroid()
|
D | Blend.cpp | 144 double z, x0, y0, x1, y1, x2, y2, x3, y3; in runBlend() local 171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); in runBlend() 192 …if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is high… in runBlend() 195 yBottomCorners[1] = y2; in runBlend() 200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend() 1005 int y2 = y1 + 1; in ProcessPyramidForThisFrame() local 1010 double y2val = sptr->ptr[y2][x1] + in ProcessPyramidForThisFrame() 1011 (sptr->ptr[y2][x2] - sptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame() 1018 y2val = suptr->ptr[y2][x1] + in ProcessPyramidForThisFrame() 1019 (suptr->ptr[y2][x2] - suptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame() [all …]
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 66 double x2, double y2, in FindTriangleCentroid() argument 71 centY = (y0 + y1 + y2) / 3.0; in FindTriangleCentroid() 74 if (y0 == y2) in FindTriangleCentroid() 89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 in FindTriangleCentroid() 104 double dy = y2 - y0; 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() 144 FindTriangleCentroid(x0, y0, x3, y3, x2, y2, mass2, cent2x, cent2y); in FindQuadCentroid()
|
D | Blend.cpp | 144 double z, x0, y0, x1, y1, x2, y2, x3, y3; in runBlend() local 171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); in runBlend() 192 …if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is high… in runBlend() 195 yBottomCorners[1] = y2; in runBlend() 200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend() 1025 int y2 = y1 + 1; in ProcessPyramidForThisFrame() local 1030 double y2val = sptr->ptr[y2][x1] + in ProcessPyramidForThisFrame() 1031 (sptr->ptr[y2][x2] - sptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame() 1038 y2val = suptr->ptr[y2][x1] + in ProcessPyramidForThisFrame() 1039 (suptr->ptr[y2][x2] - suptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | grad.rs | 60 float y2 = yPos2[i]; 62 float denom = (y2 * y2 - 2 * y1 * y2 + x2 * x2 - 2 * x1 * x2 + y1 * y1 + x1 * x1); 66 grads[k].dy = (y1 - y2) / denom; 68 grads[k].off = (y2 * y2 + x2 * x2 - x1 * x2 - y1 * y2) / denom;
|
D | convolve3x3.rs | 32 uint32_t y2 = max((int32_t)y-1, 0); 40 float4 p20 = rsUnpackColor8888(gPixels[x1 + gWidth * y2]); 41 float4 p21 = rsUnpackColor8888(gPixels[x + gWidth * y2]); 42 float4 p22 = rsUnpackColor8888(gPixels[x2 + gWidth * y2]);
|
D | ImageFilterGrad.java | 125 int[] y2 = mParameters.getYPos2(); in runFilter() local 138 coord[1] = y2[i]; in runFilter() 141 y2[i] = (int) coord[1]; in runFilter() 148 mScript.set_yPos2(y2); in runFilter()
|
D | SplineMath.java | 53 double y2 = next[1]; in calculatetCurve() local 62 double tb = b * y2; in calculatetCurve() 94 double y2 = next[1]; in getValue() local 103 double tb = b * y2; in getValue()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_utils.h | 89 const float y2) { in getSquaredDistanceFloat() argument 90 return GeometryUtils::SQUARE_FLOAT(x1 - x2) + GeometryUtils::SQUARE_FLOAT(y1 - y2); in getSquaredDistanceFloat() 94 const float x1, const float y1, const float x2, const float y2, const bool extend) { in pointToLineSegSquaredDistanceFloat() argument 98 const float ray2y = y2 - y1; in pointToLineSegSquaredDistanceFloat() 116 projectionY = y2; in pointToLineSegSquaredDistanceFloat()
|
D | geometry_utils.h | 33 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() 51 const int y2) { in getDistanceInt() argument 52 return static_cast<int>(hypotf(static_cast<float>(x1 - x2), static_cast<float>(y1 - y2))); in getDistanceInt()
|
D | proximity_info_state_utils.cpp | 308 const int y2 = (*sampledInputYs)[index1]; in getDirection() local 309 return GeometryUtils::getAngle(x1, y1, x2, y2); in getDirection() 530 const int y2 = yCoordinates[start]; in calculateBeelineSpeedRate() local 533 const int beelineDistance = GeometryUtils::getDistanceInt(x2, y2, x3, y3); in calculateBeelineSpeedRate()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | GLES11Canvas.java | 195 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { in drawLine() argument 203 scale(x2 - x1, y2 - y1, 1); in drawLine() 319 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { in mapPoints() argument 330 float x4 = m[0] * x2 + m[4] * y2 + m[12]; in mapPoints() 331 float y4 = m[1] * x2 + m[5] * y2 + m[13]; in mapPoints() 332 float w4 = m[3] * x2 + m[7] * y2 + m[15]; in mapPoints()
|
D | GLCanvas.java | 85 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
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | Spline.java | 186 double y2 = next.y; in getAppliedCurve() local 195 double tb = b * y2; in getAppliedCurve() 280 double y2 = points[i + 1].y; in draw() local 290 double tb = b * y2; in draw()
|
D | GeometryMathUtils.java | 132 float y2 = line[3]; in shortestVectorFromPointToLine() local 134 float ydelt = y2 - y1; in shortestVectorFromPointToLine() 140 (x1 + u * (x2 - x1)), (y1 + u * (y2 - y1)) in shortestVectorFromPointToLine()
|
D | ImageGrad.java | 181 int y2[] = mGradRep.getYPos2(); in computCenterLocations() local 192 c[1] = (y1[i]+y2[i])/2; in computCenterLocations()
|
D | GradControl.java | 124 private boolean centerIsOutside(float x1, float y1, float x2, float y2) { in centerIsOutside() argument 125 return (!mImageBounds.contains((int) ((x1 + x2) / 2), (int) ((y1 + y2) / 2))); in centerIsOutside()
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_metrics.h | 41 double x2,y2,r,r2,r2s,one_over_r2,fu,r_fu,one_over_r_fu; in db_CauchyDerivative() local 74 y2=db_sqr(f[1]); in db_CauchyDerivative() 75 r2=x2+y2; in db_CauchyDerivative()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_metrics.h | 41 double x2,y2,r,r2,r2s,one_over_r2,fu,r_fu,one_over_r_fu; in db_CauchyDerivative() local 74 y2=db_sqr(f[1]); in db_CauchyDerivative() 75 r2=x2+y2; in db_CauchyDerivative()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | BogusMoveEventDetector.java | 107 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()
|
D | GestureStrokeRecognitionPoints.java | 331 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/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
D | GLCanvas.java | 83 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); in drawLine() argument 87 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); in drawRect() argument
|
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
D | PointCloud.java | 111 public Point(float x2, float y2, float r) { in Point() argument 113 y = (float) y2; in Point()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DeleteDropTarget.java | 279 final float y2 = from.top + offsetY; // intermediate t/l in createFlingToTrashAnimatorListener() local 305 float y = (1f - t) * (1f - t) * (y1 - y1o) + 2 * (1f - t) * t * (y2 - x1o) + in createFlingToTrashAnimatorListener()
|