/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 | 232 const int dy = y - edgeY; local 233 return dx * dx + dy * dy;
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
H A D | WidgetsRecyclerView.java | 120 public void onUpdateScrollbar(int dy) { argument
|
/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/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);
|
/packages/apps/Camera2/jni/ |
H A D | jpegutil.h | 226 int dy = sgn(endY - startY); local 227 assert(dx == 0 || dy == 0); 234 int stride = dx * plane_.pixel_stride + dy * plane_.row_stride;
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
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/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/Launcher3/src/com/android/launcher3/ |
H A D | BaseRecyclerView.java | 89 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { argument 90 mDy = dy; 96 onUpdateScrollbar(dy); 280 public abstract void onUpdateScrollbar(int dy); argument
|
H A D | LauncherScroller.java | 101 float y, dy; 105 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y; 106 if (Math.abs(dy - alpha) < 1E-5) break; 107 if (dy > alpha) y_max = y; 349 * @param dy Vertical distance to travel. Positive numbers will scroll the 352 public void startScroll(int startX, int startY, int dx, int dy) { argument 353 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); 366 * @param dy Vertical distance to travel. Positive numbers will scroll the 370 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument 378 mFinalY = startY + dy; [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
H A D | AllAppsRecyclerView.java | 278 public void onUpdateScrollbar(int dy) { argument 326 if (diffScrollY * dy > 0f) { 332 if (dy < 0) { 333 int offset = (int) ((dy * thumbScrollY) / (float) scrollBarY); 336 int offset = (int) ((dy * (availableScrollBarHeight - thumbScrollY)) /
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | Scroller.java | 313 * @param dy Vertical 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); 329 * @param dy Vertical distance to travel. Positive numbers will scroll the 333 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument 341 mFinalY = startY + dy; 343 mDeltaY = dy; 373 float dy = mFinalY - mStartY; 374 float hyp = (float) Math.hypot(dx, dy); 377 float ndy = dy / hy [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
H A D | ConversationFastScroller.java | 272 public void onScrolled(final RecyclerView view, final int dx, final int dy) { argument
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
H A D | FilmstripLayout.java | 333 public boolean onScroll(float x, float y, float dx, float dy) { argument 341 mFilmstripGestureListener.onScroll(x, y, 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 | 355 * @param dy Vertical distance to travel. Positive numbers will scroll the 358 public void startScroll(int startX, int startY, int dx, int dy) { argument 359 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); 371 * @param dy Vertical distance to travel. Positive numbers will scroll the 375 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument 378 mScrollerY.startScroll(startY, dy, duration); 536 final int dy = mScrollerY.mFinal - mScrollerY.mStart; 538 Math.signum(yvel) == Math.signum(dy); 624 float y, dy; 628 dy [all...] |