Ejemplo 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();
        }
Ejemplo n.º 2
0
 private ProviderInfo(android.os.Parcel @in) : base(@in)
 {
     authority             = @in.readString();
     readPermission        = @in.readString();
     writePermission       = @in.readString();
     grantUriPermissions   = @in.readInt() != 0;
     uriPermissionPatterns = @in.createTypedArray(android.os.PatternMatcher.CREATOR);
     pathPermissions       = @in.createTypedArray(android.content.pm.PathPermission.CREATOR);
     multiprocess          = @in.readInt() != 0;
     initOrder             = @in.readInt();
     isSyncable            = @in.readInt() != 0;
 }