summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorNicholas Sauer <nicksauer@google.com>2018-06-21 08:23:58 -0700
committerNicholas Sauer <nicksauer@google.com>2018-06-21 08:27:35 -0700
commit78b8917eae025dc43fade2f32cdac6d194dc94d3 (patch)
tree553afaca77dd629639208904ec5c0f471fa2c3b3 /core
parent3d7612009dd13bd646e297fb652eb23a5be841b6 (diff)
Add SHOW_SOURCE_PUSH_TO_TALK to indicate that the interaction service
was invoked by a hardware button. bug: 110378156 Test: lunch bat_land-userdbyg && m; deploy and use the input activity in kitchen sink to verify voice. Change-Id: I0f3ac2783b2ea0ce6298123b67e75911d168d876
Diffstat (limited to 'core')
-rw-r--r--core/java/android/service/voice/VoiceInteractionSession.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/service/voice/VoiceInteractionSession.java b/core/java/android/service/voice/VoiceInteractionSession.java
index cd177c42d6b3..26223f7bc6cd 100644
--- a/core/java/android/service/voice/VoiceInteractionSession.java
+++ b/core/java/android/service/voice/VoiceInteractionSession.java
@@ -109,6 +109,12 @@ public class VoiceInteractionSession implements KeyEvent.Callback, ComponentCall
*/
public static final int SHOW_SOURCE_ACTIVITY = 1<<4;
+ /**
+ * Flag for use with {@link #onShow}: indicates that the voice interaction service was invoked
+ * from a physical button.
+ */
+ public static final int SHOW_SOURCE_PUSH_TO_TALK = 1 << 5;
+
final Context mContext;
final HandlerCaller mHandlerCaller;