Home
last modified time | relevance | path

Searched refs:mActivityRule (Results 1 – 25 of 222) sorted by relevance

123456789

/cts/tests/fragment/src/android/fragment/cts/
DFragmentViewTests.java43 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentViewTests
50 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in addFragments()
52 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in addFragments()
53 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in addFragments()
58 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
64 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
75 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
79 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
83 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
88 FragmentTestUtil.executePendingTransactions(mActivityRule); in addFragments()
[all …]
DFragmentAnimatorTest.java58 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentAnimatorTest
63 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContainer()
69 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in addAnimators()
78 FragmentTestUtil.waitForExecution(mActivityRule); in addAnimators()
86 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in removeAnimators()
91 FragmentTestUtil.waitForExecution(mActivityRule); in removeAnimators()
98 FragmentTestUtil.waitForExecution(mActivityRule); in removeAnimators()
107 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in showAnimatorsReordered()
112 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimatorsReordered()
114 mActivityRule.runOnUiThread(() -> { in showAnimatorsReordered()
[all …]
DPrimaryNavFragmentTest.java36 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in PrimaryNavFragmentTest
41 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in delegateBackToPrimaryNav()
46 executePendingTransactions(mActivityRule, fm); in delegateBackToPrimaryNav()
54 executePendingTransactions(mActivityRule, cfm); in delegateBackToPrimaryNav()
60 popBackStackImmediate(mActivityRule, fm)); in delegateBackToPrimaryNav()
67 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in popPrimaryNav()
73 executePendingTransactions(mActivityRule, fm); in popPrimaryNav()
79 executePendingTransactions(mActivityRule, fm); in popPrimaryNav()
84 popBackStackImmediate(mActivityRule, fm); in popPrimaryNav()
92 executePendingTransactions(mActivityRule, fm); in popPrimaryNav()
[all …]
DPostponedTransitionTest.java48 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in PostponedTransitionTest
55 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContainer()
56 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in setupContainer()
61 FragmentTestUtil.waitForExecution(mActivityRule); in setupContainer()
72 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in replaceTransition()
73 final View startBlue = mActivityRule.getActivity().findViewById(R.id.blueSquare); in replaceTransition()
82 FragmentTestUtil.waitForExecution(mActivityRule); in replaceTransition()
93 FragmentTestUtil.popBackStackImmediate(mActivityRule); in replaceTransition()
108 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in backStackNestingLevel()
109 View startBlue = mActivityRule.getActivity().findViewById(R.id.blueSquare); in backStackNestingLevel()
[all …]
DFragmentExecuteTests.java41 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentExecuteTests
46 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContentView()
54 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in executeAndPopNormal()
55 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in executeAndPopNormal()
58 mActivityRule.runOnUiThread(new Runnable() { in executeAndPopNormal()
74 assertTrue(FragmentTestUtil.popBackStackImmediate(mActivityRule)); in executeAndPopNormal()
86 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in executeAndPopNothing()
89 assertFalse(FragmentTestUtil.executePendingTransactions(mActivityRule)); in executeAndPopNothing()
91 assertFalse(FragmentTestUtil.popBackStackImmediate(mActivityRule)); in executeAndPopNothing()
100 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in popBackStackImmediateSomething()
[all …]
DFragmentReorderingTest.java37 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentReorderingTest
45 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setup()
46 mContainer = (ViewGroup) mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in setup()
47 mFM = mActivityRule.getActivity().getFragmentManager(); in setup()
56 mActivityRule.runOnUiThread(new Runnable() { in addReplace()
70 mActivityRule.runOnUiThread(new Runnable() { in addReplace()
89 FragmentTestUtil.executePendingTransactions(mActivityRule); in startWithPop()
93 mActivityRule.runOnUiThread(new Runnable() { in startWithPop()
107 FragmentTestUtil.popBackStackImmediate(mActivityRule); in startWithPop()
117 mActivityRule.runOnUiThread(new Runnable() { in middlePop()
[all …]
DFragmentLifecycleTest.java66 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentLifecycleTest
71 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in basicLifecycle()
98 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in detachment()
137 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in basicBackStack()
167 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in attachBackStack()
190 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in viewLifecycle()
214 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in viewReplace()
254 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in viewReplaceMultiple()
313 final FragmentController fc = FragmentTestUtil.createController(mActivityRule); in fragmentDestroyedOnFinish()
314 FragmentTestUtil.resume(mActivityRule, fc, null); in fragmentDestroyedOnFinish()
[all …]
DLoaderTest.java50 public ActivityTestRule<LoaderActivity> mActivityRule = field in LoaderTest
60 LoaderActivity activity = FragmentTestUtil.recreateActivity(mActivityRule, in testLeak()
61 mActivityRule.getActivity()); in testLeak()
69 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testLeak()
76 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testLeak()
81 activity = FragmentTestUtil.recreateActivity(mActivityRule, activity); in testLeak()
86 FragmentTestUtil.waitForExecution(mActivityRule); in testLeak()
98 LoaderActivity activity = mActivityRule.getActivity(); in startWhenReused()
102 activity = FragmentTestUtil.recreateActivity(mActivityRule, activity); in startWhenReused()
113 final LoaderActivity activity = mActivityRule.getActivity(); in noStaleData()
[all …]
DFragmentTransactionTest.java60 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentTransactionTest
69 mActivity = mActivityRule.getActivity(); in setUp()
90 mActivityRule.runOnUiThread(new Runnable() { in testAddTransactionWithValidFragment()
108 mActivityRule.runOnUiThread(new Runnable() { in testAddTransactionWithPrivateFragment()
133 mActivityRule.runOnUiThread(new Runnable() { in testAddTransactionWithPackagePrivateFragment()
158 mActivityRule.runOnUiThread(new Runnable() { in testAddTransactionWithAnonymousFragment()
183 mActivityRule.runOnUiThread(new Runnable() { in testAddTransactionWithNonStaticFragment()
207 mActivityRule.runOnUiThread(new Runnable() { in testRunOnCommit()
211 FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in testRunOnCommit()
259 FragmentTestUtil.executePendingTransactions(mActivityRule); in getFragmentsOffThread()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DToolbarTest.java62 public ActivityTestRule<ToolbarCtsActivity> mActivityRule = field in ToolbarTest
68 mActivity = mActivityRule.getActivity(); in setup()
91 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
95 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
99 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
103 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
110 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance()
112 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance()
118 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance()
120 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance()
[all …]
DSwitchTest.java60 public ActivityTestRule<SwitchCtsActivity> mActivityRule = field in SwitchTest
66 mActivity = mActivityRule.getActivity(); in setup()
132 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessThumbDrawable()
140 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessThumbDrawable()
148 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, () -> { in testAccessThumbDrawable()
161 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessTrackDrawable()
172 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessTrackDrawable()
181 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessTrackDrawable()
190 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, () -> { in testAccessTrackDrawable()
207 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, container, in testAccessText()
[all …]
DListViewTest.java122 public ActivityTestRule<ListViewCtsActivity> mActivityRule = field in ListViewTest
128 mActivity = mActivityRule.getActivity(); in setup()
170 mActivityRule.runOnUiThread(() -> { in testGetMaxScrollAmount()
181 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in setAdapter()
187 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessDividerHeight()
194 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessDividerHeight()
200 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessDividerHeight()
220 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessAdapter()
226 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessAdapter()
309 mActivityRule.runOnUiThread(() -> { in testAccessFooterView()
[all …]
DPopupMenuTest.java65 public ActivityTestRule<PopupMenuCtsActivity> mActivityRule = field in PopupMenuTest
73 mActivity = mActivityRule.getActivity(); in setup()
86 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in teardown()
110 mActivityRule.runOnUiThread(mBuilder::show); in testPopulateViaInflater()
119 mActivityRule.runOnUiThread(mBuilder::show); in testDirectPopulate()
128 mActivityRule.runOnUiThread(mBuilder::show); in testAccessGravity()
138 mActivityRule.runOnUiThread(mBuilder::show); in testConstructorWithGravity()
146 mActivityRule.runOnUiThread(mBuilder::show); in testDismissalViaAPI()
151 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in testDismissalViaAPI()
155 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in testDismissalViaAPI()
[all …]
DListPopupWindowTest.java99 public ActivityTestRule<ListPopupWindowCtsActivity> mActivityRule field in ListPopupWindowTest
105 mActivity = mActivityRule.getActivity(); in setup()
112 mActivityRule.runOnUiThread(mPopupWindowBuilder::dismiss); in teardown()
146 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAccessBackground()
160 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAccessAnimationStyle()
175 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAccessHeight()
217 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAccessWidth()
279 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAnchoring()
291 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAnchoringWithHorizontalOffset()
303 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAnchoringWithVerticalOffset()
[all …]
DAbsListViewTest.java112 public ActivityTestRule<ListViewCtsActivity> mActivityRule = field in AbsListViewTest
130 final Activity activity = mActivityRule.getActivity(); in setup()
197 mActivityRule.runOnUiThread(() -> mListView.setAdapter(adapter)); in setAdapter()
202 mActivityRule.runOnUiThread(() -> mListView.setSelection(index)); in setListSelection()
293 mActivityRule.runOnUiThread(() -> mListView.fling(velocityY)); in fling()
330 mActivityRule.runOnUiThread(() -> mListView.setStackFromBottom(false)); in testAccessStackFromBottom()
334 mActivityRule.runOnUiThread(() -> mListView.setStackFromBottom(true)); in testAccessStackFromBottom()
376 mActivityRule.runOnUiThread( in testAccessListPadding()
393 mActivityRule.runOnUiThread(mListView::requestLayout); in testAccessSelector()
401 mActivityRule.runOnUiThread(mListView::requestLayout); in testAccessSelector()
[all …]
DActionMenuViewTest.java54 public ActivityTestRule<ActionMenuViewCtsActivity> mActivityRule = field in ActionMenuViewTest
60 mActivity = mActivityRule.getActivity(); in setup()
103 mActivityRule.runOnUiThread( in testMenuOverflowShowHide()
109 mActivityRule.runOnUiThread(mActionMenuView::showOverflowMenu); in testMenuOverflowShowHide()
114 mActivityRule.runOnUiThread(mActionMenuView::hideOverflowMenu); in testMenuOverflowShowHide()
122 mActivityRule.runOnUiThread( in testMenuOverflowSubmenu()
128 mActivityRule.runOnUiThread(mActionMenuView::showOverflowMenu); in testMenuOverflowSubmenu()
141 mActivityRule.runOnUiThread(() -> menu.performIdentifierAction(R.id.action_share, 0)); in testMenuOverflowSubmenu()
146 mActivityRule.runOnUiThread(mActionMenuView::dismissPopupMenus); in testMenuOverflowSubmenu()
154 mActivityRule.runOnUiThread( in testMenuOverflowIcon()
[all …]
DRemoteViewsTest.java104 public ActivityTestRule<RemoteViewsCtsActivity> mActivityRule = field in RemoteViewsTest
128 ViewGroup root = (ViewGroup) mActivityRule.getActivity().findViewById in setup()
175 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetContentDescription()
185 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility()
189 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility()
193 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility()
204 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewText()
208 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewText()
221 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewTextSize()
237 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetIcon()
[all …]
DSpinnerTest.java70 public ActivityTestRule<SpinnerCtsActivity> mActivityRule = field in SpinnerTest
76 mActivity = mActivityRule.getActivity(); in setup()
149 mActivityRule.runOnUiThread(() -> { in verifyGetBaseline()
182 mActivityRule.runOnUiThread(() -> assertTrue(spinner.performClick())); in verifyPerformClick()
230 mActivityRule.runOnUiThread(() -> spinner.setPrompt(promptText)); in verifyAccessPrompt()
244 mActivityRule.runOnUiThread(() -> spinner.setPromptId(R.string.hello_world)); in verifySetPromptId()
288 mActivityRule.runOnUiThread(() -> spinner.setAdapter(adapter)); in verifyGravity()
290 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, spinner, () -> { in verifyGravity()
296 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.LEFT)); in verifyGravity()
299 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.CENTER_HORIZONTAL)); in verifyGravity()
[all …]
/cts/tests/app/src/android/app/cts/
DActivityActionModeTest.java42 public ActivityTestRule<MockActivity> mActivityRule = field in ActivityActionModeTest
55 if (!mActivityRule.getActivity().getWindow().hasFeature(Window.FEATURE_ACTION_BAR)) { in testStartPrimaryActionMode()
59 final ActionMode mode = mActivityRule.getActivity().startActionMode( in testStartPrimaryActionMode()
69 if (!mActivityRule.getActivity().getWindow().hasFeature(Window.FEATURE_ACTION_BAR)) { in testStartFloatingActionMode()
73 final ActionMode mode = mActivityRule.getActivity().startActionMode( in testStartFloatingActionMode()
83 if (!mActivityRule.getActivity().getWindow().hasFeature(Window.FEATURE_ACTION_BAR)) { in testStartTypelessActionMode()
87 final ActionMode mode = mActivityRule.getActivity().startActionMode(mCallback); in testStartTypelessActionMode()
/cts/tests/tests/text/src/android/text/method/cts/
DBaseMovementMethodTest.java64 public ActivityTestRule<CtsActivity> mActivityRule = new ActivityTestRule<>(CtsActivity.class); field in BaseMovementMethodTest
77 mActivityRule.runOnUiThread(() -> mTextView = createTextView()); in testOnGenericMotionEvent_horizontalScroll()
94 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll()
101 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll()
111 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, in testOnGenericMotionEvent_horizontalScroll()
119 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, in testOnGenericMotionEvent_horizontalScroll()
125 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll()
132 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll()
142 mActivityRule.runOnUiThread(() -> mTextView = createTextView()); in testOnGenericMotionEvent_verticalScroll()
156 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_verticalScroll()
[all …]
DTouchTest.java62 public ActivityTestRule<CtsActivity> mActivityRule = new ActivityTestRule<>(CtsActivity.class); field in TouchTest
68 mActivity = mActivityRule.getActivity(); in setup()
75 mActivityRule.runOnUiThread(() -> { in testScrollTo()
84 mActivityRule.runOnUiThread(() -> mTextView.setText(LONG_TEXT)); in testScrollTo()
90 mActivityRule.runOnUiThread( in testScrollTo()
97 mActivityRule.runOnUiThread(() -> Touch.scrollTo(mTextView, layout, width + 100, 5)); in testScrollTo()
102 mActivityRule.runOnUiThread(() -> Touch.scrollTo(mTextView, layout, width - 10, 5)); in testScrollTo()
126 mActivityRule.runOnUiThread(() -> { in testOnTouchEvent()
144 mActivityRule.runOnUiThread( in testOnTouchEvent()
155 mActivityRule.runOnUiThread( in testOnTouchEvent()
[all …]
/cts/tests/sample/src/android/sample/cts/
DSampleJUnit4DeviceTest.java46 public ActivityTestRule<SampleDeviceActivity> mActivityRule = field in SampleJUnit4DeviceTest
59 mActivityRule.getActivity().savePreference(KEY, VALUE); in shouldSaveSharedPreferences()
61 mActivityRule.getActivity().getPreference(KEY)); in shouldSaveSharedPreferences()
64 mActivityRule.getActivity().clearPreferences(); in shouldSaveSharedPreferences()
66 mActivityRule.getActivity().getPreference(KEY)); in shouldSaveSharedPreferences()
/cts/tests/tests/view/src/android/view/cts/
DView_AnimationTest.java59 public ActivityTestRule<ViewTestCtsActivity> mActivityRule = field in View_AnimationTest
65 mActivity = mActivityRule.getActivity(); in setup()
78 mActivityRule.runOnUiThread(view::invalidate); in testAnimation()
80 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, view, mAnimation, in testAnimation()
94 mActivityRule.runOnUiThread(() -> view.startAnimation(mAnimation)); in testStartAnimation()
96 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, view, mAnimation, in testStartAnimation()
109 mActivityRule.runOnUiThread(() -> { in testClearBeforeAnimation()
122 mActivityRule.runOnUiThread(() -> { in testClearDuringAnimation()
129 mActivityRule.runOnUiThread(view::clearAnimation); in testClearDuringAnimation()
DFrameMetricsListenerTest.java54 public ActivityTestRule<MockActivity> mActivityRule = field in FrameMetricsListenerTest
60 mActivity = mActivityRule.getActivity(); in setup()
64 mActivityRule.runOnUiThread(() -> mActivity.setContentView(layoutId)); in layout()
82 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testReceiveData()
89 mActivityRule.runOnUiThread(() -> { in testReceiveData()
97 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, scrollView, null); in testReceiveData()
125 mActivityRule.runOnUiThread(() -> { in testMultipleListeners()
134 mActivityRule.runOnUiThread(() -> scrollView.fling(-100)); in testMultipleListeners()
139 mActivityRule.runOnUiThread(() -> { in testMultipleListeners()
161 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DBaseTransitionTest.java56 public ActivityTestRule<TransitionActivity> mActivityRule = field in BaseTransitionTest
63 mActivity = mActivityRule.getActivity(); in setup()
95 mActivityRule.runOnUiThread( in loadLayout()
103 mActivityRule.runOnUiThread(() -> scene[0] = new Scene(mSceneRoot, layout)); in loadScene()
110 mActivityRule.runOnUiThread( in loadScene()
120 mActivityRule.runOnUiThread(() -> TransitionManager.go(scene, mTransition)); in startTransition()
125 mActivityRule.runOnUiThread(() -> TransitionManager.endTransitions(mSceneRoot)); in endTransition()
133 WidgetTestUtils.runOnMainAndLayoutSync(mActivityRule, scene::enter, false); in enterScene()
137 mActivityRule.runOnUiThread(scene::exit); in exitScene()

123456789