Home
last modified time | relevance | path

Searched refs:pkgSettings (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DPackageUsage.java54 protected void writeInternal(Map<String, PackageSetting> pkgSettings) { in writeInternal() argument
68 for (PackageSetting pkgSetting : pkgSettings.values()) { in writeInternal()
94 protected void readInternal(Map<String, PackageSetting> pkgSettings) { in readInternal() argument
105 readVersion1LP(pkgSettings, in, sb); in readInternal()
107 readVersion0LP(pkgSettings, in, sb, firstLine); in readInternal()
118 private void readVersion0LP(Map<String, PackageSetting> pkgSettings, InputStream in, in readVersion0LP() argument
132 PackageSetting pkgSetting = pkgSettings.get(packageName); in readVersion0LP()
146 private void readVersion1LP(Map<String, PackageSetting> pkgSettings, InputStream in, in readVersion1LP() argument
158 PackageSetting pkgSetting = pkgSettings.get(packageName); in readVersion1LP()
DDexOptHelper.java310 Collection<? extends PackageStateInternal> pkgSettings, in getPackagesForDexopt() argument
314 ArrayList<PackageStateInternal> remainingPkgSettings = new ArrayList<>(pkgSettings); in getPackagesForDexopt()
424 private static void sortPackagesByUsageDate(List<PackageStateInternal> pkgSettings, in sortPackagesByUsageDate() argument
430 Collections.sort(pkgSettings, (pkgSetting1, pkgSetting2) -> in sortPackagesByUsageDate()
453 public static String packagesToString(List<PackageStateInternal> pkgSettings) { in packagesToString() argument
455 for (int index = 0; index < pkgSettings.size(); index++) { in packagesToString()
459 sb.append(pkgSettings.get(index).getPackageName()); in packagesToString()
DPackageManagerService.java3858 final Map<String, PackageSetting> pkgSettings = new ArrayMap<>(targetSize);
3866 if (pkgSettings.containsKey(packageName)) {
3916 pkgSettings.put(packageName, pkgSetting);
3933 final AndroidPackage pkg = pkgSettings.get(packageName).getPkg();
3954 final PackageSetting pkgSetting = pkgSettings.get(setting.getPackageName());
3998 final PackageSetting packageSetting = pkgSettings.get(packageName);
4068 userId, pkgSettings.get(packageName).getAppId());
DComputerEngine.java3140 Collection<? extends PackageStateInternal> pkgSettings; in dump() local
3142 pkgSettings = Collections.singletonList(setting); in dump()
3144 pkgSettings = mSettings.getPackages().values(); in dump()
3147 for (PackageStateInternal pkgSetting : pkgSettings) { in dump()
DSettings.java614 public Settings(Map<String, PackageSetting> pkgSettings) {
644 mPackages.putAll(pkgSettings);
/frameworks/base/services/core/java/com/android/server/am/
DAppRestrictionController.java929 final PkgSettings pkgSettings; in loadOneFromXml() local
931 pkgSettings = getRestrictionSettingsLocked(uid, packageName); in loadOneFromXml()
932 if (pkgSettings == null) { in loadOneFromXml()
936 if (pkgSettings.getLastNotificationTime(i) == 0 && ts[i] != 0) { in loadOneFromXml()
937 pkgSettings.setLastNotificationTime(i, ts[i], false); in loadOneFromXml()
940 if (pkgSettings.mCurrentRestrictionLevel >= curLevel) { in loadOneFromXml()
952 pkgSettings.update(curLevel, in loadOneFromXml()
957 pkgSettings.setLevelChangeTime(levelTs); in loadOneFromXml()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java3142 final RestrictionSettings.PkgSettings pkgSettings = settings.getRestrictionSettingsLocked( in setRestrictionSettings() local
3145 pkgSettings.setLastNotificationTime(i, notificationTime[i], persist); in setRestrictionSettings()