Home
last modified time | relevance | path

Searched refs:backEvent (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/
DBackProgressAnimatorTest.java67 final BackMotionEvent backEvent = backMotionEventFrom(0, 0); in setUp() local
71 mProgressAnimator.onBackStarted(backEvent, this::onGestureProgress); in setUp()
77 final BackMotionEvent backEvent = backMotionEventFrom(100, mTargetProgress); in testBackProgressed() local
79 () -> mProgressAnimator.onBackProgressed(backEvent)); in testBackProgressed()
90 final BackMotionEvent backEvent = backMotionEventFrom(100, mTargetProgress); in testBackCancelled() local
92 () -> mProgressAnimator.onBackProgressed(backEvent)); in testBackCancelled()
111 final BackMotionEvent backEvent = backMotionEventFrom(100, mTargetProgress); in testBackInvoked() local
113 () -> mProgressAnimator.onBackProgressed(backEvent)); in testBackInvoked()
128 final BackMotionEvent backEvent = backMotionEventFrom(100, mTargetProgress); in testResetCallsCancelCallbackImmediately() local
130 () -> mProgressAnimator.onBackProgressed(backEvent)); in testResetCallsCancelCallbackImmediately()
[all …]
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/back/
DOnBackAnimationCallbackExtension.kt47 override fun onBackStarted(backEvent: BackEvent) { in onBackStarted()
48 initialY = backEvent.touchY in onBackStarted()
49 onBackStarted(backEvent) in onBackStarted()
52 override fun onBackProgressed(backEvent: BackEvent) { in onBackProgressed()
53 val progressY = (backEvent.touchY - initialY) / displayMetrics.heightPixels in onBackProgressed()
56 backEvent = backEvent, in onBackProgressed()
DBackAnimationSpec.kt30 backEvent: BackEvent, in <lambda>()
48 return BackAnimationSpec { backEvent, progressY, result -> in createFloatingSurfaceAnimationSpec() method
61 val direction = if (backEvent.swipeEdge == BackEvent.EDGE_LEFT) 1 else -1 in createFloatingSurfaceAnimationSpec()
62 val progressX = backEvent.progress in createFloatingSurfaceAnimationSpec()
DBottomsheetBackAnimationSpec.kt31 return BackAnimationSpec { backEvent, _, result -> in <lambda>() method
35 val progressX = backEvent.progress in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/
DOnBackAnimationCallbackExtensionTest.kt43 val backEvent = in onBackProgressed_shouldInvoke_onBackProgress() constant
50 onBackAnimationCallback.onBackStarted(backEvent) in onBackProgressed_shouldInvoke_onBackProgress()
52 onBackAnimationCallback.onBackProgressed(backEvent) in onBackProgressed_shouldInvoke_onBackProgress()
66 val backEvent = in onBackStarted_shouldInvoke_onBackStart() constant
74 onBackAnimationCallback.onBackStarted(backEvent) in onBackStarted_shouldInvoke_onBackStart()
76 verify(onBackStart).invoke(backEvent) in onBackStarted_shouldInvoke_onBackStart()
DBackAnimationSpecTest.kt126 backEvent = in assertBackTransformation()
/frameworks/base/core/java/android/window/
DImeOnBackInvokedDispatcher.java222 public void onBackStarted(@NonNull BackEvent backEvent) { in onBackStarted() argument
225 new BackMotionEvent(backEvent.getTouchX(), backEvent.getTouchY(), in onBackStarted()
226 backEvent.getProgress(), 0f, 0f, false, backEvent.getSwipeEdge(), in onBackStarted()
234 public void onBackProgressed(@NonNull BackEvent backEvent) { in onBackProgressed() argument
237 new BackMotionEvent(backEvent.getTouchX(), backEvent.getTouchY(), in onBackProgressed()
238 backEvent.getProgress(), 0f, 0f, false, backEvent.getSwipeEdge(), in onBackProgressed()
DOnBackAnimationCallback.java49 default void onBackStarted(@NonNull BackEvent backEvent) {} in onBackStarted() argument
58 default void onBackProgressed(@NonNull BackEvent backEvent) { } in onBackProgressed() argument
DWindowOnBackInvokedDispatcher.java128 final BackMotionEvent backEvent = mTouchTracker.createProgressEvent(); in onMotionEvent() local
129 mProgressAnimator.onBackProgressed(backEvent); in onMotionEvent()
415 public void onBackStarted(BackMotionEvent backEvent) { in onBackStarted() argument
428 backEvent.getTouchX(), backEvent.getTouchY(), backEvent.getSwipeEdge()); in onBackStarted()
431 callback.onBackStarted(BackEvent.fromBackMotionEvent(backEvent)); in onBackStarted()
432 mProgressAnimator.onBackStarted(backEvent, callback::onBackProgressed); in onBackStarted()
438 public void onBackProgressed(BackMotionEvent backEvent) { in onBackProgressed() argument
444 mProgressAnimator.onBackProgressed(backEvent); in onBackProgressed()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DCrossTaskBackAnimation.java294 private void onGestureProgress(@NonNull BackEvent backEvent) {
298 float progress = backEvent.getProgress();
299 mTouchPos.set(backEvent.getTouchX(), backEvent.getTouchY());
300 updateGestureBackProgress(getInterpolatedProgress(progress), backEvent);
344 public void onBackStarted(BackMotionEvent backEvent) { in onBackStarted() argument
350 mIsRightEdge = backEvent.getSwipeEdge() == EDGE_RIGHT; in onBackStarted()
351 mInitialTouchPos.set(backEvent.getTouchX(), backEvent.getTouchY()); in onBackStarted()
352 mProgressAnimator.onBackStarted(backEvent, in onBackStarted()
357 public void onBackProgressed(@NonNull BackMotionEvent backEvent) { in onBackProgressed() argument
358 mProgressAnimator.onBackProgressed(backEvent); in onBackProgressed()
DCrossActivityBackAnimation.kt214 private fun onGestureProgress(backEvent: BackEvent) { in <lambda>()
215 val progress = gestureInterpolator.getInterpolation(backEvent.progress) in <lambda>()
218 val yOffset = getYOffset(currentClosingRect, backEvent.touchY) in <lambda>()
493 progressAnimator.onBackStarted(backMotionEvent) { backEvent: BackEvent -> in <lambda>() method
494 onGestureProgress(backEvent) in <lambda>()
498 override fun onBackProgressed(backEvent: BackMotionEvent) { in <lambda>()
499 triggerBack = backEvent.triggerBack in <lambda>()
500 progressAnimator.onBackProgressed(backEvent) in <lambda>()
DBackAnimationController.java574 final BackMotionEvent backEvent = mCurrentTracker.createProgressEvent(); in onMove()
575 dispatchOnBackProgressed(mActiveCallback, backEvent); in onMove()
617 BackMotionEvent backEvent) { in tryDispatchOnBackStarted() argument
623 dispatchOnBackStarted(callback, backEvent); in tryDispatchOnBackStarted()
628 BackMotionEvent backEvent) { in dispatchOnBackStarted() argument
633 callback.onBackStarted(backEvent); in dispatchOnBackStarted()
667 BackMotionEvent backEvent) { in dispatchOnBackProgressed() argument
673 callback.onBackProgressed(backEvent); in dispatchOnBackProgressed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/view/
DShortcutHelperActivity.kt161 override fun handleOnBackStarted(backEvent: BackEventCompat) { in <lambda>()
162 bottomSheetBehavior.startBackProgress(backEvent) in <lambda>()
165 override fun handleOnBackProgressed(backEvent: BackEventCompat) { in <lambda>()
166 bottomSheetBehavior.updateBackProgress(backEvent) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/back/domain/interactor/
DBackActionInteractor.kt66 override fun onBackProgressed(backEvent: BackEvent) { in <lambda>()
68 shadeBackActionInteractor.onBackProgressed(backEvent.progress) in <lambda>()
/frameworks/base/core/java/android/view/
DImeBackAnimationController.java74 public void onBackStarted(@NonNull BackEvent backEvent) { in onBackStarted() argument
126 public void onBackProgressed(@NonNull BackEvent backEvent) { in onBackProgressed() argument
127 mLastProgress = backEvent.getProgress(); in onBackProgressed()