Handle dimensions in BridgeContext.resolveThemeAttribute

This ensures that the TypedValue is correctly set up when the attribute
resolves to a dimension. That means setting up the correct type and
data.

Fixes: 281942492
Test: Moved testTypedValue from RenderTests to BridgeContextTest, and
added new case corresponding to dimension.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:212b8022361da4dc60dcb73f74e6810d3469845e)
Merged-In: I701b4b1df26f104db7f505e31912d69abd289172
Change-Id: I701b4b1df26f104db7f505e31912d69abd289172
3 files changed