Check Bluetooth HID connection status changed before wake up

Only wake up device if the connection state changes to connected from
a different state.

Allow bluetooth wake up if bluetooth.power.suspend.hid_wake_up.enabled
is true.

Bug: 440645135
Test: m -j
Test: atest PhoneWindowManagerTests
Flag: com.android.hardware.input.bluetooth_wakeup_state_check
Change-Id: Icd4d4bea428313d88ee736d7734c1c9b8c7f6e61
3 files changed