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

Commit 2c80b590 authored by jiayuzhou's avatar jiayuzhou
Browse files

Create a new constant for system app to start a voice service.

Test: build and update the api.
Bug: 122048642

Change-Id: I4d5b94cd94090553ad4b2355b47391ee29a2beb8
parent 55d9a604
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -41665,6 +41665,7 @@ package android.service.voice {
    field public static final int SHOW_SOURCE_ACTIVITY = 16; // 0x10
    field public static final int SHOW_SOURCE_APPLICATION = 8; // 0x8
    field public static final int SHOW_SOURCE_ASSIST_GESTURE = 4; // 0x4
    field public static final int SHOW_SOURCE_AUTOMOTIVE_SYSTEM_UI = 128; // 0x80
    field public static final int SHOW_SOURCE_NOTIFICATION = 64; // 0x40
    field public static final int SHOW_SOURCE_PUSH_TO_TALK = 32; // 0x20
    field public static final int SHOW_WITH_ASSIST = 1; // 0x1
+6 −0
Original line number Diff line number Diff line
@@ -121,6 +121,12 @@ public class VoiceInteractionSession implements KeyEvent.Callback, ComponentCall
     */
    public static final int SHOW_SOURCE_NOTIFICATION = 1 << 6;

    /**
     * Flag for use with {@link #onShow}: indicates that the voice interaction service was invoked
     * from an Android automotive system Ui.
     */
    public static final int SHOW_SOURCE_AUTOMOTIVE_SYSTEM_UI = 1 << 7;

    final Context mContext;
    final HandlerCaller mHandlerCaller;