| /core/core/src/androidTest/java/androidx/core/app/ |
| D | ActivityCompatRecreateTestCase.java | 43 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()
|
| D | ShareCompatTest.java | 59 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()
|
| D | DialogCompatTest.java | 45 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()
|
| D | GrammaticalInflectionManagerCompatTest.java | 45 mActivityTestRule.getActivity(), in testSetGrammaticalGender() 49 mActivityTestRule.getActivity().await(); in testSetGrammaticalGender() 53 mActivityTestRule.getActivity())); in testSetGrammaticalGender()
|
| D | FrameMetricsAggregatorTest.java | 43 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()
|
| D | GetSystemLocalesTest.java | 50 LocaleManagerCompat.getConfigurationLocales(mActivityTestRule.getActivity() in setup() 59 LocaleManagerCompat.getSystemLocales(mActivityTestRule.getActivity()) in testGetSystemLocales_noAppLocalesSet_systemLocalesSameAsInitLocales()
|
| D | NotificationCompatTest.java | 106 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 …]
|
| D | ComponentActivityTest.java | 46 mComponentActivity = mActivityTestRule.getActivity(); in setUp()
|
| /core/core/src/androidTest/java/androidx/core/view/ |
| D | AccessibilityDelegateCompatTest.java | 94 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 …]
|
| D | WindowCompatTest.kt | 37 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>()
|
| D | ViewCompatTest.java | 107 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 …]
|
| D | ViewPropertyAnimatorCompatTest.java | 48 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()
|
| D | ViewCompatReceiveContentTest.java | 45 public final ActivityTestRule<ViewCompatActivity> mActivityTestRule = field in ViewCompatReceiveContentTest 54 final Activity activity = mActivityTestRule.getActivity(); in before()
|
| /core/core/src/androidTest/java/androidx/core/widget/ |
| D | NestedScrollViewScrollFrameRateTest.java | 57 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()
|
| D | NestedScrollViewNestedScrollingFlingTest.java | 86 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()
|
| D | NestedScrollViewSmoothScrollByTest.java | 62 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()
|
| D | NestedScrollViewNestedScrollingA11yScrollTest.java | 81 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()
|
| D | ContentLoadingProgressBarTest.java | 40 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()
|
| D | ListViewCompatTest.java | 56 mListView = mActivityTestRule.getActivity().findViewById(R.id.content); in setUp() 57 runOnMainAndLayoutSync(mActivityTestRule, mListView, new Runnable() { in setUp() 143 runOnMainAndLayoutSync(mActivityTestRule, mListView, in testCanScroll()
|
| D | TextViewOnReceiveContentListenerTest.java | 54 public final ActivityTestRule<ReceiveContentTestActivity> mActivityTestRule = field in TextViewOnReceiveContentListenerTest 62 ReceiveContentTestActivity activity = mActivityTestRule.getActivity(); in before()
|
| D | TextViewCompatTest.java | 111 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/ |
| D | AppWidgetManagerDeviceTest.kt | 63 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>()
|
| D | RemoteViewsCompatTest.kt | 65 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/ |
| D | BaseInstrumentationTestCase.java | 30 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/ |
| D | AutofillIdCompatTest.java | 45 final Activity activity = mActivityTestRule.getActivity(); in setUp()
|