Loading src/com/android/launcher3/Launcher.java +8 −0 Original line number Diff line number Diff line Loading @@ -96,7 +96,9 @@ import static com.android.launcher3.popup.SystemShortcut.INSTALL; import static com.android.launcher3.popup.SystemShortcut.WIDGETS; import static com.android.launcher3.states.RotationHelper.REQUEST_LOCK; import static com.android.launcher3.states.RotationHelper.REQUEST_NONE; import static com.android.launcher3.testing.shared.TestProtocol.CLOCK_ICON_DRAWABLE_LEAKING; import static com.android.launcher3.testing.shared.TestProtocol.LAUNCHER_ACTIVITY_STOPPED_MESSAGE; import static com.android.launcher3.testing.shared.TestProtocol.testLogD; import static com.android.launcher3.util.Executors.MAIN_EXECUTOR; import static com.android.launcher3.util.ItemInfoMatcher.forFolderMatch; import static com.android.launcher3.util.SettingsCache.TOUCHPAD_NATURAL_SCROLLING; Loading Loading @@ -421,6 +423,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override @TargetApi(Build.VERSION_CODES.S) protected void onCreate(Bundle savedInstanceState) { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onCreate: instance=" + this); mStartupLatencyLogger = createStartupLatencyLogger( sIsNewProcess ? LockedUserState.get(this).isUserUnlockedAtLauncherStartup() Loading Loading @@ -1079,6 +1082,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override protected void onStart() { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onStart: instance=" + this); TraceHelper.INSTANCE.beginSection(ON_START_EVT); super.onStart(); if (!mDeferOverlayCallbacks) { Loading @@ -1092,6 +1096,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override @CallSuper protected void onDeferredResumed() { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onDeferredResumed: instance=" + this); logStopAndResume(true /* isResume */); // Process any items that were added while Launcher was away. Loading Loading @@ -1279,6 +1284,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override protected void onResume() { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onResume: instance=" + this); TraceHelper.INSTANCE.beginSection(ON_RESUME_EVT); super.onResume(); Loading @@ -1294,6 +1300,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override protected void onPause() { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onPause: instance=" + this); // Ensure that items added to Launcher are queued until Launcher returns ItemInstallQueue.INSTANCE.get(this).pauseModelPush(FLAG_ACTIVITY_PAUSED); Loading Loading @@ -1776,6 +1783,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override public void onDestroy() { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onDestroy: instance=" + this); super.onDestroy(); ACTIVITY_TRACKER.onActivityDestroyed(this); Loading tests/multivalentTests/shared/com/android/launcher3/testing/shared/TestProtocol.java +2 −0 Original line number Diff line number Diff line Loading @@ -179,6 +179,8 @@ public final class TestProtocol { public static final String WIDGET_CONFIG_NULL_EXTRA_INTENT = "b/324419890"; public static final String ACTIVITY_NOT_RESUMED_AFTER_BACK = "b/322823209"; public static final String OVERVIEW_SELECT_TOOLTIP_MISALIGNED = "b/332485341"; public static final String CLOCK_ICON_DRAWABLE_LEAKING = "b/319168409"; public static final String REQUEST_EMULATE_DISPLAY = "emulate-display"; public static final String REQUEST_STOP_EMULATE_DISPLAY = "stop-emulate-display"; public static final String REQUEST_IS_EMULATE_DISPLAY_RUNNING = "is-emulate-display-running"; Loading Loading
src/com/android/launcher3/Launcher.java +8 −0 Original line number Diff line number Diff line Loading @@ -96,7 +96,9 @@ import static com.android.launcher3.popup.SystemShortcut.INSTALL; import static com.android.launcher3.popup.SystemShortcut.WIDGETS; import static com.android.launcher3.states.RotationHelper.REQUEST_LOCK; import static com.android.launcher3.states.RotationHelper.REQUEST_NONE; import static com.android.launcher3.testing.shared.TestProtocol.CLOCK_ICON_DRAWABLE_LEAKING; import static com.android.launcher3.testing.shared.TestProtocol.LAUNCHER_ACTIVITY_STOPPED_MESSAGE; import static com.android.launcher3.testing.shared.TestProtocol.testLogD; import static com.android.launcher3.util.Executors.MAIN_EXECUTOR; import static com.android.launcher3.util.ItemInfoMatcher.forFolderMatch; import static com.android.launcher3.util.SettingsCache.TOUCHPAD_NATURAL_SCROLLING; Loading Loading @@ -421,6 +423,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override @TargetApi(Build.VERSION_CODES.S) protected void onCreate(Bundle savedInstanceState) { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onCreate: instance=" + this); mStartupLatencyLogger = createStartupLatencyLogger( sIsNewProcess ? LockedUserState.get(this).isUserUnlockedAtLauncherStartup() Loading Loading @@ -1079,6 +1082,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override protected void onStart() { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onStart: instance=" + this); TraceHelper.INSTANCE.beginSection(ON_START_EVT); super.onStart(); if (!mDeferOverlayCallbacks) { Loading @@ -1092,6 +1096,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override @CallSuper protected void onDeferredResumed() { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onDeferredResumed: instance=" + this); logStopAndResume(true /* isResume */); // Process any items that were added while Launcher was away. Loading Loading @@ -1279,6 +1284,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override protected void onResume() { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onResume: instance=" + this); TraceHelper.INSTANCE.beginSection(ON_RESUME_EVT); super.onResume(); Loading @@ -1294,6 +1300,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override protected void onPause() { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onPause: instance=" + this); // Ensure that items added to Launcher are queued until Launcher returns ItemInstallQueue.INSTANCE.get(this).pauseModelPush(FLAG_ACTIVITY_PAUSED); Loading Loading @@ -1776,6 +1783,7 @@ public class Launcher extends StatefulActivity<LauncherState> @Override public void onDestroy() { testLogD(CLOCK_ICON_DRAWABLE_LEAKING, "onDestroy: instance=" + this); super.onDestroy(); ACTIVITY_TRACKER.onActivityDestroyed(this); Loading
tests/multivalentTests/shared/com/android/launcher3/testing/shared/TestProtocol.java +2 −0 Original line number Diff line number Diff line Loading @@ -179,6 +179,8 @@ public final class TestProtocol { public static final String WIDGET_CONFIG_NULL_EXTRA_INTENT = "b/324419890"; public static final String ACTIVITY_NOT_RESUMED_AFTER_BACK = "b/322823209"; public static final String OVERVIEW_SELECT_TOOLTIP_MISALIGNED = "b/332485341"; public static final String CLOCK_ICON_DRAWABLE_LEAKING = "b/319168409"; public static final String REQUEST_EMULATE_DISPLAY = "emulate-display"; public static final String REQUEST_STOP_EMULATE_DISPLAY = "stop-emulate-display"; public static final String REQUEST_IS_EMULATE_DISPLAY_RUNNING = "is-emulate-display-running"; Loading