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.java56 protected void writeInternal(Map<String, PackageSetting> pkgSettings) { in writeInternal() argument
70 for (PackageSetting pkgSetting : pkgSettings.values()) { in writeInternal()
95 protected void readInternal(Map<String, PackageSetting> pkgSettings) { in readInternal() argument
106 readVersion1LP(pkgSettings, in, sb); in readInternal()
108 readVersion0LP(pkgSettings, in, sb, firstLine); in readInternal()
119 private void readVersion0LP(Map<String, PackageSetting> pkgSettings, InputStream in, in readVersion0LP() argument
133 PackageSetting pkgSetting = pkgSettings.get(packageName); in readVersion0LP()
147 private void readVersion1LP(Map<String, PackageSetting> pkgSettings, InputStream in, in readVersion1LP() argument
159 PackageSetting pkgSetting = pkgSettings.get(packageName); in readVersion1LP()
DPackageManagerServiceUtils.java133 public static void sortPackagesByUsageDate(List<PackageSetting> pkgSettings, in sortPackagesByUsageDate() argument
139 Collections.sort(pkgSettings, (pkgSetting1, pkgSetting2) -> in sortPackagesByUsageDate()
189 Collection<PackageSetting> pkgSettings, in getPackagesForDexopt() argument
193 ArrayList<PackageSetting> remainingPkgSettings = new ArrayList<>(pkgSettings); in getPackagesForDexopt()
307 public static String packagesToString(List<PackageSetting> pkgSettings) {
309 for (int index = 0; index < pkgSettings.size(); index++) {
313 sb.append(pkgSettings.get(index).name);
DPackageManagerService.java4786 Collection<PackageSetting> pkgSettings; in dump() local
4790 pkgSettings = Collections.singletonList(targetPkgSetting); in dump()
4796 pkgSettings = mSettings.getPackagesLocked().values(); in dump()
4799 for (PackageSetting pkgSetting : pkgSettings) { in dump()
12505 List<PackageSetting> pkgSettings; in updatePackagesIfNeeded() local
12507 pkgSettings = PackageManagerServiceUtils.getPackagesForDexopt( in updatePackagesIfNeeded()
12511 List<AndroidPackage> pkgs = new ArrayList<>(pkgSettings.size()); in updatePackagesIfNeeded()
12512 for (int index = 0; index < pkgSettings.size(); index++) { in updatePackagesIfNeeded()
12513 pkgs.add(pkgSettings.get(index).pkg); in updatePackagesIfNeeded()
DSettings.java567 public Settings(Map<String, PackageSetting> pkgSettings) {
581 mPackages.putAll(pkgSettings);
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationService.java263 return mConnection.withPackageSettingsSnapshotReturningThrowing(pkgSettings -> { in getDomainVerificationInfo()
265 PackageSetting pkgSetting = pkgSettings.apply(packageName); in getDomainVerificationInfo()
323 return mConnection.withPackageSettingsSnapshotReturningThrowing(pkgSettings -> {
329 pkgSettings);
379 mConnection.withPackageSettingsSnapshot(pkgSettings -> {
387 PackageSetting pkgSetting = pkgSettings.apply(pkgName);
414 mConnection.withPackageSettingsSnapshotThrowing(pkgSettings -> {
421 PackageSetting pkgSetting = pkgSettings.apply(packageName);
551 return mConnection.withPackageSettingsSnapshotReturningThrowing(pkgSettings -> {
554 false /* forAutoVerify */, callingUid, userId, pkgSettings);
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationManagerApiTest.kt458 private fun makeService(vararg pkgSettings: PackageSetting) = in <lambda>()
459 makeService { pkgName -> pkgSettings.find { pkgName == it.getName() } } in <lambda>()
533 private fun DomainVerificationService.addPackages(vararg pkgSettings: PackageSetting) = in <lambda>()
534 pkgSettings.forEach(::addPackage) in <lambda>()
DDomainVerificationPackageTest.kt759 vararg pkgSettings: PackageSetting in <lambda>()
761 pkgName -> pkgSettings.find { pkgName == it.getName() } in <lambda>()
764 private fun makeService(vararg pkgSettings: PackageSetting) = in <lambda>()
765 makeService { pkgName -> pkgSettings.find { pkgName == it.getName() } } in <lambda>()