diff options
author | 2020-01-08 13:35:43 +0900 | |
---|---|---|
committer | 2020-01-08 14:49:31 +0900 | |
commit | 618922e510a2ed995fad9c60d3d49e0b831d80ac (patch) | |
tree | 985c1efb894937bee0aa0d417ca19bd731193a5f /java/device_host_converter.go | |
parent | 4b662e4d3b2a79f0904ee20f0f71fdbbbd3a1661 (diff) |
jacoco correctly gathers info from APK-in-APEX
This change fixes a bug that jacoco-report-classes-all.jar does not
include info for APK-in-APEX such as the MediaProvider apk in
com.android.mediaprovider APEX.
Firstly, LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR is correctly set also for
the APKs included in APEXes. Secondly, the Make modules for the embedded
APKs are now built with soong_app_prebuilt.mk to correctly import the
jacoco file into the Make world.
Bug: 147296855
Test: execute the following command in internal master.
$ choosecombo cf_x86_phone userdebug
$ NINJA_ARGS="-t path out/target/product/vsoc_x86/jacoco-report-classes-all.jar out/target/common/obj/ETC/MediaProvider.com.android.mediaprovider_intermediates/jacoco-report-classes.jar" EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true m
The result shows that there is a path as follows:
out/target/product/vsoc_x86/jacoco-report-classes-all.jar
out/target/product/vsoc_x86/apex/com.android.mediaprovider/priv-app/MediaProvider/MediaProvider.apk
out/target/product/vsoc_x86/obj/ETC/MediaProvider.com.android.mediaprovider_intermediates/package.apk
out/target/common/obj/ETC/MediaProvider.com.android.mediaprovider_intermediates/jacoco-report-classes.jar
Change-Id: I52d11534a34eb35219bfafca4453e75a1b701c0e
Diffstat (limited to 'java/device_host_converter.go')
-rw-r--r-- | java/device_host_converter.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/device_host_converter.go b/java/device_host_converter.go index 15244184e..b40ab9316 100644 --- a/java/device_host_converter.go +++ b/java/device_host_converter.go @@ -170,6 +170,10 @@ func (d *DeviceHostConverter) SrcJarArgs() ([]string, android.Paths) { return d.srcJarArgs, d.srcJarDeps } +func (d *DeviceHostConverter) JacocoReportClassesFile() android.Path { + return nil +} + func (d *DeviceHostConverter) AndroidMk() android.AndroidMkData { return android.AndroidMkData{ Class: "JAVA_LIBRARIES", |