/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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | GradControl.java | 99 float dy = handley[i] - y; 100 float dist = dx * dx + dy * dy; 112 float dy = handley[i] - y; 113 float dist = (float) Math.hypot(dx, dy); 156 float dy = y - mDownY; 159 if (centerIsOutside(mDownPoint1X + dx, mDownPoint1Y + dy, 160 mDownPoint2X + dx, mDownPoint2Y + dy)) { 163 line.setPoint1(mDownPoint1X + dx, mDownPoint1Y + dy); 164 line.setPoint2(mDownPoint2X + dx, mDownPoint2Y + dy); [all...] |
H A D | EclipseControl.java | 82 float dy = handley[i] - y; 83 float dist = dx * dx + dy * dy; 95 float dy = handley[i] - y; 96 float dist = (float) Math.sqrt(dx * dx + dy * dy); 183 float dy = y - oval.getCenterY(); 184 float nr = Math.abs(Math.abs(dx) + Math.abs(dy) - downRad); 253 float dy = ry + 10; 255 rect.top = cy - dy; [all...] |
H A D | ImageRedEye.java | 127 float dy = fullRect.centerY() - dh / 2; 128 drawRect.set(dx, dy, dx + dw, dy + dh);
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
H A D | PagedLayoutManager.java | 90 public int scrollVerticallyBy(int dy, RecyclerView.Recycler r, RecyclerView.State s) { argument 94 if (isAtBottom() && dy > 0) { 97 return super.scrollVerticallyBy(dy, r, s); 136 int dy = calculateDyToMakeVisible(targetView, SNAP_TO_START); 137 if (dy == 0) { 142 action.update(0, -dy, DURATION_MS, mInterpolator);
|
/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));
|
/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/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
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/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...] |
/packages/apps/TV/src/com/android/tv/guide/ |
H A D | TimelineRow.java | 73 public void onScrolled(int dx, int dy) { argument 74 if (dx == 0 && dy == 0) {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | ScrollController.java | 728 final public boolean canScroll(int dx, int dy) { argument 729 if (dx == 0 && dy == 0) { 733 (dy == 0 || vertical.canScroll(dy < 0)); 748 private void updateDirection(float dx, float dy) { argument 749 mMainHorizontal = Math.abs(dx) >= Math.abs(dy); 755 if (dy > 0) { 757 } else if (dy < 0) { 782 final public void startScroll(int dx, int dy, boolean easeFling, int duration, boolean page) { argument 803 dy [all...] |
/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 | 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...] |
H A D | BaseRecyclerView.java | 89 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { argument 90 mDy = dy; 96 onUpdateScrollbar(dy); 319 protected abstract void onUpdateScrollbar(int dy); argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | RoundedLine.java | 47 final double dy = p2y - p1y; 49 final double l = Math.hypot(dx, dy); 54 final double a = Math.atan2(dy, dx);
|
H A D | BogusMoveEventDetector.java | 93 final int dy = Math.abs(y - mActualDownY); 96 return dx >= dy && mAccumulatedDistanceFromDownKey >= mAccumulatedDistanceThreshold;
|
/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/Camera2/src/com/android/camera/ui/ |
H A D | ZoomView.java | 235 float dx = 0, dy = 0; 248 dy = viewportHeight / 2 - (newRect.top + newRect.bottom) / 2; 251 dy = -newRect.top; 253 dy = viewportHeight - newRect.bottom; 257 if (dx != 0 || dy != 0) { 258 newRect.offset(dx, dy);
|
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/Messaging/src/com/android/messaging/ui/mediapicker/ |
H A D | MediaPickerPanel.java | 473 final float dy = ev.getRawY() - mDownEvent.getRawY(); 475 final float maxAbsDelta = Math.max(Math.abs(dx), Math.abs(dy)); 488 final float dy = motionEvent.getRawY() - mDownEvent.getRawY(); 492 final float yVelocity = dy / dt; 498 if ((dx == 0 || (Math.abs(dy) / Math.abs(dx)) > DIRECTION_RATIO) && 536 final float dy = mDownEvent.getRawY() - motionEvent.getRawY(); 538 if (Math.abs(dy) > mTouchSlop && 539 (Math.abs(dy) / Math.abs(dx)) > DIRECTION_RATIO) { 540 setDesiredHeight((int) (mDownHeight + dy), false); 542 if (dy < [all...] |
/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/Gallery2/src/com/android/photos/shims/ |
H A D | BitmapJobDrawable.java | 107 float dx = 0, dy = 0; 120 dy = (vheight - dheight * scale) * 0.5f; 124 mDrawMatrix.postTranslate((int) (dx + 0.5f), (int) (dy + 0.5f));
|
/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);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | grad.rs | 33 float dy; 66 grads[k].dy = (y1 - y2) / denom; 107 float t = clamp(x*grad->dx+y*grad->dy+grad->off,0.f,1.0f);
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
H A D | HeaderElevationController.java | 29 public final void onScrolled(RecyclerView recyclerView, int dx, int dy) { argument 30 mCurrentY += dy;
|