Searched refs:dx (Results 1 - 25 of 60) sorted by relevance

123

/packages/apps/Calendar/src/com/android/calendar/
H A DEventGeometry.java141 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 Ddb_bundle.h34 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 Ddb_utilities_camera.h144 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 Ddb_rob_image_homography.cpp231 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 Ddb_bundle.h34 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 Ddb_utilities_camera.h144 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 Ddb_rob_image_homography.cpp231 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/Contacts/src/com/android/contacts/detail/
H A DTransformableImageView.java53 float dx = 0, dy = 0;
57 dx = (vwidth - dwidth * scale) * 0.5f;
64 drawMatrix.postTranslate((int) (dx + 0.5f), (int) (dy + 0.5f));
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DGeometry.h103 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 DGeometry.h103 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DGestureStrokeWithPreviewPoints.java66 final int dx = x - mLastX;
68 return dx * dx + dy * dy >= mMinPreviewSampleLengthSquare;
/packages/inputmethods/LatinIME/native/jni/src/
H A Dgeometry_utils.h47 const int dx = x1 - x2; local
49 if (dx == 0 && dy == 0) return 0;
50 return atan2f(static_cast<float>(dy), static_cast<float>(dx));
/packages/apps/Gallery/src/com/android/camera/
H A DHighlightView.java240 // 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...]
H A DImageViewTouchBase.java399 protected void postTranslate(float dx, float dy) { argument
400 mSuppMatrix.postTranslate(dx, dy);
403 protected void panBy(float dx, float dy) { argument
404 postTranslate(dx, dy);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DSmoothPagedView.java177 final float dx = mTouchX - mUnboundedScrollX;
178 scrollTo(Math.round(mUnboundedScrollX + dx * e), getScrollY());
182 if (dx > 1.f || dx < -1.f) {
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageTinyPlanet.java43 protected static float angleFor(float dx, float dy) { argument
44 return (float) (Math.atan2(dx, dy) * 180 / Math.PI);
H A DGeometryMetadata.java345 public Matrix buildGeometryMatrix(float width, float height, float scaling, float dx, float dy, argument
353 m.postTranslate(dx, dy);
358 public Matrix buildGeometryMatrix(float width, float height, float scaling, float dx, float dy, argument
364 return buildGeometryMatrix(width, height, scaling, dx, dy, rot);
368 public Matrix buildGeometryUIMatrix(float scaling, float dx, float dy) { argument
371 return buildGeometryMatrix(w, h, scaling, dx, dy, false);
H A DImageCrop.java417 private RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy){ argument
421 newCrop = new RectF(r.left, r.top, r.left + r.width() + dx, r.top + r.height()
424 newCrop = new RectF(r.right - r.width() + dx, r.top, r.right, r.top + r.height()
427 newCrop = new RectF(r.right - r.width() + dx, r.bottom - r.height() + dy,
431 + r.width() + dx, r.bottom);
477 float dx = 0;
481 dx = Math.min(cropped.left + deltaX, cropped.right - minWidthHeight) - cropped.left;
487 dx = Math.max(cropped.right + deltaX, cropped.left + minWidthHeight)
504 float[] disp = {dx, dy};
507 dx
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DPreviewGestures.java245 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/gallerycommon/src/com/android/gallery3d/common/
H A DScroller.java312 * @param dx Horizontal distance to travel. Positive numbers will scroll the
317 public void startScroll(int startX, int startY, int dx, int dy) { argument
318 startScroll(startX, startY, dx, dy, DEFAULT_DURATION);
328 * @param dx Horizontal distance to travel. Positive numbers will scroll the
334 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument
341 mFinalX = startX + dx;
343 mDeltaX = dx;
373 float dx = mFinalX - mStartX;
375 float hyp = FloatMath.sqrt(dx * dx
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGestureRecognizer.java34 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/apps/LegacyCamera/src/com/android/camera/ui/
H A DIndicatorControlWheelContainer.java74 double dx = event.getX() - mCenterX;
76 double radius = Math.sqrt(dx * dx + dy * dy);
H A DZoomControlWheel.java91 double dx = event.getX() - mCenterX;
93 double radius = Math.sqrt(dx * dx + dy * dy);
95 double angle = Math.atan2(dy, dx);
/packages/apps/Calculator/src/com/android/calculator2/
H A DPanelSwitcher.java61 int dx = (int) (e2.getX() - e1.getX());
65 if (Math.abs(dx) > MAJOR_MOVE && Math.abs(velocityX) > Math.abs(velocityY)) {
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DImageViewTouchBase.java222 * @param dx The horizontal offset
225 public void postTranslateCenter(float dx, float dy) { argument
226 mSuppMatrix.postTranslate(dx, dy);
234 * @param dx Pan by this horizontal amount
237 private void panBy(float dx, float dy) { argument
238 mSuppMatrix.postTranslate(dx, dy);

Completed in 4988 milliseconds

123