Update code to use new Density API

This replaces usages of Density.getEnum with Density.create following
changes in the Density class. This ensures that the Density object will
always exist, whether its value is one of the predefined ones or not.

Bug: N/A
Test: layoutlib tests
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:24126e81abc58ee0241c5337563772a5f3a665f9)
Merged-In: Ia728f677127280dce091b3ae3639642667c8a9be
Change-Id: Ia728f677127280dce091b3ae3639642667c8a9be
2 files changed