Home
last modified time | relevance | path

Searched refs:dy (Results 1 – 25 of 106) sorted by relevance

12345

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGradControl.java99 float dy = handley[i] - y; in getCloseHandle() local
100 float dist = dx * dx + dy * dy; in getCloseHandle()
112 float dy = handley[i] - y; in getCloseHandle() local
113 float dist = (float) Math.hypot(dx, dy); in getCloseHandle()
156 float dy = y - mDownY; in actionMove() local
159 if (centerIsOutside(mDownPoint1X + dx, mDownPoint1Y + dy, in actionMove()
160 mDownPoint2X + dx, mDownPoint2Y + dy)) { in actionMove()
163 line.setPoint1(mDownPoint1X + dx, mDownPoint1Y + dy); in actionMove()
164 line.setPoint2(mDownPoint2X + dx, mDownPoint2Y + dy); in actionMove()
167 if (centerIsOutside(mDownPoint1X + dx, mDownPoint1Y + dy, in actionMove()
[all …]
DEclipseControl.java82 float dy = handley[i] - y; in getCloseHandle() local
83 float dist = dx * dx + dy * dy; in getCloseHandle()
95 float dy = handley[i] - y; in getCloseHandle() local
96 float dist = (float) Math.sqrt(dx * dx + dy * dy); in getCloseHandle()
183 float dy = y - oval.getCenterY(); in actionMove() local
184 float nr = Math.abs(Math.abs(dx) + Math.abs(dy) - downRad); in actionMove()
253 float dy = ry + 10; in paintOvallines() local
255 rect.top = cy - dy; in paintOvallines()
257 rect.bottom = cy + dy; in paintOvallines()
260 dy = ry - 10; in paintOvallines()
[all …]
DImageCrop.java143 float dy = y - mPrevY; in onTouchEvent() local
144 mCropObj.moveCurrentSelection(dx, dy); in onTouchEvent()
292 int[] dy = {delta, -delta, 0, 0}; in onDraw() local
298 mCropObj.moveCurrentSelection(dx[i], dy[i]); in onDraw()
299 mCropObj.moveCurrentSelection(-dx[i], -dy[i]); in onDraw()
/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.java144 float dy = top - y; in pointToEvent() local
145 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
149 float dy = y - bottom; in pointToEvent() local
150 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
159 float dy = top - y; in pointToEvent() local
160 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
164 float dy = y - bottom; in pointToEvent() local
165 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollController.java728 final public boolean canScroll(int dx, int dy) { in canScroll() argument
729 if (dx == 0 && dy == 0) { in canScroll()
733 (dy == 0 || vertical.canScroll(dy < 0)); in canScroll()
748 private void updateDirection(float dx, float dy) { in updateDirection() argument
749 mMainHorizontal = Math.abs(dx) >= Math.abs(dy); in updateDirection()
755 if (dy > 0) { in updateDirection()
757 } else if (dy < 0) { in updateDirection()
782 final public void startScroll(int dx, int dy, boolean easeFling, int duration, boolean page) { in startScroll() argument
803 dy = basey + dy - scroller.getCurrY(); in startScroll()
807 updateDirection(dx, dy); in startScroll()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java242 void handleMotion(int edge, float dx, float dy) { in handleMotion() argument
249 dy * (mCropRect.height() / r.height())); in handleMotion()
256 dy = 0; in handleMotion()
261 float yDelta = dy * (mCropRect.height() / r.height()); in handleMotion()
268 void moveBy(float dx, float dy) { in moveBy() argument
271 mCropRect.offset(dx, dy); in moveBy()
289 void growBy(float dx, float dy) { in growBy() argument
292 dy = dx / mInitialAspectRatio; in growBy()
293 } else if (dy != 0) { in growBy()
294 dx = dy * mInitialAspectRatio; in growBy()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropObject.java202 float dy = 0; in moveCurrentSelection() local
208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; in moveCurrentSelection()
215 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight) in moveCurrentSelection()
234 dx, dy in moveCurrentSelection()
239 dy = sp * bUnit[1]; in moveCurrentSelection()
240 RectF newCrop = fixedCornerResize(crop, movingEdges, dx, dy); in moveCurrentSelection()
248 crop.top += dy; in moveCurrentSelection()
254 crop.bottom += dy; in moveCurrentSelection()
295 private static RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy) { in fixedCornerResize() argument
300 + dy); in fixedCornerResize()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DViewAutoScrollerTest.java80 public void scrollBy(int dy) { in setUp()
81 mScrollAssert.accept(dy); in setUp()
99 mScrollAssert = (int dy) -> { in testCursorNotInScrollZone()
111 mScrollAssert = (int dy) -> { in testCursorInScrollZone_notActive()
124 mScrollAssert = (int dy) -> { in testCursorInScrollZone_top()
125 assertTrue(dy == expectedScrollDistance); in testCursorInScrollZone_top()
135 mScrollAssert = (int dy) -> { in testCursorInScrollZone_bottom()
136 assertTrue(dy == expectedScrollDistance); in testCursorInScrollZone_bottom()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DGeometry.h104 double dy = y2 - y0; in FindTriangleCentroid() local
106 double len1 = sqrt(dx * dx + dy * dy); in FindTriangleCentroid()
107 double m1 = dy / dx; in FindTriangleCentroid()
119 dy = y1 - m1 * x + b1; in FindTriangleCentroid()
120 mass = len1 * sqrt(dx * dx + dy * dy); in FindTriangleCentroid()
DBlend.cpp1133 double dy = (m_AllSites[ce->second].getVCenter().y - m_AllSites[ce->first].getVCenter().y); in ClipBlendRect() local
1135 double ymid = m_AllSites[ce->first].getVCenter().y + dy/2.0; in ClipBlendRect()
1141 …if ((inter = m_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / d… in ClipBlendRect()
1147 …if ((inter = -m_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / … in ClipBlendRect()
1150 if (dy > epsilon) in ClipBlendRect()
1153 …_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / dy) < brect.top) in ClipBlendRect()
1156 else if (dy < -epsilon) in ClipBlendRect()
1159 …_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / dy) > brect.bot) in ClipBlendRect()
1304 double dy = prevY - firstY; in ComputeBlendParameters() local
1312 m_wb.radius = dy + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPickerPanel.java473 final float dy = ev.getRawY() - mDownEvent.getRawY(); in shouldAllowRecaptureTouch() local
475 final float maxAbsDelta = Math.max(Math.abs(dx), Math.abs(dy)); in shouldAllowRecaptureTouch()
488 final float dy = motionEvent.getRawY() - mDownEvent.getRawY(); in onTouch() local
492 final float yVelocity = dy / dt; in onTouch()
498 if ((dx == 0 || (Math.abs(dy) / Math.abs(dx)) > DIRECTION_RATIO) && in onTouch()
536 final float dy = mDownEvent.getRawY() - motionEvent.getRawY(); in onTouch() local
538 if (Math.abs(dy) > mTouchSlop && in onTouch()
539 (Math.abs(dy) / Math.abs(dx)) > DIRECTION_RATIO) { in onTouch()
540 setDesiredHeight((int) (mDownHeight + dy), false); in onTouch()
542 if (dy < -mTouchSlop) { in onTouch()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java316 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument
317 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll()
333 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument
341 mFinalY = startY + dy; in startScroll()
343 mDeltaY = dy; in startScroll()
373 float dy = mFinalY - mStartY; in fling() local
374 float hyp = (float) Math.hypot(dx, dy); in fling()
377 float ndy = dy / hyp; in fling()
DOverScroller.java356 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument
357 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll()
373 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument
376 mScrollerY.startScroll(startY, dy, duration); in startScroll()
534 final int dy = mScrollerY.mFinal - mScrollerY.mStart; in isScrollingInDirection() local
536 Math.signum(yvel) == Math.signum(dy); in isScrollingInDirection()
622 float y, dy;
626 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
627 if (Math.abs(dy - alpha) < 1E-5) break;
628 if (dy > alpha) y_max = y;
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java202 public void onScrolled(RecyclerView recyclerView, int dx, int dy) { in WearableListView()
203 onScroll(dy); in WearableListView()
377 private void onScroll(int dy) { in onScroll() argument
379 listener.onScroll(dy); in onScroll()
1040 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, State state) { in scrollVerticallyBy() argument
1048 if (dy < 0) { in scrollVerticallyBy()
1049 while (scrolled > dy) { in scrollVerticallyBy()
1053 final int scrollBy = Math.min(scrolled - dy, hangingTop); in scrollVerticallyBy()
1056 if (getFirstPosition() > 0 && scrolled > dy) { in scrollVerticallyBy()
1071 final int scrollBy = Math.min(-dy + scrolled, maxScroll - topView.getTop()); in scrollVerticallyBy()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_feature_detection.cpp221 float dx,dy; in db_gxx_gxy_gyy_row_f() local
227 dy=Iy0[c]; in db_gxx_gxy_gyy_row_f()
229 Ixy0=dx*dy; in db_gxx_gxy_gyy_row_f()
230 Iyy0=dy*dy; in db_gxx_gxy_gyy_row_f()
233 dy=Iy1[c]; in db_gxx_gxy_gyy_row_f()
235 Ixy1=dx*dy; in db_gxx_gxy_gyy_row_f()
236 Iyy1=dy*dy; in db_gxx_gxy_gyy_row_f()
239 dy=Iy2[c]; in db_gxx_gxy_gyy_row_f()
241 Ixy2=dx*dy; in db_gxx_gxy_gyy_row_f()
242 Iyy2=dy*dy; in db_gxx_gxy_gyy_row_f()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DPagedSmoothScroller.java62 int dy = calculateDyToMakeVisible(targetView, SNAP_TO_START); in onTargetFound() local
64 if (dy == 0) { in onTargetFound()
68 final int time = calculateTimeForDeceleration(dy); in onTargetFound()
70 action.update(0, -dy, time, mInterpolator); in onTargetFound()
/packages/apps/Camera2/src/com/android/camera/ui/
DZoomView.java235 float dx = 0, dy = 0; in adjustToFitInBounds() local
248 dy = viewportHeight / 2 - (newRect.top + newRect.bottom) / 2; in adjustToFitInBounds()
251 dy = -newRect.top; in adjustToFitInBounds()
253 dy = viewportHeight - newRect.bottom; in adjustToFitInBounds()
257 if (dx != 0 || dy != 0) { in adjustToFitInBounds()
258 newRect.offset(dx, dy); in adjustToFitInBounds()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiSmoothScroller.java79 int dy = calculateDyToMakeVisible(targetView, SNAP_TO_START); in onTargetFound() local
81 if (dy == 0) { in onTargetFound()
85 final int time = calculateTimeForDeceleration(dy); in onTargetFound()
87 action.update(0, -dy, time, mInterpolator); in onTargetFound()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDragHoverListener.java109 (int dy) -> { in create()
110 scrollView.scrollBy(0, dy); in create()
121 public void scrollBy(int dy) { in create()
122 scroller.accept(dy); in create()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlWheel.java92 double dy = mCenterY - event.getY(); in dispatchTouchEvent() local
93 double radius = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent()
95 double angle = Math.atan2(dy, dx); in dispatchTouchEvent()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dgeometry_utils.h35 const int dy = y1 - y2; in getAngle() local
36 if (dx == 0 && dy == 0) return 0.0f; in getAngle()
37 return atan2f(static_cast<float>(dy), static_cast<float>(dx)); in getAngle()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsRecyclerView.java255 public void onUpdateScrollbar(int dy) { in onUpdateScrollbar() argument
292 if (diffScrollY * dy > 0f) { in onUpdateScrollbar()
298 if (dy < 0) { in onUpdateScrollbar()
299 int offset = (int) ((dy * thumbScrollY) / (float) scrollBarY); in onUpdateScrollbar()
302 int offset = (int) ((dy * (availableScrollBarHeight - thumbScrollY)) / in onUpdateScrollbar()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java758 public void move(final View photo, float dx, float dy, boolean drop) { in move() argument
761 final float y = photo.getY() + dy; in move()
764 Log.d(TAG, "[" + photo.getX() + ", " + photo.getY() + "] + (" + dx + "," + dy + ")"); in move()
793 public void fling(final View photo, float dx, float dy, int duration, boolean spin) { in fling() argument
803 .yBy(dy) in fling()
811 if (photoOffTable(photo, (int) dx, (int) dy)) { in fling()
825 public boolean photoOffTable(final View photo, final int dx, final int dy) { in photoOffTable() argument
828 hit.offset(dx, dy); in photoOffTable()
857 float dy = y - y0; in dropOnTable() local
859 float dist = (float) Math.hypot(dx, dy); in dropOnTable()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DRoundedLine.java47 final double dy = p2y - p1y; in makePath() local
49 final double l = Math.hypot(dx, dy); in makePath()
54 final double a = Math.atan2(dy, dx); in makePath()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGestureRecognizer.java34 boolean onScroll(float dx, float dy, float totalX, float totalY); in onScroll() argument
89 MotionEvent e1, MotionEvent e2, float dx, float dy) { in onScroll() argument
91 dx, dy, e2.getX() - e1.getX(), e2.getY() - e1.getY()); in onScroll()

12345