Lines Matching defs:packageSetting
170 final ArrayMap<String, PackageSetting> mPackages =
171 new ArrayMap<String, PackageSetting>();
173 private final ArrayMap<String, PackageSetting> mDisabledSysPackages =
174 new ArrayMap<String, PackageSetting>();
281 PackageSetting getPackageLPw(PackageParser.Package pkg, PackageSetting origPackage,
286 PackageSetting p = getPackageLPw(name, origPackage, realName, sharedUser, codePath,
292 PackageSetting peekPackageLPr(String name) {
297 PackageSetting p = mPackages.get(pkgName);
307 PackageSetting p = mPackages.get(pkgName);
339 final PackageSetting p = mPackages.get(name);
344 final PackageSetting dp = mDisabledSysPackages.get(name);
353 // want to modify the existing PackageSetting for the built-in
354 // version. so at this point we need a new PackageSetting that
356 PackageSetting newp = new PackageSetting(p);
363 PackageSetting enableSystemPackageLPw(String name) {
364 PackageSetting p = mDisabledSysPackages.get(name);
373 PackageSetting ret = addPackageLPw(name, p.realName, p.codePath, p.resourcePath,
389 PackageSetting addPackageLPw(String name, String realName, File codePath, File resourcePath,
392 PackageSetting p = mPackages.get(name);
401 p = new PackageSetting(name, realName, codePath, resourcePath,
457 bp.packageSetting = null;
469 private PackageSetting getPackageLPw(String name, PackageSetting origPackage,
474 PackageSetting p = mPackages.get(name);
522 p = new PackageSetting(origPackage.name, name, codePath, resourcePath,
540 p = new PackageSetting(name, realName, codePath, resourcePath,
582 PackageSetting dis = mDisabledSysPackages.get(name);
652 void insertPackageSettingLPw(PackageSetting p, PackageParser.Package pkg) {
702 // Utility method that adds a PackageSetting to mPackages and
704 private void addPackageSettingLPw(PackageSetting p, String name,
736 void updateSharedUserPermsLPw(PackageSetting deletedPs, int[] globalGids) {
753 for (PackageSetting pkg:sus.packages) {
778 final PackageSetting p = mPackages.get(name);
796 private void replacePackageLPw(String name, PackageSetting newp) {
797 final PackageSetting p = mPackages.get(name);
1072 for (PackageSetting pkg : mPackages.values()) {
1103 PackageSetting ps = null;
1307 for (final PackageSetting pkg : mPackages.values()) {
1439 for (PackageSetting pkg : mPackages.values()) {
1475 PackageSetting
1584 for (final PackageSetting pkg : mPackages.values()) {
1588 for (final PackageSetting pkg : mDisabledSysPackages.values()) {
1657 for (final PackageSetting pkg : mPackages.values()) {
1740 void writeDisabledSysPackageLPr(XmlSerializer serializer, final PackageSetting pkg)
1796 void writePackageLPr(XmlSerializer serializer, final PackageSetting pkg)
1931 ArrayList<PackageSetting> getListOfIncompleteInstallPackagesLPr() {
1934 final ArrayList<PackageSetting> ret = new ArrayList<PackageSetting>();
1937 final PackageSetting ps = mPackages.get(key);
2127 PackageSetting p = getPackageLPw(pp.name, null, pp.realName,
2174 final Iterator<PackageSetting> disabledIt = mDisabledSysPackages.values().iterator();
2176 final PackageSetting disabledPs = disabledIt.next();
2191 for (PackageSetting ps : mPackages.values()) {
2604 PackageSetting ps = new PackageSetting(name, realName, codePathFile,
2684 PackageSettingBase packageSetting = null;
2782 packageSetting = addPackageLPw(name.intern(), realName, new File(codePathStr),
2787 + userId + " pkg=" + packageSetting);
2788 if (packageSetting == null) {
2793 packageSetting.setTimeStamp(timeStamp);
2794 packageSetting.firstInstallTime = firstInstallTime;
2795 packageSetting.lastUpdateTime = lastUpdateTime;
2800 packageSetting = new PendingPackage(name.intern(), realName, new File(
2804 packageSetting.setTimeStamp(timeStamp);
2805 packageSetting.firstInstallTime = firstInstallTime;
2806 packageSetting.lastUpdateTime = lastUpdateTime;
2807 mPendingPackages.add((PendingPackage) packageSetting);
2810 + ": sharedUserId=" + userId + " pkg=" + packageSetting);
2827 if (packageSetting != null) {
2828 packageSetting.uidError = "true".equals(uidError);
2829 packageSetting.installerPackageName = installerPackageName;
2830 packageSetting.legacyNativeLibraryPathString = legacyNativeLibraryPathStr;
2831 packageSetting.primaryCpuAbiString = primaryCpuAbiString;
2832 packageSetting.secondaryCpuAbiString = secondaryCpuAbiString;
2837 packageSetting.setEnabled(Integer.parseInt(enabledStr), 0 /* userId */, null);
2840 packageSetting.setEnabled(COMPONENT_ENABLED_STATE_ENABLED, 0, null);
2842 packageSetting.setEnabled(COMPONENT_ENABLED_STATE_DISABLED, 0, null);
2844 packageSetting.setEnabled(COMPONENT_ENABLED_STATE_DEFAULT, 0, null);
2853 packageSetting.setEnabled(COMPONENT_ENABLED_STATE_DEFAULT, 0, null);
2859 packageSetting.installStatus = PackageSettingBase.PKG_INSTALL_INCOMPLETE;
2861 packageSetting.installStatus = PackageSettingBase.PKG_INSTALL_COMPLETE;
2876 readDisabledComponentsLPw(packageSetting, parser, 0);
2878 readEnabledComponentsLPw(packageSetting, parser, 0);
2880 packageSetting.signatures.readXml(parser, mPastSignatures);
2882 readGrantedPermissionsLPw(parser, packageSetting.grantedPermissions);
2883 packageSetting.permissionsFixed = true;
2886 packageSetting.keySetData.setProperSigningKeySet(id);
2889 packageSetting.keySetData.addSigningKeySet(id);
2892 packageSetting.keySetData.addUpgradeKeySetById(id);
2896 packageSetting.keySetData.addDefinedKeySet(id, alias);
2910 private void readDisabledComponentsLPw(PackageSettingBase packageSetting, XmlPullParser parser,
2924 packageSetting.addDisabledComponent(name.intern(), userId);
2938 private void readEnabledComponentsLPw(PackageSettingBase packageSetting, XmlPullParser parser,
2952 packageSetting.addEnabledComponent(name.intern(), userId);
3060 for (PackageSetting ps : mPackages.values()) {
3076 Set<Entry<String, PackageSetting>> entries = mPackages.entrySet();
3077 for (Entry<String, PackageSetting> entry : entries) {
3153 public PackageSetting getDisabledSystemPkgLPr(String name) {
3154 PackageSetting ps = mDisabledSysPackages.get(name);
3167 final PackageSetting packageSettings = mPackages.get(pkgName);
3204 final PackageSetting pkg = mPackages.get(packageName);
3212 final PackageSetting pkg = mPackages.get(packageName);
3221 final PackageSetting pkg = mPackages.get(packageName);
3232 final PackageSetting pkgSetting = mPackages.get(packageName);
3310 void dumpPackageLPr(PrintWriter pw, String prefix, String checkinTag, PackageSetting ps,
3529 for (final PackageSetting ps : mPackages.values()) {
3574 for (final PackageSetting ps : mDisabledSysPackages.values()) {
3611 if (p.packageSetting != null) {
3612 pw.print(" packageSetting="); pw.println(p.packageSetting);