Lines Matching refs:mSettings
333 final Settings mSettings;
744 PackageSetting ps = mSettings.mPackages.get(ent.getKey());
770 mSettings.addPackageToCleanLPw(
774 mSettings.addPackageToCleanLPw(
904 mSettings.writeLPr();
914 mSettings.writePackageRestrictionsLPr(userId);
1056 mSettings = new Settings(context);
1057 mSettings.addSharedUserLPw("android.uid.system",
1059 mSettings.addSharedUserLPw("android.uid.phone", RADIO_UID, ApplicationInfo.FLAG_SYSTEM);
1060 mSettings.addSharedUserLPw("android.uid.log", LOG_UID, ApplicationInfo.FLAG_SYSTEM);
1061 mSettings.addSharedUserLPw("android.uid.nfc", NFC_UID, ApplicationInfo.FLAG_SYSTEM);
1062 mSettings.addSharedUserLPw("android.uid.bluetooth", BLUETOOTH_UID, ApplicationInfo.FLAG_SYSTEM);
1063 mSettings.addSharedUserLPw("android.uid.shell", SHELL_UID, ApplicationInfo.FLAG_SYSTEM);
1109 mRestoredSettings = mSettings.readLPw(this, sUserManager.getUsers(false),
1266 Iterator<PackageSetting> psit = mSettings.mPackages.values().iterator();
1290 if (mSettings.isDisabledSystemPackageLPr(ps.name)) {
1299 if (!mSettings.isDisabledSystemPackageLPr(ps.name)) {
1306 final PackageSetting disabledPs = mSettings.getDisabledSystemPkgLPr(ps.name);
1315 ArrayList<PackageSetting> deletePkgsList = mSettings.getListOfIncompleteInstallPackagesLPr();
1346 mSettings.removeDisabledSystemPackageLPw(deletedAppName);
1360 PackageSetting deletedPs = mSettings.mPackages.get(deletedAppName);
1386 final boolean regrantPermissions = mSettings.mInternalSdkPlatform
1389 + mSettings.mInternalSdkPlatform + " to " + mSdkVersion
1391 mSettings.mInternalSdkPlatform = mSdkVersion;
1401 mSettings.readDefaultPreferredAppsLPw(this, 0);
1405 mSettings.writeLPr();
1445 final PackageSetting ps = mSettings.mPackages.get(packageName);
1492 mSettings.removePackageLPw(ps.name);
1658 BasePermission bp = mSettings.mPermissions.get(name);
1661 mSettings.mPermissions.put(name, bp);
1746 PackageSetting ps = mSettings.mPackages.get(names[i]);
1758 String cur = mSettings.mRenamedPackages.get(names[i]);
1775 PackageSetting ps = mSettings.mPackages.get(packageName);
1798 final BasePermission basePerm = mSettings.mPermissions.get(
1826 final BasePermission p = mSettings.mPermissions.get(name);
1838 for (BasePermission p : mSettings.mPermissions.values()) {
1881 PackageSetting ps = mSettings.mPackages.get(packageName);
1900 PackageSetting ps = mSettings.mPackages.get(packageName);
1934 PackageSetting ps = mSettings.mPackages.get(packageName);
2012 if (a != null && mSettings.isEnabledLPr(a.info, flags, userId)) {
2013 PackageSetting ps = mSettings.mPackages.get(component.getPackageName());
2033 if (a != null && mSettings.isEnabledLPr(a.info, flags, userId)) {
2034 PackageSetting ps = mSettings.mPackages.get(component.getPackageName());
2051 if (s != null && mSettings.isEnabledLPr(s.info, flags, userId)) {
2052 PackageSetting ps = mSettings.mPackages.get(component.getPackageName());
2069 if (p != null && mSettings.isEnabledLPr(p.info, flags, userId)) {
2070 PackageSetting ps = mSettings.mPackages.get(component.getPackageName());
2149 Object obj = mSettings.getUserIdLPr(UserHandle.getAppId(uid));
2197 for(BasePermission bp : mSettings.mPermissionTrees.values()) {
2257 BasePermission bp = mSettings.mPermissions.get(info.name);
2283 mSettings.mPermissions.put(info.name, bp);
2287 mSettings.writeLPr();
2310 BasePermission bp = mSettings.mPermissions.get(name);
2317 mSettings.mPermissions.remove(name);
2318 mSettings.writeLPr();
2359 final BasePermission bp = mSettings.mPermissions.get(permissionName);
2375 mSettings.writeLPr();
2392 final BasePermission bp = mSettings.mPermissions.get(permissionName);
2409 mSettings.writeLPr();
2464 Object obj = mSettings.getUserIdLPr(uid1);
2476 obj = mSettings.getUserIdLPr(uid2);
2520 Object obj = mSettings.getUserIdLPr(uid);
2542 Object obj = mSettings.getUserIdLPr(UserHandle.getAppId(uid));
2560 final SharedUserSetting suid = mSettings.getSharedUserLPw(sharedUserName, 0, false);
2630 PreferredIntentResolver pir = mSettings.mPreferredActivities.get(userId);
3029 list = new ArrayList<PackageInfo>(mSettings.mPackages.size());
3030 for (PackageSetting ps : mSettings.mPackages.values()) {
3104 for (PackageSetting ps : mSettings.mPackages.values()) {
3130 list = new ArrayList<ApplicationInfo>(mSettings.mPackages.size());
3131 for (PackageSetting ps : mSettings.mPackages.values()) {
3172 PackageSetting ps = mSettings.mPackages.get(p.packageName);
3194 ? mSettings.mPackages.get(provider.owner.packageName)
3197 && mSettings.isEnabledLPr(provider.info, flags, userId)
3219 PackageSetting ps = mSettings.mPackages.get(p.owner.packageName);
3246 PackageSetting ps = mSettings.mPackages.get(p.owner.packageName);
3251 && mSettings.isEnabledLPr(p.info, flags, userId)
3412 String oldName = mSettings.mRenamedPackages.get(pkg.packageName);
3416 ps = mSettings.peekPackageLPr(oldName);
3420 ps = mSettings.peekPackageLPr(pkg.packageName);
3425 updatedPkg = mSettings.getDisabledSystemPkgLPr(ps != null ? ps.name : pkg.packageName);
3474 mSettings.enableSystemPackageLPw(ps.name);
3573 mSettings.disableSystemPackageLPw(pkg.packageName);
4042 suid = mSettings.getSharedUserLPw(pkg.mSharedUserId,
4063 final String renamed = mSettings.mRenamedPackages.get(pkg.mRealPackage);
4079 if ((origPackage = mSettings.peekPackageLPr(
4114 pkgSetting = mSettings.getPackageLPw(pkg, origPackage, realName, suid, destCodeFile,
4147 if (mSettings.isDisabledSystemPackageLPr(pkg.packageName)) {
4216 final PackageSetting orig = mSettings.peekPackageLPr(origName);
4221 mSettings.transferPermissionsLPw(origName, pkg.packageName);
4324 mSettings.mReadMessages.append(msg);
4325 mSettings.mReadMessages.append('\n');
4482 final PackageSetting sysPs = mSettings
4558 // Add the new setting to mSettings
4559 mSettings.insertPackageSettingLPw(pkgSetting, pkg);
4563 final Iterator<PackageCleanItem> iter = mSettings.mPackagesToBeCleaned.iterator();
4749 p.tree ? mSettings.mPermissionTrees
4750 : mSettings.mPermissions;
5028 BasePermission bp = mSettings.mPermissions.get(p.info.name);
5030 bp = mSettings.mPermissionTrees.get(p.info.name);
5112 Iterator<BasePermission> it = mSettings.mPermissionTrees.values().iterator();
5118 bp.packageSetting = mSettings.mPackages.get(bp.sourcePackage);
5136 it = mSettings.mPermissions.values().iterator();
5158 bp.packageSetting = mSettings.mPackages.get(bp.sourcePackage);
5215 final BasePermission bp = mSettings.mPermissions.get(name);
5344 final PackageSetting sysPs = mSettings
5518 if (!mSettings.isEnabledLPr(info.activity.info, mFlags, userId)) {
5717 if (!mSettings.isEnabledLPr(info.service.info, mFlags, userId)) {
5885 final ArrayList<PackageCleanItem> pkgs = mSettings.mPackagesToBeCleaned;
5913 if (mSettings.mPackagesToBeCleaned.isEmpty()) {
5972 ps = mSettings.mPackages.get(p.applicationInfo.packageName);
6019 mSettings.writeLPr();
6132 pkgSetting = mSettings.mPackages.get(packageName);
6138 mSettings.writePackageRestrictionsLPr(userId);
6410 PackageSetting targetPackageSetting = mSettings.mPackages.get(targetPackage);
6417 installerPackageSetting = mSettings.mPackages.get(installerPackageName);
6427 Object obj = mSettings.getUserIdLPr(uid);
6455 PackageSetting setting = mSettings.mPackages.get(
8052 if (mSettings.mRenamedPackages.containsKey(pkgName)) {
8059 + mSettings.mRenamedPackages.get(pkgName));
8119 PackageSetting ps = mSettings.mPackages.get(pkgName);
8214 mSettings.writeLPr();
8242 oldPkgSetting = mSettings.mPackages.get(packageName);
8258 if (!mSettings.disableSystemPackageLPw(packageName) && deletedPackage != null) {
8301 mSettings
8302 mSettings.setInstallerPackageName(packageName,
8305 mSettings.writeLPr();
8340 mSettings.setInstallStatus(pkgName, PackageSettingBase.PKG_INSTALL_INCOMPLETE);
8341 mSettings.writeLPr();
8364 PackageSetting ps = mSettings.mPackages.get(pkgName);
8382 // upcoming call to mSettings.writeLPr().
8389 mSettings.setInstallStatus(pkgName, PackageSettingBase.PKG_INSTALL_COMPLETE);
8390 mSettings.setInstallerPackageName(pkgName, installerPackageName);
8393 mSettings.writeLPr();
8461 String oldName = mSettings.mRenamedPackages.get(pkgName);
8481 PackageSetting ps = mSettings.mPackages.get(pkgName);
8484 oldCodePath = mSettings.mPackages.get(pkgName).codePathString;
8515 final PackageSetting ps = mSettings.mPackages.get(pkgName);
8661 * updating mSettings to reflect current status
8688 PackageSetting ps = mSettings.mPackages.get(packageName);
8791 deletedPs = mSettings.mPackages.get(packageName);
8808 outInfo.removedAppId = mSettings.removePackageLPw(packageName);
8814 mSettings.updateSharedUserPermsLPw(deletedPs, mGlobalGids);
8837 mSettings.writeLPr();
8861 disabledPs = mSettings.getDisabledSystemPkgLPr(newPs.name);
8896 mSettings.enableSystemPackageLPw(newPs.name);
8919 PackageSetting ps = mSettings.mPackages.get(newPkg.packageName);
8929 mSettings.writeAllUsersPackageRestrictionsLPr();
8933 mSettings.writeLPr();
8975 ps = mSettings.mPackages.get(packageName);
9002 mSettings.writePackageRestrictionsLPr(removeUser);
9017 mSettings.writePackageRestrictionsLPr(removeUser);
9192 PackageSetting ps = mSettings.mPackages.get(packageName);
9330 PackageSetting ps = mSettings.mPackages.get(packageName);
9389 Object obj = mSettings.getUserIdLPr(uid);
9432 mSettings.editPreferredActivitiesLPw(userId).addFilter(
9434 mSettings.writePackageRestrictionsLPr(userId);
9472 PreferredIntentResolver pir = mSettings.mPreferredActivities.get(callingUserId);
9521 mSettings.writePackageRestrictionsLPr(user);
9531 for (int i=0; i<mSettings.mPreferredActivities.size(); i++) {
9532 final int thisUserId = mSettings.mPreferredActivities.keyAt(i);
9533 PreferredIntentResolver pir = mSettings.mPreferredActivities.valueAt(i);
9566 mSettings.readDefaultPreferredAppsLPw(this, user);
9567 mSettings.writePackageRestrictionsLPr(user);
9579 PreferredIntentResolver pir = mSettings.mPreferredActivities.get(userId);
9642 pkgSetting = mSettings.mPackages.get(packageName);
9706 mSettings.writePackageRestrictionsLPr(userId);
9768 if (mSettings
9778 return mSettings.getInstallerPackageNameLPr(packageName);
9789 return mSettings.getApplicationEnabledSettingLPr(packageName, userId);
9800 return mSettings.getComponentEnabledSettingLPr(componentName, userId);
9834 for (int i=0; i<mSettings.mPreferredActivities.size(); i++) {
9835 PreferredIntentResolver pir = mSettings.mPreferredActivities.valueAt(i);
9849 mSettings.writePackageRestrictionsLPr(
9850 mSettings.mPreferredActivities.keyAt(i));
10107 for (int i=0; i<mSettings.mPreferredActivities.size(); i++) {
10108 PreferredIntentResolver pir = mSettings.mPreferredActivities.valueAt(i);
10109 int user = mSettings.mPreferredActivities.keyAt(i);
10130 mSettings.writePreferredActivitiesLPr(serializer, 0, fullPreferred);
10143 mSettings.dumpPermissionsLPr(pw, packageName, dumpState);
10183 mSettings.dumpPackagesLPr(pw, packageName, dumpState);
10187 mSettings.dumpSharedUsersLPr(pw, packageName, dumpState);
10193 mSettings.dumpReadMessagesLPr(pw, dumpState);
10354 final PackageSetting ps = mSettings.mPackages.get(pkgName);
10513 final boolean regrantPermissions = mSettings.mExternalSdkPlatform != mSdkVersion;
10515 Slog.i(TAG, "Platform changed from " + mSettings.mExternalSdkPlatform + " to "
10517 mSettings.mExternalSdkPlatform = mSdkVersion;
10527 mSettings.writeLPr();
10600 mSettings.writeLPr();
10800 mSettings.writeLPr();
10871 mSettings.removeUserLPr(userHandle);
10884 mSettings.createNewUserLILPw(this, mInstaller, userHandle, path);
10895 return mSettings.getVerifierDeviceIdentityLPw();
10904 if (mSettings.mReadExternalStorageEnforced == null
10905 || mSettings.mReadExternalStorageEnforced != enforced) {
10906 mSettings.mReadExternalStorageEnforced = enforced;
10907 mSettings.writeLPr();
10955 if (mSettings.mReadExternalStorageEnforced != null) {
10956 return mSettings.mReadExternalStorageEnforced;