Searched refs:dy (Results 1 - 25 of 52) sorted by relevance

123

/packages/apps/Calendar/src/com/android/calendar/
H A DEventGeometry.java144 float dy = top - y;
145 return (float) Math.sqrt(dx * dx + dy * dy);
149 float dy = y - bottom;
150 return (float) Math.sqrt(dx * dx + dy * dy);
159 float dy = top - y;
160 return (float) Math.sqrt(dx * dx + dy * dy);
164 float dy
[all...]
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DTransformableImageView.java53 float dx = 0, dy = 0;
60 dy = (vheight - dheight * 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.h104 double dy = y2 - y0; local
106 double len1 = sqrt(dx * dx + dy * dy);
107 double m1 = dy / dx;
119 dy = y1 - m1 * x + b1;
120 mass = len1 * sqrt(dx * dx + dy * dy);
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DGeometry.h104 double dy = y2 - y0; local
106 double len1 = sqrt(dx * dx + dy * dy);
107 double m1 = dy / dx;
119 dy = y1 - m1 * x + b1;
120 mass = len1 * sqrt(dx * dx + dy * dy);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DGestureStrokeWithPreviewPoints.java67 final int dy = y - mLastY;
68 return dx * dx + dy * dy >= mMinPreviewSampleLengthSquare;
H A DGestureStroke.java336 final int dy = y1 - y2;
339 return (int)Math.sqrt(dx * dx + dy * dy);
/packages/inputmethods/LatinIME/native/jni/src/
H A Dgeometry_utils.h48 const int dy = y1 - y2; local
49 if (dx == 0 && dy == 0) return 0;
50 return atan2f(static_cast<float>(dy), static_cast<float>(dx));
H A Dproximity_info.cpp168 const int dy = y - edgeY; local
169 return dx * dx + dy * dy;
/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
249 dy * (mCropRect.height() / r.height()));
256 dy = 0;
261 float yDelta = dy * (mCropRect.height() / r.height());
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, float dy) { 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/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
422 + dy);
425 + dy);
427 newCrop = new RectF(r.right - r.width() + dx, r.bottom - r.height() + dy,
430 newCrop = new RectF(r.left, r.bottom - r.height() + dy, r.left
478 float dy = 0;
484 dy = Math.min(cropped.top + deltaY, cropped.bottom - minWidthHeight) - cropped.top;
491 dy = Math.max(cropped.bottom + deltaY, cropped.top + minWidthHeight)
504 float[] disp = {dx, dy};
508 dy
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DScroller.java314 * @param dy Vertical 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);
330 * @param dy Vertical distance to travel. Positive numbers will scroll the
334 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument
342 mFinalY = startY + dy;
344 mDeltaY = dy;
374 float dy = mFinalY - mStartY;
375 float hyp = FloatMath.sqrt(dx * dx + dy * dy);
[all...]
H A DOverScroller.java356 * @param dy Vertical distance to travel. Positive numbers will scroll the
359 public void startScroll(int startX, int startY, int dx, int dy) { argument
360 startScroll(startX, startY, dx, dy, DEFAULT_DURATION);
372 * @param dy Vertical distance to travel. Positive numbers will scroll the
376 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument
379 mScrollerY.startScroll(startY, dy, duration);
537 final int dy = mScrollerY.mFinal - mScrollerY.mStart;
539 Math.signum(yvel) == Math.signum(dy);
625 float y, dy;
629 dy
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DUrlBarAutoShowManager.java120 float dy = event.getY() - mStartTouchY;
121 float ady = Math.abs(dy);
126 if (dy > mSlop && angle > V_TRIGGER_ANGLE
/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/Browser/src/com/android/browser/view/
H A DPieStackView.java76 int dy = (n == 1) ? 0 : (mHeight - mChildHeight) / (n - 1);
80 top += dy;
/packages/apps/Camera/src/com/android/camera/
H A DPreviewGestures.java246 float dy = 0;
250 dy = Math.abs(m.getY() - mDown.getY());
254 dy = Math.abs(m.getX() - mDown.getX());
258 dy = Math.abs(m.getY() - mDown.getY());
262 dy = Math.abs(m.getX() - mDown.getX());
266 return (dx < 0 && dy / -dx < 0.6f);
268 return (dx > 0 && dy / dx < 0.6f);
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DIndicatorControlWheelContainer.java75 double dy = mCenterY - event.getY();
76 double radius = Math.sqrt(dx * dx + dy * dy);
H A DZoomControlWheel.java92 double dy = mCenterY - event.getY();
93 double radius = Math.sqrt(dx * dx + dy * dy);
95 double angle = Math.atan2(dy, dx);
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DImageViewTouchBase.java223 * @param dy The vertical offset
225 public void postTranslateCenter(float dx, float dy) { argument
226 mSuppMatrix.postTranslate(dx, dy);
235 * @param dy Pan by this vertical amount
237 private void panBy(float dx, float dy) { argument
238 mSuppMatrix.postTranslate(dx, dy);
/packages/apps/Camera/jni/feature_stab/db_vlvm/
H A Ddb_feature_detection.cpp121 /***************dy part 13-24*********************************/
137 pmullw mm4,mm2 /*27 Multiply dx*dy*/
138 pmullw mm2,mm2 /*28 Multiply dy*dy*/
147 movq mm0,mm4 /*37 Copy dx*dy*/
149 pcmpgtw mm6,mm4 /*38 Create unpack mask for dx*dy*/
150 punpcklwd mm4,mm6 /*39 Unpack dx*dy lows*/
152 punpckhwd mm0,mm6 /*40 Unpack dx*dy highs*/
154 movq [edx+512],mm4 /*41 Store dx*dy lows*/
155 movq mm5,mm2 /*44 Copy dy*d
221 float dx,dy; local
1476 float dy = (fxx * fy - fxy * fx) / denom; local
[all...]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_feature_detection.cpp121 /***************dy part 13-24*********************************/
137 pmullw mm4,mm2 /*27 Multiply dx*dy*/
138 pmullw mm2,mm2 /*28 Multiply dy*dy*/
147 movq mm0,mm4 /*37 Copy dx*dy*/
149 pcmpgtw mm6,mm4 /*38 Create unpack mask for dx*dy*/
150 punpcklwd mm4,mm6 /*39 Unpack dx*dy lows*/
152 punpckhwd mm0,mm6 /*40 Unpack dx*dy highs*/
154 movq [edx+512],mm4 /*41 Store dx*dy lows*/
155 movq mm5,mm2 /*44 Copy dy*d
221 float dx,dy; local
1476 float dy = (fxx * fy - fxy * fx) / denom; local
[all...]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoTable.java387 float dy = y - y0;
389 float dist = (float) (Math.sqrt(dx * dx + dy * dy));
438 float dy = y - y0;
440 float dist = (float) (Math.sqrt(dx * dx + dy * dy));

Completed in 3373 milliseconds

123