Get actual layout and dpi values method

Change-Id: Ic3fc023d481f3070d18f59475507f7ac2f50133c