summaryrefslogtreecommitdiff
path: root/java/testing.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-11-14 12:26:00 -0800
committer Colin Cross <ccross@android.com> 2024-11-16 02:22:55 +0000
commite4f34886916e5ef36abe8346829dec51020ae0f0 (patch)
tree204e9c0bd002de2e1006696c9077c3d6e25f40fc /java/testing.go
parent0510f54388436a734dfe5d4fb2c7e0cff229a641 (diff)
Don't use DirectlyInAnyApex to enable dex and coverage
DirectlyInAnyApex was being used to automatically enable dexing and to enable coverage. There is only one module in an apex that isn't already being dexed, so set compile_dex in that module and remove the automatic dexing. Coverage is only useful on device modules if they are dexed, so convert the shouldInstrumentInApex test to check if it is dexed instead. This reomves the last usages of DirectlyInAnyApex from the java package. Bug: 372543712 Test: No change to build.ninja Change-Id: I1d1738305ed97d85669945def75e9916c2b41f3c
Diffstat (limited to 'java/testing.go')
-rw-r--r--java/testing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/testing.go b/java/testing.go
index 988514dea..cb3245ba7 100644
--- a/java/testing.go
+++ b/java/testing.go
@@ -190,6 +190,7 @@ var PrepareForTestWithJacocoInstrumentation = android.GroupFixturePreparers(
"//apex_available:anyapex",
"//apex_available:platform",
],
+ compile_dex: true,
}
`)),
)