Migrate applyImeVsibility to ImeVisibilityApplier

To abstract the application of IME visiblity without any behavior
change.

Bug: 246309664
Test: atest CtsInputMethodTestCases
Change-Id: I6e137a6e14f4fd7101322f54fda32ddcb5ccd017
3 files changed