Searched defs:x2 (Results 1 - 21 of 21) sorted by last modified time

/packages/services/Telecomm/libs/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/util/ ...
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DPointerTracker.java479 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { argument
480 return (int)Math.hypot(x1 - x2, y1 - y2);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DBogusMoveEventDetector.java107 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { argument
108 return (int)Math.hypot(x1 - x2, y1 - y2);
H A DGestureStrokeRecognitionPoints.java331 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { argument
332 return (int)Math.hypot(x1 - x2, y1 - y2);
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dgeometry_utils.h33 static AK_FORCE_INLINE float getAngle(const int x1, const int y1, const int x2, const int y2) { argument
34 const int dx = x1 - x2;
52 static AK_FORCE_INLINE int getDistanceInt(const int x1, const int y1, const int x2, argument
54 return static_cast<int>(hypotf(static_cast<float>(x1 - x2), static_cast<float>(y1 - y2)));
H A Dproximity_info_state_utils.cpp307 const int x2 = (*sampledInputXs)[index1]; local
309 return GeometryUtils::getAngle(x1, y1, x2, y2);
529 const int x2 = xCoordinates[start]; local
533 const int beelineDistance = GeometryUtils::getDistanceInt(x2, y2, x3, y3);
H A Dproximity_info_utils.h89 static inline float getSquaredDistanceFloat(const float x1, const float y1, const float x2, argument
91 return GeometryUtils::SQUARE_FLOAT(x1 - x2) + GeometryUtils::SQUARE_FLOAT(y1 - y2);
95 const float x1, const float y1, const float x2, const float y2, const bool extend) {
98 const float ray2x = x2 - x1;
116 projectionX = x2;
94 pointToLineSegSquaredDistanceFloat(const float x, const float y, const float x1, const float y1, const float x2, const float y2, const bool extend) argument
/packages/apps/Settings/src/com/android/settings/graph/
H A DUsageGraph.java217 private boolean hasDiff(int x1, int x2) { argument
218 return Math.abs(x2 - x1) >= mCornerRadius;
/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ...
/packages/apps/Messaging/src/com/android/messaging/util/
H A DCubicBezierInterpolator.java31 public CubicBezierInterpolator(final float x1, final float y1, final float x2, final float y2) { argument
34 mX2 = x2;
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2);
180 if(x3 > xRightCorners[0] || x2 > xRightCorners[1]) // If either of the right corners is higher
183 xRightCorners[1] = x2;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
1004 int x2 = x1 + 1; local
1009 (sptr->ptr[y1][x2] - sptr->ptr[y1][x1]) * xfrac;
1011 (sptr->ptr[y2][x2] - sptr->ptr[y2][x1]) * xfrac;
1017 (suptr->ptr[y1][x2] - suptr->ptr[y1][x1]) * xfrac;
1019 (suptr->ptr[y2][x2]
[all...]
H A DGeometry.h66 double x2, double y2,
70 centX = (x0 + x1 + x2) / 3.0;
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a
85 else if (x0 == x2)
89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a
96 else if (x1 == x2)
102 // Calculate line equation from x0,y0 to x2,y2
103 double dx = x2 - x0;
124 mass = fabs( (y1 - y0) * (x2 - x0) );
129 inline void FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, doubl argument
65 FindTriangleCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double &mass, double &centX, double &centY) argument
[all...]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_image_homography.cpp80 double x1[3],double x2[3],double x3[3],double x4[3],
87 db_SProjImagePointPointConstraints(c+18,c+27,xp2,x2);
95 double x1[3],double x2[3],double x3[3],
102 db_SAffineImagePointPointConstraints(c+14,c+21,xp2,x2);
114 inline void db_CommonFocalLengthFromRotation_2Point(double fsol[3],int *nr_sols,double x1[3],double x2[3],double xp1[3],double xp2[3],int signed_disambiguation=1) argument
135 m=db_SafeReciprocal(x2[2]);
136 bx=x2[0]*m;
137 by=x2[1]*m;
177 int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double x3[3],double xp1[3],double xp2[3],double xp3[3],double *f,int signed_disambiguation) argument
186 db_CommonFocalLengthFromRotation_2Point(fsol,&nr_sols,x1,x2,xp
79 db_StitchProjective2D_4Points(double H[9], double x1[3],double x2[3],double x3[3],double x4[3], double xp1[3],double xp2[3],double xp3[3],double xp4[3]) argument
94 db_StitchAffine2D_3Points(double H[9], double x1[3],double x2[3],double x3[3], double xp1[3],double xp2[3],double xp3[3]) argument
[all...]
H A Ddb_image_homography.h38 \param x2 image 1 point 2
47 double x1[3],double x2[3],double x3[3],double x4[3],
55 \param x2 image 1 point 2
62 double x1[3],double x2[3],double x3[3],
70 \param x2 image 1 point 2
77 double x1[3],double x2[3],
85 x[1]=x2;
96 is required, although it could be desirable to keep x1,x2,xp1 and xp2 of reasonable magnitude.
100 DB_API int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double x3[3],
74 db_StitchCameraRotation_2Points(double R[9], double x1[3],double x2[3], double xp1[3],double xp2[3]) argument
H A Ddb_metrics.h41 double x2,y2,r,r2,r2s,one_over_r2,fu,r_fu,one_over_r_fu; local
73 x2=db_sqr(f[0]);
75 r2=x2+y2;
121 double x0,x1,x2,mult; local
126 x2=H[6]*x[0]+H[7]*x[1]+H[8]*x[2];
127 mult=1.0/((x2!=0.0)?x2:1.0);
135 double x0,x1,x2,mult; local
140 x2=H[6]*x[0]+H[7]*x[1]+H[8];
141 mult=1.0/((x2!
[all...]
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
H A Ddbreg.h554 double x0,x1,x2,mult; local
559 x2=H[6]*x[0]+H[7]*x[1]+H[8];
560 mult=1.0/((x2!=0.0)?x2:1.0);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DGradControl.java124 private boolean centerIsOutside(float x1, float y1, float x2, float y2) { argument
125 return (!mImageBounds.contains((int) ((x1 + x2) / 2), (int) ((y1 + y2) / 2)));
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java83 // Draws a line using the specified paint from (x1, y1) to (x2, y2).
85 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument
87 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2).
89 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
H A DGLES11Canvas.java61 // x1, y1, x2, y2.
193 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { argument
201 scale(x2 - x1, y2 - y1, 1);
316 // {x1', y1', x2', y2'} are stored in mMapPointsBuffer and also returned.
317 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { argument
327 // Same for x2 y2.
328 float x4 = m[0] * x2 + m[4] * y2 + m[12];
329 float y4 = m[1] * x2 + m[5] * y2 + m[13];
330 float w4 = m[3] * x2 + m[7] * y2 + m[15];
H A DGLES20Canvas.java479 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { argument
480 draw(GLES20.GL_LINE_STRIP, OFFSET_DRAW_LINE, COUNT_LINE_VERTEX, x1, y1, x2 - x1, y2 - y1,
/packages/apps/Camera2/src/com/android/camera/util/
H A DDebugBoundsRenderer.java49 float x2, float y2) {
58 canvas.drawLine(x2 - size, y1, x2, y1, paint);
60 canvas.drawLine(x2, y1, x2, y1 + size, paint);
64 canvas.drawLine(x2 - size, y2, x2, y2, paint);
66 canvas.drawLine(x2, y2- size, x2, y2, paint);
75 float cX = (x1 + x2) /
48 drawBounds(Canvas canvas, Paint paint, float size, float x1, float y1, float x2, float y2) argument
[all...]

Completed in 1074 milliseconds