Merge "Fix static wallpaper component" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-03-28 14:01:34 +00:00
committed by Android (Google) Code Review

View File

@@ -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}")