Merge "Removing RotationTouchHelper state management from RecentsAnimationDeviceState" into main
This commit is contained in:
commit
56297bcd4a
30 files changed
+130
-256
No files matched your search
@@ -333,13 +333,11 @@ public class FallbackRecentsTest {
|
||||
|
||||
private class OverviewUpdateHandler implements OverviewChangeListener {
|
||||
|
||||
final RecentsAnimationDeviceState mRads;
|
||||
final OverviewComponentObserver mObserver;
|
||||
final CountDownLatch mChangeCounter;
|
||||
|
||||
OverviewUpdateHandler() {
|
||||
Context ctx = getInstrumentation().getTargetContext();
|
||||
mRads = new RecentsAnimationDeviceState(ctx);
|
||||
mObserver = OverviewComponentObserver.INSTANCE.get(ctx);
|
||||
mChangeCounter = new CountDownLatch(1);
|
||||
if (mObserver.getHomeIntent().getComponent()
|
||||
@@ -358,7 +356,6 @@ public class FallbackRecentsTest {
|
||||
|
||||
void destroy() {
|
||||
mObserver.removeOverviewChangeListener(this);
|
||||
mRads.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -127,6 +127,8 @@ public class InputConsumerUtilsTest {
|
||||
@Before
|
||||
public void setupMainThreadInitializedObjects() {
|
||||
mContext.putObject(LockedUserState.INSTANCE, mLockedUserState);
|
||||
mContext.putObject(RotationTouchHelper.INSTANCE, mock(RotationTouchHelper.class));
|
||||
mContext.putObject(RecentsAnimationDeviceState.INSTANCE, mDeviceState);
|
||||
}
|
||||
|
||||
@Before
|
||||
@@ -193,7 +195,6 @@ public class InputConsumerUtilsTest {
|
||||
when(mDeviceState.canStartSystemGesture()).thenReturn(true);
|
||||
when(mDeviceState.isFullyGesturalNavMode()).thenReturn(true);
|
||||
when(mDeviceState.getNavBarPosition()).thenReturn(mock(NavBarPosition.class));
|
||||
when(mDeviceState.getRotationTouchHelper()).thenReturn(mock(RotationTouchHelper.class));
|
||||
}
|
||||
|
||||
@After
|
||||
|
||||
@@ -46,18 +46,12 @@ public class TaskAnimationManagerTest {
|
||||
private SystemUiProxy mSystemUiProxy;
|
||||
|
||||
private TaskAnimationManager mTaskAnimationManager;
|
||||
protected RecentsAnimationDeviceState mRecentsAnimationDeviceState;
|
||||
|
||||
@Before
|
||||
public void setUpRecentsAnimationDeviceState() {
|
||||
runOnMainSync(() ->
|
||||
mRecentsAnimationDeviceState = new RecentsAnimationDeviceState(mContext, true));
|
||||
}
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
mTaskAnimationManager = new TaskAnimationManager(mContext, mRecentsAnimationDeviceState) {
|
||||
mTaskAnimationManager = new TaskAnimationManager(mContext,
|
||||
RecentsAnimationDeviceState.INSTANCE.get(mContext)) {
|
||||
@Override
|
||||
SystemUiProxy getSystemUiProxy() {
|
||||
return mSystemUiProxy;
|
||||
|
||||
Reference in new issue
Block a user