Home
last modified time | relevance | path

Searched refs:getUserStateOrDefault (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/pm/pkg/
DPackageStateUtils.java41 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()
DPackageStateInternal.java68 default PackageUserStateInternal getUserStateOrDefault(@UserIdInt int userId) { in getUserStateOrDefault() method
DPackageState.java302 default PackageUserState getUserStateOrDefault(@UserIdInt int userId) { in getUserStateOrDefault() method
/frameworks/base/services/core/java/com/android/server/pm/
DSuspendPackageHelper.java135 || !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()
DDistractingPackageHelper.java105 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()
DComputerEngine.java222 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 …]
DAppDataHelper.java451 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;
DPackageManagerInternalBase.java295 : 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()
DPackageArchiver.java358 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()
DInstantAppRegistry.java382 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);
DDeletePackageHelper.java611 : 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()
DUserSystemPackageInstaller.java231 if (packageState.getUserStateOrDefault(userId).isInstalled() != install in installWhitelistedSystemPackages()
281 return packageState.getUserStateOrDefault(userId).getUninstallReason() in shouldChangeInstallationState()
DPackageManagerService.java1480 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 …]
DInstallRequest.java894 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/
DParsedComponentStateUtils.java45 pkgSetting.getUserStateOrDefault(userId) in getNonLocalizedLabelAndIcon()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationUserSelectionOverrideTest.kt156 whenever(getUserStateOrDefault(0)) { PackageUserStateInternal.DEFAULT } in mockPkgState()
157 whenever(getUserStateOrDefault(1)) { PackageUserStateInternal.DEFAULT } in mockPkgState()
DDomainVerificationSettingsMutationTest.kt220 whenever(getUserStateOrDefault(0)) { PackageUserStateInternal.DEFAULT } in <lambda>()
221 whenever(getUserStateOrDefault(10)) { PackageUserStateInternal.DEFAULT } in <lambda>()
DDomainVerificationManagerApiTest.kt617 whenever(getUserStateOrDefault(0)) { pkgUserState0() } in <lambda>()
618 whenever(getUserStateOrDefault(1)) { pkgUserState1() } in <lambda>()
DDomainVerificationEnforcerTest.kt352 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/
DComponentResolverBase.java158 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()
DComponentResolver.java950 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/
DScanTests.java396 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/
DAppIdPermissionUpgrade.kt270 if (packageState.getUserStateOrDefault(userId).isInstantApp && !permission.isInstant) { in <lambda>()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/pkg/
DPackageStateTest.kt129 visitType(seenTypes, emptyList(), packageState.getUserStateOrDefault(0), in collectionImmutability()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationService.java939 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()

12