Revert "Migrating all model tests to Instrumentation tests"

This reverts commit 455ba62b5d.

Reason for revert: Breaks tests on all targets

Bug: 196825541
Bug: 197570389
Change-Id: Ida6792a09c54dee46105b6b914a0dd1545bdf48d
This commit is contained in:
Alex Chau
2021-08-24 13:46:47 +00:00
parent 455ba62b5d
commit 7a4a30d86d
31 changed files with 686 additions and 786 deletions

View File

@@ -28,7 +28,7 @@ import android.os.Message;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import com.android.launcher3.BaseActivity;
import com.android.launcher3.Launcher;
import com.android.launcher3.views.ActivityContext;
/**
@@ -56,7 +56,7 @@ public class UiThreadHelper {
STATS_LOGGER_KEY,
Message.obtain(
HANDLER.get(root.getContext()),
() -> BaseActivity.fromContext(root.getContext())
() -> Launcher.cast(activityContext)
.getStatsLogManager()
.logger()
.log(LAUNCHER_ALLAPPS_KEYBOARD_CLOSED)