Add HAS_FOUR_INCH_DISPLAY function

The function checks if the current device has 4 inch display.