/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | DebugBoundsRenderer.java | 48 public static void drawBounds(Canvas canvas, Paint paint, float size, float x1, float y1, argument 52 canvas.drawLine(x1, y1, x1 + size, y1, paint); 54 canvas.drawLine(x1, y1, x1, y1 + size, paint); 70 canvas.drawLine(x1, y2, x1 + size, y2, paint); 72 canvas.drawLine(x1, y2 - size, x1, y2, paint); 75 float cX = (x1 [all...] |
/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; 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 D | proximity_info_utils.h | 89 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) { 96 const float ray1x = x - x1; 98 const float ray2x = x2 - x1; 106 return getSquaredDistanceFloat(x, y, x1, y1); 113 projectionX = x1; 119 projectionX = x1 + projectionLengthSqr * ray2x; 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/Camera/jni/feature_stab/db_vlvm/ |
H A D | db_image_homography.h | 37 \param x1 image 1 point 1 47 double x1[3],double x2[3],double x3[3],double x4[3], 54 \param x1 image 1 point 1 62 double x1[3],double x2[3],double x3[3], 69 \param x1 image 1 point 1 77 double x1[3],double x2[3], 84 x[0]=x1; 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_metrics.h | 121 double x0,x1,x2,mult; local 125 x1=H[3]*x[0]+H[4]*x[1]+H[5]*x[2]; 128 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); 135 double x0,x1,x2,mult; local 139 x1=H[3]*x[0]+H[4]*x[1]+H[5]; 142 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); 174 [x0 x1 1 0 0 0 0 0 0] 175 [ 0 0 0 x0 x1 1 0 0 0] 176 [ 0 0 0 0 0 0 x0 x1 1] 178 [-x0/zh -x1/z [all...] |
H A D | db_image_homography.cpp | 80 double x1[3],double x2[3],double x3[3],double x4[3], 86 db_SProjImagePointPointConstraints(c ,c+9 ,xp1,x1); 95 double x1[3],double x2[3],double x3[3], 101 db_SAffineImagePointPointConstraints(c ,c+7 ,xp1,x1); 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 129 m=db_SafeReciprocal(x1[2]); 130 ax=x1[0]*m; 131 ay=x1[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,x 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...] |
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_image_homography.h | 37 \param x1 image 1 point 1 47 double x1[3],double x2[3],double x3[3],double x4[3], 54 \param x1 image 1 point 1 62 double x1[3],double x2[3],double x3[3], 69 \param x1 image 1 point 1 77 double x1[3],double x2[3], 84 x[0]=x1; 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_metrics.h | 121 double x0,x1,x2,mult; local 125 x1=H[3]*x[0]+H[4]*x[1]+H[5]*x[2]; 128 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); 135 double x0,x1,x2,mult; local 139 x1=H[3]*x[0]+H[4]*x[1]+H[5]; 142 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); 174 [x0 x1 1 0 0 0 0 0 0] 175 [ 0 0 0 x0 x1 1 0 0 0] 176 [ 0 0 0 0 0 0 x0 x1 1] 178 [-x0/zh -x1/z [all...] |
H A D | db_image_homography.cpp | 80 double x1[3],double x2[3],double x3[3],double x4[3], 86 db_SProjImagePointPointConstraints(c ,c+9 ,xp1,x1); 95 double x1[3],double x2[3],double x3[3], 101 db_SAffineImagePointPointConstraints(c ,c+7 ,xp1,x1); 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 129 m=db_SafeReciprocal(x1[2]); 130 ax=x1[0]*m; 131 ay=x1[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,x 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...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | CubicBezierInterpolator.java | 31 public CubicBezierInterpolator(final float x1, final float y1, final float x2, final float y2) { argument 32 mX1 = x1;
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
H A D | Geometry.h | 65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument 70 centX = (x0 + x1 + x2) / 3.0; 76 if (x0 == x1) 82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b 87 if (x0 == x1) 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a 96 else if (x1 == x2) 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 109 // Calculate the line that goes through x1,y1 and is perpendicular to 112 double b2 = y1 - m2 * x1; 129 FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, double ¢X, double ¢Y) argument [all...] |
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Geometry.h | 65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument 70 centX = (x0 + x1 + x2) / 3.0; 76 if (x0 == x1) 82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b 87 if (x0 == x1) 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a 96 else if (x1 == x2) 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 109 // Calculate the line that goes through x1,y1 and is perpendicular to 112 double b2 = y1 - m2 * x1; 129 FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, double ¢X, double ¢Y) argument [all...] |
/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);
|
H A D | GestureStrokeRecognitionPoints.java | 331 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/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
H A D | PointCloud.java | 72 public void setX(float x1) { argument 73 x = x1;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | InvariantDeviceProfile.java | 240 @Thunk float dist(float x0, float y0, float x1, float y1) { argument 241 return (float) Math.hypot(x1 - x0, y1 - y0); 296 private float weight(float x0, float y0, float x1, float y1, float pow) { argument 297 float d = dist(x0, y0, x1, y1);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
H A D | DynamicGridKeyboard.java | 234 public void updateCoordinates(final int x0, final int y0, final int x1, final int y1) { argument 237 getHitBox().set(x0, y0, x1, y1);
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
H A D | AlarmActivity.java | 523 private float getFraction(float x0, float x1, float x) { argument 524 return Math.max(Math.min((x - x0) / (x1 - x0), 1.0f), 0.0f);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | EclipseControl.java | 107 private boolean centerIsOutside(float x1, float y1) { argument 108 return (!mImageBounds.contains((int) x1, (int) y1));
|
H A D | GradControl.java | 124 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 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 558 x1=H[3]*x[0]+H[4]*x[1]+H[5]; 561 sd=(y[0]-x0*mult)*(y[0]-x0*mult)+(y[1]-x1*mult)*(y[1]-x1*mult);
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
H A D | dbreg.h | 554 double x0,x1,x2,mult; local 558 x1=H[3]*x[0]+H[4]*x[1]+H[5]; 561 sd=(y[0]-x0*mult)*(y[0]-x0*mult)+(y[1]-x1*mult)*(y[1]-x1*mult);
|
/packages/services/Telecomm/libs/ |
H A D | guava.jar | ... ExecutionException long x0
java.util.concurrent.TimeUnit x1
synthetic void " href="/6.0.1_r10/s? ... |