aboutsummaryrefslogtreecommitdiffstats
path: root/java/app_test.go
diff options
context:
space:
mode:
authorJaewoong Jung <jungjw@google.com>2019-06-11 12:25:34 -0700
committerMichael Bestas <mkbestas@lineageos.org>2019-12-11 19:03:32 +0200
commitcdfe4845abb5c1609127207a6b98199dd561cbd3 (patch)
treeef665d90ab809874da257e7f41d60c2d74f5836b /java/app_test.go
parent5e4874fa2710ff14bf3a2d65649e756ad42f252e (diff)
downloadandroid_build_soong-cdfe4845abb5c1609127207a6b98199dd561cbd3.tar.gz
android_build_soong-cdfe4845abb5c1609127207a6b98199dd561cbd3.tar.bz2
android_build_soong-cdfe4845abb5c1609127207a6b98199dd561cbd3.zip
Improve android_app_import.dpi_variants handling.
Instead of circumventing the limitation of Prebuilt implementation by picking a source path itself, it now uses the same mechanism as archMutator and replaces the source path in advance so that Prebuilt always sees the corrent source path. Because this requires the Apk field to be a string pointer, the single source prebuilt implementation is being updated to be reflection-based. Test: Soong unit tests, m soong_docs, TreeHugger Change-Id: I2304f15e32d632f74f95f0d9e9bf1f75ff3e2225
Diffstat (limited to 'java/app_test.go')
-rw-r--r--java/app_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/app_test.go b/java/app_test.go
index 723cde3e..d4de7533 100644
--- a/java/app_test.go
+++ b/java/app_test.go
@@ -1271,7 +1271,7 @@ func TestAndroidAppImport_DpiVariants(t *testing.T) {
{
name: "AAPTPreferredConfig matches",
aaptPreferredConfig: proptools.StringPtr("xhdpi"),
- aaptPrebuiltDPI: []string{"xxhdpi", "lhdpi"},
+ aaptPrebuiltDPI: []string{"xxhdpi", "ldpi"},
expected: "prebuilts/apk/app_xhdpi.apk",
},
{