/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
H A D | geometry_utils.h | 35 const int dy = y1 - y2; local 36 if (dx == 0 && dy == 0) return 0.0f; 37 return atan2f(static_cast<float>(dy), static_cast<float>(dx));
|
H A D | proximity_info_utils.h | 244 const int dy = y - edgeY; local 245 return dx * dx + dy * dy;
|
/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);
|
H A D | Delaunay.cpp | 475 double adx, ady, bdx, bdy, cdx, cdy, dx, dy, nad, nbd, ncd; local 477 dy = sa[d].Y(); 479 ady = sa[a].Y() - dy; 481 bdy = sa[b].Y() - dy; 483 cdy = sa[c].Y() - dy;
|
/packages/apps/Camera2/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);
|
H A D | Delaunay.cpp | 475 double adx, ady, bdx, bdy, cdx, cdy, dx, dy, nad, nbd, ncd; local 477 dy = sa[d].Y(); 479 ady = sa[a].Y() - dy; 481 bdy = sa[b].Y() - dy; 483 cdy = sa[c].Y() - dy;
|
/packages/apps/Camera2/src/com/android/camera/crop/ |
H A D | BoundedRect.java | 107 * Tries to move the inner rectangle by (dx, dy). If this would cause it to leave 111 public void moveInner(float dx, float dy) { argument 115 translatedInner.offset(dx, dy);
|
H A D | CropObject.java | 200 float dy = 0; 206 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; 213 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight) 232 dx, dy 237 dy = sp * bUnit[1]; 238 RectF newCrop = fixedCornerResize(crop, movingEdges, dx, dy); 246 crop.top += dy; 252 crop.bottom += dy; 293 private static RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy) { argument 298 + dy); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | BoundedRect.java | 109 * Tries to move the inner rectangle by (dx, dy). If this would cause it to leave 113 public void moveInner(float dx, float dy) { argument 117 translatedInner.offset(dx, dy);
|
H A D | CropObject.java | 202 float dy = 0; 208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; 215 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight) 234 dx, dy 239 dy = sp * bUnit[1]; 240 RectF newCrop = fixedCornerResize(crop, movingEdges, dx, dy); 248 crop.top += dy; 254 crop.bottom += dy; 295 private static RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy) { argument 300 + dy); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ColorSpaceMatrix.java | 119 private void zShearMatrix(float dx, float dy) argument 125 tmp[6] = dy;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | ImageTinyPlanet.java | 87 protected static float angleFor(float dx, float dy) { argument 88 return (float) (Math.atan2(dx, dy) * 180 / Math.PI);
|
H A D | ImageStraighten.java | 159 private static float angleFor(float dx, float dy) { argument 160 return (float) (Math.atan2(dx, dy) * 180 / Math.PI);
|
/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);
|
H A D | Delaunay.cpp | 475 double adx, ady, bdx, bdy, cdx, cdy, dx, dy, nad, nbd, ncd; local 477 dy = sa[d].Y(); 479 ady = sa[a].Y() - dy; 481 bdy = sa[b].Y() - dy; 483 cdy = sa[c].Y() - dy;
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | FilmStripGestureRecognizer.java | 33 boolean onScroll(float x, float y, float dx, float dy); argument 67 MotionEvent e1, MotionEvent e2, float dx, float dy) { 68 return mListener.onScroll(e2.getX(), e2.getY(), dx, dy); 66 onScroll( MotionEvent e1, MotionEvent e2, float dx, float dy) argument
|
/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);
|
H A D | ViewImage.java | 1102 protected void postTranslateCenter(float dx, float dy) { argument 1103 super.postTranslate(dx, dy);
|
/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/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/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/Browser/src/com/android/browser/view/ |
H A D | ScrollerView.java | 1268 * @param dy the number of pixels to scroll by on the Y axis 1270 public final void smoothScrollBy(int dx, int dy) { argument 1289 dy = Math.max(0, Math.min(scrollY + dy, maxY)) - scrollY; 1290 mScroller.startScroll(mScrollX, scrollY, 0, dy); 1301 scrollBy(dx, dy);
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
H A D | OverScrollerSGV.java | 358 * @param dy Vertical distance to travel. Positive numbers will scroll the 361 public void startScroll(int startX, int startY, int dx, int dy) { argument 362 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); 374 * @param dy Vertical distance to travel. Positive numbers will scroll the 378 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument 381 mScrollerY.startScroll(startY, dy, duration); 539 final int dy = mScrollerY.mFinal - mScrollerY.mStart; 541 Math.signum(yvel) == Math.signum(dy); 627 float y, dy; 631 dy [all...] |