Merge "Use a default exclude filter for JaCoCo in Soong."

This commit is contained in:
Chris Gross
2020-06-26 14:59:15 +00:00
committed by Gerrit Code Review
4 changed files with 7 additions and 4 deletions

View File

@@ -1052,7 +1052,7 @@ func (c *deviceConfig) SamplingPGO() bool {
// represents any path.
func (c *deviceConfig) JavaCoverageEnabledForPath(path string) bool {
coverage := false
if c.config.productVariables.JavaCoveragePaths == nil ||
if len(c.config.productVariables.JavaCoveragePaths) == 0 ||
InList("*", c.config.productVariables.JavaCoveragePaths) ||
HasAnyPrefix(path, c.config.productVariables.JavaCoveragePaths) {
coverage = true