summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nataniel Borges <natanieljr@google.com> 2023-03-28 12:25:56 +0000
committer Nataniel Borges <natanieljr@google.com> 2023-03-28 12:25:56 +0000
commitf8fe56ec94fc8e5f181fa72b222749f3654d8d35 (patch)
tree91333ddca5fb5ddea8623c21f474a1d6b92895c7
parent525207f523e0d35b0368f85bb3d8a84a7a5e2145 (diff)
Fix static wallpaper component
Fixes: 275533858 Test: atest FlickerTests Change-Id: I7002ff596bc5f92c506ed5ff28c1a5502b36b176
-rw-r--r--tests/FlickerTests/src/com/android/server/wm/flicker/launch/TaskTransitionTest.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/launch/TaskTransitionTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/launch/TaskTransitionTest.kt
index dd9e4cffcd30..3fccd12af1c4 100644
--- a/tests/FlickerTests/src/com/android/server/wm/flicker/launch/TaskTransitionTest.kt
+++ b/tests/FlickerTests/src/com/android/server/wm/flicker/launch/TaskTransitionTest.kt
@@ -219,9 +219,13 @@ class TaskTransitionTest(flicker: FlickerTest) : BaseTest(flicker) {
val resourceId =
Resources.getSystem()
.getIdentifier("image_wallpaper_component", "string", "android")
- return ComponentNameMatcher.unflattenFromString(
+ // frameworks/base/core/res/res/values/config.xml returns package plus class name,
+ // but wallpaper layer has only class name
+ val rawComponentMatcher = ComponentNameMatcher.unflattenFromString(
instrumentation.targetContext.resources.getString(resourceId)
)
+
+ return ComponentNameMatcher(rawComponentMatcher.className)
}
@Parameterized.Parameters(name = "{0}")