summaryrefslogtreecommitdiff
path: root/java/testing.go
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2021-05-12 17:13:56 +0900
committerMartin Stjernholm <mast@google.com>2021-05-20 17:36:22 +0100
commit712e8b5b1b511b1d05dc7b75dc8538f800ce3f9c (patch)
treeb84b0e393eb542e71ca7388b3fd566b8a5b54eb3 /java/testing.go
parent5053baab54b1551f6ba2fd5522abcb18b726b9bd (diff)
Rename InApexes -> InApexVariants
.. in preparation for the upcoming change. This change doesn't alter any behavior. InApexes is a misleading name. People expects that it has the list of soong module names of the APEXes that a module is part of. So, for example, `core-oj` is a part of both `com.android.art` and `com.google.android.art`. However, in reality, that's not true. The field has `com.android.art` only. This is because the two APEXes (android and Google) have the same apex name which is `com.android.art`. That apex name is used in various places like the `apex_available` and allows us to keep using the same name regardless of whether the APEX is overridden or not. However, this is causing problems in some cases where the exact list of soong module names is required. The upcoming change will add a new field to handle the case and the new field actually will get the name 'InApexes'. So, the existing field is renamed to a less misleading name `InApexVariants`. Cherry-picked from https://r.android.com/1710528. Bug: 180325915 Test: m nothing Change-Id: I0c73361b452eddb812acd5ebef5dcedaab382436 Merged-In: I0c73361b452eddb812acd5ebef5dcedaab382436
Diffstat (limited to 'java/testing.go')
-rw-r--r--java/testing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/testing.go b/java/testing.go
index 51a1c621d..1fef337cc 100644
--- a/java/testing.go
+++ b/java/testing.go
@@ -378,7 +378,7 @@ func apexNamePairFromModule(ctx *android.TestContext, module android.Module) str
if apexInfo.IsForPlatform() {
apex = "platform"
} else {
- apex = apexInfo.InApexes[0]
+ apex = apexInfo.InApexVariants[0]
}
return fmt.Sprintf("%s:%s", apex, name)