Loading src/com/android/launcher3/LauncherModel.java +5 −0 Original line number Diff line number Diff line Loading @@ -563,6 +563,11 @@ public class LauncherModel extends BroadcastReceiver synchronized (mLock) { // Everything loaded bind the data. mModelLoaded = true; if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS && com.android.launcher3.Utilities.IS_DEBUG_DEVICE) { android.util.Log.d("b/117332845", android.util.Log.getStackTraceString(new Throwable())); } } } Loading tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +12 −0 Original line number Diff line number Diff line Loading @@ -298,6 +298,11 @@ public abstract class AbstractLauncherUiTest { } protected void resetLoaderState() { if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS && com.android.launcher3.Utilities.IS_DEBUG_DEVICE) { android.util.Log.d("b/117332845", "START " + android.util.Log.getStackTraceString(new Throwable())); } try { mMainThreadExecutor.execute(new Runnable() { @Override Loading @@ -308,6 +313,13 @@ public abstract class AbstractLauncherUiTest { } catch (Throwable t) { throw new IllegalArgumentException(t); } waitForLauncherCondition(launcher -> LauncherAppState.getInstance(mTargetContext).getModel().isModelLoaded()); if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS && com.android.launcher3.Utilities.IS_DEBUG_DEVICE) { android.util.Log.d("b/117332845", "FINISH " + android.util.Log.getStackTraceString(new Throwable())); } } /** Loading tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java +10 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,11 @@ public class BindWidgetTest extends AbstractLauncherUiTest { @Override @Before public void setUp() throws Exception { if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS && com.android.launcher3.Utilities.IS_DEBUG_DEVICE) { android.util.Log.d("b/117332845", android.util.Log.getStackTraceString(new Throwable())); } super.setUp(); mResolver = mTargetContext.getContentResolver(); Loading @@ -105,6 +110,11 @@ public class BindWidgetTest extends AbstractLauncherUiTest { } super.tearDown(); if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS && com.android.launcher3.Utilities.IS_DEBUG_DEVICE) { android.util.Log.d("b/117332845", android.util.Log.getStackTraceString(new Throwable())); } } @Test Loading Loading
src/com/android/launcher3/LauncherModel.java +5 −0 Original line number Diff line number Diff line Loading @@ -563,6 +563,11 @@ public class LauncherModel extends BroadcastReceiver synchronized (mLock) { // Everything loaded bind the data. mModelLoaded = true; if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS && com.android.launcher3.Utilities.IS_DEBUG_DEVICE) { android.util.Log.d("b/117332845", android.util.Log.getStackTraceString(new Throwable())); } } } Loading
tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +12 −0 Original line number Diff line number Diff line Loading @@ -298,6 +298,11 @@ public abstract class AbstractLauncherUiTest { } protected void resetLoaderState() { if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS && com.android.launcher3.Utilities.IS_DEBUG_DEVICE) { android.util.Log.d("b/117332845", "START " + android.util.Log.getStackTraceString(new Throwable())); } try { mMainThreadExecutor.execute(new Runnable() { @Override Loading @@ -308,6 +313,13 @@ public abstract class AbstractLauncherUiTest { } catch (Throwable t) { throw new IllegalArgumentException(t); } waitForLauncherCondition(launcher -> LauncherAppState.getInstance(mTargetContext).getModel().isModelLoaded()); if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS && com.android.launcher3.Utilities.IS_DEBUG_DEVICE) { android.util.Log.d("b/117332845", "FINISH " + android.util.Log.getStackTraceString(new Throwable())); } } /** Loading
tests/src/com/android/launcher3/ui/widget/BindWidgetTest.java +10 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,11 @@ public class BindWidgetTest extends AbstractLauncherUiTest { @Override @Before public void setUp() throws Exception { if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS && com.android.launcher3.Utilities.IS_DEBUG_DEVICE) { android.util.Log.d("b/117332845", android.util.Log.getStackTraceString(new Throwable())); } super.setUp(); mResolver = mTargetContext.getContentResolver(); Loading @@ -105,6 +110,11 @@ public class BindWidgetTest extends AbstractLauncherUiTest { } super.tearDown(); if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS && com.android.launcher3.Utilities.IS_DEBUG_DEVICE) { android.util.Log.d("b/117332845", android.util.Log.getStackTraceString(new Throwable())); } } @Test Loading