Improve waitForIme(Shown/Gone) conditions

Rely on the SF information instead of the WM because the isSurfaceShown flag of the IME window is not immediately updated

Test: atest FlickerLibTest
Bug: 162925924
Change-Id: I45baadd8c93fd4fcbc0de89b065b163fd431fd77
2 files changed
tree: ee947cecd0de4e3e6f712813d2910e091de975d1
  1. build/
  2. docs/
  3. emu_test/
  4. libraries/
  5. scripts/
  6. tests/
  7. utils/
  8. PREUPLOAD.cfg