Home
last modified time | relevance | path

Searched refs:mActivityTestRule (Results 1 – 25 of 32) sorted by relevance

12

/core/core/src/androidTest/java/androidx/core/app/
DActivityCompatRecreateTestCase.java43 public final androidx.test.rule.ActivityTestRule<TestActivityWithLifecycle> mActivityTestRule; field in ActivityCompatRecreateTestCase
46 mActivityTestRule = new androidx.test.rule.ActivityTestRule<>( in ActivityCompatRecreateTestCase()
70 final TestActivityWithLifecycle firstActivity = mActivityTestRule.getActivity(); in testRecreate()
84 mActivityTestRule.runOnUiThread(new Runnable() { in testRecreate()
98 return mActivityTestRule.getActivity() != firstActivity; in testRecreate()
103 final TestActivityWithLifecycle newActivity = mActivityTestRule.getActivity(); in testRecreate()
109 final TestActivityWithLifecycle firstActivity = mActivityTestRule.getActivity(); in testRecreateWhenStopped()
126 mActivityTestRule.runOnUiThread(new Runnable() { in testRecreateWhenStopped()
143 final TestActivityWithLifecycle recreatedActivity = mActivityTestRule.getActivity(); in testRecreateWhenStopped()
DShareCompatTest.java59 Activity activity = mActivityTestRule.getActivity(); in testBuilder()
77 Context context = mActivityTestRule.getActivity().getApplicationContext(); in testBuilderWithoutActivity()
93 Activity activity = mActivityTestRule.getActivity(); in testBuilderWithWrappedActivity()
112 Activity activity = mActivityTestRule.getActivity(); in testBuilderSingleStreamUri()
125 Activity activity = mActivityTestRule.getActivity(); in testBuilderMultipleStreamUris()
141 Activity activity = mActivityTestRule.getActivity(); in testReader()
155 Activity activity = mActivityTestRule.getActivity(); in testReaderInteropOnlyOld()
173 Activity activity = mActivityTestRule.getActivity(); in testReaderInteropOnlyNew()
DDialogCompatTest.java45 mContext = mActivityTestRule.getActivity(); in setup()
51 mActivityTestRule.runOnUiThread(new Runnable() { in testRequireViewByIdFound()
66 mActivityTestRule.runOnUiThread(new Runnable() { in testRequireViewByIdMissing()
80 mActivityTestRule.runOnUiThread(new Runnable() { in testRequireViewByIdInvalid()
DGrammaticalInflectionManagerCompatTest.java45 mActivityTestRule.getActivity(), in testSetGrammaticalGender()
49 mActivityTestRule.getActivity().await(); in testSetGrammaticalGender()
53 mActivityTestRule.getActivity())); in testSetGrammaticalGender()
DFrameMetricsAggregatorTest.java43 public final ActivityTestRule<FrameMetricsActivity> mActivityTestRule; field in FrameMetricsAggregatorTest
48 mActivityTestRule = new ActivityTestRule<>(FrameMetricsActivity.class); in FrameMetricsAggregatorTest()
67 final FrameMetricsActivity activity = mActivityTestRule.getActivity(); in testFrameMetrics()
109 mActivityTestRule.runOnUiThread(new Runnable() { in testFrameMetrics()
DGetSystemLocalesTest.java50 LocaleManagerCompat.getConfigurationLocales(mActivityTestRule.getActivity() in setup()
59 LocaleManagerCompat.getSystemLocales(mActivityTestRule.getActivity()) in testGetSystemLocales_noAppLocalesSet_systemLocalesSameAsInitLocales()
DNotificationCompatTest.java106 mContext = mActivityTestRule.getActivity(); in setup()
112 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testBadgeIcon()
126 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testTimeout()
139 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testShortcutId()
177 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testLocusId()
818 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testNotificationChannel()
831 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity(), channelId) in testNotificationChannel_assignedFromBuilder()
1105 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testGetGroupAlertBehavior()
1120 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testGroupAlertBehavior_mutesGroupNotifications()
1129 Notification n2 = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testGroupAlertBehavior_mutesGroupNotifications()
[all …]
DComponentActivityTest.java46 mComponentActivity = mActivityTestRule.getActivity(); in setUp()
/core/core/src/androidTest/java/androidx/core/view/
DAccessibilityDelegateCompatTest.java94 final Activity activity = mActivityTestRule.getActivity(); in setUp()
95 mActivityTestRule.runOnUiThread(() -> { in setUp()
175 mActivityTestRule.runOnUiThread(() -> { in testAccessibilityPaneTitle_isntTrackedAsPaneWithoutTitle()
197 final Activity activity = mActivityTestRule.getActivity(); in testAccessibilityPaneTitle_isSentOnAppearance()
200 mActivityTestRule.runOnUiThread(() -> { in testAccessibilityPaneTitle_isSentOnAppearance()
209 mActivityTestRule.runOnUiThread(() -> { in testAccessibilityPaneTitle_isSentOnAppearance()
241 final Activity activity = mActivityTestRule.getActivity(); in testAccessibilityPaneTitle_parentVisible_isSentOnAppearance()
242 mActivityTestRule.runOnUiThread(() -> { in testAccessibilityPaneTitle_parentVisible_isSentOnAppearance()
253 mActivityTestRule.runOnUiThread(() -> { in testAccessibilityPaneTitle_parentVisible_isSentOnAppearance()
263 mActivityTestRule.runOnUiThread(() -> { in testAccessibilityPaneTitle_parentVisible_isSentOnAppearance()
[all …]
DWindowCompatTest.kt37 val view = mActivityTestRule.activity.findViewById<View>(R.id.view)!! in <lambda>()
41 mActivityTestRule.runOnUiThread { view.getLocationInWindow(initialPosition) } in <lambda>()
44 mActivityTestRule.runOnUiThread { in <lambda>()
45 WindowCompat.setDecorFitsSystemWindows(mActivityTestRule.activity.window, false) in <lambda>()
55 mActivityTestRule.runOnUiThread { view.getLocationInWindow(finalPosition) } in <lambda>()
DViewCompatTest.java107 final Activity activity = mActivityTestRule.getActivity(); in setUp()
127 final View view = new View(mActivityTestRule.getActivity()); in testGetDisplay_returnsNullForUnattachedView()
134 final View view = new View(mActivityTestRule.getActivity()); in testTransitionName()
141 final Activity activity = mActivityTestRule.getActivity(); in testGetDisjointParentOfOverlay()
145 mActivityTestRule.runOnUiThread(() -> { in testGetDisjointParentOfOverlay()
286 View container = mActivityTestRule.getActivity().findViewById(R.id.container); in testRequireViewByIdFound()
292 View container = mActivityTestRule.getActivity().findViewById(R.id.container); in testRequireViewByIdMissing()
300 View container = mActivityTestRule.getActivity().findViewById(R.id.container); in testRequireViewByIdInvalid()
308 final View container = mActivityTestRule.getActivity().findViewById(R.id.container); in testSystemGestureExclusionRects()
328 final View view = mActivityTestRule.getActivity().findViewById(R.id.container); in dispatchApplyWindowInsets_correctReturnValue()
[all …]
DViewPropertyAnimatorCompatTest.java48 final Activity activity = mActivityTestRule.getActivity(); in setUp()
55 mActivityTestRule.runOnUiThread(new Runnable() { in testWithEndAction()
71 mActivityTestRule.runOnUiThread(new Runnable() { in testWithEndAction()
91 mActivityTestRule.runOnUiThread(new Runnable() { in testWithStartAction()
107 mActivityTestRule.runOnUiThread(new Runnable() { in testWithStartAction()
DViewCompatReceiveContentTest.java45 public final ActivityTestRule<ViewCompatActivity> mActivityTestRule = field in ViewCompatReceiveContentTest
54 final Activity activity = mActivityTestRule.getActivity(); in before()
/core/core/src/androidTest/java/androidx/core/widget/
DNestedScrollViewScrollFrameRateTest.java57 Context context = mActivityTestRule.getActivity(); in setup()
75 mActivityTestRule.runOnUiThread(() -> { in smoothScrollByFrameRateBoost()
93 mActivityTestRule.runOnUiThread(() -> { in flingFrameRateBoost()
118 mActivityTestRule.getActivity().findViewById(R.id.testContentView); in attachToActivity()
120 mActivityTestRule.runOnUiThread(() -> testContentView.addView(mNestedScrollView)); in attachToActivity()
DNestedScrollViewNestedScrollingFlingTest.java86 Context context = mActivityTestRule.getActivity(); in setup()
108 mActivityTestRule.getActivity().findViewById(R.id.testContentView); in setup()
110 mActivityTestRule.runOnUiThread(() -> testContentView.addView(mParent)); in setup()
130 mActivityTestRule.runOnUiThread(() -> { in onNestedFling_consumeParamDeterminesScroll()
157 mActivityTestRule.runOnUiThread(() -> { in uiFlings_parentPreFlingReturnDeterminesNestedScrollViewsFling()
199 mActivityTestRule.runOnUiThread(() -> { in uiFling_fullyParticipatesInNestedScrolling()
221 ViewConfiguration.get(mActivityTestRule.getActivity()); in uiFling_fullyParticipatesInNestedScrolling()
276 mActivityTestRule.runOnUiThread(() -> { in fling_fullyParticipatesInNestedScrolling()
DNestedScrollViewSmoothScrollByTest.java62 Context context = mActivityTestRule.getActivity(); in setup()
86 mActivityTestRule.runOnUiThread(() -> { in smoothScrollBy_scrollsEntireDistanceIncludingMargins()
113 mActivityTestRule.getActivity().findViewById(R.id.testContentView); in attachToActivity()
115 mActivityTestRule.runOnUiThread(() -> testContentView.addView(mNestedScrollView)); in attachToActivity()
DNestedScrollViewNestedScrollingA11yScrollTest.java81 Context context = mActivityTestRule.getActivity(); in setup()
103 mActivityTestRule.getActivity().findViewById(R.id.testContentView); in setup()
105 mActivityTestRule.runOnUiThread(new Runnable() { in setup()
122 mActivityTestRule.runOnUiThread( in a11yActionScrollForward_halfVisibleSize_fullyParticipatesInNestedScrollingHalf()
140 mActivityTestRule.runOnUiThread( in a11yActionScrollBackward_halfVisibleSize_fullyParticipatesInNestedScrollingHalf()
153 mActivityTestRule.runOnUiThread(new Runnable() { in a11yScroll_fullyParticipatesInNestedScrolling()
DContentLoadingProgressBarTest.java40 public final ActivityTestRule<ContentLoadingProgressBarActivity> mActivityTestRule; field in ContentLoadingProgressBarTest
43 mActivityTestRule = new ActivityTestRule<>(ContentLoadingProgressBarActivity.class); in ContentLoadingProgressBarTest()
50 mContentLoadingProgressBar = mActivityTestRule.getActivity().findViewById(R.id.progressBar); in setUp()
DListViewCompatTest.java56 mListView = mActivityTestRule.getActivity().findViewById(R.id.content); in setUp()
57 runOnMainAndLayoutSync(mActivityTestRule, mListView, new Runnable() { in setUp()
143 runOnMainAndLayoutSync(mActivityTestRule, mListView, in testCanScroll()
DTextViewOnReceiveContentListenerTest.java54 public final ActivityTestRule<ReceiveContentTestActivity> mActivityTestRule = field in TextViewOnReceiveContentListenerTest
62 ReceiveContentTestActivity activity = mActivityTestRule.getActivity(); in before()
DTextViewCompatTest.java111 mTextView = (TextView) mActivityTestRule.getActivity().findViewById(R.id.text_view); in setUp()
160 final Resources res = mActivityTestRule.getActivity().getResources(); in testStyle()
335 final Resources res = mActivityTestRule.getActivity().getResources(); in testCompoundDrawablesRelativeWithIntrinsicBoundsById()
386 final Resources res = mActivityTestRule.getActivity().getResources(); in testCompoundDrawablesRelativeWithIntrinsicBoundsByIdRtl()
/core/core-remoteviews/src/androidTest/java/androidx/core/widget/
DAppWidgetManagerDeviceTest.kt63 public val mActivityTestRule: ActivityScenarioRule<AppWidgetHostTestActivity> = in <lambda>() constant in androidx.core.widget.AppWidgetManagerDeviceTest
80 mActivityTestRule.scenario.onActivity { activity -> mHostView = activity.bindAppWidget() } in <lambda>()
137 mActivityTestRule.scenario.onActivity { mTextView.addTextChangedListener(textWatcher) } in <lambda>()
141 mActivityTestRule.scenario.onActivity { mTextView.removeTextChangedListener(textWatcher) } in <lambda>()
152 mActivityTestRule.scenario.onActivity { in <lambda>()
158 mActivityTestRule.scenario.onActivity { in <lambda>()
DRemoteViewsCompatTest.kt65 public val mActivityTestRule: ActivityScenarioRule<AppWidgetHostTestActivity> = in <lambda>() constant in androidx.core.widget.RemoteViewsCompatTest
82 mActivityTestRule.scenario.onActivity { activity -> mHostView = activity.bindAppWidget() } in <lambda>()
402 mActivityTestRule.scenario.onActivity { in <lambda>()
408 mActivityTestRule.scenario.onActivity { in <lambda>()
441 mActivityTestRule.scenario.onActivity { runnable() } in <lambda>()
/core/core/src/androidTest/java/android/support/v4/
DBaseInstrumentationTestCase.java30 public final ActivityTestRule<A> mActivityTestRule; field in BaseInstrumentationTestCase
33 mActivityTestRule = new ActivityTestRule<A>(activityClass); in BaseInstrumentationTestCase()
/core/core/src/androidTest/java/androidx/core/view/autofill/
DAutofillIdCompatTest.java45 final Activity activity = mActivityTestRule.getActivity(); in setUp()

12