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.java91 private final PackageDexUsage mPackageDexUsage; field in DexManager
128 mPackageDexUsage = new PackageDexUsage(); in DexManager()
248 if (mPackageDexUsage.record(searchResult.mOwningPackageName, in notifyDexLoadInternal()
251 mPackageDexUsage.maybeWriteAsync(); in notifyDexLoadInternal()
275 mPackageDexUsage.clear(); in load()
306 if (mPackageDexUsage.clearUsedByOtherApps(packageName)) { in notifyPackageUpdated()
307 mPackageDexUsage.maybeWriteAsync(); in notifyPackageUpdated()
324 if (mPackageDexUsage.removePackage(packageName)) { in notifyPackageDataDestroyed()
325 mPackageDexUsage.maybeWriteAsync(); in notifyPackageDataDestroyed()
329 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 …]