Update density util to allow calling the util for external displays.

Flag: EXEMPT no behavioural changes for existing usage.
Test: atest DisplayDensityUtilsTest
Bug: 394829491
Change-Id: If4448315d116c712e3423e5e19333e5179ecc526
2 files changed