Home
last modified time | relevance | path

Searched refs:BackEvent (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/
DBackAnimationSpecTest.kt4 import android.window.BackEvent
36 backInput = BackInput(progressX = 0f, progressY = 0f, edge = BackEvent.EDGE_LEFT), in sysUi_floatingSystemSurfaces_animationValues()
41 backInput = BackInput(progressX = 1f, progressY = 0f, edge = BackEvent.EDGE_LEFT), in sysUi_floatingSystemSurfaces_animationValues()
46 backInput = BackInput(progressX = 1f, progressY = 0f, edge = BackEvent.EDGE_RIGHT), in sysUi_floatingSystemSurfaces_animationValues()
51 backInput = BackInput(progressX = 1f, progressY = 1f, edge = BackEvent.EDGE_LEFT), in sysUi_floatingSystemSurfaces_animationValues()
56 backInput = BackInput(progressX = 0f, progressY = 1f, edge = BackEvent.EDGE_LEFT), in sysUi_floatingSystemSurfaces_animationValues()
61 backInput = BackInput(progressX = 0f, progressY = -1f, edge = BackEvent.EDGE_LEFT), in sysUi_floatingSystemSurfaces_animationValues()
74 backInput = BackInput(progressX = 0f, progressY = 0f, edge = BackEvent.EDGE_LEFT), in sysUi_bottomsheet_animationValues()
85 backInput = BackInput(progressX = 1f, progressY = 0f, edge = BackEvent.EDGE_LEFT), in sysUi_bottomsheet_animationValues()
96 backInput = BackInput(progressX = 1f, progressY = 0f, edge = BackEvent.EDGE_RIGHT), in sysUi_bottomsheet_animationValues()
[all …]
DOnBackAnimationCallbackExtensionTest.kt4 import android.window.BackEvent
20 private val onBackStart: (BackEvent) -> Unit = mock()
44 BackEvent( in onBackProgressed_shouldInvoke_onBackProgress()
48 /* swipeEdge = */ BackEvent.EDGE_LEFT in onBackProgressed_shouldInvoke_onBackProgress()
67 BackEvent( in onBackStarted_shouldInvoke_onBackStart()
71 /* swipeEdge = */ BackEvent.EDGE_LEFT in onBackStarted_shouldInvoke_onBackStart()
/frameworks/base/core/tests/coretests/src/android/view/
DImeBackAnimationControllerTest.java22 import static android.window.BackEvent.EDGE_LEFT;
45 import android.window.BackEvent;
130 mBackAnimationController.onBackStarted(new BackEvent(0f, 0f, 0f, EDGE_LEFT)); in testAdjustResizeWithAppWindowInsetsListenerPlaysAnim()
143 mBackAnimationController.onBackStarted(new BackEvent(0f, 0f, 0f, EDGE_LEFT)); in testAdjustResizeWithEdgeToEdgePlaysAnim()
154 mBackAnimationController.onBackStarted(new BackEvent(0f, 0f, 0f, EDGE_LEFT)); in testAdjustResizeWithoutAppWindowInsetsListenerNotPlayingAnim()
156 mBackAnimationController.onBackProgressed(new BackEvent(100f, 0f, 0.5f, EDGE_LEFT)); in testAdjustResizeWithoutAppWindowInsetsListenerNotPlayingAnim()
181 mBackAnimationController.onBackProgressed(new BackEvent(100f, 0f, progress, EDGE_LEFT)); in testAdjustPanScrollsViewRoot()
202 mBackAnimationController.onBackProgressed(new BackEvent(100f, 0f, 0.5f, EDGE_LEFT)); in testNewGestureAfterCancelSeamlessTakeover()
212 mBackAnimationController.onBackStarted(new BackEvent(0f, 0f, 0f, EDGE_LEFT)); in testNewGestureAfterCancelSeamlessTakeover()
232 mBackAnimationController.onBackProgressed(new BackEvent(100f, 0f, progress, EDGE_LEFT)); in testImeInsetsManipulationCurve()
[all …]
/frameworks/base/core/java/android/window/
DBackEvent.java30 public final class BackEvent { class
52 public static BackEvent fromBackMotionEvent(BackMotionEvent backMotionEvent) { in fromBackMotionEvent()
53 return new BackEvent(backMotionEvent.getTouchX(), backMotionEvent.getTouchY(), in fromBackMotionEvent()
65 public BackEvent(float touchX, float touchY, float progress, @SwipeEdge int swipeEdge) { in BackEvent() method in BackEvent
DBackTouchTracker.java66 if ((touchX < mStartThresholdX && mSwipeEdge == BackEvent.EDGE_LEFT) in update()
67 || (touchX > mStartThresholdX && mSwipeEdge == BackEvent.EDGE_RIGHT)) { in update()
69 if ((mSwipeEdge == BackEvent.EDGE_LEFT && mStartThresholdX < mInitTouchX) in update()
70 || (mSwipeEdge == BackEvent.EDGE_RIGHT && mStartThresholdX > mInitTouchX)) { in update()
149 mSwipeEdge = BackEvent.EDGE_LEFT; in reset()
187 if (mSwipeEdge == BackEvent.EDGE_LEFT) { in getProgress()
DOnBackAnimationCallback.java49 default void onBackStarted(@NonNull BackEvent backEvent) {} in onBackStarted()
58 default void onBackProgressed(@NonNull BackEvent backEvent) { } in onBackProgressed()
DBackMotionEvent.java41 @BackEvent.SwipeEdge
70 @BackEvent.SwipeEdge int swipeEdge, in BackMotionEvent()
177 @BackEvent.SwipeEdge
DImeOnBackInvokedDispatcher.java222 public void onBackStarted(@NonNull BackEvent backEvent) { in onBackStarted()
234 public void onBackProgressed(@NonNull BackEvent backEvent) { in onBackProgressed()
320 BackEvent.fromBackMotionEvent(backMotionEvent))); in onBackStarted()
326 BackEvent.fromBackMotionEvent(backMotionEvent))); in onBackProgressed()
DBackProgressAnimator.java99 void onProgressUpdate(BackEvent event); in onProgressUpdate()
230 new BackEvent(mLastBackEvent.getTouchX(), mLastBackEvent.getTouchY(), in updateProgressValue()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/back/
DOnBackAnimationCallbackExtension.kt22 import android.window.BackEvent
39 onBackStarted: (BackEvent) -> Unit = {}, in onBackAnimationCallbackFrom()
47 override fun onBackStarted(backEvent: BackEvent) { in onBackStarted()
52 override fun onBackProgressed(backEvent: BackEvent) { in onBackProgressed()
DBackAnimationSpec.kt21 import android.window.BackEvent in <lambda>()
30 backEvent: BackEvent, in <lambda>()
61 val direction = if (backEvent.swipeEdge == BackEvent.EDGE_LEFT) 1 else -1 in createFloatingSurfaceAnimationSpec()
/frameworks/base/core/tests/coretests/src/android/window/
DWindowOnBackInvokedDispatcherTest.java102 /* swipeEdge = */ BackEvent.EDGE_LEFT,
274 verify(mCallback1, times(1)).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_samePriority()
275 verify(mCallback2, never()).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_samePriority()
281 verify(mCallback1, never()).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_samePriority()
282 verify(mCallback2, times(1)).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_samePriority()
298 verify(mCallback1).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_differentPriority()
338 verify(mCallback2).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_sameInstanceAddedTwice()
350 verify(mCallback1).onBackStarted(any(BackEvent.class)); in onUnregisterWhileBackInProgress_callOnBackCancelled()
367 verify(mCallback1).onBackStarted(any(BackEvent.class)); in onBackInvoked_calledAfterOnBackStarted()
384 verify(mCallback1).onBackStarted(any(BackEvent.class)); in onBackCancelled_calledBeforeOnBackStartedOfNewGesture()
[all …]
DBackTouchTrackerTest.kt39 linearTracker.setGestureStartLocation(INITIAL_X_LEFT_EDGE, 0f, BackEvent.EDGE_LEFT) in generatesProgress_onStart()
47 linearTracker.setGestureStartLocation(INITIAL_X_LEFT_EDGE, 0f, BackEvent.EDGE_LEFT) in generatesProgress_leftEdge()
94 linearTracker.setGestureStartLocation(INITIAL_X_RIGHT_EDGE, 0f, BackEvent.EDGE_RIGHT) in generatesProgress_rightEdge()
142 nonLinearTracker.setGestureStartLocation(INITIAL_X_LEFT_EDGE, 0f, BackEvent.EDGE_LEFT) in generatesNonLinearProgress_leftEdge()
175 linearTracker.setGestureStartLocation(INITIAL_X_LEFT_EDGE, 0f, BackEvent.EDGE_LEFT) in restartingGesture_resetsInitialTouchX_leftEdge()
207 linearTracker.setGestureStartLocation(INITIAL_X_RIGHT_EDGE, 0f, BackEvent.EDGE_RIGHT) in restartingGesture_resetsInitialTouchX_rightEdge()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DBackAnimation.java21 import android.window.BackEvent;
49 @BackEvent.SwipeEdge int swipeEdge); in onBackMotion()
DDefaultCrossActivityBackAnimation.kt20 import android.window.BackEvent
53 if (swipeEdge != BackEvent.EDGE_RIGHT) { in preparePreCommitClosingRectMovement()
DCrossTaskBackAnimation.java21 import static android.window.BackEvent.EDGE_RIGHT;
45 import android.window.BackEvent;
166 private void updateGestureBackProgress(float progress, BackEvent event) { in updateGestureBackProgress()
294 private void onGestureProgress(@NonNull BackEvent backEvent) {
DCustomCrossActivityBackAnimation.kt25 import android.window.BackEvent in <lambda>()
80 val offset = if (swipeEdge != BackEvent.EDGE_RIGHT) { in <lambda>()
DCrossActivityBackAnimation.kt40 import android.window.BackEvent in <lambda>()
126 abstract fun preparePreCommitClosingRectMovement(@BackEvent.SwipeEdge swipeEdge: Int) in <lambda>()
214 private fun onGestureProgress(backEvent: BackEvent) { in <lambda>()
493 progressAnimator.onBackStarted(backMotionEvent) { backEvent: BackEvent -> in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/
DBackProgressAnimatorTest.java28 import android.window.BackEvent;
47 private BackEvent mReceivedBackEvent;
60 /* swipeEdge = */ BackEvent.EDGE_LEFT, in backMotionEventFrom()
180 private void onGestureProgress(BackEvent backEvent) { in onGestureProgress()
DCustomCrossActivityBackAnimationTest.kt32 import android.window.BackEvent
225 /* swipeEdge = */ BackEvent.EDGE_LEFT, in backMotionEventFrom()
/frameworks/base/packages/SystemUI/src/com/android/systemui/back/domain/interactor/
DBackActionInteractor.kt19 import android.window.BackEvent in <lambda>()
66 override fun onBackProgressed(backEvent: BackEvent) { in <lambda>()
/frameworks/base/core/java/android/view/
DImeBackAnimationController.java36 import android.window.BackEvent;
74 public void onBackStarted(@NonNull BackEvent backEvent) { in onBackStarted()
126 public void onBackProgressed(@NonNull BackEvent backEvent) { in onBackProgressed()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/back/domain/interactor/
DBackActionInteractorTest.kt23 import android.window.BackEvent
24 import android.window.BackEvent.EDGE_LEFT
320 private fun createBackEvent(progress: Float): BackEvent =
321 BackEvent(/* touchX= */ 0f, /* touchY= */ 0f, progress, /* swipeEdge= */ EDGE_LEFT)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarKeyguardViewManagerTest.java51 import android.window.BackEvent;
644 BackEvent event = new BackEvent(0, 0, 0, BackEvent.EDGE_LEFT); in testPredictiveBackCallback_noBackAnimationForFullScreenBouncer()
662 BackEvent event = new BackEvent(0, 0, 0, BackEvent.EDGE_LEFT); in testPredictiveBackCallback_forwardsBackDispatches()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/keyguard/
DKeyguardSecurityContainerTest.java52 import android.window.BackEvent;
411 private BackEvent createBackEvent(float touchX, float progress) { in createBackEvent()
412 return new BackEvent(0, 0, progress, BackEvent.EDGE_LEFT); in createBackEvent()

12