mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Merge "Move MainThreadInitializedObject to Launcher3 Go." into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
9a5cd11da5
@@ -41,7 +41,7 @@ import com.android.launcher3.logger.LauncherAtom;
|
||||
import com.android.launcher3.model.data.AppInfo;
|
||||
import com.android.launcher3.pm.UserCache;
|
||||
import com.android.launcher3.util.AllModulesForTest;
|
||||
import com.android.launcher3.util.MainThreadInitializedObject.SandboxContext;
|
||||
import com.android.launcher3.util.SandboxContext;
|
||||
import com.android.launcher3.util.UserIconInfo;
|
||||
import com.android.systemui.shared.system.SysUiStatsLog;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import com.android.launcher3.model.data.ItemInfoWithIcon.FLAG_NOT_PINNABLE
|
||||
import com.android.launcher3.model.data.TaskViewItemInfo.Companion.createTaskViewAtom
|
||||
import com.android.launcher3.pm.UserCache
|
||||
import com.android.launcher3.util.AllModulesForTest
|
||||
import com.android.launcher3.util.MainThreadInitializedObject.SandboxContext
|
||||
import com.android.launcher3.util.SandboxContext
|
||||
import com.android.launcher3.util.SplitConfigurationOptions
|
||||
import com.android.launcher3.util.TransformingTouchDelegate
|
||||
import com.android.launcher3.util.UserIconInfo
|
||||
|
||||
@@ -20,7 +20,6 @@ import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation
|
||||
import com.android.launcher3.taskbar.rules.TaskbarModeRule.Mode
|
||||
import com.android.launcher3.taskbar.rules.TaskbarModeRule.TaskbarMode
|
||||
import com.android.launcher3.util.DisplayController
|
||||
import com.android.launcher3.util.MainThreadInitializedObject
|
||||
import com.android.launcher3.util.NavigationMode
|
||||
import org.junit.rules.TestRule
|
||||
import org.junit.runner.Description
|
||||
@@ -31,8 +30,8 @@ import org.mockito.kotlin.spy
|
||||
/**
|
||||
* Allows tests to specify which Taskbar [Mode] to run under.
|
||||
*
|
||||
* [context] should match the test's target context, so that [MainThreadInitializedObject] instances
|
||||
* are properly sandboxed.
|
||||
* [context] should match the test's target context, so that Dagger singleton instances are properly
|
||||
* sandboxed.
|
||||
*
|
||||
* Annotate tests with [TaskbarMode] to set a mode. If the annotation is omitted for any tests, this
|
||||
* rule is a no-op.
|
||||
|
||||
@@ -30,7 +30,6 @@ import com.android.launcher3.util.AllModulesMinusWMProxy
|
||||
import com.android.launcher3.util.DaggerSingletonTracker
|
||||
import com.android.launcher3.util.DisplayController
|
||||
import com.android.launcher3.util.FakePrefsModule
|
||||
import com.android.launcher3.util.MainThreadInitializedObject.ObjectSandbox
|
||||
import com.android.launcher3.util.SandboxApplication
|
||||
import com.android.launcher3.util.SettingsCache
|
||||
import com.android.launcher3.util.SettingsCacheSandbox
|
||||
@@ -58,7 +57,7 @@ private constructor(
|
||||
private val base: SandboxApplication,
|
||||
val virtualDisplay: VirtualDisplay,
|
||||
private val params: SandboxParams,
|
||||
) : ContextWrapper(base), ObjectSandbox by base, TestRule {
|
||||
) : ContextWrapper(base), TestRule {
|
||||
|
||||
val settingsCacheSandbox = SettingsCacheSandbox()
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ import com.android.launcher3.dagger.LauncherAppSingleton;
|
||||
import com.android.launcher3.logging.StatsLogManager;
|
||||
import com.android.launcher3.util.AllModulesForTest;
|
||||
import com.android.launcher3.util.DisplayController;
|
||||
import com.android.launcher3.util.MainThreadInitializedObject.SandboxContext;
|
||||
import com.android.launcher3.util.SandboxContext;
|
||||
import com.android.quickstep.DeviceConfigWrapper;
|
||||
import com.android.quickstep.GestureState;
|
||||
import com.android.quickstep.InputConsumer;
|
||||
|
||||
Reference in New Issue
Block a user