[DO NOT MERGE] Fix Autofill test breakage

Changing from requestFocusOnUsername() to mActivity.onUsername(View::requestFocus) because mUiBot fails to detect window changes. requestFocusOnUsernameNoWindowChange also fails, so calling mActivity.onUsername() directly.

Test: this
Fixes: 290671195

Change-Id: I41b5447c7065b172850232a8b42591d270bd18ac
diff --git a/tests/autofillservice/src/android/autofillservice/cts/dropdown/LoginActivityTest.java b/tests/autofillservice/src/android/autofillservice/cts/dropdown/LoginActivityTest.java
index 5d71d8c..aebb835 100644
--- a/tests/autofillservice/src/android/autofillservice/cts/dropdown/LoginActivityTest.java
+++ b/tests/autofillservice/src/android/autofillservice/cts/dropdown/LoginActivityTest.java
@@ -1499,10 +1499,10 @@
         mActivity.expectAutoFill("dude", "sweet");
 
         // Trigger auto-fill.
-        requestFocusOnUsername();
+        mActivity.onUsername(View::requestFocus);
         sReplier.getNextFillRequest();
 
-        // Asser that the dataset is not shown
+        // Assert that the dataset is not shown
         assertThrows(RetryableException.class,
                 () -> mUiBot.assertDatasets("The Dude"));