Re-evaluate tent/wedge mode on display rotation/wakelock changes

Currently, we re-evaluate if the device is likely in tent/wedge
mode on accelerometer/device rotation sensor changes.

We didn't do this whenever display rotates or when screen
wakelock state changes. It worked only because it piggybacked
on sensor events: when new sensor events received we also
took into account display/wakelock conditions.

But in case there are no sensor events, these conditions won't work.
Added explicit re-evaluation requests for these cases as well.

Bug: 419294518
Test: BookStyleDeviceStatePolicyTest
Flag: EXEMPT bugfix
Change-Id: I2c6f70048ae220d31ad3a3a1cbabaaa790b4aade
2 files changed