Esempio n. 1
0
            public android.content.res.ColorStateList createFromParcel(android.os.Parcel source
                                                                       )
            {
                int N = source.readInt();

                int[][] stateSpecs = new int[N][];
                {
                    for (int i = 0; i < N; i++)
                    {
                        stateSpecs[i] = source.createIntArray();
                    }
                }
                int[] colors = source.createIntArray();
                return(new android.content.res.ColorStateList(stateSpecs, colors));
            }
Esempio n. 2
0
 public virtual int[] getAppWidgetIds(android.content.ComponentName provider)
 {
     android.os.Parcel _data  = android.os.Parcel.obtain();
     android.os.Parcel _reply = android.os.Parcel.obtain();
     int[]             _result;
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         if ((provider != null))
         {
             _data.writeInt(1);
             provider.writeToParcel(_data, 0);
         }
         else
         {
             _data.writeInt(0);
         }
         mRemote.transact(android.appwidget.@internal.IAppWidgetServiceClass.Stub.TRANSACTION_getAppWidgetIds
                          , _data, _reply, 0);
         _reply.readException();
         _result = _reply.createIntArray();
     }
     finally
     {
         _reply.recycle();
         _data.recycle();
     }
     return(_result);
 }
Esempio n. 3
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);
 }
Esempio n. 4
0
        private PackageInfo(android.os.Parcel source)
        {
            packageName     = source.readString();
            versionCode     = source.readInt();
            versionName     = source.readString();
            sharedUserId    = source.readString();
            sharedUserLabel = source.readInt();
            int hasApp = source.readInt();

            if (hasApp != 0)
            {
                applicationInfo = android.content.pm.ApplicationInfo.CREATOR.createFromParcel(source
                                                                                              );
            }
            firstInstallTime = source.readLong();
            lastUpdateTime   = source.readLong();
            gids             = source.createIntArray();
            activities       = source.createTypedArray(android.content.pm.ActivityInfo.CREATOR);
            receivers        = source.createTypedArray(android.content.pm.ActivityInfo.CREATOR);
            services         = source.createTypedArray(android.content.pm.ServiceInfo.CREATOR);
            providers        = source.createTypedArray(android.content.pm.ProviderInfo.CREATOR);
            instrumentation  = source.createTypedArray(android.content.pm.InstrumentationInfo.
                                                       CREATOR);
            permissions          = source.createTypedArray(android.content.pm.PermissionInfo.CREATOR);
            requestedPermissions = source.createStringArray();
            signatures           = source.createTypedArray(android.content.pm.Signature.CREATOR);
            configPreferences    = source.createTypedArray(android.content.pm.ConfigurationInfo.
                                                           CREATOR);
            reqFeatures     = source.createTypedArray(android.content.pm.FeatureInfo.CREATOR);
            installLocation = source.readInt();
        }
Esempio n. 5
0
            protected internal override bool onTransact(int code, android.os.Parcel data, android.os.Parcel
                                                        reply, int flags)
            {
                switch (code)
                {
                case android.os.IBinderClass.INTERFACE_TRANSACTION:
                {
                    reply.writeString(DESCRIPTOR);
                    return(true);
                }

                case TRANSACTION_startListening:
                {
                    data.enforceInterface(DESCRIPTOR);
                    [email protected] _arg0;
                    _arg0 = [email protected](data.readStrongBinder
                                                                                                 ());
                    string _arg1;
                    _arg1 = data.readString();
                    int _arg2;
                    _arg2 = data.readInt();
                    java.util.List <android.widget.RemoteViews> _arg3;
                    _arg3 = new java.util.ArrayList <android.widget.RemoteViews>();
                    int[] _result = this.startListening(_arg0, _arg1, _arg2, _arg3);
                    reply.writeNoException();
                    reply.writeIntArray(_result);
                    reply.writeTypedList(_arg3);
                    return(true);
                }

                case TRANSACTION_stopListening:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    this.stopListening(_arg0);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_allocateAppWidgetId:
                {
                    data.enforceInterface(DESCRIPTOR);
                    string _arg0;
                    _arg0 = data.readString();
                    int _arg1;
                    _arg1 = data.readInt();
                    int _result = this.allocateAppWidgetId(_arg0, _arg1);
                    reply.writeNoException();
                    reply.writeInt(_result);
                    return(true);
                }

                case TRANSACTION_deleteAppWidgetId:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    this.deleteAppWidgetId(_arg0);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_deleteHost:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    this.deleteHost(_arg0);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_deleteAllHosts:
                {
                    data.enforceInterface(DESCRIPTOR);
                    this.deleteAllHosts();
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_getAppWidgetViews:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    android.widget.RemoteViews _result = this.getAppWidgetViews(_arg0);
                    reply.writeNoException();
                    if ((_result != null))
                    {
                        reply.writeInt(1);
                        _result.writeToParcel(reply, android.os.ParcelableClass.PARCELABLE_WRITE_RETURN_VALUE
                                              );
                    }
                    else
                    {
                        reply.writeInt(0);
                    }
                    return(true);
                }

                case TRANSACTION_updateAppWidgetIds:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int[] _arg0;
                    _arg0 = data.createIntArray();
                    android.widget.RemoteViews _arg1;
                    if ((0 != data.readInt()))
                    {
                        _arg1 = android.widget.RemoteViews.CREATOR.createFromParcel(data);
                    }
                    else
                    {
                        _arg1 = null;
                    }
                    this.updateAppWidgetIds(_arg0, _arg1);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_partiallyUpdateAppWidgetIds:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int[] _arg0;
                    _arg0 = data.createIntArray();
                    android.widget.RemoteViews _arg1;
                    if ((0 != data.readInt()))
                    {
                        _arg1 = android.widget.RemoteViews.CREATOR.createFromParcel(data);
                    }
                    else
                    {
                        _arg1 = null;
                    }
                    this.partiallyUpdateAppWidgetIds(_arg0, _arg1);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_updateAppWidgetProvider:
                {
                    data.enforceInterface(DESCRIPTOR);
                    android.content.ComponentName _arg0;
                    if ((0 != data.readInt()))
                    {
                        _arg0 = android.content.ComponentName.CREATOR.createFromParcel(data);
                    }
                    else
                    {
                        _arg0 = null;
                    }
                    android.widget.RemoteViews _arg1;
                    if ((0 != data.readInt()))
                    {
                        _arg1 = android.widget.RemoteViews.CREATOR.createFromParcel(data);
                    }
                    else
                    {
                        _arg1 = null;
                    }
                    this.updateAppWidgetProvider(_arg0, _arg1);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_notifyAppWidgetViewDataChanged:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int[] _arg0;
                    _arg0 = data.createIntArray();
                    int _arg1;
                    _arg1 = data.readInt();
                    this.notifyAppWidgetViewDataChanged(_arg0, _arg1);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_getInstalledProviders:
                {
                    data.enforceInterface(DESCRIPTOR);
                    java.util.List <android.appwidget.AppWidgetProviderInfo> _result = this.getInstalledProviders
                                                                                           ();
                    reply.writeNoException();
                    reply.writeTypedList(_result);
                    return(true);
                }

                case TRANSACTION_getAppWidgetInfo:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    android.appwidget.AppWidgetProviderInfo _result = this.getAppWidgetInfo(_arg0);
                    reply.writeNoException();
                    if ((_result != null))
                    {
                        reply.writeInt(1);
                        _result.writeToParcel(reply, android.os.ParcelableClass.PARCELABLE_WRITE_RETURN_VALUE
                                              );
                    }
                    else
                    {
                        reply.writeInt(0);
                    }
                    return(true);
                }

                case TRANSACTION_bindAppWidgetId:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    android.content.ComponentName _arg1;
                    if ((0 != data.readInt()))
                    {
                        _arg1 = android.content.ComponentName.CREATOR.createFromParcel(data);
                    }
                    else
                    {
                        _arg1 = null;
                    }
                    this.bindAppWidgetId(_arg0, _arg1);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_bindRemoteViewsService:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    android.content.Intent _arg1;
                    if ((0 != data.readInt()))
                    {
                        _arg1 = android.content.Intent.CREATOR.createFromParcel(data);
                    }
                    else
                    {
                        _arg1 = null;
                    }
                    android.os.IBinder _arg2;
                    _arg2 = data.readStrongBinder();
                    this.bindRemoteViewsService(_arg0, _arg1, _arg2);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_unbindRemoteViewsService:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    android.content.Intent _arg1;
                    if ((0 != data.readInt()))
                    {
                        _arg1 = android.content.Intent.CREATOR.createFromParcel(data);
                    }
                    else
                    {
                        _arg1 = null;
                    }
                    this.unbindRemoteViewsService(_arg0, _arg1);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_getAppWidgetIds:
                {
                    data.enforceInterface(DESCRIPTOR);
                    android.content.ComponentName _arg0;
                    if ((0 != data.readInt()))
                    {
                        _arg0 = android.content.ComponentName.CREATOR.createFromParcel(data);
                    }
                    else
                    {
                        _arg0 = null;
                    }
                    int[] _result = this.getAppWidgetIds(_arg0);
                    reply.writeNoException();
                    reply.writeIntArray(_result);
                    return(true);
                }
                }
                return(base.onTransact(code, data, reply, flags));
            }