/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationService.java | 253 DomainVerificationPkgState pkgState = mAttachedPkgStates.get(packageName); in setUriRelativeFilterGroups() local 254 if (pkgState == null) { in setUriRelativeFilterGroups() 258 pkgState.getUriRelativeFilterGroupMap(); in setUriRelativeFilterGroups() 284 DomainVerificationPkgState pkgState = mAttachedPkgStates.get(packageName); in getUriRelativeFilterGroups() local 285 if (pkgState != null) { in getUriRelativeFilterGroups() 287 pkgState.getUriRelativeFilterGroupMap(); in getUriRelativeFilterGroups() 305 DomainVerificationPkgState pkgState = mAttachedPkgStates.get(packageName); in getUriRelativeFilterGroups() local 306 if (pkgState != null) { in getUriRelativeFilterGroups() 308 pkgState.getUriRelativeFilterGroupMap(); in getUriRelativeFilterGroups() 335 DomainVerificationPkgState pkgState = mAttachedPkgStates.valueAt(index); in queryValidVerificationPackageNames() local [all …]
|
D | DomainVerificationDebug.java | 74 DomainVerificationPkgState pkgState = stateMap.valueAt(index); in printState() local 75 String pkgName = pkgState.getPackageName(); in printState() 81 boolean wasHeaderPrinted = printState(writer, pkgState, pkgSetting.getPkg(), in printState() 83 printState(writer, pkgState, pkgSetting.getPkg(), userId, reusedSet, in printState() 87 DomainVerificationPkgState pkgState = stateMap.get(packageName); in printState() local 88 if (pkgState == null) { in printState() 98 printState(writer, pkgState, pkg, reusedMap, false); in printState() 99 printState(writer, pkgState, pkg, userId, reusedSet, true); in printState() 168 @NonNull DomainVerificationPkgState pkgState, @NonNull AndroidPackage pkg, in printState() argument 171 reusedMap.putAll(pkgState.getStateMap()); in printState() [all …]
|
D | DomainVerificationSettings.java | 114 DomainVerificationPkgState pkgState = active.valueAt(activeIndex); in readSettings() local 115 String pkgName = pkgState.getPackageName(); in readSettings() 120 if (!existingState.getId().equals(pkgState.getId())) { in readSettings() 121 mergePkgState(existingState, pkgState, snapshot); in readSettings() 124 mPendingPkgStates.put(pkgName, pkgState); in readSettings() 130 DomainVerificationPkgState pkgState = restored.valueAt(restoredIndex); in readSettings() local 131 mRestoredPkgStates.put(pkgState.getPackageName(), pkgState); in readSettings() local
|
D | DomainVerificationPersistence.java | 165 DomainVerificationPkgState pkgState = createPkgStateFromXml(child); in readPackageStates() local 166 if (pkgState != null) { in readPackageStates() 168 map.put(pkgState.getPackageName(), pkgState); in readPackageStates() local 267 @NonNull DomainVerificationPkgState pkgState, @UserIdInt int userId, in writePkgStateToXml() argument 269 String packageName = pkgState.getPackageName(); in writePkgStateToXml() 276 signature = pkgState.getBackupSignatureHash(); in writePkgStateToXml() 282 .attribute(ATTR_ID, pkgState.getId().toString()) in writePkgStateToXml() 284 pkgState.isHasAutoVerifyDomains()) in writePkgStateToXml() 286 writeStateMap(parentSection, pkgState.getStateMap()); in writePkgStateToXml() 287 writeUserStates(parentSection, userId, pkgState.getUserStates()); in writePkgStateToXml() [all …]
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | ProcessStats.java | 320 final PackageState pkgState = getPackageStateLocked(pkgName, uid, in add() local 323 pkgState.mProcesses.put(thisProc.getName(), thisProc); in add() 550 final PackageState pkgState = vpkgs.valueAt(iv); in resetSafely() local 551 for (int iproc=pkgState.mProcesses.size()-1; iproc>=0; iproc--) { in resetSafely() 552 final ProcessState ps = pkgState.mProcesses.valueAt(iproc); in resetSafely() 558 pkgState.mProcesses.valueAt(iproc).makeDead(); in resetSafely() 559 pkgState.mProcesses.removeAt(iproc); in resetSafely() 562 for (int isvc=pkgState.mServices.size()-1; isvc>=0; isvc--) { in resetSafely() 563 final ServiceState ss = pkgState.mServices.valueAt(isvc); in resetSafely() 567 pkgState.mServices.removeAt(isvc); in resetSafely() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/ |
D | PackageStateUtils.java | 37 public static int[] queryInstalledUsers(PackageStateInternal pkgState, int[] users, in queryInstalledUsers() argument 41 if (pkgState.getUserStateOrDefault(user).isInstalled() == installed) { in queryInstalledUsers() 48 if (pkgState.getUserStateOrDefault(user).isInstalled() == installed) { in queryInstalledUsers()
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/models/ |
D | DomainVerificationPkgState.java | 94 public DomainVerificationPkgState(@NonNull DomainVerificationPkgState pkgState, in DomainVerificationPkgState() argument 96 this(pkgState.getPackageName(), id, hasAutoVerifyDomains, pkgState.getStateMap(), in DomainVerificationPkgState() 97 pkgState.getUserStates(), null, new ArrayMap<>()); in DomainVerificationPkgState()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSetting.java | 220 private final PackageStateUnserialized pkgState = new PackageStateUnserialized(this); field in PackageSetting 482 pkgState.setUsesLibraryFiles(new ArrayList<>(usesLibraryFiles)); 756 pkgState.updateFrom(other.pkgState); 1465 return Collections.unmodifiableList(pkgState.getUsesLibraryInfos()); 1470 pkgState.addUsesLibraryInfo(new SharedLibraryWrapper(value)); 1477 return Collections.unmodifiableList(pkgState.getUsesLibraryFiles()); 1482 pkgState.addUsesLibraryFile(value); 1488 return pkgState.isHiddenUntilInstalled(); 1494 return pkgState.getLastPackageUsageTimeInMills(); 1499 return pkgState.isUpdatedSystemApp(); [all …]
|
D | AppStateHelper.java | 214 pmInternal.forEachPackageState(pkgState -> { in addLibraryDependency() 215 var pkg = pkgState.getPkg(); in addLibraryDependency()
|
D | ComputerEngine.java | 217 PackageStateInternal pkgState = getPackage(componentInfo.packageName); in isEnabledAndMatch() local 218 if (pkgState == null) { in isEnabledAndMatch() 222 return PackageUserStateUtils.isMatch(pkgState.getUserStateOrDefault(userId), in isEnabledAndMatch() 229 PackageStateInternal pkgState = getPackage(component.getPackageName()); in isEnabledAndMatch() local 230 if (pkgState == null) { in isEnabledAndMatch() 234 return PackageUserStateUtils.isMatch(pkgState.getUserStateOrDefault(userId), in isEnabledAndMatch() 235 pkgState.isSystem(), pkg.isEnabled(), component, flags); in isEnabledAndMatch()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTestsBase.java | 376 var pkgState = Mockito.mock(PackageState.class); in getPackageForUser() local 377 when(pkgState.getPackageName()).thenReturn(packageName); in getPackageForUser() 378 when(pkgState.getAndroidPackage()).thenReturn(pkg); in getPackageForUser() 379 return pkgState; in getPackageForUser() 407 final FakeDeviceState.Package pkgState = mState.select(packageName, userId); in getPackageStateForUser() local 408 return pkgState == null ? null : pkgState.getPackageForUser(userId); in getPackageStateForUser()
|
/frameworks/base/services/core/java/com/android/server/apphibernation/ |
D | AppHibernationService.java | 242 final UserLevelState pkgState = packageStates.get(packageName); in isHibernatingForUser() local 243 if (pkgState == null in isHibernatingForUser() 248 return pkgState.hibernated; in isHibernatingForUser() 299 final UserLevelState pkgState = packageStates.get(packageName); in setHibernatingForUser() local 300 if (pkgState == null in setHibernatingForUser() 308 if (pkgState.hibernated == isHibernating) { in setHibernatingForUser() 312 pkgState.hibernated = isHibernating; in setHibernatingForUser() 315 () -> hibernatePackageForUser(packageName, realUserId, pkgState)); in setHibernatingForUser() 319 pkgState.lastUnhibernatedMs = System.currentTimeMillis(); in setHibernatingForUser() 322 final UserLevelState stateSnapshot = new UserLevelState(pkgState); in setHibernatingForUser()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessStatsService.java | 418 ProcessStats.PackageState pkgState = vers.valueAt(iv); in readLF() local 419 final int NPROCS = pkgState.mProcesses.size(); in readLF() 421 Slog.w(TAG, " Process " + pkgState.mProcesses.keyAt(iproc) in readLF() 422 + ": " + pkgState.mProcesses.valueAt(iproc)); in readLF() 424 final int NSRVS = pkgState.mServices.size(); in readLF() 426 Slog.w(TAG, " Service " + pkgState.mServices.keyAt(isvc) in readLF() 427 + ": " + pkgState.mServices.valueAt(isvc)); in readLF() 430 final int NASCS = pkgState.mAssociations.size(); in readLF() 433 + pkgState.mServices.keyAt(iasc) in readLF() 434 + ": " + pkgState.mAssociations.valueAt(iasc)); in readLF()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageInfoUtils.java | 473 PackageStateUnserialized pkgState = pkgSetting.getTransientState(); in generateApplicationInfo() local 474 info.hiddenUntilInstalled = pkgState.isHiddenUntilInstalled(); in generateApplicationInfo() 475 List<String> usesLibraryFiles = pkgState.getUsesLibraryFiles(); in generateApplicationInfo() 476 var usesLibraries = pkgState.getUsesLibraryInfos(); in generateApplicationInfo()
|
/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/ |
D | PackageManagerComponentLabelIconOverrideTest.kt | 308 this.pkgState.isUpdatedSystemApp = params.isUpdatedSystemApp in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 4621 var pkgState = pmInt.getPackageStateInternal(packageName); in verifyAndGetBypass() local 4622 var pkg = pkgState == null ? null : pkgState.getAndroidPackage(); in verifyAndGetBypass() 4625 pkgUid = UserHandle.getUid(userId, pkgState.getAppId()); in verifyAndGetBypass() 4626 bypass = getBypassforPackage(pkgState); in verifyAndGetBypass()
|