summaryrefslogtreecommitdiff
path: root/java/hiddenapi_singleton.go
diff options
context:
space:
mode:
authorAllen Hair <allenhair@google.com>2019-02-25 16:37:42 -0800
committerAllen Hair <allenhair@google.com>2019-02-25 16:49:05 -0800
commitde816cf577272e25ac7952ead7719903cdad4b9c (patch)
treefe726172502378c33259091436f387f80b67d169 /java/hiddenapi_singleton.go
parent18d3fe02aca73b920c1e006c603d947f925486af (diff)
Whitelist Offline.getProbes(..).
Test: atest -v -it CtsSystemUiTestCases -- --abi x86 --test-arg com.android.tradefed.testtype.AndroidJUnitTest:coverage:true Bug: 122330976 Change-Id: Ieb4a8808de6a3e062297c6a0b9e83a3872247eee
Diffstat (limited to 'java/hiddenapi_singleton.go')
-rw-r--r--java/hiddenapi_singleton.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go
index ba8b3e1f3..23f6cb0ee 100644
--- a/java/hiddenapi_singleton.go
+++ b/java/hiddenapi_singleton.go
@@ -111,6 +111,9 @@ func stubFlagsRule(ctx android.SingletonContext) {
publicStubModules = append(publicStubModules, ctx.Config().ProductHiddenAPIStubs()...)
systemStubModules = append(systemStubModules, ctx.Config().ProductHiddenAPIStubsSystem()...)
testStubModules = append(testStubModules, ctx.Config().ProductHiddenAPIStubsTest()...)
+ if ctx.Config().IsEnvTrue("EMMA_INSTRUMENT") {
+ publicStubModules = append(publicStubModules, "jacoco-stubs")
+ }
publicStubPaths := make(android.Paths, len(publicStubModules))
systemStubPaths := make(android.Paths, len(systemStubModules))