Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d919d0f authored by Nick Beato's avatar Nick Beato
Browse files

Add INVOCATION_TYPE_LAUNCHER_SYSTEM_SHORTCUT for VIS calls from SysUI launcher.

This change is so VIS apps running on AOSP and XR do not need special platform logic when handling new sessions.

Bug: 380946168
Change-Id: If2e55cb5dce5991f4322337aa82c69491e113c3b
Test: Confirmed it works with AGSA and XR Launcher with a local flash.
Flag: NONE adding an invocation type.
parent d5346496
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -61,6 +61,8 @@ public class AssistUtils {
    public static final int INVOCATION_TYPE_ASSIST_BUTTON = 7;
    /** value for INVOCATION_TYPE_KEY: long press on nav handle */
    public static final int INVOCATION_TYPE_NAV_HANDLE_LONG_PRESS = 8;
    /** value for INVOCATION_TYPE_KEY: sysui launcher */
    public static final int INVOCATION_TYPE_LAUNCHER_SYSTEM_SHORTCUT = 9;

    private final Context mContext;
    private final IVoiceInteractionManagerService mVoiceInteractionManagerService;
+2 −0
Original line number Diff line number Diff line
@@ -130,6 +130,8 @@ public class AssistManager {
            AssistUtils.INVOCATION_TYPE_POWER_BUTTON_LONG_PRESS;
    public static final int INVOCATION_TYPE_NAV_HANDLE_LONG_PRESS =
            AssistUtils.INVOCATION_TYPE_NAV_HANDLE_LONG_PRESS;
    public static final int INVOCATION_TYPE_LAUNCHER_SYSTEM_SHORTCUT =
            AssistUtils.INVOCATION_TYPE_LAUNCHER_SYSTEM_SHORTCUT;

    public static final int DISMISS_REASON_INVOCATION_CANCELLED = 1;
    public static final int DISMISS_REASON_TAP = 2;