Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/
H A DBackAnimationSpecTest.kt4 import android.window.BackEvent
34 backInput = BackInput(progressX = 0f, progressY = 0f, edge = BackEvent.EDGE_LEFT),
39 backInput = BackInput(progressX = 1f, progressY = 0f, edge = BackEvent.EDGE_LEFT),
44 backInput = BackInput(progressX = 1f, progressY = 0f, edge = BackEvent.EDGE_RIGHT),
49 backInput = BackInput(progressX = 1f, progressY = 1f, edge = BackEvent.EDGE_LEFT),
54 backInput = BackInput(progressX = 0f, progressY = 1f, edge = BackEvent.EDGE_LEFT),
59 backInput = BackInput(progressX = 0f, progressY = -1f, edge = BackEvent.EDGE_LEFT),
73 BackEvent(
H A DOnBackAnimationCallbackExtensionTest.kt4 import android.window.BackEvent
17 private val onBackStart: (BackEvent) -> Unit = mock()
41 BackEvent(
45 /* swipeEdge = */ BackEvent.EDGE_LEFT
57 BackEvent(
61 /* swipeEdge = */ BackEvent.EDGE_LEFT
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/back/
H A DOnBackAnimationCallbackExtension.kt22 import android.window.BackEvent
39 onBackStarted: (BackEvent) -> Unit = {},
47 override fun onBackStarted(backEvent: BackEvent) {
52 override fun onBackProgressed(backEvent: BackEvent) {
H A DBackAnimationSpec.kt21 import android.window.BackEvent
30 backEvent: BackEvent,
60 val direction = if (backEvent.swipeEdge == BackEvent.EDGE_LEFT) 1 else -1
/aosp14/frameworks/base/core/tests/coretests/src/android/window/
H A DWindowOnBackInvokedDispatcherTest.java87 /* swipeEdge = */ BackEvent.EDGE_LEFT,
257 verify(mCallback1, times(1)).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_samePriority()
258 verify(mCallback2, never()).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_samePriority()
264 verify(mCallback1, never()).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_samePriority()
265 verify(mCallback2, times(1)).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_samePriority()
281 verify(mCallback1).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_differentPriority()
321 verify(mCallback2).onBackStarted(any(BackEvent.class)); in propagatesTopCallback_sameInstanceAddedTwice()
333 verify(mCallback1).onBackStarted(any(BackEvent.class)); in onUnregisterWhileBackInProgress_callOnBackCancelled()
350 verify(mCallback1).onBackStarted(any(BackEvent.class)); in onBackInvoked_calledAfterOnBackStarted()
368 verify(mCallback1).onBackStarted(any(BackEvent.class)); in onDetachFromWindow_cancelCallbackAndIgnoreOnBackInvoked()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/
H A DBackProgressAnimatorTest.java26 import android.window.BackEvent;
44 private BackEvent mReceivedBackEvent;
56 /* swipeEdge = */ BackEvent.EDGE_LEFT, in backMotionEventFrom()
104 private void onGestureProgress(BackEvent backEvent) { in onGestureProgress()
H A DTouchTrackerTest.kt19 import android.window.BackEvent
40 linearTracker.setGestureStartLocation(INITIAL_X_LEFT_EDGE, 0f, BackEvent.EDGE_LEFT)
48 linearTracker.setGestureStartLocation(INITIAL_X_LEFT_EDGE, 0f, BackEvent.EDGE_LEFT)
95 linearTracker.setGestureStartLocation(INITIAL_X_RIGHT_EDGE, 0f, BackEvent.EDGE_RIGHT)
143 nonLinearTracker.setGestureStartLocation(INITIAL_X_LEFT_EDGE, 0f, BackEvent.EDGE_LEFT)
H A DBackAnimationControllerTest.java53 import android.window.BackEvent;
527 /* swipeEdge */ BackEvent.EDGE_LEFT); in doMotionEvent()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
H A DTouchTracker.java24 import android.window.BackEvent;
61 if (mCancelled && ((touchX > mLatestTouchX && mSwipeEdge == BackEvent.EDGE_LEFT) in update()
62 || touchX < mLatestTouchX && mSwipeEdge == BackEvent.EDGE_RIGHT)) { in update()
92 mSwipeEdge = BackEvent.EDGE_LEFT; in reset()
H A DBackAnimation.java21 import android.window.BackEvent;
49 @BackEvent.SwipeEdge int swipeEdge); in onBackMotion()
H A DCrossTaskBackAnimation.java21 import static android.window.BackEvent.EDGE_RIGHT;
41 import android.window.BackEvent;
148 private void updateGestureBackProgress(float progress, BackEvent event) { in updateGestureBackProgress()
278 private void onGestureProgress(@NonNull BackEvent backEvent) { in onGestureProgress()
H A DBackAnimationController.java54 import android.window.BackEvent;
287 @BackEvent.SwipeEdge int swipeEdge in onBackMotion()
379 @BackEvent.SwipeEdge int swipeEdge) { in onMotionEvent()
408 private void onGestureStarted(float touchX, float touchY, @BackEvent.SwipeEdge int swipeEdge) { in onGestureStarted()
H A DCustomizeActivityAnimation.java44 import android.window.BackEvent;
216 void onGestureProgress(@NonNull BackEvent backEvent) { in onGestureProgress()
H A DCrossActivityAnimation.java43 import android.window.BackEvent;
234 private void onGestureProgress(@NonNull BackEvent backEvent) { in onGestureProgress()
/aosp14/frameworks/base/core/java/android/window/
H A DOnBackAnimationCallback.java49 default void onBackStarted(@NonNull BackEvent backEvent) {} in onBackStarted()
58 default void onBackProgressed(@NonNull BackEvent backEvent) { } in onBackProgressed()
H A DBackMotionEvent.java40 @BackEvent.SwipeEdge
67 @BackEvent.SwipeEdge int swipeEdge, in BackMotionEvent()
162 @BackEvent.SwipeEdge
H A DBackEvent.java30 public final class BackEvent { class
59 public BackEvent(float touchX, float touchY, float progress, @SwipeEdge int swipeEdge) { in BackEvent() method in BackEvent
H A DBackProgressAnimator.java74 void onProgressUpdate(BackEvent event); in onProgressUpdate()
162 new BackEvent(mLastBackEvent.getTouchX(), mLastBackEvent.getTouchY(), in updateProgressValue()
H A DWindowOnBackInvokedDispatcher.java330 callback.onBackStarted(new BackEvent( in onBackStarted()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarKeyguardViewManagerTest.java49 import android.window.BackEvent;
625 BackEvent event = new BackEvent(0, 0, 0, BackEvent.EDGE_LEFT); in testPredictiveBackCallback_noBackAnimationForFullScreenBouncer()
642 BackEvent event = new BackEvent(0, 0, 0, BackEvent.EDGE_LEFT); in testPredictiveBackCallback_forwardsBackDispatches()
H A DCentralSurfacesImplTest.java78 import android.window.BackEvent;
856 BackEvent fakeSwipeInFromLeftEdge = new BackEvent(20.0f, 100.0f, 1.0f, BackEvent.EDGE_LEFT); in testPredictiveBackAnimation_progressMaxScalesPanel()
877 BackEvent fakeSwipeInFromLeftEdge = new BackEvent(20.0f, 10.0f, 0.0f, BackEvent.EDGE_LEFT); in testPredictiveBackAnimation_progressMinScalesPanel()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
H A DKeyguardSecurityContainerTest.java53 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarKeyguardViewManager.java40 import android.window.BackEvent;
225 public void onBackProgressed(BackEvent event) {
239 public void onBackStarted(BackEvent event) {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
H A DEdgeBackGestureHandler.java66 import android.window.BackEvent;
1162 /* swipeEdge = */ mIsOnLeftEdge ? BackEvent.EDGE_LEFT : BackEvent.EDGE_RIGHT); in dispatchToBackAnimation()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardSecurityContainer.java79 import android.window.BackEvent;
267 public void onBackProgressed(BackEvent event) {

12