Exemplo n.º 1
0
 public virtual int[] startListening([email protected] host
                                     , string packageName, int hostId, java.util.List <android.widget.RemoteViews> updatedViews
                                     )
 {
     android.os.Parcel _data  = android.os.Parcel.obtain();
     android.os.Parcel _reply = android.os.Parcel.obtain();
     int[]             _result;
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         _data.writeStrongBinder((((host != null)) ? (host.asBinder()) : (null)));
         _data.writeString(packageName);
         _data.writeInt(hostId);
         mRemote.transact(android.appwidget.@internal.IAppWidgetServiceClass.Stub.TRANSACTION_startListening
                          , _data, _reply, 0);
         _reply.readException();
         _result = _reply.createIntArray();
         _reply.readTypedList(updatedViews, android.widget.RemoteViews.CREATOR);
     }
     finally
     {
         _reply.recycle();
         _data.recycle();
     }
     return(_result);
 }
Exemplo n.º 2
0
 public virtual void registerStatusBar([email protected] callbacks
                                       , [email protected] iconList, java.util.List <android.os.IBinder
                                                                                                                 > notificationKeys, java.util.List <*****@*****.**
                                                                                                                                                     > notifications, int[] switches, java.util.List <android.os.IBinder> binders)
 {
     android.os.Parcel _data  = android.os.Parcel.obtain();
     android.os.Parcel _reply = android.os.Parcel.obtain();
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         _data.writeStrongBinder((((callbacks != null)) ? (callbacks.asBinder()) : (null))
                                 );
         if ((switches == null))
         {
             _data.writeInt(-1);
         }
         else
         {
             _data.writeInt(switches.Length);
         }
         mRemote.transact(android.statusbar.@internal.IStatusBarServiceClass.Stub.TRANSACTION_registerStatusBar
                          , _data, _reply, 0);
         _reply.readException();
         if ((0 != _reply.readInt()))
         {
             iconList.readFromParcel(_reply);
         }
         _reply.readBinderList(notificationKeys);
         _reply.readTypedList(notifications, [email protected]
                              .CREATOR);
         _reply.readIntArray(switches);
         _reply.readBinderList(binders);
     }
     finally
     {
         _reply.recycle();
         _data.recycle();
     }
 }