Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bf0865f authored by Yu Liu's avatar Yu Liu Committed by Gerrit Code Review
Browse files

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

parents c27e8f14 d8aa2006
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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()