Searched refs:dy (Results 1 - 25 of 92) sorted by relevance

1234

/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/apps/DocumentsUI/tests/unit/com/android/documentsui/ui/
H A DViewAutoScrollerTest.java75 public void scrollBy(int dy) {
76 mScrollAssert.accept(dy);
93 mScrollAssert = (int dy) -> {
105 mScrollAssert = (int dy) -> {
118 mScrollAssert = (int dy) -> {
119 assertTrue(dy == expectedScrollDistance);
129 mScrollAssert = (int dy) -> {
130 assertTrue(dy == expectedScrollDistance);
/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.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 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/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/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/TV/src/com/android/tv/guide/
H A DTimelineRow.java73 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 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/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/apps/Launcher3/src/com/android/launcher3/
H A DLauncherScroller.java101 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/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/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DScroller.java313 * @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 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);
H A DFilmstripGestureRecognizer.java37 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 DMediaPickerPanel.java473 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 Djpegutil.h226 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 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/DocumentsUI/tests/unit/com/android/documentsui/selection/
H A DBandController_GridModelTest.java275 private void scroll(int dy) { argument
276 assertTrue(env.verticalOffset + VIEWPORT_HEIGHT + dy <= env.getTotalHeight());
277 env.verticalOffset += dy;
279 mSelectionPoint.y += dy;
280 model.onScrolled(null, 0, dy);
423 public void scrollBy(int dy) { argument
/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);
/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DClippedFolderIconLayoutRule.java84 float dy = result[1] - top;
87 result[1] = top + (row * dy);

Completed in 556 milliseconds

1234