/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
H A D | geometry_utils.h | 33 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; 50 static AK_FORCE_INLINE int getDistanceInt(const int x1, const int y1, const int x2, argument 52 return static_cast<int>(hypotf(static_cast<float>(x1 - x2), static_cast<float>(y1 - y2)));
|
H A D | proximity_info_utils.h | 88 static inline float getSquaredDistanceFloat(const float x1, const float y1, const float x2, argument 90 return GeometryUtils::SQUARE_FLOAT(x1 - x2) + GeometryUtils::SQUARE_FLOAT(y1 - y2); 94 const float x1, const float y1, const float x2, const float y2, const bool extend) { 97 const float ray2x = x2 - x1; 115 projectionX = x2; 93 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/Camera/jni/feature_stab/db_vlvm/ |
H A D | db_image_homography.h | 38 \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 D | db_image_homography.cpp | 80 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 D | db_metrics.h | 41 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/db_vlvm/ |
H A D | db_image_homography.h | 38 \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 D | db_image_homography.cpp | 80 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 D | db_metrics.h | 41 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/Camera/jni/feature_mos/src/mosaic/ |
H A D | Geometry.h | 66 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 ¢X, double ¢Y) argument [all...] |
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Geometry.h | 66 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 ¢X, double ¢Y) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
H A D | ReorderUtils.java | 36 public static final int REORDER_DIRECTION_VERTICAL = 0x2;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | convolve3x3.rs | 30 uint32_t x2 = max((int32_t)x-1, 0); 36 float4 p02 = rsUnpackColor8888(gPixels[x2 + gWidth * y1]); 39 float4 p12 = rsUnpackColor8888(gPixels[x2 + gWidth * y]); 42 float4 p22 = rsUnpackColor8888(gPixels[x2 + gWidth * y2]);
|
H A D | grad.rs | 59 float x2 = xPos2[i]; 62 float denom = (y2 * y2 - 2 * y1 * y2 + x2 * x2 - 2 * x1 * x2 + y1 * y1 + x1 * x1); 67 grads[k].dx = (x1 - x2) / denom; 68 grads[k].off = (y2 * y2 + x2 * x2 - x1 * x2 - y1 * y2) / denom;
|
H A D | ImageFilterGrad.java | 124 int[] x2 = mParameters.getXPos2(); 137 coord[0] = x2[i]; 140 x2[i] = (int) coord[0]; 147 mScript.set_xPos2(x2);
|
H A D | SplineMath.java | 51 double x2 = next[0]; 57 double delta = (x2 - x1); 92 double x2 = next[0]; 98 double delta = (x2 - x1);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | CandidateFilter.java | 30 public static final int FILTER_NON_ASCII = 0x2;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
H A D | PercentageBarChart.java | 157 * @param x1 the first x input. This may be greater or smaller than x2. 158 * @param x2 the second x input. This may be greater or smaller than x1. 163 private boolean drawEntry(Canvas canvas, float x1, float x2, Paint paint) { argument 165 float left = x1 > x2 ? x2 : x1; 166 float right = x1 > x2 ? x1 : x2;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
H A D | error_type_utils.cpp | 23 const ErrorTypeUtils::ErrorType ErrorTypeUtils::MATCH_WITH_ACCENT_ERROR = 0x2;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | BogusMoveEventDetector.java | 107 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);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 83 // 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
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 81 // Draws a line using the specified paint from (x1, y1) to (x2, y2). 83 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument 85 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2). 87 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
|
/packages/apps/Camera/jni/feature_stab/src/dbreg/ |
H A D | dbreg.h | 554 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/LegacyCamera/jni/feature_stab/src/dbreg/ |
H A D | dbreg.h | 554 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/Bluetooth/src/com/android/bluetooth/map/ |
H A D | BluetoothMapUtils.java | 35 private static final long HANDLE_TYPE_EMAIL_MASK = (((long)0x2)<<56);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | DividedImageCanvas.java | 355 int x1 = width / 2, y1 = 0, x2 = width/2, y2 = height; 357 mCanvas.drawLine(x1, y1, x2, y2, sPaint); 360 protected void drawHorizontalDivider(int x1, int y1, int x2, int y2) { argument 362 mCanvas.drawLine(x1, y1, x2, y2, sPaint);
|