Home
last modified time | relevance | path

Searched refs:displacement (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSScrollLayout.java151 public boolean onDrag(float displacement, float velocity) { in onDrag() argument
155 mIsInOverScroll = (!canScrollVertically(1) && displacement < 0) || in onDrag()
156 (!canScrollVertically(-1) && displacement > 0); in onDrag()
167 mFirstDisplacement = displacement; in onDrag()
169 float overscrollY = displacement - mFirstDisplacement; in onDrag()
/frameworks/base/core/java/android/widget/
DEdgeEffect.java341 public void onPull(float deltaDistance, float displacement) { in onPull() argument
348 mTargetDisplacement = displacement; in onPull()
425 public float onPullDistance(float deltaDistance, float displacement) { in onPullDistance() argument
441 onPull(delta, displacement); in onPullDistance()
598 final float displacement = Math.max(0, Math.min(mDisplacement, 1.f)) - 0.5f; in draw() local
599 float translateX = mBounds.width() * displacement / 2; in draw()
821 double displacement = mDistance * mHeight; // in pixels in isAtEquilibrium() local
827 return displacement < 0 || (Math.abs(velocity) < VELOCITY_THRESHOLD in isAtEquilibrium()
828 && displacement < VALUE_THRESHOLD); in isAtEquilibrium()
DHorizontalScrollView.java744 final float displacement = ev.getY(activePointerIndex) / getHeight(); in onTouchEvent() local
750 displacement)); in onTouchEvent()
754 1 - displacement)); in onTouchEvent()
768 1.f - displacement); in onTouchEvent()
774 displacement); in onTouchEvent() local
DScrollView.java810 final float displacement = ev.getX(activePointerIndex) / getWidth(); in onTouchEvent() local
816 1 - displacement)); in onTouchEvent()
820 displacement)); in onTouchEvent()
843 displacement); in onTouchEvent() local
849 1.f - displacement); in onTouchEvent()
/frameworks/proto_logging/stats/enums/stats/location/
Dlocation_enums.proto80 // Bucketized values for small displacement field in
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
DSwipeDetector.java175 boolean onDrag(float displacement, float velocity); in onDrag() argument
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java2107 float displacement = y / getHeight();
2110 consumed = -mLeftEdge.onPullDistance(-pullDistance, 1 - displacement);
2112 consumed = mRightEdge.onPullDistance(pullDistance, displacement);
DRecyclerView.java2943 float displacement = y / getHeight(); in releaseHorizontalGlow() local
2946 consumed = -mLeftGlow.onPullDistance(-pullDistance, 1 - displacement); in releaseHorizontalGlow()
2951 consumed = mRightGlow.onPullDistance(pullDistance, displacement); in releaseHorizontalGlow()
2976 float displacement = x / getWidth(); in releaseVerticalGlow() local
2979 consumed = -mTopGlow.onPullDistance(-pullDistance, displacement); in releaseVerticalGlow()
2984 consumed = mBottomGlow.onPullDistance(pullDistance, 1 - displacement); in releaseVerticalGlow()