Exemplo n.º 1
0
 public virtual void updateNotification(android.os.IBinder key, [email protected]
                                        notification)
 {
     android.os.Parcel _data = android.os.Parcel.obtain();
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         _data.writeStrongBinder(key);
         if ((notification != null))
         {
             _data.writeInt(1);
             notification.writeToParcel(_data, 0);
         }
         else
         {
             _data.writeInt(0);
         }
         mRemote.transact([email protected]_updateNotification
                          , _data, null, android.os.IBinderClass.FLAG_ONEWAY);
     }
     finally
     {
         _data.recycle();
     }
 }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
0
 public virtual void setIcon(int index, [email protected]
                             icon)
 {
     android.os.Parcel _data = android.os.Parcel.obtain();
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         _data.writeInt(index);
         if ((icon != null))
         {
             _data.writeInt(1);
             icon.writeToParcel(_data, 0);
         }
         else
         {
             _data.writeInt(0);
         }
         mRemote.transact([email protected]_setIcon
                          , _data, null, android.os.IBinderClass.FLAG_ONEWAY);
     }
     finally
     {
         _data.recycle();
     }
 }
Exemplo n.º 4
0
 public virtual void writeToParcel(android.os.Parcel dest, int parcelableFlags)
 {
     dest.writeString(packageName);
     dest.writeInt(versionCode);
     dest.writeString(versionName);
     dest.writeString(sharedUserId);
     dest.writeInt(sharedUserLabel);
     if (applicationInfo != null)
     {
         dest.writeInt(1);
         applicationInfo.writeToParcel(dest, parcelableFlags);
     }
     else
     {
         dest.writeInt(0);
     }
     dest.writeLong(firstInstallTime);
     dest.writeLong(lastUpdateTime);
     dest.writeIntArray(gids);
     dest.writeTypedArray(activities, parcelableFlags);
     dest.writeTypedArray(receivers, parcelableFlags);
     dest.writeTypedArray(services, parcelableFlags);
     dest.writeTypedArray(providers, parcelableFlags);
     dest.writeTypedArray(instrumentation, parcelableFlags);
     dest.writeTypedArray(permissions, parcelableFlags);
     dest.writeStringArray(requestedPermissions);
     dest.writeTypedArray(signatures, parcelableFlags);
     dest.writeTypedArray(configPreferences, parcelableFlags);
     dest.writeTypedArray(reqFeatures, parcelableFlags);
     dest.writeInt(installLocation);
 }
Exemplo 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_updateAppWidget:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    android.widget.RemoteViews _arg1;
                    if ((0 != data.readInt()))
                    {
                        _arg1 = android.widget.RemoteViews.CREATOR.createFromParcel(data);
                    }
                    else
                    {
                        _arg1 = null;
                    }
                    this.updateAppWidget(_arg0, _arg1);
                    return(true);
                }

                case TRANSACTION_providerChanged:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    android.appwidget.AppWidgetProviderInfo _arg1;
                    if ((0 != data.readInt()))
                    {
                        _arg1 = android.appwidget.AppWidgetProviderInfo.CREATOR.createFromParcel(data);
                    }
                    else
                    {
                        _arg1 = null;
                    }
                    this.providerChanged(_arg0, _arg1);
                    return(true);
                }

                case TRANSACTION_viewDataChanged:
                {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    int _arg1;
                    _arg1 = data.readInt();
                    this.viewDataChanged(_arg0, _arg1);
                    return(true);
                }
                }
                return(base.onTransact(code, data, reply, flags));
            }
Exemplo n.º 6
0
 public virtual void providerChanged(int appWidgetId, android.appwidget.AppWidgetProviderInfo
                                     info)
 {
     android.os.Parcel _data = android.os.Parcel.obtain();
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         _data.writeInt(appWidgetId);
         if ((info != null))
         {
             _data.writeInt(1);
             info.writeToParcel(_data, 0);
         }
         else
         {
             _data.writeInt(0);
         }
         mRemote.transact([email protected]_providerChanged
                          , _data, null, android.os.IBinderClass.FLAG_ONEWAY);
     }
     finally
     {
         _data.recycle();
     }
 }
Exemplo n.º 7
0
 public virtual void writeToParcel(android.os.Parcel dest, int flags)
 {
     dest.writeInt(flPos);
     dest.writeInt(lastChildFlPos);
     dest.writeInt(gPos);
     dest.writeLong(gId);
 }
Exemplo n.º 8
0
 public override void writeToParcel(android.os.Parcel dest, int parcelableFlags)
 {
     base.writeToParcel(dest, parcelableFlags);
     dest.writeString(taskAffinity);
     dest.writeString(permission);
     dest.writeString(processName);
     dest.writeString(className);
     dest.writeInt(theme);
     dest.writeInt(flags);
     dest.writeInt(requiresSmallestWidthDp);
     dest.writeInt(compatibleWidthLimitDp);
     dest.writeInt(largestWidthLimitDp);
     dest.writeString(sourceDir);
     dest.writeString(publicSourceDir);
     dest.writeString(nativeLibraryDir);
     dest.writeStringArray(resourceDirs);
     dest.writeStringArray(sharedLibraryFiles);
     dest.writeString(dataDir);
     dest.writeInt(uid);
     dest.writeInt(targetSdkVersion);
     dest.writeInt(enabled ? 1 : 0);
     dest.writeInt(enabledSetting);
     dest.writeInt(installLocation);
     dest.writeString(manageSpaceActivityName);
     dest.writeString(backupAgentName);
     dest.writeInt(descriptionRes);
     dest.writeInt(uiOptions);
 }
Exemplo n.º 9
0
 public virtual void writeToParcel(android.os.Parcel dest, int flags)
 {
     dest.writeInt(mAction);
     dest.writeFloat(mX);
     dest.writeFloat(mY);
     dest.writeInt(mDragResult ? 1 : 0);
     if (mClipData == null)
     {
         dest.writeInt(0);
     }
     else
     {
         dest.writeInt(1);
         mClipData.writeToParcel(dest, flags);
     }
     if (mClipDescription == null)
     {
         dest.writeInt(0);
     }
     else
     {
         dest.writeInt(1);
         mClipDescription.writeToParcel(dest, flags);
     }
 }
Exemplo n.º 10
0
 private CompatibilityInfo(android.os.Parcel source)
 {
     mCompatibilityFlags      = source.readInt();
     applicationDensity       = source.readInt();
     applicationScale         = source.readFloat();
     applicationInvertedScale = source.readFloat();
 }
Exemplo n.º 11
0
 public virtual void writeToParcel(android.os.Parcel dest, int flags)
 {
     dest.writeInt(mCompatibilityFlags);
     dest.writeInt(applicationDensity);
     dest.writeFloat(applicationScale);
     dest.writeFloat(applicationInvertedScale);
 }
Exemplo n.º 12
0
 /// <summary>
 /// Set the rectangle's coordinates from the data stored in the specified
 /// parcel.
 /// </summary>
 /// <remarks>
 /// Set the rectangle's coordinates from the data stored in the specified
 /// parcel. To write a rectangle to a parcel, call writeToParcel().
 /// </remarks>
 /// <param name="in">The parcel to read the rectangle's coordinates from</param>
 public virtual void readFromParcel(android.os.Parcel @in)
 {
     left   = @in.readFloat();
     top    = @in.readFloat();
     right  = @in.readFloat();
     bottom = @in.readFloat();
 }
Exemplo n.º 13
0
 public virtual void writeToParcel(android.os.Parcel @out, int flags)
 {
     @out.writeStringArray(mSlots);
     if (mIcons == null)
     {
         @out.writeInt(-1);
     }
     else
     {
         int N = mIcons.Length;
         @out.writeInt(N);
         {
             for (int i = 0; i < N; i++)
             {
                 [email protected] ic = mIcons[i];
                 if (ic == null)
                 {
                     @out.writeInt(0);
                 }
                 else
                 {
                     @out.writeInt(1);
                     ic.writeToParcel(@out, flags);
                 }
             }
         }
     }
 }
Exemplo n.º 14
0
 public virtual void bindAppWidgetId(int appWidgetId, android.content.ComponentName
                                     provider)
 {
     android.os.Parcel _data  = android.os.Parcel.obtain();
     android.os.Parcel _reply = android.os.Parcel.obtain();
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         _data.writeInt(appWidgetId);
         if ((provider != null))
         {
             _data.writeInt(1);
             provider.writeToParcel(_data, 0);
         }
         else
         {
             _data.writeInt(0);
         }
         mRemote.transact(android.appwidget.@internal.IAppWidgetServiceClass.Stub.TRANSACTION_bindAppWidgetId
                          , _data, _reply, 0);
         _reply.readException();
     }
     finally
     {
         _reply.recycle();
         _data.recycle();
     }
 }
Exemplo n.º 15
0
 public virtual void unbindRemoteViewsService(int appWidgetId, android.content.Intent
                                              intent)
 {
     android.os.Parcel _data  = android.os.Parcel.obtain();
     android.os.Parcel _reply = android.os.Parcel.obtain();
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         _data.writeInt(appWidgetId);
         if ((intent != null))
         {
             _data.writeInt(1);
             intent.writeToParcel(_data, 0);
         }
         else
         {
             _data.writeInt(0);
         }
         mRemote.transact(android.appwidget.@internal.IAppWidgetServiceClass.Stub.TRANSACTION_unbindRemoteViewsService
                          , _data, _reply, 0);
         _reply.readException();
     }
     finally
     {
         _reply.recycle();
         _data.recycle();
     }
 }
Exemplo n.º 16
0
 public virtual void partiallyUpdateAppWidgetIds(int[] appWidgetIds, android.widget.RemoteViews
                                                 views)
 {
     android.os.Parcel _data  = android.os.Parcel.obtain();
     android.os.Parcel _reply = android.os.Parcel.obtain();
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         _data.writeIntArray(appWidgetIds);
         if ((views != null))
         {
             _data.writeInt(1);
             views.writeToParcel(_data, 0);
         }
         else
         {
             _data.writeInt(0);
         }
         mRemote.transact(android.appwidget.@internal.IAppWidgetServiceClass.Stub.TRANSACTION_partiallyUpdateAppWidgetIds
                          , _data, _reply, 0);
         _reply.readException();
     }
     finally
     {
         _reply.recycle();
         _data.recycle();
     }
 }
Exemplo n.º 17
0
 public virtual android.appwidget.AppWidgetProviderInfo getAppWidgetInfo(int appWidgetId
                                                                         )
 {
     android.os.Parcel _data  = android.os.Parcel.obtain();
     android.os.Parcel _reply = android.os.Parcel.obtain();
     android.appwidget.AppWidgetProviderInfo _result;
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         _data.writeInt(appWidgetId);
         mRemote.transact(android.appwidget.@internal.IAppWidgetServiceClass.Stub.TRANSACTION_getAppWidgetInfo
                          , _data, _reply, 0);
         _reply.readException();
         if ((0 != _reply.readInt()))
         {
             _result = android.appwidget.AppWidgetProviderInfo.CREATOR.createFromParcel(_reply
                                                                                        );
         }
         else
         {
             _result = null;
         }
     }
     finally
     {
         _reply.recycle();
         _data.recycle();
     }
     return(_result);
 }
Exemplo n.º 18
0
 /// <summary>
 /// Set the rectangle's coordinates from the data stored in the specified
 /// parcel.
 /// </summary>
 /// <remarks>
 /// Set the rectangle's coordinates from the data stored in the specified
 /// parcel. To write a rectangle to a parcel, call writeToParcel().
 /// </remarks>
 /// <param name="in">The parcel to read the rectangle's coordinates from</param>
 public void readFromParcel(android.os.Parcel @in)
 {
     left   = @in.readInt();
     top    = @in.readInt();
     right  = @in.readInt();
     bottom = @in.readInt();
 }
Exemplo n.º 19
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.º 20
0
 public virtual android.widget.RemoteViews getLoadingView()
 {
     android.os.Parcel          _data  = android.os.Parcel.obtain();
     android.os.Parcel          _reply = android.os.Parcel.obtain();
     android.widget.RemoteViews _result;
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         mRemote.transact(android.widget.@internal.IRemoteViewsFactoryClass.Stub.TRANSACTION_getLoadingView
                          , _data, _reply, 0);
         _reply.readException();
         if ((0 != _reply.readInt()))
         {
             _result = android.widget.RemoteViews.CREATOR.createFromParcel(_reply);
         }
         else
         {
             _result = null;
         }
     }
     finally
     {
         _reply.recycle();
         _data.recycle();
     }
     return(_result);
 }
Exemplo n.º 21
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_onServiceConnected:
                {
                    data.enforceInterface(DESCRIPTOR);
                    android.os.IBinder _arg0;
                    _arg0 = data.readStrongBinder();
                    this.onServiceConnected(_arg0);
                    reply.writeNoException();
                    return(true);
                }

                case TRANSACTION_onServiceDisconnected:
                {
                    data.enforceInterface(DESCRIPTOR);
                    this.onServiceDisconnected();
                    reply.writeNoException();
                    return(true);
                }
                }
                return(base.onTransact(code, data, reply, flags));
            }
Exemplo n.º 22
0
 public virtual void writeToParcel(android.os.Parcel dest, int flags)
 {
     dest.writeString(pArtistName);
     string[] mbids = Sharpen.Collections.ToArray(pMBIDs, new string[pMBIDs.Count]);
     dest.writeStringArray(mbids);
     dest.writeByte(mImageFetching ? unchecked ((byte)1) : unchecked ((byte)0));
 }
Exemplo n.º 23
0
 public virtual void writeToParcel(android.os.Parcel @out, int flags)
 {
     if (this.provider != null)
     {
         @out.writeInt(1);
         this.provider.writeToParcel(@out, flags);
     }
     else
     {
         @out.writeInt(0);
     }
     @out.writeInt(this.minWidth);
     @out.writeInt(this.minHeight);
     @out.writeInt(this.minResizeWidth);
     @out.writeInt(this.minResizeHeight);
     @out.writeInt(this.updatePeriodMillis);
     @out.writeInt(this.initialLayout);
     if (this.configure != null)
     {
         @out.writeInt(1);
         this.configure.writeToParcel(@out, flags);
     }
     else
     {
         @out.writeInt(0);
     }
     @out.writeString(this.label);
     @out.writeInt(this.icon);
     @out.writeInt(this.previewImage);
     @out.writeInt(this.autoAdvanceViewId);
     @out.writeInt(this.resizeMode);
 }
Exemplo n.º 24
0
 private ApplicationInfo(android.os.Parcel source) : base(source)
 {
     taskAffinity            = source.readString();
     permission              = source.readString();
     processName             = source.readString();
     className               = source.readString();
     theme                   = source.readInt();
     flags                   = source.readInt();
     requiresSmallestWidthDp = source.readInt();
     compatibleWidthLimitDp  = source.readInt();
     largestWidthLimitDp     = source.readInt();
     sourceDir               = source.readString();
     publicSourceDir         = source.readString();
     nativeLibraryDir        = source.readString();
     resourceDirs            = source.readStringArray();
     sharedLibraryFiles      = source.readStringArray();
     dataDir                 = source.readString();
     uid = source.readInt();
     targetSdkVersion        = source.readInt();
     enabled                 = source.readInt() != 0;
     enabledSetting          = source.readInt();
     installLocation         = source.readInt();
     manageSpaceActivityName = source.readString();
     backupAgentName         = source.readString();
     descriptionRes          = source.readInt();
     uiOptions               = source.readInt();
 }
Exemplo n.º 25
0
 public virtual void updateAppWidget(int appWidgetId, android.widget.RemoteViews views
                                     )
 {
     android.os.Parcel _data = android.os.Parcel.obtain();
     try
     {
         _data.writeInterfaceToken(DESCRIPTOR);
         _data.writeInt(appWidgetId);
         if ((views != null))
         {
             _data.writeInt(1);
             views.writeToParcel(_data, 0);
         }
         else
         {
             _data.writeInt(0);
         }
         mRemote.transact([email protected]_updateAppWidget
                          , _data, null, android.os.IBinderClass.FLAG_ONEWAY);
     }
     finally
     {
         _data.recycle();
     }
 }
Exemplo n.º 26
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);
 }
Exemplo n.º 27
0
 public void writeToParcel(android.os.Parcel @out, int flags)
 {
     @out.writeInt(left);
     @out.writeInt(top);
     @out.writeInt(right);
     @out.writeInt(bottom);
 }
Exemplo n.º 28
0
 public override void writeToParcel(Parcel dest, int flags)
 {
     dest.writeString(mConnectionString);
     dest.writeByte(toByte(mLazyAreaLocationReport));
     dest.writeByte(toByte(mRealtimeLocationReport));
     dest.writeByte(toByte(mFineRealtimeLocationReport));
     dest.writeByte(toByte(mBackgroundRealtimeLocationReport));
 }
Exemplo n.º 29
0
 public virtual void writeToParcel(android.os.Parcel dest, int flags)
 {
     dest.writeString(mName);
     dest.writeString(mMBID);
     dest.writeString(mArtistName);
     dest.writeByte(unchecked ((byte)(mImageFetching ? 1 : 0)));
     dest.writeSerializable(mDate);
 }
Exemplo n.º 30
0
 /// <summary>
 /// Unmarshal a parcel. </summary>
 /// <param name="in"> parcel. </param>
 private EngagementConfiguration(Parcel @in)
 {
     mConnectionString                 = @in.readString();
     mLazyAreaLocationReport           = toBoolean(@in.readByte());
     mRealtimeLocationReport           = toBoolean(@in.readByte());
     mFineRealtimeLocationReport       = toBoolean(@in.readByte());
     mBackgroundRealtimeLocationReport = toBoolean(@in.readByte());
 }