Treat emulated only states as not folded in WindowAreaComponentImpl

To keep consistent API behavior for 25Q1 and the usage of
the config_foldedDeviceStates configuration value, we have
to pair the outer display area property with a check to make
sure the state we're checking is not emulated only when
we are using the DeviceState#hasProperty API

This change guarantees that the status value for rear display
is available, to keep the same behavior between the property API
and the overlay configuration values.

Fixes: 377167065
Test: ExtensionRearDisplayPresentationTest#testRearDisplayPresentationStatusListeners
Flag: EXEMPT bugfix
Change-Id: I12d5f075c32ba9b41eed5c023c1548656a9d7919
1 file changed