Exemplo n.º 1
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.º 2
0
                public virtual long getKeyDispatchingTimeout()
                {
                    android.os.Parcel _data  = android.os.Parcel.obtain();
                    android.os.Parcel _reply = android.os.Parcel.obtain();
                    long _result;

                    try
                    {
                        _data.writeInterfaceToken(DESCRIPTOR);
                        mRemote.transact(android.view.IApplicationTokenClass.Stub.TRANSACTION_getKeyDispatchingTimeout
                                         , _data, _reply, 0);
                        _reply.readException();
                        _result = _reply.readLong();
                    }
                    finally
                    {
                        _reply.recycle();
                        _data.recycle();
                    }
                    return(_result);
                }
Exemplo n.º 3
0
                public virtual long getItemId(int position)
                {
                    android.os.Parcel _data  = android.os.Parcel.obtain();
                    android.os.Parcel _reply = android.os.Parcel.obtain();
                    long _result;

                    try
                    {
                        _data.writeInterfaceToken(DESCRIPTOR);
                        _data.writeInt(position);
                        mRemote.transact(android.widget.@internal.IRemoteViewsFactoryClass.Stub.TRANSACTION_getItemId
                                         , _data, _reply, 0);
                        _reply.readException();
                        _result = _reply.readLong();
                    }
                    finally
                    {
                        _reply.recycle();
                        _data.recycle();
                    }
                    return(_result);
                }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor called from
 /// <see cref="CREATOR">CREATOR</see>
 /// </summary>
 private SavedState(android.os.Parcel @in) : base(@in)
 {
     selectedId = @in.readLong();
     position   = @in.readInt();
 }
Exemplo n.º 5
0
 public android.widget.ExpandableListConnector.GroupMetadata createFromParcel(android.os.Parcel
                                                                              @in)
 {
     android.widget.ExpandableListConnector.GroupMetadata gm = android.widget.ExpandableListConnector
                                                               .GroupMetadata.obtain(@in.readInt(), @in.readInt(), @in.readInt(), @in.readLong(
                                                                                         ));
     return(gm);
 }