Add dex load reporting hooks in BaseDexClassLoader
Add hooks to allow reporting of what dex files are loaded by a
BaseDexClassLoader.
Intended to be use to report of non-primary dex files loads to the
package manager via BaseDexClassLoader.Reporter.
This will enable:
1) monitoring and compilation of secondary dex file
2) better way to track foreign dex file usage (used to determined the
compilation filter of apks).
Test: vogar .../BaseDexClassLoaderTest.java
Bug: 32871170
(cherry picked from commit a4e5f2f31a91f1438afe24639cd71457462a86fe)
Change-Id: I613950a68f971309d0f9d73bc1bb0554ce5ef5a9
3 files changed