Wait for window focused before running some CtsWidgetTestCases In order to inject a key event, the window has to be focused. This is similar to Id76ca91eb4d2b0bc4cb942b33c25c8001f7bfea6. Bug: 262533268 Bug: 262533193 Test: android.widget.cts.SearchViewTest, android.widget.cts.ListPopupWindowTest Change-Id: I18e897bcc47283796248ce1ba68b14a8db16e70e