diff options
| author | Felipe Leme <felipeal@google.com> | 2020-06-05 07:11:40 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-06-05 07:11:40 +0000 |
| commit | df98b27008118474bfe075f85d8e41a3ab7e9451 (patch) | |
| tree | 0104522ff016cbe9ebf68e47c88c75888dd7db68 /core/java | |
| parent | 2776d3e91a871415f3bbdf74f87487b1cf0365a7 (diff) | |
| parent | 755578ac28a806f0d3f8baaf93e73f04b1fcb48d (diff) | |
Merge "Added command / binder method to temporarily disable VoiceInteraction." into rvc-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl b/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl index 71ee8af8b11a..15ba8e8c11f7 100644 --- a/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl +++ b/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl @@ -265,4 +265,16 @@ interface IVoiceInteractionManagerService { void performDirectAction(in IBinder token, String actionId, in Bundle arguments, int taskId, IBinder assistToken, in RemoteCallback cancellationCallback, in RemoteCallback resultCallback); + + /** + * Temporarily disables voice interaction (for example, on Automotive when the display is off). + * + * It will shutdown the service, and only re-enable it after it's called again (or after a + * system restart). + * + * NOTE: it's only effective when the service itself is available / enabled in the device, so + * calling setDisable(false) would be a no-op when it isn't. + */ + void setDisabled(boolean disabled); + } |
