Add code coverage support to android_app JNI libs.

This is a cherry-pick change.

Test: Built mainline module coverage data
Bug: 152117890
Change-Id: I47bf3e5d6e78c4518729bdb52616e248156d3cec
Merged-In: I47bf3e5d6e78c4518729bdb52616e248156d3cec
This commit is contained in:
Jaewoong Jung
2020-03-26 14:01:48 -07:00
parent 0ed9a7d674
commit 37ca4a1e0d
4 changed files with 51 additions and 8 deletions

View File

@@ -538,9 +538,10 @@ func (s sdkDep) hasFrameworkLibs() bool {
}
type jniLib struct {
name string
path android.Path
target android.Target
name string
path android.Path
target android.Target
coverageFile android.OptionalPath
}
func (j *Module) shouldInstrument(ctx android.BaseModuleContext) bool {