Refine KeyboardVisibilityControlTest

As CL[1] reviewed, we land the refined logic in
testImeVisibilityWhenDismisingDialogWithImeFocused to
add more IME visibility and onStartInput / onFinishInput
verification.

[1]: I6e4743ec652674c38895fb7df8021178f0364477

Bug: 161273049
Test: atest KeyboardVisibilityControlTest#\
            testImeVisibilityWhenDismisingDialogWithImeFocused
Change-Id: Ia3568ee4bf443ce742a5742795d8c379da4dfe8a
(cherry picked from commit 11b152a2d85d19802cd99396542edc6300ccfbf5)
1 file changed