Loading quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java +4 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ import com.android.launcher3.anim.Interpolators; import com.android.launcher3.config.FeatureFlags; import com.android.launcher3.logging.UserEventDispatcher; import com.android.launcher3.popup.SystemShortcut; import com.android.launcher3.testing.TestLogging; import com.android.launcher3.userevent.nano.LauncherLogProto; import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Direction; import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Touch; Loading Loading @@ -331,6 +332,9 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable { Consumer<Boolean> resultCallback, Handler resultCallbackHandler) { if (mTask != null) { final ActivityOptions opts; if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { TestLogging.recordEvent("startActivityFromRecentsAsync:" + mTask); } if (animate) { opts = mActivity.getActivityLaunchOptions(this); if (freezeTaskList) { Loading src/com/android/launcher3/BaseActivity.java +4 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ import com.android.launcher3.logging.StatsLogUtils; import com.android.launcher3.logging.StatsLogUtils.LogStateProvider; import com.android.launcher3.logging.UserEventDispatcher; import com.android.launcher3.logging.UserEventDispatcher.UserEventDelegate; import com.android.launcher3.testing.TestLogging; import com.android.launcher3.userevent.nano.LauncherLogProto; import com.android.launcher3.util.SystemUiController; import com.android.launcher3.util.ViewCache; Loading Loading @@ -329,6 +330,9 @@ public abstract class BaseActivity extends Activity return; } try { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { TestLogging.recordEvent("start: shortcut: " + packageName); } getSystemService(LauncherApps.class).startShortcut(packageName, id, sourceBounds, startActivityOptions, user); } catch (SecurityException | IllegalStateException e) { Loading src/com/android/launcher3/BaseDraggingActivity.java +4 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import androidx.annotation.Nullable; import com.android.launcher3.LauncherSettings.Favorites; import com.android.launcher3.model.AppLaunchTracker; import com.android.launcher3.testing.TestLogging; import com.android.launcher3.uioverrides.DisplayRotationListener; import com.android.launcher3.uioverrides.WallpaperColorInfo; import com.android.launcher3.util.PackageManagerHelper; Loading Loading @@ -164,6 +165,9 @@ public abstract class BaseDraggingActivity extends BaseActivity startShortcutIntentSafely(intent, optsBundle, item, sourceContainer); } else if (user == null || user.equals(Process.myUserHandle())) { // Could be launching some bookkeeping activity if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { TestLogging.recordEvent("start: activity: " + intent); } startActivity(intent, optsBundle); AppLaunchTracker.INSTANCE.get(this).onStartApp(intent.getComponent(), Process.myUserHandle(), sourceContainer); Loading tests/tapl/com/android/launcher3/tapl/AppIcon.java +9 −0 Original line number Diff line number Diff line Loading @@ -22,11 +22,15 @@ import androidx.test.uiautomator.By; import androidx.test.uiautomator.BySelector; import androidx.test.uiautomator.UiObject2; import java.util.regex.Pattern; /** * App icon, whether in all apps or in workspace/ */ public final class AppIcon extends Launchable { private static final Pattern START_EVENT = Pattern.compile("start:"); AppIcon(LauncherInstrumentation launcher, UiObject2 icon) { super(launcher, icon); } Loading @@ -49,4 +53,9 @@ public final class AppIcon extends Launchable { protected String getLongPressIndicator() { return "deep_shortcuts_container"; } @Override protected void expectActivityStartEvents() { mLauncher.expectEvent(START_EVENT); } } tests/tapl/com/android/launcher3/tapl/AppIconMenuItem.java +10 −0 Original line number Diff line number Diff line Loading @@ -18,10 +18,15 @@ package com.android.launcher3.tapl; import androidx.test.uiautomator.UiObject2; import java.util.regex.Pattern; /** * Menu item in an app icon menu. */ public class AppIconMenuItem extends Launchable { private static final Pattern START_SHORTCUT_EVENT = Pattern.compile("start: shortcut:"); AppIconMenuItem(LauncherInstrumentation launcher, UiObject2 shortcut) { super(launcher, shortcut); } Loading @@ -37,4 +42,9 @@ public class AppIconMenuItem extends Launchable { protected String getLongPressIndicator() { return "drop_target_bar"; } @Override protected void expectActivityStartEvents() { mLauncher.expectEvent(START_SHORTCUT_EVENT); } } Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java +4 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ import com.android.launcher3.anim.Interpolators; import com.android.launcher3.config.FeatureFlags; import com.android.launcher3.logging.UserEventDispatcher; import com.android.launcher3.popup.SystemShortcut; import com.android.launcher3.testing.TestLogging; import com.android.launcher3.userevent.nano.LauncherLogProto; import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Direction; import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Touch; Loading Loading @@ -331,6 +332,9 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable { Consumer<Boolean> resultCallback, Handler resultCallbackHandler) { if (mTask != null) { final ActivityOptions opts; if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { TestLogging.recordEvent("startActivityFromRecentsAsync:" + mTask); } if (animate) { opts = mActivity.getActivityLaunchOptions(this); if (freezeTaskList) { Loading
src/com/android/launcher3/BaseActivity.java +4 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ import com.android.launcher3.logging.StatsLogUtils; import com.android.launcher3.logging.StatsLogUtils.LogStateProvider; import com.android.launcher3.logging.UserEventDispatcher; import com.android.launcher3.logging.UserEventDispatcher.UserEventDelegate; import com.android.launcher3.testing.TestLogging; import com.android.launcher3.userevent.nano.LauncherLogProto; import com.android.launcher3.util.SystemUiController; import com.android.launcher3.util.ViewCache; Loading Loading @@ -329,6 +330,9 @@ public abstract class BaseActivity extends Activity return; } try { if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { TestLogging.recordEvent("start: shortcut: " + packageName); } getSystemService(LauncherApps.class).startShortcut(packageName, id, sourceBounds, startActivityOptions, user); } catch (SecurityException | IllegalStateException e) { Loading
src/com/android/launcher3/BaseDraggingActivity.java +4 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import androidx.annotation.Nullable; import com.android.launcher3.LauncherSettings.Favorites; import com.android.launcher3.model.AppLaunchTracker; import com.android.launcher3.testing.TestLogging; import com.android.launcher3.uioverrides.DisplayRotationListener; import com.android.launcher3.uioverrides.WallpaperColorInfo; import com.android.launcher3.util.PackageManagerHelper; Loading Loading @@ -164,6 +165,9 @@ public abstract class BaseDraggingActivity extends BaseActivity startShortcutIntentSafely(intent, optsBundle, item, sourceContainer); } else if (user == null || user.equals(Process.myUserHandle())) { // Could be launching some bookkeeping activity if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { TestLogging.recordEvent("start: activity: " + intent); } startActivity(intent, optsBundle); AppLaunchTracker.INSTANCE.get(this).onStartApp(intent.getComponent(), Process.myUserHandle(), sourceContainer); Loading
tests/tapl/com/android/launcher3/tapl/AppIcon.java +9 −0 Original line number Diff line number Diff line Loading @@ -22,11 +22,15 @@ import androidx.test.uiautomator.By; import androidx.test.uiautomator.BySelector; import androidx.test.uiautomator.UiObject2; import java.util.regex.Pattern; /** * App icon, whether in all apps or in workspace/ */ public final class AppIcon extends Launchable { private static final Pattern START_EVENT = Pattern.compile("start:"); AppIcon(LauncherInstrumentation launcher, UiObject2 icon) { super(launcher, icon); } Loading @@ -49,4 +53,9 @@ public final class AppIcon extends Launchable { protected String getLongPressIndicator() { return "deep_shortcuts_container"; } @Override protected void expectActivityStartEvents() { mLauncher.expectEvent(START_EVENT); } }
tests/tapl/com/android/launcher3/tapl/AppIconMenuItem.java +10 −0 Original line number Diff line number Diff line Loading @@ -18,10 +18,15 @@ package com.android.launcher3.tapl; import androidx.test.uiautomator.UiObject2; import java.util.regex.Pattern; /** * Menu item in an app icon menu. */ public class AppIconMenuItem extends Launchable { private static final Pattern START_SHORTCUT_EVENT = Pattern.compile("start: shortcut:"); AppIconMenuItem(LauncherInstrumentation launcher, UiObject2 shortcut) { super(launcher, shortcut); } Loading @@ -37,4 +42,9 @@ public class AppIconMenuItem extends Launchable { protected String getLongPressIndicator() { return "drop_target_bar"; } @Override protected void expectActivityStartEvents() { mLauncher.expectEvent(START_SHORTCUT_EVENT); } }