/packages/apps/Calendar/src/com/android/calendar/ |
H A D | EventGeometry.java | 141 float dx = x - right; 145 return (float) Math.sqrt(dx * dx + dy * dy); 150 return (float) Math.sqrt(dx * dx + dy * dy); 153 return dx; 156 float dx = left - x; 160 return (float) Math.sqrt(dx * dx + dy * dy); 165 return (float) Math.sqrt(dx * d [all...] |
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
H A D | db_bundle.h | 34 Solve for update dx such that diagmult(1+lambda,transpose(J)%J)%dx= -Jtf 38 inline void db_Compute_dx(double *dx,double **JtJ,double *min_Jtf,double lambda,double *d,int n) argument 47 db_CholeskyBacksub(dx,JtJ,d,n,min_Jtf); 51 Solve for update dx such that diagmult(1+lambda,transpose(J)%J)%dx= -Jtf 54 inline void db_Compute_dx_3x3(double dx[3],double JtJ[9],const double min_Jtf[3],double lambda) argument 63 db_CholeskyBacksub3x3(dx,JtJ,d,min_Jtf);
|
H A D | db_utilities_camera.h | 144 Update a rotation with the update dx=[sin(phi) sin(ohm) sin(kap)] 146 inline void db_UpdateRotation(double R_p_dx[9],double R[9],const double dx[3]) argument 150 db_IncrementalRotationMatrix(R_temp,dx); 293 inline void db_UpdateImageHomographyAffine(double H_p_dx[9],const double H[9],const double dx[6]) argument 295 db_AddVectors6(H_p_dx,H,dx); 299 inline void db_UpdateImageHomographyProjective(double H_p_dx[9],const double H[9],const double dx[8],int frozen_coord) argument 307 H_p_dx[i]=H[i]+dx[j]; 314 inline void db_UpdateRotFocalHomography(double H_p_dx[9],const double H[9],const double dx[4]) argument 321 db_IncrementalRotationMatrix(dR,dx); 323 fp=f+dx[ [all...] |
H A D | db_rob_image_homography.cpp | 231 double JtJ[9],min_Jtf[3],dx[3],H_p_dx[9]; local 247 /*Come up with a hypothesis dx 249 db_Compute_dx_3x3(dx,JtJ,min_Jtf,lambda); 251 /*Compute Cost(x+dx)*/ 252 db_UpdateRotation(H_p_dx,H,dx); 262 /*Move to the hypothesised position x+dx*/ 513 inline void db_ImageHomographyUpdateGeneric(double H_p_dx[9],double H[9],double *dx,int homography_type,int frozen_coord) argument 520 db_MultiplyScaleOntoImageHomography(H,1.0+dx[0]); 521 db_MultiplyRotationOntoImageHomography(H,dx[1]); 522 H_p_dx[2]+=dx[ 573 double JtJ[72],min_Jtf[9],dx[8],H_p_dx[9]; local [all...] |
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_bundle.h | 34 Solve for update dx such that diagmult(1+lambda,transpose(J)%J)%dx= -Jtf 38 inline void db_Compute_dx(double *dx,double **JtJ,double *min_Jtf,double lambda,double *d,int n) argument 47 db_CholeskyBacksub(dx,JtJ,d,n,min_Jtf); 51 Solve for update dx such that diagmult(1+lambda,transpose(J)%J)%dx= -Jtf 54 inline void db_Compute_dx_3x3(double dx[3],double JtJ[9],const double min_Jtf[3],double lambda) argument 63 db_CholeskyBacksub3x3(dx,JtJ,d,min_Jtf);
|
H A D | db_utilities_camera.h | 144 Update a rotation with the update dx=[sin(phi) sin(ohm) sin(kap)] 146 inline void db_UpdateRotation(double R_p_dx[9],double R[9],const double dx[3]) argument 150 db_IncrementalRotationMatrix(R_temp,dx); 293 inline void db_UpdateImageHomographyAffine(double H_p_dx[9],const double H[9],const double dx[6]) argument 295 db_AddVectors6(H_p_dx,H,dx); 299 inline void db_UpdateImageHomographyProjective(double H_p_dx[9],const double H[9],const double dx[8],int frozen_coord) argument 307 H_p_dx[i]=H[i]+dx[j]; 314 inline void db_UpdateRotFocalHomography(double H_p_dx[9],const double H[9],const double dx[4]) argument 321 db_IncrementalRotationMatrix(dR,dx); 323 fp=f+dx[ [all...] |
H A D | db_rob_image_homography.cpp | 231 double JtJ[9],min_Jtf[3],dx[3],H_p_dx[9]; local 247 /*Come up with a hypothesis dx 249 db_Compute_dx_3x3(dx,JtJ,min_Jtf,lambda); 251 /*Compute Cost(x+dx)*/ 252 db_UpdateRotation(H_p_dx,H,dx); 262 /*Move to the hypothesised position x+dx*/ 513 inline void db_ImageHomographyUpdateGeneric(double H_p_dx[9],double H[9],double *dx,int homography_type,int frozen_coord) argument 520 db_MultiplyScaleOntoImageHomography(H,1.0+dx[0]); 521 db_MultiplyRotationOntoImageHomography(H,dx[1]); 522 H_p_dx[2]+=dx[ 573 double JtJ[72],min_Jtf[9],dx[8],H_p_dx[9]; local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | GradControl.java | 98 float dx = handlex[i] - x; 100 float dist = dx * dx + dy * dy; 111 float dx = handlex[i] - x; 113 float dist = (float) Math.hypot(dx, dy); 155 float dx = x - mDownX; 159 if (centerIsOutside(mDownPoint1X + dx, mDownPoint1Y + dy, 160 mDownPoint2X + dx, mDownPoint2Y + dy)) { 163 line.setPoint1(mDownPoint1X + dx, mDownPoint1Y + dy); 164 line.setPoint2(mDownPoint2X + dx, mDownPoint2 [all...] |
H A D | EclipseControl.java | 81 float dx = handlex[i] - x; 83 float dist = dx * dx + dy * dy; 94 float dx = handlex[i] - x; 96 float dist = (float) Math.sqrt(dx * dx + dy * dy); 182 float dx = x - oval.getCenterX(); 184 float nr = Math.abs(Math.abs(dx) + Math.abs(dy) - downRad); 252 float dx = rx + 10; 254 rect.left = cx - dx; [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
H A D | geometry_utils.h | 34 const int dx = x1 - x2; local 36 if (dx == 0 && dy == 0) return 0.0f; 37 return atan2f(static_cast<float>(dy), static_cast<float>(dx));
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
H A D | Geometry.h | 103 double dx = x2 - x0; local 106 double len1 = sqrt(dx * dx + dy * dy); 107 double m1 = dy / dx; 118 dx = x1 - x; 120 mass = len1 * sqrt(dx * dx + dy * dy);
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Geometry.h | 103 double dx = x2 - x0; local 106 double len1 = sqrt(dx * dx + dy * dy); 107 double m1 = dy / dx; 118 dx = x1 - x; 120 mass = len1 * sqrt(dx * dx + dy * dy);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | CropObject.java | 201 float dx = 0; 205 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left; 211 dx = Math.max(crop.right + dX, crop.left + minWidthHeight) 234 dx, dy 238 dx = sp * bUnit[0]; 240 RectF newCrop = fixedCornerResize(crop, movingEdges, dx, dy); 245 crop.left += dx; 251 crop.right += dx; 295 private static RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy) { argument 299 newCrop = new RectF(r.left, r.top, r.left + r.width() + dx, [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | HighlightView.java | 240 // Handles motion (dx, dy) in screen space. 242 void handleMotion(int edge, float dx, float dy) { argument 248 moveBy(dx * (mCropRect.width() / r.width()), 252 dx = 0; 260 float xDelta = dx * (mCropRect.width() / r.width()); 267 // Grows the cropping rectange by (dx, dy) in image space. 268 void moveBy(float dx, float dy) { argument 271 mCropRect.offset(dx, dy); 288 // Grows the cropping rectange by (dx, dy) in image space. 289 void growBy(float dx, floa argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
H A D | HistogramView.java | 90 float dx = 0; // Spline.curveHandleSize() / 2.0f; 101 canvas.drawRect(dx, 0, dx + w, h, mPaint); 102 canvas.drawLine(dx + w / 3, 0, dx + w / 3, h, mPaint); 103 canvas.drawLine(dx + 2 * w / 3, 0, dx + 2 * w / 3, h, mPaint); 110 mHistoPath.moveTo(dx, h); 115 float x = i * wl + dx;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | SmoothPagedView.java | 177 final float dx = mTouchX - mUnboundedScrollX; 178 scrollTo(Math.round(mUnboundedScrollX + dx * e), getScrollY()); 182 if (dx > 1.f || dx < -1.f) {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | ScrollController.java | 728 final public boolean canScroll(int dx, int dy) { argument 729 if (dx == 0 && dy == 0) { 732 return (dx == 0 || horizontal.canScroll(dx < 0)) && 748 private void updateDirection(float dx, float dy) { argument 749 mMainHorizontal = Math.abs(dx) >= Math.abs(dy); 750 if (dx > 0) { 752 } else if (dx < 0) { 782 final public void startScroll(int dx, int dy, boolean easeFling, int duration, boolean page) { argument 802 dx [all...] |
/packages/apps/Camera/src/com/android/camera/ |
H A D | PreviewGestures.java | 245 float dx = 0; 249 dx = m.getX() - mDown.getX(); 253 dx = - (m.getY() - mDown.getY()); 257 dx = -(m.getX() - mDown.getX()); 261 dx = m.getY() - mDown.getY(); 266 return (dx < 0 && dy / -dx < 0.6f); 268 return (dx > 0 && dy / dx < 0.6f);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | GestureRecognizer.java | 34 boolean onScroll(float dx, float dy, float totalX, float totalY); argument 89 MotionEvent e1, MotionEvent e2, float dx, float dy) { 91 dx, dy, e2.getX() - e1.getX(), e2.getY() - e1.getY()); 88 onScroll( MotionEvent e1, MotionEvent e2, float dx, float dy) argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | RoundedLine.java | 46 final double dx = p2x - p1x; 49 final double l = Math.hypot(dx, dy); 54 final double a = Math.atan2(dy, dx);
|
H A D | BogusMoveEventDetector.java | 92 final int dx = Math.abs(x - mActualDownX); 96 return dx >= dy && mAccumulatedDistanceFromDownKey >= mAccumulatedDistanceThreshold;
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | Scroller.java | 311 * @param dx Horizontal distance to travel. Positive numbers will scroll the 316 public void startScroll(int startX, int startY, int dx, int dy) { argument 317 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); 327 * @param dx Horizontal distance to travel. Positive numbers will scroll the 333 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument 340 mFinalX = startX + dx; 342 mDeltaX = dx; 372 float dx = mFinalX - mStartX; 374 float hyp = (float) Math.hypot(dx, dy); 376 float ndx = dx / hy [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | ZoomView.java | 235 float dx = 0, dy = 0; 238 dx = viewportWidth / 2 - (newRect.left + newRect.right) / 2; 241 dx = -newRect.left; 243 dx = viewportWidth - newRect.right; 257 if (dx != 0 || dy != 0) { 258 newRect.offset(dx, dy);
|
H A D | FilmstripGestureRecognizer.java | 37 boolean onScroll(float x, float y, float dx, float dy); argument 96 MotionEvent e1, MotionEvent e2, float dx, float dy) { 97 return mListener.onScroll(e2.getX(), e2.getY(), dx, dy); 95 onScroll( MotionEvent e1, MotionEvent e2, float dx, float dy) argument
|
/packages/apps/Camera2/jni/ |
H A D | jpegutil.h | 225 int dx = sgn(endX - startX); local 227 assert(dx == 0 || dy == 0); 234 int stride = dx * plane_.pixel_stride + dy * plane_.row_stride;
|