History log of /libcore/luni/src/test/java/libcore/dalvik/system/BaseDexClassLoaderTest.java
Revision Date Author Comments
03c39414840cf29d301fd90caebc8e5e324522d9 04-Aug-2017 Calin Juravle <calin@google.com> Make BaseDexClassLoaderTest independent of its parent class loader

Update the test to use a well known class loader chain which does not rely
on its running context.

Use the system class loader instead of the actual test class loader as the
parent in the test.

Bug: 38138251
Test: cts-tradefed run cts -m CtsLibcoreTestCases -t
libcore.dalvik.system.BaseDexClassLoaderTest

(cherry picked from commit 3d166bdc292da7b7d5c3ff28b885474ad22eb777)

Change-Id: If0d8b8f87cf936a687affb1429b65236e3a75500
3d166bdc292da7b7d5c3ff28b885474ad22eb777 04-Aug-2017 Calin Juravle <calin@google.com> Make BaseDexClassLoaderTest independent of its parent class loader

Update the test to use a well known class loader chain which does not rely
on its running context.

Use the system class loader instead of the actual test class loader as the
parent in the test.

Bug: 38138251
Test: cts-tradefed run cts -m CtsLibcoreTestCases -t
libcore.dalvik.system.BaseDexClassLoaderTest

Change-Id: I28aa98914e31e692ba93c259610670948d0e8432
48f977a3b1791ade9ca162139095a3c7cb41416b 19-Jul-2017 Calin Juravle <calin@google.com> Extend dex load reporting to report the full ClassLoader chain

Report the full class loader chain to BaseDexClassLoader.reporter during
construction. The information will be passed down to the compiler when
compiling secondary dex modules.

Note that this only reports if the all class loader in the chain are
BaseDexClassLoader. This means that we will stop recording secondary dex
modules which are loaded in unsupported class loaders.

Bug: 38138251
Test: vogar
luni/src/test/java/libcore/dalvik/system/BaseDexClassLoaderTest.java

(cherry picked from commit 5ac512c07cfa80160e240c359349c1390a20a981)

Change-Id: I7d4457b19684d0a87b1edd3b5689cfbb58559d03
cb628d3d2580da4187805ccba8abff8e5e7325f0 19-Jul-2017 Calin Juravle <calin@google.com> Extend dex load reporting to report the full ClassLoader chain

Report the full class loader chain to BaseDexClassLoader.reporter during
construction. The information will be passed down to the compiler when
compiling secondary dex modules.

Note that this only reports if the all class loader in the chain are
BaseDexClassLoader. This means that we will stop recording secondary dex
modules which are loaded in unsupported class loaders.

Bug: 38138251
Test: vogar
luni/src/test/java/libcore/dalvik/system/BaseDexClassLoaderTest.java

(cherry picked from commit 5ac512c07cfa80160e240c359349c1390a20a981)

Change-Id: Icefff297336e1d99265f9e9bd3a3dfa212f54eb0
5ac512c07cfa80160e240c359349c1390a20a981 19-Jul-2017 Calin Juravle <calin@google.com> Extend dex load reporting to report the full ClassLoader chain

Report the full class loader chain to BaseDexClassLoader.reporter during
construction. The information will be passed down to the compiler when
compiling secondary dex modules.

Note that this only reports if the all class loader in the chain are
BaseDexClassLoader. This means that we will stop recording secondary dex
modules which are loaded in unsupported class loaders.

Bug: 38138251
Test: vogar
luni/src/test/java/libcore/dalvik/system/BaseDexClassLoaderTest.java
Change-Id: Ib811d332a3dc971bc33e826dd203181d0ff2441f
a8c32796376050a8875f0aded5acf5e78941aa18 23-Nov-2016 Calin Juravle <calin@google.com> 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
a4e5f2f31a91f1438afe24639cd71457462a86fe 23-Nov-2016 Calin Juravle <calin@google.com> 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

Change-Id: I9f44b987928a39da57956ff6bb62fed2a8486da6