Searched refs:displacement (Results 1 – 25 of 26) sorted by relevance
12
40 boolean isPositive(float displacement) {42 return displacement < 0;46 boolean isNegative(float displacement) {48 return displacement > 0;71 boolean isPositive(float displacement) {73 return displacement > 0;77 boolean isNegative(float displacement) {79 return displacement < 0;149 protected boolean shouldScrollStart(PointF displacement) { in shouldScrollStart() argument152 Math.abs(mDir.extractOrthogonalDirection(displacement))); in shouldScrollStart()[all …]
62 protected boolean shouldScrollStart(PointF displacement) { in shouldScrollStart() argument65 && displacement.y <= -mTouchSlop; in shouldScrollStart()67 && displacement.x >= mTouchSlop; in shouldScrollStart()69 && displacement.y >= mTouchSlop; in shouldScrollStart()71 && displacement.x <= -mTouchSlop; in shouldScrollStart()81 protected void reportDraggingInternal(PointF displacement, MotionEvent event) { in reportDraggingInternal() argument82 mListener.onDrag(displacement, event); in reportDraggingInternal()95 boolean onDrag(PointF displacement, MotionEvent motionEvent); in onDrag() argument
200 public boolean onDrag(float displacement) { in onDrag() argument201 float deltaProgress = mProgressMultiplier * (displacement - mDisplacementShift); in onDrag()205 displacement - mDisplacementShift); in onDrag()208 mDisplacementShift = displacement; in onDrag()215 mDisplacementShift = displacement; in onDrag()235 public boolean onDrag(float displacement, MotionEvent ev) { in onDrag() argument246 return onDrag(displacement); in onDrag()
131 public boolean isGoingUp(float displacement, boolean isRtl) { in isGoingUp() argument132 return isRtl ? displacement > 0 : displacement < 0; in isGoingUp()
317 public boolean isGoingUp(float displacement, boolean isRtl) { in isGoingUp() argument318 return isRtl ? displacement < 0 : displacement > 0; in isGoingUp()
242 protected abstract boolean shouldScrollStart(PointF displacement); in shouldScrollStart() argument266 protected abstract void reportDraggingInternal(PointF displacement, MotionEvent event); in reportDraggingInternal() argument
337 public boolean isGoingUp(float displacement, boolean isRtl) { in isGoingUp() argument339 return displacement < 0; in isGoingUp()
152 boolean isGoingUp(float displacement, boolean isRtl); in isGoingUp() argument
91 protected void absorbPullDeltaDistance(float deltaDistance, float displacement) { in absorbPullDeltaDistance() argument92 mEdgeGlowBottom.onPull(deltaDistance, displacement); in absorbPullDeltaDistance()148 public void onPull(float deltaDistance, float displacement) { in onPull() argument149 mParent.onPull(deltaDistance, displacement); in onPull()
161 public boolean onDrag(float displacement) { in onDrag() argument163 displacement = Utilities.boundToRange(displacement, 0, range); in onDrag()164 setTranslationShift(displacement / range); in onDrag()
38 public float onPullDistance(float deltaDistance, float displacement) { in onPullDistance() argument40 return super.onPullDistance(deltaDistance, displacement); in onPullDistance()42 onPull(deltaDistance, displacement); in onPullDistance()
48 public float onPullDistance(float deltaDistance, float displacement) { in onPullDistance() argument
107 public void updateDisplacement(float displacement) { in updateDisplacement() argument109 displacement = -displacement; in updateDisplacement()111 if (displacement > mTransitionDragLength * mDragLengthFactor && mTransitionDragLength > 0) { in updateDisplacement()114 float translation = Math.max(displacement, 0); in updateDisplacement()
287 float displacement = getDisplacement(ev); in onMotionEvent() local295 if (Math.abs(displacement) > mTouchSlop) { in onMotionEvent()297 mStartDisplacement = Math.min(displacement, -mTouchSlop); in onMotionEvent()303 float upDist = -displacement; in onMotionEvent()335 mStartDisplacement = Math.min(displacement, -mTouchSlop); in onMotionEvent()345 mInteractionHandler.updateDisplacement(displacement - mStartDisplacement); in onMotionEvent()
71 float displacement = mTouchDownY - y; in onMotionEvent() local72 mMotionPauseDetector.setDisallowPause(displacement < mMotionPauseMinDisplacement); in onMotionEvent()
176 public boolean onDrag(float displacement) { in onDrag() argument178 displacement = Math.min(0, displacement); in onDrag()179 float progress = Utilities.getProgress(displacement, 0, getShiftRange()); in onDrag()
269 public boolean onDrag(PointF displacement, MotionEvent ev) { in onDrag() argument270 float xProgress = Math.max(0, displacement.x) / mXRange; in onDrag()271 float yProgress = Math.max(0, -displacement.y) / mYRange; in onDrag()281 mMotionPauseDetector.setDisallowPause(-displacement.y < mMotionPauseMinDisplacement); in onDrag()
277 public boolean onDrag(float displacement) { in onDrag() argument279 float totalDisplacement = displacement + mDisplacementShift; in onDrag()
31 public static void onPull(EdgeEffect edgeEffect, float deltaDistance, float displacement) { in onPull() argument33 edgeEffect.onPull(deltaDistance, displacement); in onPull()
216 public void setNavBarGestureProgress(@Nullable Float displacement) { in setNavBarGestureProgress() argument220 if (displacement != null) { in setNavBarGestureProgress()233 if (mRunningWindowAnim == null && displacement != null) { in setNavBarGestureProgress()234 mTaskViewSwipeUpAnimation.updateDisplacement(displacement); in setNavBarGestureProgress()
324 default void setNavBarGestureProgress(@Nullable Float displacement) {} in setNavBarGestureProgress() argument
1004 float displacement = mOrientationHandler.getSecondaryValue(ev.getX(), ev.getY()) in updateIsBeingDraggedOnTouchDown() local1007 mEdgeGlowLeft.onPullDistance(0f, 1f - displacement); in updateIsBeingDraggedOnTouchDown()1010 mEdgeGlowRight.onPullDistance(0f, displacement); in updateIsBeingDraggedOnTouchDown()1180 final float displacement = mOrientationHandler.getSecondaryValue(dx, dy) in onTouchEvent() local1187 consumed = size * mEdgeGlowRight.onPullDistance(delta / size, displacement); in onTouchEvent()1190 -delta / size, 1 - displacement); in onTouchEvent()1209 mEdgeGlowLeft.onPullDistance(-delta / size, 1.f - displacement); in onTouchEvent()1214 mEdgeGlowRight.onPullDistance(delta / size, displacement); in onTouchEvent()
681 public void onPull(float deltaDistance, float displacement) { in onPull() argument682 absorbPullDeltaDistance(PULL_MULTIPLIER * deltaDistance, PULL_MULTIPLIER * displacement); in onPull()
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...