Merge "Change java_test_host to support cov variant." into main

This commit is contained in:
Yu Liu
2023-10-11 16:15:40 +00:00
committed by Gerrit Code Review

View File

@@ -1087,6 +1087,10 @@ func (j *JavaTestImport) InstallInTestcases() bool {
return true
}
func (j *TestHost) IsNativeCoverageNeeded(ctx android.BaseModuleContext) bool {
return ctx.DeviceConfig().NativeCoverageEnabled()
}
func (j *TestHost) addDataDeviceBinsDeps(ctx android.BottomUpMutatorContext) {
if len(j.testHostProperties.Data_device_bins_first) > 0 {
deviceVariations := ctx.Config().AndroidFirstDeviceTarget.Variations()