Home
last modified time | relevance | path

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

1234567891011

/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.java59 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentAnimatorTest
64 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContainer()
70 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in addAnimators()
79 FragmentTestUtil.waitForExecution(mActivityRule); in addAnimators()
87 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in removeAnimators()
92 FragmentTestUtil.waitForExecution(mActivityRule); in removeAnimators()
99 FragmentTestUtil.waitForExecution(mActivityRule); in removeAnimators()
108 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in showAnimatorsReordered()
113 FragmentTestUtil.waitForExecution(mActivityRule); in showAnimatorsReordered()
115 mActivityRule.runOnUiThread(() -> { in showAnimatorsReordered()
[all …]
DPrimaryNavFragmentTest.java39 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in PrimaryNavFragmentTest
44 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in delegateBackToPrimaryNav()
49 executePendingTransactions(mActivityRule, fm); in delegateBackToPrimaryNav()
57 executePendingTransactions(mActivityRule, cfm); in delegateBackToPrimaryNav()
63 popBackStackImmediate(mActivityRule, fm)); in delegateBackToPrimaryNav()
70 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in popPrimaryNav()
76 executePendingTransactions(mActivityRule, fm); in popPrimaryNav()
82 executePendingTransactions(mActivityRule, fm); in popPrimaryNav()
87 popBackStackImmediate(mActivityRule, fm); in popPrimaryNav()
95 executePendingTransactions(mActivityRule, fm); in popPrimaryNav()
[all …]
DPostponedTransitionTest.java49 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in PostponedTransitionTest
56 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContainer()
57 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in setupContainer()
62 FragmentTestUtil.waitForExecution(mActivityRule); in setupContainer()
73 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in replaceTransition()
74 final View startBlue = mActivityRule.getActivity().findViewById(R.id.blueSquare); in replaceTransition()
83 FragmentTestUtil.waitForExecution(mActivityRule); in replaceTransition()
94 FragmentTestUtil.popBackStackImmediate(mActivityRule); in replaceTransition()
109 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in backStackNestingLevel()
110 View startBlue = mActivityRule.getActivity().findViewById(R.id.blueSquare); in backStackNestingLevel()
[all …]
DFragmentLifecycleTest.java68 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentLifecycleTest
73 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in basicLifecycle()
100 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in detachment()
139 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in basicBackStack()
169 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in attachBackStack()
192 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in viewLifecycle()
216 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in viewReplace()
256 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in viewReplaceMultiple()
315 final FragmentController fc = FragmentTestUtil.createController(mActivityRule); in fragmentDestroyedOnFinish()
316 FragmentTestUtil.resume(mActivityRule, fc, null); in fragmentDestroyedOnFinish()
[all …]
DFragmentExecuteTests.java40 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentExecuteTests
45 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setupContentView()
53 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in executeAndPopNormal()
54 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in executeAndPopNormal()
57 mActivityRule.runOnUiThread(new Runnable() { in executeAndPopNormal()
73 assertTrue(FragmentTestUtil.popBackStackImmediate(mActivityRule)); in executeAndPopNormal()
85 final FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in executeAndPopNothing()
88 assertFalse(FragmentTestUtil.executePendingTransactions(mActivityRule)); in executeAndPopNothing()
90 assertFalse(FragmentTestUtil.popBackStackImmediate(mActivityRule)); in executeAndPopNothing()
99 mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in popBackStackImmediateSomething()
[all …]
DFragmentReorderingTest.java38 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentReorderingTest
46 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in setup()
47 mContainer = (ViewGroup) mActivityRule.getActivity().findViewById(R.id.fragmentContainer); in setup()
48 mFM = mActivityRule.getActivity().getFragmentManager(); in setup()
57 mActivityRule.runOnUiThread(new Runnable() { in addReplace()
71 mActivityRule.runOnUiThread(new Runnable() { in addReplace()
90 FragmentTestUtil.executePendingTransactions(mActivityRule); in startWithPop()
94 mActivityRule.runOnUiThread(new Runnable() { in startWithPop()
108 FragmentTestUtil.popBackStackImmediate(mActivityRule); in startWithPop()
118 mActivityRule.runOnUiThread(new Runnable() { in middlePop()
[all …]
DLoaderTest.java51 public ActivityTestRule<LoaderActivity> mActivityRule = field in LoaderTest
61 LoaderActivity activity = FragmentTestUtil.recreateActivity(mActivityRule, in testLeak()
62 mActivityRule.getActivity()); in testLeak()
70 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testLeak()
77 FragmentTestUtil.executePendingTransactions(mActivityRule, fm); in testLeak()
82 activity = FragmentTestUtil.recreateActivity(mActivityRule, activity); in testLeak()
87 FragmentTestUtil.waitForExecution(mActivityRule); in testLeak()
99 LoaderActivity activity = mActivityRule.getActivity(); in startWhenReused()
100 activity.waitForResume(mActivityRule); in startWhenReused()
105 activity = FragmentTestUtil.recreateActivity(mActivityRule, activity); in startWhenReused()
[all …]
DFragmentTransactionTest.java61 public ActivityTestRule<FragmentTestActivity> mActivityRule = field in FragmentTransactionTest
70 mActivity = mActivityRule.getActivity(); in setUp()
91 mActivityRule.runOnUiThread(new Runnable() { in testAddTransactionWithValidFragment()
109 mActivityRule.runOnUiThread(new Runnable() { in testAddTransactionWithPrivateFragment()
134 mActivityRule.runOnUiThread(new Runnable() { in testAddTransactionWithPackagePrivateFragment()
159 mActivityRule.runOnUiThread(new Runnable() { in testAddTransactionWithAnonymousFragment()
184 mActivityRule.runOnUiThread(new Runnable() { in testAddTransactionWithNonStaticFragment()
208 mActivityRule.runOnUiThread(new Runnable() { in testRunOnCommit()
212 FragmentManager fm = mActivityRule.getActivity().getFragmentManager(); in testRunOnCommit()
260 FragmentTestUtil.executePendingTransactions(mActivityRule); in getFragmentsOffThread()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DToolbarTest.java64 public ActivityTestRule<ToolbarCtsActivity> mActivityRule = field in ToolbarTest
70 mActivity = mActivityRule.getActivity(); in setup()
93 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
97 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
101 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
105 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent()
112 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance()
114 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance()
120 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance()
122 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance()
[all …]
DListViewTest.java123 public ActivityTestRule<ListViewCtsActivity> mActivityRule = field in ListViewTest
129 mActivity = mActivityRule.getActivity(); in setup()
171 mActivityRule.runOnUiThread(() -> { in testGetMaxScrollAmount()
182 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in setAdapter()
188 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessDividerHeight()
195 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessDividerHeight()
201 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessDividerHeight()
221 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessAdapter()
227 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessAdapter()
310 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, () -> { in testAccessFooterView()
[all …]
DAbsListViewTest.java117 public ActivityTestRule<ListViewCtsActivity> mActivityRule = field in AbsListViewTest
133 final Activity activity = mActivityRule.getActivity(); in setup()
202 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in setAdapter()
207 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in setListSelection()
232 CtsTouchUtils.emulateScrollToBottom(mInstrumentation, mActivityRule, mListView); in testSetOnScrollListener()
298 mActivityRule.runOnUiThread(() -> mListView.fling(velocityY)); in fling()
335 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessStackFromBottom()
340 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessStackFromBottom()
381 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessListPadding()
397 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, mListView::requestLayout); in testAccessSelector()
[all …]
DTextClockTest.java63 public ActivityTestRule<TextClockCtsActivity> mActivityRule = field in TextClockTest
68 mActivity = mActivityRule.getActivity(); in setup()
84 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
100 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
108 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
117 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
128 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
137 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
151 mActivityRule.runOnUiThread(() -> mTextClock.disableClockTick());
155 mActivityRule.runOnUiThread(() -> mTextClock.setText("Nothing"));
[all …]
DSwitchTest.java62 public ActivityTestRule<SwitchCtsActivity> mActivityRule = field in SwitchTest
68 mActivity = mActivityRule.getActivity(); in setup()
168 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessThumbDrawable()
176 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessThumbDrawable()
184 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, () -> { in testAccessThumbDrawable()
197 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessTrackDrawable()
208 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessTrackDrawable()
217 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessTrackDrawable()
226 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, () -> { in testAccessTrackDrawable()
243 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, container, in testAccessText()
[all …]
DExpandableListViewBasicTest.java58 public ActivityTestRule<ExpandableListBasic> mActivityRule = field in ExpandableListViewBasicTest
64 mActivity = mActivityRule.getActivity(); in setup()
87 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in expandGroup()
90 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in expandGroup()
108 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in testCollapseGroup()
117 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in testExpandedGroupMovement()
120 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in testExpandedGroupMovement()
135 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, in testExpandedGroupMovement()
147 ExpandableListTester tester = new ExpandableListTester(mActivityRule, mExpandableListView); in testContextMenus()
153 ExpandableListTester tester = new ExpandableListTester(mActivityRule, mExpandableListView); in testConvertionBetweenFlatAndPacked()
[all …]
DExpandableListViewWithHeadersTest.java52 public ActivityTestRule<ExpandableListWithHeaders> mActivityRule = field in ExpandableListViewWithHeadersTest
58 mActivity = mActivityRule.getActivity(); in setup()
73 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in testExpandOnFirstPosition()
77 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in testExpandOnFirstPosition()
86 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in testExpandOnFirstGroup()
90 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in testExpandOnFirstGroup()
97 ExpandableListTester tester = new ExpandableListTester(mActivityRule, mExpandableListView); in testContextMenus()
103 ExpandableListTester tester = new ExpandableListTester(mActivityRule, mExpandableListView); in testConvertionBetweenFlatAndPacked()
110 ExpandableListTester tester = new ExpandableListTester(mActivityRule, mExpandableListView); in testSelectedPosition()
DListPopupWindowTest.java106 public ActivityTestRule<ListPopupWindowCtsActivity> mActivityRule field in ListPopupWindowTest
112 mActivity = mActivityRule.getActivity(); in setup()
122 mActivityRule.runOnUiThread(mPopupWindow::dismiss); in teardown()
160 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAccessBackground()
174 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAccessAnimationStyle()
189 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAccessHeight()
231 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, in testAccessWidth()
266 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in verifyAnchoring()
296 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoring()
309 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoringWithHorizontalOffset()
[all …]
DPopupMenuTest.java79 public ActivityTestRule<PopupMenuCtsActivity> mActivityRule = field in PopupMenuTest
87 mActivity = mActivityRule.getActivity(); in setup()
103 mActivityRule.runOnUiThread(() -> { in teardown()
141 mActivityRule.runOnUiThread(mBuilder::show); in testPopulateViaInflater()
153 mActivityRule.runOnUiThread(mBuilder::show); in testDirectPopulate()
164 mActivityRule.runOnUiThread(mBuilder::show); in testAccessGravity()
174 mActivityRule.runOnUiThread(mBuilder::show); in testConstructorWithGravity()
183 mActivityRule.runOnUiThread(mBuilder::show); in testDismissalViaAPI()
188 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in testDismissalViaAPI()
193 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in testDismissalViaAPI()
[all …]
DSpinnerTest.java72 public ActivityTestRule<SpinnerCtsActivity> mActivityRule = field in SpinnerTest
78 mActivity = mActivityRule.getActivity(); in setup()
151 mActivityRule.runOnUiThread(() -> { in verifyGetBaseline()
184 mActivityRule.runOnUiThread(() -> assertTrue(spinner.performClick())); in verifyPerformClick()
232 mActivityRule.runOnUiThread(() -> spinner.setPrompt(promptText)); in verifyAccessPrompt()
246 mActivityRule.runOnUiThread(() -> spinner.setPromptId(R.string.hello_world)); in verifySetPromptId()
290 mActivityRule.runOnUiThread(() -> spinner.setAdapter(adapter)); in verifyGravity()
292 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, spinner, () -> { in verifyGravity()
298 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.LEFT)); in verifyGravity()
301 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.CENTER_HORIZONTAL)); in verifyGravity()
[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 …]
/cts/tests/tests/text/src/android/text/method/cts/
DBaseMovementMethodTest.java65 public ActivityTestRule<CtsActivity> mActivityRule = new ActivityTestRule<>(CtsActivity.class); field in BaseMovementMethodTest
78 mActivityRule.runOnUiThread(() -> mTextView = createTextView()); in testOnGenericMotionEvent_horizontalScroll()
95 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll()
102 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll()
112 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, in testOnGenericMotionEvent_horizontalScroll()
120 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, in testOnGenericMotionEvent_horizontalScroll()
126 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll()
133 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll()
143 mActivityRule.runOnUiThread(() -> mTextView = createTextView()); in testOnGenericMotionEvent_verticalScroll()
157 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_verticalScroll()
[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/sample/src/android/sample/cts/
DSampleJUnit4DeviceTest.java42 public ActivityTestRule<SampleDeviceActivity> mActivityRule = field in SampleJUnit4DeviceTest
55 mActivityRule.getActivity().savePreference(KEY, VALUE); in shouldSaveSharedPreferences()
57 mActivityRule.getActivity().getPreference(KEY)); in shouldSaveSharedPreferences()
60 mActivityRule.getActivity().clearPreferences(); in shouldSaveSharedPreferences()
62 mActivityRule.getActivity().getPreference(KEY)); in shouldSaveSharedPreferences()
/cts/tests/tests/view/src/android/view/cts/
DView_AnimationTest.java60 public ActivityTestRule<ViewTestCtsActivity> mActivityRule = field in View_AnimationTest
66 mActivity = mActivityRule.getActivity(); in setup()
79 mActivityRule.runOnUiThread(view::invalidate); in testAnimation()
81 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, view, mAnimation, in testAnimation()
95 mActivityRule.runOnUiThread(() -> view.startAnimation(mAnimation)); in testStartAnimation()
97 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, view, mAnimation, in testStartAnimation()
110 mActivityRule.runOnUiThread(() -> { in testClearBeforeAnimation()
123 mActivityRule.runOnUiThread(() -> { in testClearDuringAnimation()
130 mActivityRule.runOnUiThread(view::clearAnimation); in testClearDuringAnimation()
DViewTreeObserverTest.java66 public ActivityTestRule<MockActivity> mActivityRule = field in ViewTreeObserverTest
72 mActivity = mActivityRule.getActivity(); in setup()
81 mActivityRule.runOnUiThread(() -> mActivity.setContentView(layoutId)); in layout()
90 mActivityRule.runOnUiThread(view1::requestFocus); in testAddOnGlobalFocusChangeListener()
97 mActivityRule.runOnUiThread(view2::requestFocus); in testAddOnGlobalFocusChangeListener()
141 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mLinearLayout, () -> { in testFrameCommitListener()
169 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mButton); in testAddOnTouchModeChangeListener()
177 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testAddOnTouchModeChangeListener()
235 mActivityRule.runOnUiThread(view1::requestFocus); in testRemoveOnGlobalFocusChangeListener()
241 mActivityRule.runOnUiThread(view2::requestFocus); in testRemoveOnGlobalFocusChangeListener()
[all …]

1234567891011