/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/ |
H A D | BackAnimationSpecTest.kt | 4 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 D | OnBackAnimationCallbackExtensionTest.kt | 4 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 D | OnBackAnimationCallbackExtension.kt | 22 import android.window.BackEvent 39 onBackStarted: (BackEvent) -> Unit = {}, 47 override fun onBackStarted(backEvent: BackEvent) { 52 override fun onBackProgressed(backEvent: BackEvent) {
|
H A D | BackAnimationSpec.kt | 21 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 D | WindowOnBackInvokedDispatcherTest.java | 87 /* 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 D | BackProgressAnimatorTest.java | 26 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 D | TouchTrackerTest.kt | 19 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 D | BackAnimationControllerTest.java | 53 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 D | TouchTracker.java | 24 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 D | BackAnimation.java | 21 import android.window.BackEvent; 49 @BackEvent.SwipeEdge int swipeEdge); in onBackMotion()
|
H A D | CrossTaskBackAnimation.java | 21 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 D | BackAnimationController.java | 54 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 D | CustomizeActivityAnimation.java | 44 import android.window.BackEvent; 216 void onGestureProgress(@NonNull BackEvent backEvent) { in onGestureProgress()
|
H A D | CrossActivityAnimation.java | 43 import android.window.BackEvent; 234 private void onGestureProgress(@NonNull BackEvent backEvent) { in onGestureProgress()
|
/aosp14/frameworks/base/core/java/android/window/ |
H A D | OnBackAnimationCallback.java | 49 default void onBackStarted(@NonNull BackEvent backEvent) {} in onBackStarted() 58 default void onBackProgressed(@NonNull BackEvent backEvent) { } in onBackProgressed()
|
H A D | BackMotionEvent.java | 40 @BackEvent.SwipeEdge 67 @BackEvent.SwipeEdge int swipeEdge, in BackMotionEvent() 162 @BackEvent.SwipeEdge
|
H A D | BackEvent.java | 30 public final class BackEvent { class 59 public BackEvent(float touchX, float touchY, float progress, @SwipeEdge int swipeEdge) { in BackEvent() method in BackEvent
|
H A D | BackProgressAnimator.java | 74 void onProgressUpdate(BackEvent event); in onProgressUpdate() 162 new BackEvent(mLastBackEvent.getTouchX(), mLastBackEvent.getTouchY(), in updateProgressValue()
|
H A D | WindowOnBackInvokedDispatcher.java | 330 callback.onBackStarted(new BackEvent( in onBackStarted()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarKeyguardViewManagerTest.java | 49 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 D | CentralSurfacesImplTest.java | 78 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 D | KeyguardSecurityContainerTest.java | 53 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 D | StatusBarKeyguardViewManager.java | 40 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 D | EdgeBackGestureHandler.java | 66 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 D | KeyguardSecurityContainer.java | 79 import android.window.BackEvent; 267 public void onBackProgressed(BackEvent event) {
|