/aosp12/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | LinearGradient_Delegate.java | 103 private final float mDy; field in LinearGradient_Delegate.LinearGradientPaint 112 mDy = y1 - y0; in LinearGradientPaint() 113 mDSize2 = mDx * mDx + mDy * mDy; in LinearGradientPaint() 205 pos = (y - mY0) / mDy; in getColor() 206 } else if (mDy == 0) { in getColor() 210 float _x = (mDx*mDy*(y-mY0) + mDy*mDy*mX0 + mDx*mDx*x) / mDSize2; in getColor()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | DistanceClassifier.java | 198 logDebug("Vertical swipe distance: " + Math.abs(distanceVectors.mDy)); in getPassedDistanceThreshold() 200 return Math.abs(distanceVectors.mDy) >= mVerticalSwipeThresholdPx; in getPassedDistanceThreshold() 207 float dY = distanceVectors.mDy + distanceVectors.mVy * mVelocityToDistanceMultiplier; in getPassedFlingThreshold() 216 logDebug("Vertical swipe and fling distance: " + distanceVectors.mDy + ", " in getPassedFlingThreshold() 224 final float mDy; field in DistanceClassifier.DistanceVectors 230 this.mDy = dY; in DistanceVectors() 237 return String.format((Locale) null, "{dx=%f, vx=%f, dy=%f, vy=%f}", mDx, mVx, mDy, mVy); in toString()
|
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
H A D | DragScrollListenerTest.java | 206 private int mDy; field in DragScrollListenerTest.TestScrollActionDelegate 210 mDy = dy; in scrollBy() 222 assertTrue("actual: " + mDy, mDy > 0); in assertScrollPositive() 226 assertTrue("actual: " + mDy, mDy < 0); in assertScrollNegative()
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/helper/ |
H A D | ItemTouchHelper.java | 199 float mDy; field in ItemTouchHelper 734 if (mDy < 0 && topDiff < 0) { in scrollIfNecessary() 736 } else if (mDy > 0) { in scrollIfNecessary() 994 mDx = mDy = 0f; in checkSelectForSwipe() 1065 mDx = mDy = 0f; in startDrag() 1112 mDx = mDy = 0f; in startSwipe() 1136 mDy = y - mInitialTouchY; in updateDxDy() 1144 mDy = Math.max(0, mDy); in updateDxDy() 1147 mDy = Math.min(0, mDy); in updateDxDy() 1167 if (Math.abs(mDx) > Math.abs(mDy)) { in swipeIfNecessary() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/views/ |
H A D | RecyclerViewFastScroller.java | 94 private int mDy = 0; field in RecyclerViewFastScroller 184 mDy = dy; in setRecyclerView() 256 if ((Math.abs(mDy) < mDeltaThreshold && in handleTouchEvent()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
H A D | FloatingTaskView.java | 205 final FloatProp mDy = new FloatProp(0, prop.dY, 0, animDuration, LINEAR); in addAnimation() 214 floatingTaskViewBounds.offset(mDx.value, mDy.value); in addAnimation()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
H A D | QuickstepTransitionManager.java | 708 FloatProp mDy = new FloatProp(0, prop.dY, 0, APP_LAUNCH_DURATION, in getOpeningWindowAnimators() 767 tmpRectF.offset(mDx.value, mDy.value); in getOpeningWindowAnimators() 774 floatingIconBounds.offset(mDx.value, mDy.value); in getOpeningWindowAnimators() 944 final FloatProp mDy = new FloatProp(widgetBackgroundBounds.centerY(), in getOpeningWindowAnimatorsForWidget() 962 mDy.value - mHeight.value / 2f, mDx.value + mWidth.value / 2f, in getOpeningWindowAnimatorsForWidget() 963 mDy.value + mHeight.value / 2f); in getOpeningWindowAnimatorsForWidget() 1409 FloatProp mDy = new FloatProp(0, mClosingWindowTransY, 0, duration, DEACCEL_1_7); in getFallbackClosingWindowAnimators() 1440 matrix.postTranslate(0, mDy.value); in getFallbackClosingWindowAnimators()
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | RecyclerView.java | 10959 private int mDy; field in RecyclerView.SmoothScroller.Action 10999 mDy = dy; in Action() 11039 recyclerView.mViewFlinger.smoothScrollBy(mDx, mDy); in runIfNecessary() 11041 recyclerView.mViewFlinger.smoothScrollBy(mDx, mDy, mDuration); in runIfNecessary() 11045 mDx, mDy, mDuration, mInterpolator); in runIfNecessary() 11079 return mDy; in getDy() 11084 mDy = dy; in setDy() 11121 mDy = dy; in update()
|