Add IME {insets control, IME-WM} target to History

From new WindowInsets API, showing IME visiblity will not only rely on
IME focusable window focus and knowing who calls {show, hide}SoftInput request
from client, but also the client can call getInsetsControler().{show, hide}(ime()).

Since the true IME visiblity depends on which IME InsetsControlTarget that can
show / hide IME window, we need to track when it changes for more easily debug.

And, we also need to track the z-order information such the window which
behind the soft-keyboard.

Add those targets information into SoftInputShowHideHistory for
tracking.

Fix: 156198073
Test: adb shell dumpsys input_method, check SoftInputShowHideHistory.
Change-Id: I7f0b927afcf7b19102689b680bcf07de2380bba5
3 files changed