diff options
| author | Dianne Hackborn <hackbod@google.com> | 2015-05-27 18:05:52 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2015-05-28 11:44:58 -0700 |
| commit | 09d57fe9b357495b7bc62be39a8befa00d9d7ffb (patch) | |
| tree | 1d71edec334401bb5b978f64267d7d8b496582cb /core/java/android/app/ActivityManagerNative.java | |
| parent | da1b398173a94e94c61a0d186c7dc0ef2a7bd060 (diff) | |
| download | frameworks_base-09d57fe9b357495b7bc62be39a8befa00d9d7ffb.zip frameworks_base-09d57fe9b357495b7bc62be39a8befa00d9d7ffb.tar.gz frameworks_base-09d57fe9b357495b7bc62be39a8befa00d9d7ffb.tar.bz2 | |
Add new API to set URI on AssistContent.
Also rework how we transfer AssistContent and AssistStructure
to the assistant, so they are delivered as completely separate
objects rather than the kludgy bundling them in the assist
data thing.
Change-Id: Ib40cc3b152bafeb358fd3adec564a7dda3a0dd1d
Diffstat (limited to 'core/java/android/app/ActivityManagerNative.java')
| -rw-r--r-- | core/java/android/app/ActivityManagerNative.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/core/java/android/app/ActivityManagerNative.java b/core/java/android/app/ActivityManagerNative.java index 02e0d5b..e4def1e 100644 --- a/core/java/android/app/ActivityManagerNative.java +++ b/core/java/android/app/ActivityManagerNative.java @@ -2193,7 +2193,9 @@ public abstract class ActivityManagerNative extends Binder implements IActivityM data.enforceInterface(IActivityManager.descriptor); IBinder token = data.readStrongBinder(); Bundle extras = data.readBundle(); - reportAssistContextExtras(token, extras); + AssistStructure structure = AssistStructure.CREATOR.createFromParcel(data); + AssistContent content = AssistContent.CREATOR.createFromParcel(data); + reportAssistContextExtras(token, extras, structure, content); reply.writeNoException(); return true; } @@ -5359,13 +5361,15 @@ class ActivityManagerProxy implements IActivityManager reply.recycle(); } - public void reportAssistContextExtras(IBinder token, Bundle extras) - throws RemoteException { + public void reportAssistContextExtras(IBinder token, Bundle extras, AssistStructure structure, + AssistContent content) throws RemoteException { Parcel data = Parcel.obtain(); Parcel reply = Parcel.obtain(); data.writeInterfaceToken(IActivityManager.descriptor); data.writeStrongBinder(token); data.writeBundle(extras); + structure.writeToParcel(data, 0); + content.writeToParcel(data, 0); mRemote.transact(REPORT_ASSIST_CONTEXT_EXTRAS_TRANSACTION, data, reply, 0); reply.readException(); data.recycle(); |
