diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-02-05 23:24:32 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-02-05 23:24:32 +0000 |
| commit | b2d60a685f5deacbb239df34169eb2eb7bf54d1e (patch) | |
| tree | 9a14ae8de170281e3503d873294ced6629e88c21 /core/java | |
| parent | e22b827b05665e755ba5bdc3cae867d8faa25aab (diff) | |
| parent | fd652d522cfc16e3e3768c400794cea10b2a9fb8 (diff) | |
Merge "Get the HotwordDetectionService from the xml metadata" into sc-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/service/voice/VoiceInteractionServiceInfo.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/service/voice/VoiceInteractionServiceInfo.java b/core/java/android/service/voice/VoiceInteractionServiceInfo.java index f7710e6a82ce..ff03cc14e73b 100644 --- a/core/java/android/service/voice/VoiceInteractionServiceInfo.java +++ b/core/java/android/service/voice/VoiceInteractionServiceInfo.java @@ -18,6 +18,7 @@ package android.service.voice; import android.Manifest; import android.annotation.NonNull; +import android.annotation.Nullable; import android.app.AppGlobals; import android.content.ComponentName; import android.content.pm.PackageManager; @@ -44,6 +45,7 @@ public class VoiceInteractionServiceInfo { private ServiceInfo mServiceInfo; private String mSessionService; private String mRecognitionService; + private String mHotwordDetectionService; private String mSettingsActivity; private boolean mSupportsAssist; private boolean mSupportsLaunchFromKeyguard; @@ -133,6 +135,8 @@ public class VoiceInteractionServiceInfo { false); mSupportsLocalInteraction = array.getBoolean(com.android.internal. R.styleable.VoiceInteractionService_supportsLocalInteraction, false); + mHotwordDetectionService = array.getString(com.android.internal.R.styleable + .VoiceInteractionService_hotwordDetectionService); array.recycle(); if (mSessionService == null) { mParseError = "No sessionService specified"; @@ -181,4 +185,9 @@ public class VoiceInteractionServiceInfo { public boolean getSupportsLocalInteraction() { return mSupportsLocalInteraction; } + + @Nullable + public String getHotwordDetectionService() { + return mHotwordDetectionService; + } } |
