Home
last modified time | relevance | path

Searched refs:mPackageDexUsage (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/dex/
DDexManager.java93 private final PackageDexUsage mPackageDexUsage; field in DexManager
130 mPackageDexUsage = new PackageDexUsage(); in DexManager()
220 if (mPackageDexUsage.record(searchResult.mOwningPackageName, in notifyDexLoadInternal()
223 mPackageDexUsage.maybeWriteAsync(); in notifyDexLoadInternal()
246 mPackageDexUsage.clear(); in load()
277 if (mPackageDexUsage.clearUsedByOtherApps(packageName)) { in notifyPackageUpdated()
278 mPackageDexUsage.maybeWriteAsync(); in notifyPackageUpdated()
295 if (mPackageDexUsage.removePackage(packageName)) { in notifyPackageDataDestroyed()
296 mPackageDexUsage.maybeWriteAsync(); in notifyPackageDataDestroyed()
300 if (mPackageDexUsage.removeUserPackage(packageName, userId)) { in notifyPackageDataDestroyed()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDexUsageTests.java57 private PackageDexUsage mPackageDexUsage; field in PackageDexUsageTests
73 mPackageDexUsage = new PackageDexUsage(); in setup()
203 assertPackageDexUsage(mPackageDexUsage, null, null, expectedSecondaries); in testRecordTooManySecondaries()
225 assertNull(mPackageDexUsage.getPackageUseInfo("missing.package")); in testPackageNotFound()
279 mPackageDexUsage.syncData(packageToUsersMap, packageToCodePaths); in testSyncData()
283 assertNull(mPackageDexUsage.getPackageUseInfo(mFooBaseUser0.mPackageName)); in testSyncData()
293 assertTrue(mPackageDexUsage.removePackage(mBarSecondary1User0.mPackageName)); in testRemovePackage()
295 assertNull(mPackageDexUsage.getPackageUseInfo(mBarSecondary1User0.mPackageName)); in testRemovePackage()
304 assertTrue(mPackageDexUsage.removePackage(mBarSecondary1User0.mPackageName)); in testRemoveNonexistentPackage()
307 assertFalse(mPackageDexUsage.removePackage(mBarSecondary1User0.mPackageName)); in testRemoveNonexistentPackage()
[all …]