/packages/apps/Dialer/src/com/android/dialer/widget/ |
D | ViewDragHelper.java | 174 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {} in onViewPositionChanged() argument 334 public int clampViewPositionVertical(View child, int top, int dy) { in clampViewPositionVertical() argument 586 final int dy = finalTop - startTop; in forceSettleCapturedViewAt() local 588 if (dx == 0 && dy == 0) { in forceSettleCapturedViewAt() 595 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel); in forceSettleCapturedViewAt() 596 mScroller.startScroll(startLeft, startTop, dx, dy, duration); in forceSettleCapturedViewAt() 597 mFinalScrollY = startTop + dy; in forceSettleCapturedViewAt() 603 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { in computeSettleDuration() argument 607 final int absDy = Math.abs(dy); in computeSettleDuration() 619 int yduration = computeAxisDuration(dy, yvel, mCallback.getViewVerticalDragRange(child)); in computeSettleDuration() [all …]
|
D | OverlappingPaneLayout.java | 940 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { in onNestedPreScroll() argument 941 if (dy == 0) { in onNestedPreScroll() 946 Log.d(TAG, "onNestedPreScroll: " + dy); in onNestedPreScroll() 949 mInNestedPreScrollDownwards = dy < 0; in onNestedPreScroll() 950 mInNestedPreScrollUpwards = dy > 0; in onNestedPreScroll() 952 mDragHelper.processNestedScroll(mSlideableView, 0, -dy, consumed); in onNestedPreScroll() 1044 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) { in onViewPositionChanged() argument 1170 public int clampViewPositionVertical(View child, int top, int dy) { in clampViewPositionVertical() argument 1174 int previousTop = top - dy; in clampViewPositionVertical()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GradControl.java | 99 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.sqrt(dx * dx + dy * 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 …]
|
D | EclipseControl.java | 82 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 …]
|
D | ImageCrop.java | 143 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/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollController.java | 728 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/ |
D | HighlightView.java | 242 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/Calendar/src/com/android/calendar/ |
D | EventGeometry.java | 144 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/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropObject.java | 202 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/Launcher3/src/com/android/launcher3/ |
D | LauncherScroller.java | 102 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; 353 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument 354 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll() 371 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument 379 mFinalY = startY + dy; in startScroll() 381 mDeltaY = dy; in startScroll() 411 float dy = (float) (mFinalY - mStartY); in fling() local [all …]
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 221 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/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 221 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/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Scroller.java | 317 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument 318 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll() 334 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument 342 mFinalY = startY + dy; in startScroll() 344 mDeltaY = dy; in startScroll() 374 float dy = mFinalY - mStartY; in fling() local 375 float hyp = FloatMath.sqrt(dx * dx + dy * dy); in fling() 378 float ndy = dy / hyp; in fling()
|
D | OverScroller.java | 359 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument 360 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll() 376 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument 379 mScrollerY.startScroll(startY, dy, duration); in startScroll() 537 final int dy = mScrollerY.mFinal - mScrollerY.mStart; in isScrollingInDirection() local 539 Math.signum(yvel) == Math.signum(dy); in isScrollingInDirection() 625 float y, dy; 629 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y; 630 if (Math.abs(dy - alpha) < 1E-5) break; 631 if (dy > alpha) y_max = y;
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
D | OverScrollerSGV.java | 361 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument 362 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll() 378 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument 381 mScrollerY.startScroll(startY, dy, duration); in startScroll() 539 final int dy = mScrollerY.mFinal - mScrollerY.mStart; in isScrollingInDirection() local 541 Math.signum(yvel) == Math.signum(dy); in isScrollingInDirection() 627 float y, dy; 631 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y; 632 if (Math.abs(dy - alpha) < 1E-5) break; 633 if (dy > alpha) y_max = y;
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 104 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()
|
D | Blend.cpp | 1133 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/Camera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 104 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()
|
D | Blend.cpp | 1153 double dy = (m_AllSites[ce->second].getVCenter().y - m_AllSites[ce->first].getVCenter().y); in ClipBlendRect() local 1155 double ymid = m_AllSites[ce->first].getVCenter().y + dy/2.0; in ClipBlendRect() 1161 …if ((inter = m_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / d… in ClipBlendRect() 1167 …if ((inter = -m_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / … in ClipBlendRect() 1170 if (dy > epsilon) in ClipBlendRect() 1173 …_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / dy) < brect.top) in ClipBlendRect() 1176 else if (dy < -epsilon) in ClipBlendRect() 1179 …_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / dy) > brect.bot) in ClipBlendRect() 1324 double dy = prevY - firstY; in ComputeBlendParameters() local 1332 m_wb.radius = dy + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | PreviewGestures.java | 246 float dy = 0; in isSwipe() local 250 dy = Math.abs(m.getY() - mDown.getY()); in isSwipe() 254 dy = Math.abs(m.getX() - mDown.getX()); in isSwipe() 258 dy = Math.abs(m.getY() - mDown.getY()); in isSwipe() 262 dy = Math.abs(m.getX() - mDown.getX()); in isSwipe() 266 return (dx < 0 && dy / -dx < 0.6f); in isSwipe() 268 return (dx > 0 && dy / dx < 0.6f); in isSwipe()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | ZoomView.java | 235 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/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 758 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/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
D | GlowPadView.java | 821 float dy = y - mOuterRing.getY(); in updateGlowPosition() local 823 dy *= 1f / mRingScaleFactor; in updateGlowPosition() 825 mPointCloud.glowManager.setY(mOuterRing.getY() + dy); in updateGlowPosition() 1026 private void computeInsets(int dx, int dy) { 1047 mVerticalInset = dy; 1051 mVerticalInset = dy / 2; 1191 private float dist2(float dx, float dy) { in dist2() argument 1192 return dx*dx + dy*dy; in dist2()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | ZoomControlWheel.java | 92 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/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 338 float dy = y - sy; in distance() local 339 return (float) Math.sqrt(dx * dx + dy * dy); in distance() 984 int dy = y + i - off; in blur() local 985 dy = clamp(dy, 0, h - 1); in blur() 986 sum = addPixel(sum, tmp[dy * w + x], k[i]); in blur()
|