Move IME to a host display when target's display is reparented

By default IME shows in same display as IME target app window. This CL
moves IME to a more eligible display that can host and control IME. Host
display is chosen based on support to host IME/system decor. If nothing
else is eligible, we fallback to default display.

Bug: 111084606
Test: Use bubbles test app to verify IME appears in main display.

Change-Id: I5e1c0844beaae91eb63e5ac39587fa11834d31d2
6 files changed