Add helper method for Thread.sleep() call to reduce code duplication.

Bug: b/197995878
Test: atest InputShellCommandTest
Change-Id: Ib2f520dd23760b7b0995f3972b89fbcac21859f6
1 file changed