diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-02-11 17:02:41 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-02-13 11:27:57 -0800 |
commit | ae6688b09649447e57468b3e7935691bc09ec9b9 (patch) | |
tree | 799d4b2ddeb5b32a578b7300196bfefdf272703e /core/java/com | |
parent | bc26d2eafd6185a197a968b2dffde5871791cf0b (diff) | |
download | frameworks_base-ae6688b09649447e57468b3e7935691bc09ec9b9.zip frameworks_base-ae6688b09649447e57468b3e7935691bc09ec9b9.tar.gz frameworks_base-ae6688b09649447e57468b3e7935691bc09ec9b9.tar.bz2 |
Update voice interaction layer for new UI design.
Can switch from a pure overlay at the top of the screen,
to interactive mode with the voice UI drawing at the bottom
and pushing its target activity up like an IME.
Add mechanism to get assist data to the voice interaction UI.
Add some basic visualization of the assist data, outlining
where on the screen we have text.
Add a test ACTION_ASSIST handler, which can propagate the
assist data it gets to the voice interaction session so
you can see what kind of data we are getting from different
apps.
Change-Id: I18312fe1601d7926d1fb96a817638d60f6263771
Diffstat (limited to 'core/java/com')
-rw-r--r-- | core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl | 2 | ||||
-rw-r--r-- | core/java/com/android/internal/util/DumpUtils.java | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl b/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl index 5a10524..6d90420 100644 --- a/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl +++ b/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl @@ -26,7 +26,7 @@ import android.service.voice.IVoiceInteractionService; import android.service.voice.IVoiceInteractionSession; interface IVoiceInteractionManagerService { - void startSession(IVoiceInteractionService service, in Bundle sessionArgs); + void startSession(IVoiceInteractionService service, in Bundle sessionArgs, int flags); boolean deliverNewSession(IBinder token, IVoiceInteractionSession session, IVoiceInteractor interactor); int startVoiceActivity(IBinder token, in Intent intent, String resolvedType); diff --git a/core/java/com/android/internal/util/DumpUtils.java b/core/java/com/android/internal/util/DumpUtils.java index 65b56ec..64e1d10 100644 --- a/core/java/com/android/internal/util/DumpUtils.java +++ b/core/java/com/android/internal/util/DumpUtils.java @@ -35,13 +35,14 @@ public final class DumpUtils { * trying to acquire, we use a short timeout to avoid deadlocks. The process * is inelegant but this function is only used for debugging purposes. */ - public static void dumpAsync(Handler handler, final Dump dump, PrintWriter pw, long timeout) { + public static void dumpAsync(Handler handler, final Dump dump, PrintWriter pw, + final String prefix, long timeout) { final StringWriter sw = new StringWriter(); if (handler.runWithScissors(new Runnable() { @Override public void run() { PrintWriter lpw = new FastPrintWriter(sw); - dump.dump(lpw); + dump.dump(lpw, prefix); lpw.close(); } }, timeout)) { @@ -52,6 +53,6 @@ public final class DumpUtils { } public interface Dump { - void dump(PrintWriter pw); + void dump(PrintWriter pw, String prefix); } } |