Home
last modified time | relevance | path

Searched refs:pkgState (Results 1 – 15 of 15) sorted by relevance

/aosp12/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
H A DDomainVerificationService.java250 if (pkgState != null) { in getDomainVerificationInfoId()
486 if (pkgState == null) {
945 if (pkgState != null) {
951 if (pkgState != null && !Objects.equals(pkgState.getBackupSignatureHash(),
954 pkgState = null;
963 pkgState = new DomainVerificationPkgState(pkgState, domainSetId, hasAutoVerifyDomains);
1155 if (pkgState != null) {
1335 if (pkgState == null) {
1401 if ((reVerify && pkgState.isHasAutoVerifyDomains()) || shouldReBroadcastPackage(pkgState)) {
1829 if (pkgState == null) {
[all …]
H A DDomainVerificationDebug.java75 DomainVerificationPkgState pkgState = stateMap.valueAt(index); in printState() local
76 String pkgName = pkgState.getPackageName(); in printState()
88 DomainVerificationPkgState pkgState = stateMap.get(packageName); in printState() local
89 if (pkgState == null) { in printState()
99 printState(writer, pkgState, pkg, reusedMap, false); in printState()
100 printState(writer, pkgState, pkg, userId, reusedSet, true); in printState()
172 reusedMap.putAll(pkgState.getStateMap()); in printState()
190 writer.println(pkgState.getPackageName() + ":"); in printState()
192 writer.println("ID: " + pkgState.getId()); in printState()
237 pkgState.getUserStates(); in printState()
[all …]
H A DDomainVerificationPersistence.java153 DomainVerificationPkgState pkgState = createPkgStateFromXml(child); in readPackageStates() local
154 if (pkgState != null) { in readPackageStates()
156 map.put(pkgState.getPackageName(), pkgState); in readPackageStates() local
218 @NonNull DomainVerificationPkgState pkgState, @UserIdInt int userId, in writePkgStateToXml() argument
220 String packageName = pkgState.getPackageName(); in writePkgStateToXml()
227 signature = pkgState.getBackupSignatureHash(); in writePkgStateToXml()
233 .attribute(ATTR_ID, pkgState.getId().toString()) in writePkgStateToXml()
235 pkgState.isHasAutoVerifyDomains()) in writePkgStateToXml()
237 writeStateMap(parentSection, pkgState.getStateMap()); in writePkgStateToXml()
238 writeUserStates(parentSection, userId, pkgState.getUserStates()); in writePkgStateToXml()
H A DDomainVerificationSettings.java114 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, pkgSettingFunction); 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
/aosp12/frameworks/base/core/java/com/android/internal/app/procstats/
H A DProcessStats.java528 pkgState.mProcesses.removeAt(iproc); in resetSafely()
536 pkgState.mServices.removeAt(isvc); in resetSafely()
547 if (pkgState.mProcesses.size() <= 0 && pkgState.mServices.size() <= 0 in resetSafely()
853 PackageState pkgState = vpkgs.valueAt(iv); in writeToParcel() local
1173 vpkg.put(vers, pkgState); in readFromParcel()
1327 commonProc = new ProcessState(this, pkgState.mPackageName, pkgState.mUid, in getProcessStateLocked()
1328 pkgState.mVersionCode, processName); in getProcessStateLocked()
1386 ps = new ProcessState(commonProc, pkgState.mPackageName, pkgState.mUid, in getProcessStateLocked()
1393 ps = new ProcessState(commonProc, pkgState.mPackageName, pkgState.mUid, in getProcessStateLocked()
1394 pkgState.mVersionCode, processName, in getProcessStateLocked()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/pm/verify/domain/models/
H A DDomainVerificationPkgState.java85 public DomainVerificationPkgState(@NonNull DomainVerificationPkgState pkgState, in DomainVerificationPkgState() argument
87 this(pkgState.getPackageName(), id, hasAutoVerifyDomains, pkgState.getStateMap(), in DomainVerificationPkgState()
88 pkgState.getUserStates(), null); in DomainVerificationPkgState()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
H A DBackupHelper.java225 BackupPackageState pkgState = pkgStates.get(i); in restoreState() local
229 pkgInfo = mContext.getPackageManager().getPackageInfo(pkgState.mPackageName, in restoreState()
232 packagesToRestoreLater.add(pkgState); in restoreState()
236 pkgState.restore(mContext, pkgInfo); in restoreState()
358 BackupPackageState pkgState = packagesToRestoreLater.get(i); in restoreDelayedState() local
360 if (pkgState.mPackageName.equals(packageName)) { in restoreDelayedState()
361 pkgState.restore(mContext, pkgInfo); in restoreDelayedState()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/
H A DProcStatsEntry.java148 ProcessStats.PackageState pkgState = vpkgs.valueAt(ivers); in evaluateTargetPackage() local
150 + pkgState + ":"); in evaluateTargetPackage()
151 if (pkgState == null) { in evaluateTargetPackage()
156 ProcessState pkgProc = pkgState.mProcesses.get(mName); in evaluateTargetPackage()
162 subProcs.add(new ProcStatsEntry(pkgProc, pkgState.mPackageName, bgTotals, in evaluateTargetPackage()
/aosp12/frameworks/base/services/core/java/com/android/server/apphibernation/
H A DAppHibernationService.java231 final UserLevelState pkgState = packageStates.get(packageName); in isHibernatingForUser() local
232 if (pkgState == null) { in isHibernatingForUser()
237 return pkgState.hibernated; in isHibernatingForUser()
286 final UserLevelState pkgState = packageStates.get(packageName); in setHibernatingForUser() local
287 if (pkgState == null) { in setHibernatingForUser()
293 if (pkgState.hibernated == isHibernating) { in setHibernatingForUser()
297 pkgState.hibernated = isHibernating; in setHibernatingForUser()
303 pkgState.lastUnhibernatedMs = System.currentTimeMillis(); in setHibernatingForUser()
306 final UserLevelState stateSnapshot = new UserLevelState(pkgState); in setHibernatingForUser()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageSetting.java103 private PackageStateUnserialized pkgState = new PackageStateUnserialized(); field in PackageSetting
174 pkgState = orig.pkgState;
437 return pkgState;
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DProcessStatsService.java413 ProcessStats.PackageState pkgState = vers.valueAt(iv); in readLF() local
414 final int NPROCS = pkgState.mProcesses.size(); in readLF()
416 Slog.w(TAG, " Process " + pkgState.mProcesses.keyAt(iproc) in readLF()
417 + ": " + pkgState.mProcesses.valueAt(iproc)); in readLF()
419 final int NSRVS = pkgState.mServices.size(); in readLF()
421 Slog.w(TAG, " Service " + pkgState.mServices.keyAt(isvc) in readLF()
422 + ": " + pkgState.mServices.valueAt(isvc)); in readLF()
425 final int NASCS = pkgState.mAssociations.size(); in readLF()
428 + pkgState.mServices.keyAt(iasc) in readLF()
429 + ": " + pkgState.mAssociations.valueAt(iasc)); in readLF()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/parsing/
H A DPackageInfoUtils.java229 PackageStateUnserialized pkgState = pkgSetting.getPkgState(); in generateApplicationInfo() local
230 info.hiddenUntilInstalled = pkgState.isHiddenUntilInstalled(); in generateApplicationInfo()
231 List<String> usesLibraryFiles = pkgState.getUsesLibraryFiles(); in generateApplicationInfo()
232 List<SharedLibraryInfo> usesLibraryInfos = pkgState.getUsesLibraryInfos(); in generateApplicationInfo()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/om/
H A DOverlayManagerServiceImplTestsBase.java371 final FakeDeviceState.Package pkgState = mState.select(packageName, userId); in getPackageForUser() local
372 return pkgState == null ? null : pkgState.getPackageForUser(userId); in getPackageForUser()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/
H A DAndroidPackageParsingTestBase.kt183 whenever(pkgState) { PackageStateUnserialized() }
/aosp12/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/
H A DPackageManagerComponentLabelIconOverrideTest.kt288 this.pkgState.isUpdatedSystemApp = params.isUpdatedSystemApp