/cts/tests/tests/widget/src/android/widget/cts/ |
CheckedTextViewTest.java | 68 public ActivityTestRule<CheckedTextViewCtsActivity> mActivityRule = 74 mActivity = mActivityRule.getActivity(); 111 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, () -> { 130 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, () -> { 173 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, () -> { 183 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, () -> { 313 mActivityRule.runOnUiThread(() -> mCheckedTextView.setChecked(true)); 314 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mCheckedTextView, 324 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mCheckedTextView, () -> { 338 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mCheckedTextView [all...] |
SpinnerTest.java | 72 public ActivityTestRule<SpinnerCtsActivity> mActivityRule = 78 mActivity = mActivityRule.getActivity(); 151 mActivityRule.runOnUiThread(() -> { 184 mActivityRule.runOnUiThread(() -> assertTrue(spinner.performClick())); 232 mActivityRule.runOnUiThread(() -> spinner.setPrompt(promptText)); 246 mActivityRule.runOnUiThread(() -> spinner.setPromptId(R.string.hello_world)); 290 mActivityRule.runOnUiThread(() -> spinner.setAdapter(adapter)); 292 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, spinner, () -> { 298 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.LEFT)); 301 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.CENTER_HORIZONTAL)) [all...] |
TabHostTest.java | 68 public ActivityTestRule<TabHostCtsActivity> mActivityRule = 74 mActivity = mActivityRule.getActivity(); 111 mActivityRule.runOnUiThread(() -> { 146 mActivityRule.runOnUiThread(() -> { 402 mActivityRule.runOnUiThread(() -> { 437 mActivityRule.runOnUiThread(() -> firstTab.requestFocus());
|
AdapterViewTest.java | 80 public ActivityTestRule<AdapterViewCtsActivity> mActivityRule = 85 mActivity = mActivityRule.getActivity(); 288 WidgetTestUtils.runOnMainAndLayoutSync(mActivityRule, mAdapterView, 298 mActivityRule.runOnUiThread(() -> 305 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mAdapterView, 313 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mAdapterView,
|
ExpandableListViewTest.java | 75 public ActivityTestRule<ExpandableList> mActivityRule = 81 mActivity = mActivityRule.getActivity(); 224 mActivityRule.runOnUiThread( 232 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, 238 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, 244 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, 250 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, 256 mActivityRule.runOnUiThread(() -> {
|
PopupMenuTest.java | 79 public ActivityTestRule<PopupMenuCtsActivity> mActivityRule = 87 mActivity = mActivityRule.getActivity(); 103 mActivityRule.runOnUiThread(() -> { 141 mActivityRule.runOnUiThread(mBuilder::show); 153 mActivityRule.runOnUiThread(mBuilder::show); 164 mActivityRule.runOnUiThread(mBuilder::show); 174 mActivityRule.runOnUiThread(mBuilder::show); 183 mActivityRule.runOnUiThread(mBuilder::show); 188 mActivityRule.runOnUiThread(mPopupMenu::dismiss); 193 mActivityRule.runOnUiThread(mPopupMenu::dismiss) [all...] |
TimePickerTest.java | 72 public ActivityTestRule<TimePickerCtsActivity> mActivityRule = 78 mActivity = mActivityRule.getActivity(); 372 mActivityRule.runOnUiThread(() -> mTimePicker.setIs24HourView(false)); 381 mActivityRule.runOnUiThread(() -> mTimePicker.setIs24HourView(true)); 397 mActivityRule.runOnUiThread(() -> 401 mActivityRule.runOnUiThread(() -> mTimePicker.setIs24HourView(false)); 413 mActivityRule.runOnUiThread(() -> mTimePicker.setIs24HourView(true)); 432 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, 511 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, 566 mActivityRule.runOnUiThread(() -> clock.setVisibility(View.GONE)) [all...] |
ToastTest.java | 76 public ActivityTestRule<CtsActivity> mActivityRule = 123 mActivityRule.runOnUiThread( 161 mActivityRule.runOnUiThread(() -> { 490 mActivityRule.runOnUiThread(() -> {
|
ToolbarTest.java | 64 public ActivityTestRule<ToolbarCtsActivity> mActivityRule = 70 mActivity = mActivityRule.getActivity(); 93 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, 97 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, 101 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, 105 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, 112 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, 114 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, 120 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, 122 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar [all...] |
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
VirtualContainerActivityTest.java | 68 private AutofillActivityTestRule<VirtualContainerActivity> mActivityRule; 91 if (mActivityRule == null) { 92 mActivityRule = new AutofillActivityTestRule<VirtualContainerActivity>( 107 return mActivityRule; 144 mActivityRule.runOnUiThread(() -> mActivity.mUsername.changeFocus(true)); 159 mActivityRule.runOnUiThread(() -> mActivity.mPassword.changeFocus(true));
|
/cts/tests/fragment/src/android/fragment/cts/ |
FragmentAnimatorTest.java | 59 public ActivityTestRule<FragmentTestActivity> mActivityRule = 64 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); 70 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); 79 FragmentTestUtil.waitForExecution(mActivityRule); 87 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); 92 FragmentTestUtil.waitForExecution(mActivityRule); 99 FragmentTestUtil.waitForExecution(mActivityRule); 108 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); 113 FragmentTestUtil.waitForExecution(mActivityRule); 115 mActivityRule.runOnUiThread(() -> [all...] |
FragmentViewTests.java | 43 public ActivityTestRule<FragmentTestActivity> mActivityRule = 50 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); 52 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); 53 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); 58 FragmentTestUtil.executePendingTransactions(mActivityRule); 64 FragmentTestUtil.executePendingTransactions(mActivityRule); 75 FragmentTestUtil.executePendingTransactions(mActivityRule); 79 FragmentTestUtil.executePendingTransactions(mActivityRule); 83 FragmentTestUtil.executePendingTransactions(mActivityRule); 88 FragmentTestUtil.executePendingTransactions(mActivityRule); [all...] |
/cts/tests/tests/animation/src/android/animation/cts/ |
AnimatorTest.java | 52 public ActivityTestRule<AnimationActivity> mActivityRule = 58 mActivity = mActivityRule.getActivity(); 127 mActivityRule.runOnUiThread(mAnimator::cancel); 167 mActivityRule.runOnUiThread(mAnimator::cancel); 171 mActivityRule.runOnUiThread(mAnimator::end); 221 mActivityRule.runOnUiThread(() -> { 251 mActivityRule.runOnUiThread(() -> mActivity.startAnimation(animator)); 255 mActivityRule.runOnUiThread(animator::end);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
AnimatedImageDrawableTest.java | 76 public ActivityTestRule<DrawableStubActivity> mActivityRule = 93 mActivity = mActivityRule.getActivity(); 176 mActivityRule.runOnUiThread(() -> { 202 mActivityRule.runOnUiThread(() -> { 234 mActivityRule.runOnUiThread(() -> { 259 mActivityRule.runOnUiThread(() -> { 269 mActivityRule.runOnUiThread(() -> { 291 mActivityRule.runOnUiThread(() -> { 300 mActivityRule.runOnUiThread(() -> { 316 mActivityRule.runOnUiThread(() -> [all...] |
AnimationDrawableTest.java | 72 public ActivityTestRule<ImageViewCtsActivity> mActivityRule = 78 final Activity activity = mActivityRule.getActivity(); 82 mActivityRule.runOnUiThread(new Runnable() { 112 mActivityRule.runOnUiThread(mAnimationDrawable::start); 118 mActivityRule.runOnUiThread(() -> assertTrue(mAnimationDrawable.setVisible(false, false))); 124 mActivityRule.runOnUiThread(() -> assertTrue(mAnimationDrawable.setVisible(true, true))); 135 mActivityRule.runOnUiThread(mAnimationDrawable::start); 142 mActivityRule.runOnUiThread(mAnimationDrawable::start); 145 mActivityRule.runOnUiThread(mAnimationDrawable::stop); 150 mActivityRule.runOnUiThread(mAnimationDrawable::stop) [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
LinkMovementMethodTest.java | 79 public ActivityTestRule<CtsActivity> mActivityRule = new ActivityTestRule<>(CtsActivity.class); 83 mActivity = mActivityRule.getActivity(); 87 mActivityRule.runOnUiThread(() -> mView = new TextViewNoIme(mActivity)); 91 mActivityRule.runOnUiThread(() -> mActivity.setContentView(mView)); 482 mActivityRule.runOnUiThread(() -> mSpannable.setSpan(clickableSpan, start, end,
|
BaseKeyListenerTest.java | 591 mActivityRule.runOnUiThread(() -> {
|
CharacterPickerDialogTest.java | 46 public ActivityTestRule<CtsActivity> mActivityRule = new ActivityTestRule<>(CtsActivity.class); 50 mActivity = mActivityRule.getActivity();
|
/cts/tests/tests/view/src/android/view/cts/ |
PointerCaptureTest.java | 75 public ActivityTestRule<PointerCaptureCtsActivity> mActivityRule = 83 mActivityRule.runOnUiThread(() -> { 94 mActivityRule.runOnUiThread(view::requestPointerCapture); 106 mActivityRule.runOnUiThread(view::releasePointerCapture); 205 mActivity = mActivityRule.getActivity(); 240 CtsTouchUtils.emulateLongPressOnView(mInstrumentation, mActivityRule, mTarget, 0, 0);
|
TextureViewTest.java | 71 public ActivityTestRule<TextureViewCtsActivity> mActivityRule = 76 final TextureViewCtsActivity activity = mActivityRule.launchActivity(null); 81 mActivityRule.runOnUiThread(() -> { 102 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, 116 final TextureViewCtsActivity activity = mActivityRule.launchActivity(null); 119 mActivityRule.runOnUiThread(() -> { 128 final TextureViewCtsActivity activity = mActivityRule.launchActivity(null); 130 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, activity.getTextureView(), null); 135 mActivityRule.runOnUiThread(() -> { 143 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, [all...] |
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilityFocusAndInputFocusSyncTest.java | 69 public ActivityTestRule<AccessibilityFocusAndInputFocusSyncActivity> mActivityRule = 90 sInstrumentation, sUiAutomation, mActivityRule);
|
AccessibilityWindowReportingTest.java | 86 public ActivityTestRule<AccessibilityWindowReportingActivity> mActivityRule = 106 sInstrumentation, sUiAutomation, mActivityRule);
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
SurfaceControlTest.java | 56 public ActivityTestRule<CapturedActivity> mActivityRule = 76 mActivity = mActivityRule.getActivity();
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
InputTestCase.java | 67 public ActivityTestRule<InputCtsActivity> mActivityRule = 73 mActivityRule.getActivity().setInputCallback(mInputListener);
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaActivityTest.java | 76 public ActivityTestRule<MediaSessionTestActivity> mActivityRule = 99 mActivityRule.launchActivity(intent);
|