Add dynamic theming to layoutlib
Layoutlib receives the path to an image file to use as a wallpaper.
It creates a dynamic theme reusing/copying what the framework is doing.
It sets the dynamic theme by overriding access to system colors through
the DynamicRenderResources wrapper.
Bug: 227467236
Test: tests added
Change-Id: Id37b531c5f29e57c37f5390804ddc58d27a9eeb0
(cherry picked from commit c8a05ec2abe059f44ea4371d71dbdcb2630ce4ec)
Merged-In: Id37b531c5f29e57c37f5390804ddc58d27a9eeb0
20 files changed