/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentViewTests.java | 43 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 …]
|
D | FragmentAnimatorTest.java | 59 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 …]
|
D | PrimaryNavFragmentTest.java | 39 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 …]
|
D | PostponedTransitionTest.java | 49 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 …]
|
D | FragmentLifecycleTest.java | 68 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 …]
|
D | FragmentExecuteTests.java | 40 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 …]
|
D | FragmentReorderingTest.java | 38 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 …]
|
D | LoaderTest.java | 51 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 …]
|
D | FragmentTransactionTest.java | 61 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/ |
D | ToolbarTest.java | 64 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 …]
|
D | ListViewTest.java | 123 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 …]
|
D | AbsListViewTest.java | 117 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 …]
|
D | TextClockTest.java | 63 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 …]
|
D | SwitchTest.java | 62 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 …]
|
D | ExpandableListViewBasicTest.java | 58 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 …]
|
D | ExpandableListViewWithHeadersTest.java | 52 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()
|
D | ListPopupWindowTest.java | 106 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 …]
|
D | PopupMenuTest.java | 79 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 …]
|
D | SpinnerTest.java | 72 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 …]
|
D | RemoteViewsTest.java | 104 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/ |
D | BaseMovementMethodTest.java | 65 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/ |
D | ActivityActionModeTest.java | 42 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/ |
D | SampleJUnit4DeviceTest.java | 42 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/ |
D | View_AnimationTest.java | 60 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()
|
D | ViewTreeObserverTest.java | 66 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 …]
|