Home
last modified time | relevance | path

Searched refs:snapshotComputer (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DSuspendPackageHelperTest.kt54 val failedNames = suspendPackageHelper.setPackagesSuspended(pms.snapshotComputer(), in <lambda>()
71 var failedNames = suspendPackageHelper.setPackagesSuspended(pms.snapshotComputer(), in <lambda>()
78 failedNames = suspendPackageHelper.setPackagesSuspended(pms.snapshotComputer(), in <lambda>()
88 val failedNames = suspendPackageHelper.setPackagesSuspended(pms.snapshotComputer(), in <lambda>()
100 val failedNames = suspendPackageHelper.setPackagesSuspended(pms.snapshotComputer(), in <lambda>()
111 val failedNames = suspendPackageHelper.setPackagesSuspended(pms.snapshotComputer(), in <lambda>()
124 val failedNames = suspendPackageHelper.setPackagesSuspended(pms.snapshotComputer(), in <lambda>()
138 var failedNames = suspendPackageHelper.setPackagesSuspended(pms.snapshotComputer(), in <lambda>()
145 failedNames = suspendPackageHelper.setPackagesSuspended(pms.snapshotComputer(), in <lambda>()
168 val results = suspendPackageHelper.getUnsuspendablePackagesForUser(pms.snapshotComputer(), in <lambda>()
[all …]
DDistractingPackageHelperTest.kt54 pms.snapshotComputer(), packagesToChange, in setDistractingPackageRestrictionsAsUser()
72 pms.snapshotComputer(), packagesToChange, in setDistractingPackageRestrictionsAsUser_setSameDistractionRestrictionTwice()
79 pms.snapshotComputer(), packagesToChange, in setDistractingPackageRestrictionsAsUser_setSameDistractionRestrictionTwice()
91 pms.snapshotComputer(), null /* packageNames */, in setDistractingPackageRestrictionsAsUser_emptyPackageName()
96 pms.snapshotComputer(), arrayOfNulls(0) /* packageNames */, in setDistractingPackageRestrictionsAsUser_emptyPackageName()
104 pms.snapshotComputer(), arrayOf(TEST_PACKAGE_1), in setDistractingPackageRestrictionsAsUser_callerIsNotAllowed()
114 pms.snapshotComputer(), arrayOf(DEVICE_OWNER_PACKAGE), in setDistractingPackageRestrictionsAsUser_setCallerItself()
124 pms.snapshotComputer(), arrayOf(NONEXISTENT_PACKAGE), in setDistractingPackageRestrictionsAsUser_nonexistentPackage()
137 pms.snapshotComputer(), knownPackages, in setDistractingPackageRestrictionsAsUser_setKnownPackages()
149 pms.snapshotComputer(), packagesToChange, in removeDistractingPackageRestrictions()
[all …]
DPackageHelperTestBase.kt95 packageSetting1 = pms.snapshotComputer().getPackageStateInternal(TEST_PACKAGE_1)!! in setup()
96 packageSetting2 = pms.snapshotComputer().getPackageStateInternal(TEST_PACKAGE_2)!! in setup()
97 ownerSetting = pms.snapshotComputer().getPackageStateInternal(DEVICE_OWNER_PACKAGE)!! in setup()
DPackageManagerServiceHibernationTests.kt110 pm.setPackageStoppedState(pm.snapshotComputer(), TEST_PACKAGE_NAME, false, TEST_USER_ID) in testExitForceStopExitsHibernation()
136 pm.setPackageStoppedState(pm.snapshotComputer(), TEST_PACKAGE_NAME, false, in testExitForceStop_nonExistingAppHibernationManager_doesNotThrowException()
160 val optimizablePkgs = DexOptHelper(pm).getOptimizablePackages(pm.snapshotComputer()) in testGetOptimizablePackages_ExcludesGloballyHibernatingPackages()
DSharedLibrariesImplTest.kt118 mComputer = spy(mPms.snapshotComputer()) in <lambda>()
125 doAnswer { mComputer }.`when`(mPms).snapshotComputer() in <lambda>()
199 mSharedLibrariesImpl.pruneUnusedStaticSharedLibraries(mPms.snapshotComputer(), in <lambda>()
DPackageFreezerTest.kt78 pms.checkPackageStartable(pms.snapshotComputer(), TEST_PACKAGE, TEST_USER_ID) in checkPackageStartable()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerNative.java52 names = mPm.snapshotComputer().getNamesForUids(uids); in getNamesForUids()
73 return mPm.snapshotComputer().getPackageUid(packageName, flags, userId); in getPackageUid()
79 final Computer snapshot = mPm.snapshotComputer(); in getInstallerForPackage()
99 PackageInfo pInfo = mPm.snapshotComputer() in getVersionCodeForPackage()
111 int targetSdk = mPm.snapshotComputer().getTargetSdkVersion(packageName); in getTargetSdkVersionForPackage()
122 ApplicationInfo appInfo = mPm.snapshotComputer() in isPackageDebuggable()
135 final Computer snapshot = mPm.snapshotComputer(); in isAudioPlaybackCaptureAllowed()
147 ApplicationInfo appInfo = mPm.snapshotComputer().getApplicationInfo(packageName, in getLocationFlags()
167 return mPm.snapshotComputer() in hasSha256SigningCertificate()
DDomainVerificationConnection.java81 return callingUid == mPm.snapshotComputer().getPackageUid(packageName, 0, callingUserId); in isCallerPackage()
87 return mPm.snapshotComputer().getPackage(packageName); in getPackage()
92 return mPm.snapshotComputer().filterAppAccess( in filterAppAccess()
108 return mPm.snapshotComputer(); in snapshot()
DPreferredActivityHelper.java124 updateDefaultHomeNotLocked(mPm.snapshotComputer(), changedUsers); in clearPackagePreferredActivities()
214 pir.addFilter(mPm.snapshotComputer(),
219 if (!(isHomeFilter(filter) && updateDefaultHomeNotLocked(mPm.snapshotComputer(), userId))) {
250 if (mPm.snapshotComputer().getUidTargetSdkVersion(callingUid)
304 addPreferredActivity(mPm.snapshotComputer(), filter, match, set, activity, true, userId,
409 mPm.snapshotComputer(),
414 updateDefaultHomeNotLocked(mPm.snapshotComputer(), userId);
430 updateDefaultHomeNotLocked(mPm.snapshotComputer(), userId);
447 updateDefaultHomeNotLocked(mPm.snapshotComputer(), userId);
536 updateDefaultHomeNotLocked(mPm.snapshotComputer(), readUserId);
[all …]
DPackageManagerService.java1155 public Computer snapshotComputer() { in snapshotComputer() method in PackageManagerService
1156 return snapshotComputer(true /*allowLiveComputer*/); in snapshotComputer()
1170 public Computer snapshotComputer(boolean allowLiveComputer) { in snapshotComputer() method in PackageManagerService
1467 Computer snapshot = snapshotComputer(); in getArchivedPackageInternal()
1759 final Computer snapshot = m.snapshotComputer(); in main()
2844 final Computer computer = snapshotComputer();
3122 blocker.waitAppProcessGone(mAmi, snapshotComputer(), mUserManager, pkgName);
3294 final boolean isInstantApp = snapshotComputer().isInstantAppInternal(
3529 mPreferredActivityHelper.updateDefaultHomeNotLocked(snapshotComputer(), userId);
3575 resolver.addFilter(snapshotComputer(), newFilter);
[all …]
DPackageArchiver.java216 Computer snapshot = mPm.snapshotComputer(); in requestArchive()
354 PackageState packageState = mPm.snapshotComputer().getPackageStateInternal(packageName); in isIntentResolvedToArchivedApp()
414 ComponentName defaultLauncherComponent = mPm.snapshotComputer().getDefaultHomeActivity( in getCurrentLauncherPackageName()
424 packageUid = mPm.snapshotComputer().getPackageUid(callingPackage, 0L, userId); in isCallingPackageValid()
450 Computer snapshot = mPm.snapshotComputer(); in createAndStoreArchiveState()
482 ApplicationInfo installerInfo = mPm.snapshotComputer().getApplicationInfo( in createArchiveState()
662 () -> mPm.queryIntentReceivers(mPm.snapshotComputer(), in verifySupportsUnarchival()
689 Computer snapshot = mPm.snapshotComputer(); in isAppArchivable()
696 ps = getPackageState(packageName, mPm.snapshotComputer(), in isAppArchivable()
759 Computer snapshot = mPm.snapshotComputer(); in requestUnarchive()
[all …]
DIncrementalProgressListener.java36 PackageStateInternal packageState = mPm.snapshotComputer() in onPackageLoadingProgressChanged()
DDistractingPackageHelper.java126 mBroadcastHelper.sendDistractingPackagesChanged(mPm.snapshotComputer(), in setDistractingPackageRestrictionsAsUser()
201 mBroadcastHelper.sendDistractingPackagesChanged(mPm.snapshotComputer(), in removeDistractingPackageRestrictions()
DPackageInstallerService.java666 final Computer snapshot = mPm.snapshotComputer();
855 PackageStateInternal ps = mPm.snapshotComputer().getPackageStateInternal(
1066 PackageStateInternal ps = mPm.snapshotComputer().getPackageStateInternal(appPackageName,
1321 return shouldFilterSession(mPm.snapshotComputer(), callingUid, result) ? null : result;
1336 final Computer snapshot = mPm.snapshotComputer();
1344 final Computer snapshot = mPm.snapshotComputer();
1363 final Computer snapshot = mPm.snapshotComputer();
1389 final Computer snapshot = mPm.snapshotComputer();
1420 final Computer snapshot = mPm.snapshotComputer();
1481 final Computer snapshot = mPm.snapshotComputer();
[all …]
DStorageEventHelper.java89 reconcileApps(mPm.snapshotComputer(), volumeUuid); in onVolumeStateChanged()
230 mBroadcastHelper.sendResourcesChangedBroadcastAndNotify(mPm.snapshotComputer(), in loadPrivatePackagesInner()
282 mBroadcastHelper.sendResourcesChangedBroadcastAndNotify(mPm.snapshotComputer(), in unloadPrivatePackagesInner()
DAppDataHelper.java387 final Computer snapshot = mPm.snapshotComputer();
532 final Computer snapshot = mPm.snapshotComputer();
565 final Computer snapshot = mPm.snapshotComputer();
598 final Computer snapshot = mPm.snapshotComputer();
DDeletePackageHelper.java138 final Computer computer = mPm.snapshotComputer(); in deletePackageX()
546 final Computer snapshot = mPm.snapshotComputer(); in executeDeletePackageLIF()
569 mPm.snapshotComputer(), ps, allUserHandles, in deleteInstalledPackageLIF()
696 final Computer snapshot = mPm.snapshotComputer(); in deletePackageVersionedInternal()
813 final Computer innerSnapshot = mPm.snapshotComputer(); in deletePackageVersionedInternal()
1031 final String internalPkgName = mPm.snapshotComputer() in deleteExistingPackageAsUser()
DPackageHandler.java246 mPm.snapshotComputer(), in doHandleMessage()
315 mPm.snapshotComputer(), in doHandleMessage()
DMovePackageHelper.java86 Computer snapshot = mPm.snapshotComputer(); in movePackageInternal()
330 final Computer snapshot = mPm.snapshotComputer(); in logAppMovedStorage()
359 final Computer snapshot = mPm.snapshotComputer(); in getPackageSizeInfoLI()
DRemovePackageHelper.java144 PackageStateInternal ps = mPm.snapshotComputer() in removePackageLI()
313 final Computer snapshot = mPm.snapshotComputer(); in clearPackageStateForUserLIF()
322 preferredActivityHelper.updateDefaultHomeNotLocked(mPm.snapshotComputer(), in clearPackageStateForUserLIF()
DDexOptHelper.java158 final Computer newSnapshot = mPm.snapshotComputer(); in reportBootDexopt()
182 final Computer snapshot = mPm.snapshotComputer(); in performDexOpt()
322 final Computer snapshot = packageManagerService.snapshotComputer(); in getPackagesForDexopt()
DFreeStorageHelper.java116 final Computer computer = mPm.snapshotComputer(); in freeStorage()
/frameworks/base/services/core/java/com/android/server/pm/local/
DPackageManagerLocalImpl.java62 return new UnfilteredSnapshotImpl(mService.snapshotComputer(false /*allowLiveComputer*/)); in withUnfilteredSnapshot()
75 mService.snapshotComputer(false /*allowLiveComputer*/), null); in withFilteredSnapshot()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/
DPackageManagerLocalSnapshotTest.kt41 whenever(snapshotComputer(false)) { mockSnapshot() } in <lambda>()
/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/
DPackageManagerComponentLabelIconOverrideTest.kt235 val activityInfo = it.snapshotComputer() in <lambda>()
251 val activityInfo = it.snapshotComputer() in <lambda>()

12