Loading quickstep/tests/multivalentTests/src/com/android/quickstep/AbsSwipeUpHandlerTestCase.java +7 −4 Original line number Diff line number Diff line Loading @@ -80,8 +80,6 @@ public abstract class AbsSwipeUpHandlerTestCase< protected final Context mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); protected final RecentsAnimationDeviceState mRecentsAnimationDeviceState = new RecentsAnimationDeviceState(mContext, true); protected final InputConsumerController mInputConsumerController = InputConsumerController.getRecentsAnimationInputConsumer(); protected final ActivityManager.RunningTaskInfo mRunningTaskInfo = Loading Loading @@ -114,6 +112,7 @@ public abstract class AbsSwipeUpHandlerTestCase< new Bundle()); protected TaskAnimationManager mTaskAnimationManager; protected RecentsAnimationDeviceState mRecentsAnimationDeviceState; @Mock protected CONTAINER_INTERFACE mActivityInterface; @Mock protected ContextInitListener<?> mContextInitListener; Loading Loading @@ -176,6 +175,12 @@ public abstract class AbsSwipeUpHandlerTestCase< }).when(recentsContainer).runOnBindToTouchInteractionService(any()); } @Before public void setUpRecentsAnimationDeviceState() { runOnMainSync(() -> mRecentsAnimationDeviceState = new RecentsAnimationDeviceState(mContext, true)); } @Test public void testInitWhenReady_registersActivityInitListener() { String reasonString = "because i said so"; Loading Loading @@ -306,8 +311,6 @@ public abstract class AbsSwipeUpHandlerTestCase< } private void onRecentsAnimationStart(SWIPE_HANDLER absSwipeUpHandler) { when(mActivityInterface.getOverviewWindowBounds(any(), any())).thenReturn(new Rect()); runOnMainSync(() -> absSwipeUpHandler.onRecentsAnimationStart( mRecentsAnimationController, mRecentsAnimationTargets)); } Loading Loading
quickstep/tests/multivalentTests/src/com/android/quickstep/AbsSwipeUpHandlerTestCase.java +7 −4 Original line number Diff line number Diff line Loading @@ -80,8 +80,6 @@ public abstract class AbsSwipeUpHandlerTestCase< protected final Context mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); protected final RecentsAnimationDeviceState mRecentsAnimationDeviceState = new RecentsAnimationDeviceState(mContext, true); protected final InputConsumerController mInputConsumerController = InputConsumerController.getRecentsAnimationInputConsumer(); protected final ActivityManager.RunningTaskInfo mRunningTaskInfo = Loading Loading @@ -114,6 +112,7 @@ public abstract class AbsSwipeUpHandlerTestCase< new Bundle()); protected TaskAnimationManager mTaskAnimationManager; protected RecentsAnimationDeviceState mRecentsAnimationDeviceState; @Mock protected CONTAINER_INTERFACE mActivityInterface; @Mock protected ContextInitListener<?> mContextInitListener; Loading Loading @@ -176,6 +175,12 @@ public abstract class AbsSwipeUpHandlerTestCase< }).when(recentsContainer).runOnBindToTouchInteractionService(any()); } @Before public void setUpRecentsAnimationDeviceState() { runOnMainSync(() -> mRecentsAnimationDeviceState = new RecentsAnimationDeviceState(mContext, true)); } @Test public void testInitWhenReady_registersActivityInitListener() { String reasonString = "because i said so"; Loading Loading @@ -306,8 +311,6 @@ public abstract class AbsSwipeUpHandlerTestCase< } private void onRecentsAnimationStart(SWIPE_HANDLER absSwipeUpHandler) { when(mActivityInterface.getOverviewWindowBounds(any(), any())).thenReturn(new Rect()); runOnMainSync(() -> absSwipeUpHandler.onRecentsAnimationStart( mRecentsAnimationController, mRecentsAnimationTargets)); } Loading