FileDocCategorySizeDatePackage
SharedUserSetting.javaAPI DocAndroid 5.1 API2095Thu Mar 12 22:22:42 GMT 2015com.android.server.pm

SharedUserSetting

public final class SharedUserSetting extends GrantedPermissions
Settings data for a particular shared user ID we know about.

Fields Summary
final String
name
int
userId
int
uidFlags
final android.util.ArraySet
packages
final PackageSignatures
signatures
Constructors Summary
SharedUserSetting(String _name, int _pkgFlags)


        
        super(_pkgFlags);
        uidFlags =  _pkgFlags;
        name = _name;
    
Methods Summary
voidaddPackage(PackageSetting packageSetting)

        if (packages.add(packageSetting)) {
            setFlags(this.pkgFlags | packageSetting.pkgFlags);
        }
    
voidremovePackage(PackageSetting packageSetting)

        if (packages.remove(packageSetting)) {
            // recalculate the pkgFlags for this shared user if needed
            if ((this.pkgFlags & packageSetting.pkgFlags) != 0) {
                int aggregatedFlags = uidFlags;
                for (PackageSetting ps : packages) {
                    aggregatedFlags |= ps.pkgFlags;
                }
                setFlags(aggregatedFlags);
            }
        }
    
public java.lang.StringtoString()

        return "SharedUserSetting{" + Integer.toHexString(System.identityHashCode(this)) + " "
                + name + "/" + userId + "}";