@@ -193,8 +193,9 @@ public boolean onTransact(int code, Parcel data, Parcel reply, int flags)
193193 String resultData = data .readString ();
194194 Bundle resultExtras = data .readBundle ();
195195 boolean sync = data .readInt () != 0 ;
196+ int sendingUser = data .readInt ();
196197 scheduleReceiver (intent , info , compatInfo , resultCode , resultData ,
197- resultExtras , sync );
198+ resultExtras , sync , sendingUser );
198199 return true ;
199200 }
200201
@@ -378,8 +379,9 @@ public boolean onTransact(int code, Parcel data, Parcel reply, int flags)
378379 Bundle extras = data .readBundle ();
379380 boolean ordered = data .readInt () != 0 ;
380381 boolean sticky = data .readInt () != 0 ;
382+ int sendingUser = data .readInt ();
381383 scheduleRegisteredReceiver (receiver , intent ,
382- resultCode , dataStr , extras , ordered , sticky );
384+ resultCode , dataStr , extras , ordered , sticky , sendingUser );
383385 return true ;
384386 }
385387
@@ -755,7 +757,7 @@ public final void scheduleDestroyActivity(IBinder token, boolean finishing,
755757
756758 public final void scheduleReceiver (Intent intent , ActivityInfo info ,
757759 CompatibilityInfo compatInfo , int resultCode , String resultData ,
758- Bundle map , boolean sync ) throws RemoteException {
760+ Bundle map , boolean sync , int sendingUser ) throws RemoteException {
759761 Parcel data = Parcel .obtain ();
760762 data .writeInterfaceToken (IApplicationThread .descriptor );
761763 intent .writeToParcel (data , 0 );
@@ -765,6 +767,7 @@ public final void scheduleReceiver(Intent intent, ActivityInfo info,
765767 data .writeString (resultData );
766768 data .writeBundle (map );
767769 data .writeInt (sync ? 1 : 0 );
770+ data .writeInt (sendingUser );
768771 mRemote .transact (SCHEDULE_RECEIVER_TRANSACTION , data , null ,
769772 IBinder .FLAG_ONEWAY );
770773 data .recycle ();
@@ -991,8 +994,8 @@ public void dumpProvider(FileDescriptor fd, IBinder token, String[] args)
991994 }
992995
993996 public void scheduleRegisteredReceiver (IIntentReceiver receiver , Intent intent ,
994- int resultCode , String dataStr , Bundle extras , boolean ordered , boolean sticky )
995- throws RemoteException {
997+ int resultCode , String dataStr , Bundle extras , boolean ordered ,
998+ boolean sticky , int sendingUser ) throws RemoteException {
996999 Parcel data = Parcel .obtain ();
9971000 data .writeInterfaceToken (IApplicationThread .descriptor );
9981001 data .writeStrongBinder (receiver .asBinder ());
@@ -1002,6 +1005,7 @@ public void scheduleRegisteredReceiver(IIntentReceiver receiver, Intent intent,
10021005 data .writeBundle (extras );
10031006 data .writeInt (ordered ? 1 : 0 );
10041007 data .writeInt (sticky ? 1 : 0 );
1008+ data .writeInt (sendingUser );
10051009 mRemote .transact (SCHEDULE_REGISTERED_RECEIVER_TRANSACTION , data , null ,
10061010 IBinder .FLAG_ONEWAY );
10071011 data .recycle ();
0 commit comments