Attempt to fix testShowImeCold flake

The IME animation may fail to start during
the test flow. Have a retry mechanism when
it happened to prevent the test failure.

Bug: 253363101
Test: atest ImePerfTest#testShowImeCold
Change-Id: Iec28c897e70e37d6ad3a682e4e564b8b8040bf3d
1 file changed