/packages/apps/Calendar/src/com/android/calendar/ |
H A D | EventGeometry.java | 144 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 D | TransformableImageView.java | 53 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 D | Geometry.h | 104 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 D | Geometry.h | 104 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 D | GestureStrokeWithPreviewPoints.java | 67 final int dy = y - mLastY; 68 return dx * dx + dy * dy >= mMinPreviewSampleLengthSquare;
|
H A D | GestureStroke.java | 336 final int dy = y1 - y2; 339 return (int)Math.sqrt(dx * dx + dy * dy);
|
/packages/inputmethods/LatinIME/native/jni/src/ |
H A D | geometry_utils.h | 48 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 D | proximity_info.cpp | 168 const int dy = y - edgeY; local 169 return dx * dx + dy * dy;
|
/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 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 D | ImageViewTouchBase.java | 399 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 D | ImageTinyPlanet.java | 43 protected static float angleFor(float dx, float dy) { argument 44 return (float) (Math.atan2(dx, dy) * 180 / Math.PI);
|
H A D | GeometryMetadata.java | 345 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 D | ImageCrop.java | 417 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 D | Scroller.java | 314 * @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 D | OverScroller.java | 356 * @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 D | UrlBarAutoShowManager.java | 120 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 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/apps/Browser/src/com/android/browser/view/ |
H A D | PieStackView.java | 76 int dy = (n == 1) ? 0 : (mHeight - mChildHeight) / (n - 1); 80 top += dy;
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | PreviewGestures.java | 246 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 D | IndicatorControlWheelContainer.java | 75 double dy = mCenterY - event.getY(); 76 double radius = Math.sqrt(dx * dx + dy * dy);
|
H A D | ZoomControlWheel.java | 92 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 D | ImageViewTouchBase.java | 223 * @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 D | db_feature_detection.cpp | 121 /***************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 D | db_feature_detection.cpp | 121 /***************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 D | PhotoTable.java | 387 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));
|