Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/src/com/android/launcher3/touch/
DSingleAxisSwipeDetector.java40 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;
151 protected boolean shouldScrollStart(PointF displacement) { in shouldScrollStart() argument
154 Math.abs(mDir.extractOrthogonalDirection(displacement))); in shouldScrollStart()
[all …]
DBothAxesSwipeDetector.java55 protected boolean shouldScrollStart(PointF displacement) { in shouldScrollStart() argument
58 && displacement.y <= -mTouchSlop; in shouldScrollStart()
60 && displacement.x >= mTouchSlop; in shouldScrollStart()
62 && displacement.y >= mTouchSlop; in shouldScrollStart()
64 && displacement.x <= -mTouchSlop; in shouldScrollStart()
74 protected void reportDraggingInternal(PointF displacement, MotionEvent event) { in reportDraggingInternal() argument
75 mListener.onDrag(displacement, event); in reportDraggingInternal()
88 boolean onDrag(PointF displacement, MotionEvent motionEvent); in onDrag() argument
DAbstractStateChangeTouchController.java206 public boolean onDrag(float displacement) { in onDrag() argument
207 float deltaProgress = mProgressMultiplier * (displacement - mDisplacementShift); in onDrag()
211 displacement - mDisplacementShift); in onDrag()
214 mDisplacementShift = displacement; in onDrag()
225 mDisplacementShift = displacement; in onDrag()
245 public boolean onDrag(float displacement, MotionEvent ev) { in onDrag() argument
259 displacement = -displacement; in onDrag()
261 return onDrag(displacement); in onDrag()
DBaseSwipeDetector.java249 protected abstract boolean shouldScrollStart(PointF displacement); in shouldScrollStart() argument
273 protected abstract void reportDraggingInternal(PointF displacement, MotionEvent event); in reportDraggingInternal() argument
/packages/apps/Launcher3/src/com/android/launcher3/util/
DEdgeEffectCompat.java39 public float onPullDistance(float deltaDistance, float displacement) { in onPullDistance() argument
41 return super.onPullDistance(deltaDistance, displacement); in onPullDistance()
43 onPull(deltaDistance, displacement); in onPullDistance()
48 public float onPullDistance(float deltaDistance, float displacement, MotionEvent ev) { in onPullDistance() argument
49 return onPullDistance(deltaDistance, displacement); in onPullDistance()
DOverlayEdgeEffect.java49 public float onPullDistance(float deltaDistance, float displacement) { in onPullDistance() argument
55 MotionEvent.ACTION_MOVE, displacement, 0, 0); in onPullDistance()
57 return onPullDistance(deltaDistance, displacement, mv); in onPullDistance()
64 public float onPullDistance(float deltaDistance, float displacement, MotionEvent ev) { in onPullDistance() argument
/packages/apps/Launcher3/src/com/android/launcher3/views/
DSpringRelativeLayout.java91 protected void absorbPullDeltaDistance(float deltaDistance, float displacement) { in absorbPullDeltaDistance() argument
92 mEdgeGlowBottom.onPull(deltaDistance, displacement); in absorbPullDeltaDistance()
148 public void onPull(float deltaDistance, float displacement) { in onPull() argument
149 mParent.onPull(deltaDistance, displacement); in onPull()
DAbstractSlideInView.java429 public boolean onDrag(float displacement) { in onDrag() argument
432 * (displacement / getShiftRange()); in onDrag()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarStashViaTouchController.kt81 override fun onDrag(displacement: Float): Boolean { in createSwipeListener()
82 lastDisplacement = displacement in createSwipeListener()
83 if (displacement < 0) return false in createSwipeListener()
87 displacement, in createSwipeListener()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DSwipeUpAnimationLogic.java129 public void updateDisplacement(float displacement) { in updateDisplacement() argument
131 displacement = overrideDisplacementForTransientTaskbar(-displacement); in updateDisplacement()
132 mCurrentDisplacement = displacement; in updateDisplacement()
135 if (displacement > mTransitionDragLength * mDragLengthFactor && mTransitionDragLength > 0) { in updateDisplacement()
138 float translation = Math.max(displacement, 0); in updateDisplacement()
152 protected float overrideDisplacementForTransientTaskbar(float displacement) { in overrideDisplacementForTransientTaskbar() argument
153 return displacement; in overrideDisplacementForTransientTaskbar()
DAbsSwipeUpHandler.java2652 protected float overrideDisplacementForTransientTaskbar(float displacement) {
2654 return displacement;
2658 return displacement;
2661 if (displacement < mTaskbarAppWindowThreshold) {
2666 if (displacement < mTaskbarCatchUpThreshold) {
2667 return Utilities.mapToRange(displacement, mTaskbarAppWindowThreshold,
2671 return displacement;
/packages/apps/Contacts/src/com/android/contacts/compat/
DEdgeEffectCompat.java31 public static void onPull(EdgeEffect edgeEffect, float deltaDistance, float displacement) { in onPull() argument
33 edgeEffect.onPull(deltaDistance, displacement); in onPull()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DNavBarToHomeTouchController.java178 public boolean onDrag(float displacement) { in onDrag() argument
180 displacement = Math.min(0, displacement); in onDrag()
181 float progress = Utilities.getProgress(displacement, 0, getShiftRange()); in onDrag()
DNoButtonQuickSwitchTouchController.java295 public boolean onDrag(PointF displacement, MotionEvent ev) { in onDrag() argument
296 float xProgress = Math.max(0, displacement.x) / mXRange; in onDrag()
297 float yProgress = Math.max(0, -displacement.y) / mYRange; in onDrag()
307 mMotionPauseDetector.setDisallowPause(-displacement.y < mMotionPauseMinDisplacement); in onDrag()
DTaskViewTouchController.java290 public boolean onDrag(float displacement) { in onDrag() argument
295 float totalDisplacement = displacement + mDisplacementShift; in onDrag()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DScreenPinnedInputConsumer.java71 float displacement = mTouchDownY - y; in onMotionEvent() local
72 mMotionPauseDetector.setDisallowPause(displacement < mMotionPauseMinDisplacement); in onMotionEvent()
DOtherActivityInputConsumer.java269 float displacement = getDisplacement(ev); in onMotionEvent() local
277 if (mGestureState.isTrackpadGesture() || Math.abs(displacement) in onMotionEvent()
286 float upDist = -displacement; in onMotionEvent()
346 mInteractionHandler.updateDisplacement(displacement - mStartDisplacement); in onMotionEvent()
DProgressDelegateInputConsumer.java137 public boolean onDrag(float displacement) { in onDrag() argument
139 mProgress.updateValue(displacement / -mDisplaySize.y); in onDrag()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java1142 float displacement = mOrientationHandler.getSecondaryValue(ev.getX(), ev.getY()) in updateIsBeingDraggedOnTouchDown() local
1145 mEdgeGlowLeft.onPullDistance(0f, 1f - displacement); in updateIsBeingDraggedOnTouchDown()
1148 mEdgeGlowRight.onPullDistance(0f, displacement, ev); in updateIsBeingDraggedOnTouchDown()
1319 float displacement = (width == 0 || height == 0) ? 0 in onTouchEvent() local
1328 mEdgeGlowRight.onPullDistance(delta / size, displacement, ev)); in onTouchEvent()
1331 mEdgeGlowLeft.onPullDistance(-delta / size, 1 - displacement, ev)); in onTouchEvent()
1349 mEdgeGlowLeft.onPullDistance(-delta / size, 1.f - displacement, ev); in onTouchEvent()
1354 mEdgeGlowRight.onPullDistance(delta / size, displacement, ev); in onTouchEvent()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/
DSeascapePagedViewHandler.kt338 override fun isGoingUp(displacement: Float, isRtl: Boolean): Boolean = in getUpDirection()
339 if (isRtl) displacement > 0 else displacement < 0 in getUpDirection()
DLandscapePagedViewHandler.kt299 override fun isGoingUp(displacement: Float, isRtl: Boolean): Boolean = in getUpDirection()
300 if (isRtl) displacement < 0 else displacement > 0 in getUpDirection()
DRecentsPagedOrientationHandler.kt321 fun isGoingUp(displacement: Float, isRtl: Boolean): Boolean in setSecondary()
DPortraitPagedViewHandler.java313 public boolean isGoingUp(float displacement, boolean isRtl) { in isGoingUp() argument
315 return displacement < 0; in isGoingUp()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DSwipeUpGestureTutorialController.java281 public void setNavBarGestureProgress(@Nullable Float displacement) { in setNavBarGestureProgress() argument
295 if (mRunningWindowAnim == null && displacement != null) { in setNavBarGestureProgress()
296 mTaskViewSwipeUpAnimation.updateDisplacement(displacement); in setNavBarGestureProgress()
DNavBarGestureHandler.java178 default void setNavBarGestureProgress(@Nullable Float displacement) {} in setNavBarGestureProgress() argument

12