/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | SingleAxisSwipeDetector.java | 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; 151 protected boolean shouldScrollStart(PointF displacement) { in shouldScrollStart() argument 154 Math.abs(mDir.extractOrthogonalDirection(displacement))); in shouldScrollStart() [all …]
|
D | BothAxesSwipeDetector.java | 55 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
|
D | AbstractStateChangeTouchController.java | 206 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()
|
D | BaseSwipeDetector.java | 249 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/ |
D | EdgeEffectCompat.java | 39 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()
|
D | OverlayEdgeEffect.java | 49 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/ |
D | SpringRelativeLayout.java | 91 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()
|
D | AbstractSlideInView.java | 429 public boolean onDrag(float displacement) { in onDrag() argument 432 * (displacement / getShiftRange()); in onDrag()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | TaskbarStashViaTouchController.kt | 81 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/ |
D | SwipeUpAnimationLogic.java | 129 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()
|
D | AbsSwipeUpHandler.java | 2652 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/ |
D | EdgeEffectCompat.java | 31 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/ |
D | NavBarToHomeTouchController.java | 178 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()
|
D | NoButtonQuickSwitchTouchController.java | 295 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()
|
D | TaskViewTouchController.java | 290 public boolean onDrag(float displacement) { in onDrag() argument 295 float totalDisplacement = displacement + mDisplacementShift; in onDrag()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | ScreenPinnedInputConsumer.java | 71 float displacement = mTouchDownY - y; in onMotionEvent() local 72 mMotionPauseDetector.setDisallowPause(displacement < mMotionPauseMinDisplacement); in onMotionEvent()
|
D | OtherActivityInputConsumer.java | 269 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()
|
D | ProgressDelegateInputConsumer.java | 137 public boolean onDrag(float displacement) { in onDrag() argument 139 mProgress.updateValue(displacement / -mDisplaySize.y); in onDrag()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | PagedView.java | 1142 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/ |
D | SeascapePagedViewHandler.kt | 338 override fun isGoingUp(displacement: Float, isRtl: Boolean): Boolean = in getUpDirection() 339 if (isRtl) displacement > 0 else displacement < 0 in getUpDirection()
|
D | LandscapePagedViewHandler.kt | 299 override fun isGoingUp(displacement: Float, isRtl: Boolean): Boolean = in getUpDirection() 300 if (isRtl) displacement < 0 else displacement > 0 in getUpDirection()
|
D | RecentsPagedOrientationHandler.kt | 321 fun isGoingUp(displacement: Float, isRtl: Boolean): Boolean in setSecondary()
|
D | PortraitPagedViewHandler.java | 313 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/ |
D | SwipeUpGestureTutorialController.java | 281 public void setNavBarGestureProgress(@Nullable Float displacement) { in setNavBarGestureProgress() argument 295 if (mRunningWindowAnim == null && displacement != null) { in setNavBarGestureProgress() 296 mTaskViewSwipeUpAnimation.updateDisplacement(displacement); in setNavBarGestureProgress()
|
D | NavBarGestureHandler.java | 178 default void setNavBarGestureProgress(@Nullable Float displacement) {} in setNavBarGestureProgress() argument
|