Use constants from DisplayMetrics.

Change-Id: I3c24610c7de5c6048b1ee515e6a985d10b9f7a36
Merge "Use constants from DisplayMetrics." into jellybean-mr2.1