Revert "Migrating RecentsAnimationDeviceState and dependent obje..."
Revert submission 31332401-recents-device-state Reason for revert: DroidMonitor: Potential culprit for http://b/391684419 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Reverted changes: /q/submissionid:31332401-recents-device-state Change-Id: I3986328ee3aa8ebb822f7ef05b9f80ef68872aef
This commit is contained in:
1 parent
d7bfa76bcc
commit
fa30e3fc0e
18 files changed
+171
-271
No files matched your search
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.quickstep;
|
||||
|
||||
import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
|
||||
|
||||
import static com.android.quickstep.InputConsumerUtils.newBaseConsumer;
|
||||
import static com.android.quickstep.InputConsumerUtils.newConsumer;
|
||||
|
||||
@@ -38,9 +40,6 @@ import androidx.test.platform.app.InstrumentationRegistry;
|
||||
|
||||
import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.anim.AnimatedFloat;
|
||||
import com.android.launcher3.dagger.LauncherAppComponent;
|
||||
import com.android.launcher3.dagger.LauncherAppModule;
|
||||
import com.android.launcher3.dagger.LauncherAppSingleton;
|
||||
import com.android.launcher3.taskbar.TaskbarActivityContext;
|
||||
import com.android.launcher3.taskbar.TaskbarManager;
|
||||
import com.android.launcher3.taskbar.bubbles.BubbleBarController;
|
||||
@@ -55,7 +54,7 @@ import com.android.launcher3.taskbar.bubbles.BubblePinController;
|
||||
import com.android.launcher3.taskbar.bubbles.BubbleStashedHandleViewController;
|
||||
import com.android.launcher3.taskbar.bubbles.stashing.BubbleStashController;
|
||||
import com.android.launcher3.util.LockedUserState;
|
||||
import com.android.launcher3.util.SandboxApplication;
|
||||
import com.android.launcher3.util.MainThreadInitializedObject;
|
||||
import com.android.launcher3.views.BaseDragLayer;
|
||||
import com.android.quickstep.inputconsumers.AccessibilityInputConsumer;
|
||||
import com.android.quickstep.inputconsumers.BubbleBarInputConsumer;
|
||||
@@ -76,9 +75,6 @@ import com.android.quickstep.views.RecentsViewContainer;
|
||||
import com.android.systemui.shared.system.InputChannelCompat;
|
||||
import com.android.systemui.shared.system.InputMonitorCompat;
|
||||
|
||||
import dagger.BindsInstance;
|
||||
import dagger.Component;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
@@ -97,8 +93,8 @@ import javax.inject.Provider;
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class InputConsumerUtilsTest {
|
||||
|
||||
@Rule public final SandboxApplication mContext = new SandboxApplication();
|
||||
|
||||
@NonNull private final MainThreadInitializedObject.SandboxContext mContext =
|
||||
new MainThreadInitializedObject.SandboxContext(getApplicationContext());
|
||||
@NonNull private final InputMonitorCompat mInputMonitorCompat = new InputMonitorCompat("", 0);
|
||||
|
||||
private TaskAnimationManager mTaskAnimationManager;
|
||||
@@ -129,12 +125,10 @@ public class InputConsumerUtilsTest {
|
||||
}
|
||||
|
||||
@Before
|
||||
public void setupDaggerGraphOverrides() {
|
||||
mContext.initDaggerComponent(DaggerInputConsumerUtilsTest_TestComponent
|
||||
.builder()
|
||||
.bindLockedState(mLockedUserState)
|
||||
.bindRotationHelper(mock(RotationTouchHelper.class))
|
||||
.bindRecentsState(mDeviceState));
|
||||
public void setupMainThreadInitializedObjects() {
|
||||
mContext.putObject(LockedUserState.INSTANCE, mLockedUserState);
|
||||
mContext.putObject(RotationTouchHelper.INSTANCE, mock(RotationTouchHelper.class));
|
||||
mContext.putObject(RecentsAnimationDeviceState.INSTANCE, mDeviceState);
|
||||
}
|
||||
|
||||
@Before
|
||||
@@ -601,18 +595,4 @@ public class InputConsumerUtilsTest {
|
||||
|
||||
return bubbleControllers;
|
||||
}
|
||||
|
||||
@LauncherAppSingleton
|
||||
@Component(modules = {LauncherAppModule.class})
|
||||
interface TestComponent extends LauncherAppComponent {
|
||||
@Component.Builder
|
||||
interface Builder extends LauncherAppComponent.Builder {
|
||||
@BindsInstance Builder bindLockedState(LockedUserState state);
|
||||
@BindsInstance Builder bindRotationHelper(RotationTouchHelper helper);
|
||||
@BindsInstance Builder bindRecentsState(RecentsAnimationDeviceState state);
|
||||
|
||||
@Override
|
||||
TestComponent build();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user