/frameworks/base/services/core/java/com/android/server/pm/pkg/ |
D | PackageStateUtils.java | 41 if (pkgState.getUserStateOrDefault(user).isInstalled() == installed) { in queryInstalledUsers() 48 if (pkgState.getUserStateOrDefault(user).isInstalled() == installed) { in queryInstalledUsers() 60 final PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in isEnabledAndMatches() 74 final PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in isEnabledAndMatches()
|
D | PackageStateInternal.java | 68 default PackageUserStateInternal getUserStateOrDefault(@UserIdInt int userId) { in getUserStateOrDefault() method
|
D | PackageState.java | 302 default PackageUserState getUserStateOrDefault(@UserIdInt int userId) { in getUserStateOrDefault() method
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SuspendPackageHelper.java | 135 || !packageState.getUserStateOrDefault(targetUserId).isInstalled() in setPackagesSuspended() 148 packageState.getUserStateOrDefault(targetUserId).getSuspendParams(); in setPackagesSuspended() 268 final PackageUserStateInternal pus = ps.getUserStateOrDefault(userId); in getSuspendedPackageAppExtras() 303 ? null : packageState.getUserStateOrDefault(targetUserId); in removeSuspensionsBySuspendingPackage() 375 PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in getSuspendedPackageLauncherExtras() 399 return packageState != null && packageState.getUserStateOrDefault(userId) in isPackageSuspended() 420 final PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in getSuspendingPackage() 467 final PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in getSuspendedDialogInfo()
|
D | DistractingPackageHelper.java | 105 final int oldDistractionFlags = packageState.getUserStateOrDefault(userId) in setDistractingPackageRestrictionsAsUser() 161 res[i] = packageState.getUserStateOrDefault(userId).getDistractionFlags(); in getDistractingPackageRestrictionsAsUser() 184 if (ps != null && ps.getUserStateOrDefault(userId).getDistractionFlags() in removeDistractingPackageRestrictions()
|
D | ComputerEngine.java | 222 return PackageUserStateUtils.isMatch(pkgState.getUserStateOrDefault(userId), in isEnabledAndMatch() 234 return PackageUserStateUtils.isMatch(pkgState.getUserStateOrDefault(userId), in isEnabledAndMatch() 931 a, flags, ps.getUserStateOrDefault(userId), userId, ps); in getActivityInfoInternalBody() 975 flags, ps.getUserStateOrDefault(userId), userId, ps); in generateApplicationInfoFromSettings() 1039 p, flags, ps.getUserStateOrDefault(userId), userId, ps); in getApplicationInfoInternalBody() 1399 if (ps.getUserStateOrDefault(userId).isInstantApp()) { in maybeAddInstantAppInstaller() 1453 if (ps == null || !PackageUserStateUtils.isEnabled(ps.getUserStateOrDefault(userId), in maybeAddInstantAppInstaller() 1460 ps.getUserStateOrDefault(userId), userId); in maybeAddInstantAppInstaller() 1506 final PackageUserStateInternal state = ps.getUserStateOrDefault(userId); in generatePackageInfo() 1733 PackageUserStateInternal userState = ps.getUserStateOrDefault(userId); in getInstalledPackagesBody() [all …]
|
D | AppDataHelper.java | 451 if (ps.getUserStateOrDefault(userId).isInstalled()) { 480 final PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); 536 && packageStateInternal.getUserStateOrDefault( 570 ? packageStateInternal.getUserStateOrDefault(realUserId).getCeDataInode() : 0; 603 ? packageStateInternal.getUserStateOrDefault(realUserId).getCeDataInode() : 0;
|
D | PackageManagerInternalBase.java | 295 : packageState.getUserStateOrDefault(userId).getDistractionFlags(); in getDistractingPackageRestrictions() 391 && packageState.getUserStateOrDefault(userId).isInstantApp(); in isPackageEphemeral() 401 return !packageState.getUserStateOrDefault(userId).isNotLaunched(); in wasPackageEverLaunched() 612 return packageState.getUserStateOrDefault(userId).getEnabledComponents(); in getEnabledComponents() 622 return packageState.getUserStateOrDefault(userId).getDisabledComponents(); in getDisabledComponents() 633 return packageState.getUserStateOrDefault(userId).getEnabledState(); in getApplicationEnabledState()
|
D | PackageArchiver.java | 358 PackageUserState userState = packageState.getUserStateOrDefault(userId); in isIntentResolvedToArchivedApp() 386 if (ps == null || ps.getUserStateOrDefault(userId).getArchiveState() == null) { in clearArchiveState() 676 if (!ps.getUserStateOrDefault(userId).isInstalled()) { in verifyInstalled() 982 PackageUserStateInternal userState = ps.getUserStateOrDefault(userId); in getAnyArchiveState() 1043 PackageUserStateInternal userState = ps.getUserStateOrDefault(userId); in verifyArchived() 1248 ArchiveState archiveState = packageState.getUserStateOrDefault(userId).getArchiveState(); in getInstallerTitle() 1307 if (ps == null || !ps.getUserStateOrDefault(userId).isInstalled()) { in getPackageSettingLocked()
|
D | InstantAppRegistry.java | 382 if (!ps.getUserStateOrDefault(userId).isInstalled()) { 390 if (ps.getUserStateOrDefault(userId).isInstantApp()) { 821 final PackageUserStateInternal userState = ps.getUserStateOrDefault(userId); 950 if (ps == null || !ps.getUserStateOrDefault(userId).isInstantApp()) { 970 if (pkg == null || !ps.getUserStateOrDefault(userId).isInstalled()) { 985 ps.getUserStateOrDefault(userId), userId, ps);
|
D | DeletePackageHelper.java | 611 : ps.getUserStateOrDefault(nextUserId).getArchiveState(); in markPackageUninstalledForUserLPw() 617 : ps.getUserStateOrDefault(nextUserId).getFirstInstallTimeMillis(); in markPackageUninstalledForUserLPw() 819 packageState.getUserStateOrDefault(UserHandle.getUserId(callingUid)) in deletePackageVersionedInternal() 842 if (!packageState.getUserStateOrDefault(childId).isInstalled()) { in deletePackageVersionedInternal()
|
D | UserSystemPackageInstaller.java | 231 if (packageState.getUserStateOrDefault(userId).isInstalled() != install in installWhitelistedSystemPackages() 281 return packageState.getUserStateOrDefault(userId).getUninstallReason() in shouldChangeInstallationState()
|
D | PackageManagerService.java | 1480 var psi = ps.getUserStateOrDefault(userId); in getArchivedPackageInternal() 2456 if (!packageState.getUserStateOrDefault(userId).isInstantApp() in PackageManagerService() 2457 || !packageState.getUserStateOrDefault(userId).isInstalled()) { in PackageManagerService() 3776 Pair<String, Integer> overrideLabelIcon = packageState.getUserStateOrDefault(userId) 4537 if (packageState.getUserStateOrDefault(userId).isInstalled() == installed) { 4629 ? null : packageState.getUserStateOrDefault(userId); 4700 if (pkgSetting.getUserStateOrDefault(userId).isQuarantined()) { 4924 … ps.getUserStateOrDefault(UserHandle.getUserId(callingUid)).isInstantApp(); 5308 : packageState.getUserStateOrDefault(userId).getSplashScreenTheme(); 5319 : packageState.getUserStateOrDefault(userId).getMinAspectRatio(); [all …]
|
D | InstallRequest.java | 894 mScanResult.mPkgSetting.getUserStateOrDefault(newUser).isInstantApp(); in populateBroadcastUsers() 909 mScanResult.mPkgSetting.getUserStateOrDefault(newUser).isInstantApp(); in populateBroadcastUsers()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | ParsedComponentStateUtils.java | 45 pkgSetting.getUserStateOrDefault(userId) in getNonLocalizedLabelAndIcon()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationUserSelectionOverrideTest.kt | 156 whenever(getUserStateOrDefault(0)) { PackageUserStateInternal.DEFAULT } in mockPkgState() 157 whenever(getUserStateOrDefault(1)) { PackageUserStateInternal.DEFAULT } in mockPkgState()
|
D | DomainVerificationSettingsMutationTest.kt | 220 whenever(getUserStateOrDefault(0)) { PackageUserStateInternal.DEFAULT } in <lambda>() 221 whenever(getUserStateOrDefault(10)) { PackageUserStateInternal.DEFAULT } in <lambda>()
|
D | DomainVerificationManagerApiTest.kt | 617 whenever(getUserStateOrDefault(0)) { pkgUserState0() } in <lambda>() 618 whenever(getUserStateOrDefault(1)) { pkgUserState1() } in <lambda>()
|
D | DomainVerificationEnforcerTest.kt | 352 whenever(getUserStateOrDefault(0)) { PackageUserStateInternal.DEFAULT } in <lambda>() 353 whenever(getUserStateOrDefault(1)) { PackageUserStateInternal.DEFAULT } in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/pm/resolution/ |
D | ComponentResolverBase.java | 158 final PackageUserStateInternal state = packageState.getUserStateOrDefault(userId); in queryProvider() 221 final PackageUserStateInternal state = ps.getUserStateOrDefault(userId); in queryProviders() 299 final PackageUserStateInternal state = ps.getUserStateOrDefault(userId); in querySyncProviders()
|
D | ComponentResolver.java | 950 packageState.getUserStateOrDefault(userId).isStopped(); in isFilterStopped() 952 return packageState.getUserStateOrDefault(userId).isStopped(); in isFilterStopped() 1129 final PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in newResult() 1442 final PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in newResult() 1678 final PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in newResult()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | ScanTests.java | 396 resultSetting.getPkg(), 0, pkgSetting.getUserStateOrDefault(0), 0, resultSetting); in scanFirstBoot_apexDontDeriveAbis() 617 pkgSetting.getPkg(), 0, pkgSetting.getUserStateOrDefault(0), 0, pkgSetting); 656 pkgSetting.getPkg(), 0, pkgSetting.getUserStateOrDefault(0), 0, pkgSetting); 670 pkgSetting.getPkg(), 0, pkgSetting.getUserStateOrDefault(0), 0, pkgSetting);
|
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/ |
D | AppIdPermissionUpgrade.kt | 270 if (packageState.getUserStateOrDefault(userId).isInstantApp && !permission.isInstant) { in <lambda>()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/pkg/ |
D | PackageStateTest.kt | 129 visitType(seenTypes, emptyList(), packageState.getUserStateOrDefault(0), in collectionImmutability()
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationService.java | 939 firstPkgSetting == null ? -1L : firstPkgSetting.getUserStateOrDefault( in getOwnersForDomainInternal() 942 secondPkgSetting == null ? -1L : secondPkgSetting.getUserStateOrDefault( in getOwnersForDomainInternal() 1902 PackageUserStateInternal pkgUserState = pkgSetting.getUserStateOrDefault(userId); in approvalLevelForDomain() 2008 if (pkgSetting.getUserStateOrDefault(userId).isInstantApp() in approvalLevelForDomainInternal() 2128 long installTime = pkgSetting.getUserStateOrDefault(userId).getFirstInstallTimeMillis(); in getApprovedPackagesLocked()
|