Searched refs:dy (Results 1 - 25 of 73) 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/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dgeometry_utils.h35 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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DGradControl.java99 float dy = handley[i] - y;
100 float dist = dx * dx + dy * dy;
112 float dy = handley[i] - y;
113 float dist = (float) Math.sqrt(dx * dx + dy * 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);
[all...]
H A DEclipseControl.java82 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 DImageRedEye.java127 float dy = fullRect.centerY() - dh / 2;
128 drawRect.set(dx, dy, dx + dw, dy + dh);
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DTransformableImageView.java56 float dx = 0, dy = 0;
63 dy = (vheight - dheight * scale) * 0.5f;
67 drawMatrix.postTranslate((int) (dx + 0.5f), (int) (dy + 0.5f));
/packages/apps/Dialer/src/com/android/dialer/widget/
H A DViewDragHelper.java172 * @param dy Change in Y position from the last call
174 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {} argument
331 * @param dy Proposed change in position for top
334 public int clampViewPositionVertical(View child, int top, int dy) { argument
586 final int dy = finalTop - startTop;
588 if (dx == 0 && dy == 0) {
595 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel);
596 mScroller.startScroll(startLeft, startTop, dx, dy, duration);
597 mFinalScrollY = startTop + dy;
603 private int computeSettleDuration(View child, int dx, int dy, in argument
975 canScroll(View v, boolean checkV, int dx, int dy, int x, int y) argument
1264 reportNewEdgeDrags(float dx, float dy, int pointerId) argument
1312 checkTouchSlop(View child, float dx, float dy) argument
1433 dragTo(int left, int top, int dx, int dy) argument
1550 processNestedScroll(View target, int dx, int dy, int[] consumed) argument
[all...]
/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/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
H A DCropObject.java202 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 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...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DScrollController.java728 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/Launcher3/src/com/android/launcher3/
H A DLauncherScroller.java102 float y, dy;
106 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
107 if (Math.abs(dy - alpha) < 1E-5) break;
108 if (dy > alpha) y_max = y;
350 * @param dy Vertical distance to travel. Positive numbers will scroll the
353 public void startScroll(int startX, int startY, int dx, int dy) { argument
354 startScroll(startX, startY, dx, dy, DEFAULT_DURATION);
367 * @param dy Vertical distance to travel. Positive numbers will scroll the
371 public void startScroll(int startX, int startY, int dx, int dy, int duration) { argument
379 mFinalY = startY + 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...]
/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/Camera2/src/com/android/camera/ui/
H A DFilmstripGestureRecognizer.java35 boolean onScroll(float x, float y, float dx, float dy); argument
76 MotionEvent e1, MotionEvent e2, float dx, float dy) {
77 return mListener.onScroll(e2.getX(), e2.getY(), dx, dy);
75 onScroll( MotionEvent e1, MotionEvent e2, float dx, float dy) argument
H A DZoomView.java235 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);
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DRoundedLine.java47 final double dy = p2y - p1y;
49 final double l = Math.hypot(dx, dy);
54 final double a = Math.atan2(dy, dx);
H A DBogusMoveEventDetector.java93 final int dy = Math.abs(y - mActualDownY);
96 return dx >= dy && mAccumulatedDistanceFromDownKey >= mAccumulatedDistanceThreshold;
/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/Gallery2/src/com/android/photos/shims/
H A DBitmapJobDrawable.java107 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 DIndicatorControlWheelContainer.java75 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 Dgrad.rs33 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);

Completed in 1076 milliseconds

123