Loading core/tests/coretests/src/android/widget/scroll/ScrollViewButtonsAndLabelsTest.java +5 −4 Original line number Diff line number Diff line Loading @@ -16,16 +16,14 @@ package android.widget.scroll; import android.test.suitebuilder.annotation.Suppress; import android.widget.scroll.ScrollViewButtonsAndLabels; import android.test.ActivityInstrumentationTestCase; import android.test.suitebuilder.annotation.LargeTest; import android.test.suitebuilder.annotation.MediumTest; import android.test.suitebuilder.annotation.Suppress; import android.view.KeyEvent; import android.widget.Button; import android.widget.LinearLayout; import android.widget.ScrollView; import android.view.KeyEvent; public class ScrollViewButtonsAndLabelsTest Loading Loading @@ -69,6 +67,9 @@ public class ScrollViewButtonsAndLabelsTest int offScreenIndex = findFirstButtonOffScreenTop2Bottom(); Button firstButtonOffScreen = getActivity().getButton(offScreenIndex); getActivity().runOnUiThread(() -> getActivity().getButton(0).requestFocus()); getInstrumentation().waitForIdleSync(); for (int i = 0; i < offScreenIndex; i++) { sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); } Loading Loading
core/tests/coretests/src/android/widget/scroll/ScrollViewButtonsAndLabelsTest.java +5 −4 Original line number Diff line number Diff line Loading @@ -16,16 +16,14 @@ package android.widget.scroll; import android.test.suitebuilder.annotation.Suppress; import android.widget.scroll.ScrollViewButtonsAndLabels; import android.test.ActivityInstrumentationTestCase; import android.test.suitebuilder.annotation.LargeTest; import android.test.suitebuilder.annotation.MediumTest; import android.test.suitebuilder.annotation.Suppress; import android.view.KeyEvent; import android.widget.Button; import android.widget.LinearLayout; import android.widget.ScrollView; import android.view.KeyEvent; public class ScrollViewButtonsAndLabelsTest Loading Loading @@ -69,6 +67,9 @@ public class ScrollViewButtonsAndLabelsTest int offScreenIndex = findFirstButtonOffScreenTop2Bottom(); Button firstButtonOffScreen = getActivity().getButton(offScreenIndex); getActivity().runOnUiThread(() -> getActivity().getButton(0).requestFocus()); getInstrumentation().waitForIdleSync(); for (int i = 0; i < offScreenIndex; i++) { sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); } Loading