Merge "Convert coverageMutator to a TransitionMutator" into main

This commit is contained in:
Colin Cross
2024-01-25 23:19:29 +00:00
committed by Gerrit Code Review
7 changed files with 77 additions and 34 deletions

View File

@@ -1108,7 +1108,7 @@ func (a *AndroidApp) Privileged() bool {
return Bool(a.appProperties.Privileged)
}
func (a *AndroidApp) IsNativeCoverageNeeded(ctx android.BaseModuleContext) bool {
func (a *AndroidApp) IsNativeCoverageNeeded(ctx android.IncomingTransitionContext) bool {
return ctx.Device() && ctx.DeviceConfig().NativeCoverageEnabled()
}

View File

@@ -1084,7 +1084,7 @@ func (j *JavaTestImport) InstallInTestcases() bool {
return true
}
func (j *TestHost) IsNativeCoverageNeeded(ctx android.BaseModuleContext) bool {
func (j *TestHost) IsNativeCoverageNeeded(ctx android.IncomingTransitionContext) bool {
return ctx.DeviceConfig().NativeCoverageEnabled()
}