Move MainThreadInitializedObject to Launcher3 Go.

Move SandboxContext to a separate class.
Remove all MainThreadInitializedObject references in Launcher3 and tests.
Remove ObjectSandbox interface and make RoboApplication extend
SandboxContext

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: I1a8af5e6ae59df44d8ad6732b4d6e949ac402d6c
This commit is contained in:
Anushree Ganjam committed 2025-02-26 16:49:08 -08:00
1 parent c383866630
commit e6065f5a94
17 files changed
+140 -247

No files matched your search

@@ -18,8 +18,6 @@ package com.android.launcher3.util;
import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation;
import static com.android.launcher3.util.MainThreadInitializedObject.SandboxContext;
import android.content.ContextWrapper;
import androidx.annotation.Nullable;
@@ -44,7 +42,7 @@ import java.util.concurrent.CountDownLatch;
* There are 2 constructors in this class. The base context can be {@link SandboxContext} or
* Instrumentation target context.
* Using {@link SandboxContext} as base context allows custom implementations for
* MainThreadInitializedObject providers.
* providing objects in Dagger components.
*/
public class TestSandboxModelContextWrapper extends ActivityContextWrapper implements