Searched refs:activityTestRule (Results 1 – 6 of 6) sorted by relevance
53 public ActivityTestRule<EmptyActivity> activityTestRule = new ActivityTestRule<>( field in FragmentInBackStackLifecycleTest66 final FragmentActivity activity = activityTestRule.getActivity(); in test()67 activityTestRule.runOnUiThread(() -> { in test()83 EmptyActivity newActivity = recreateActivity(activityTestRule.getActivity(), in test()84 activityTestRule); in test()88 EmptyActivity lastActivity = recreateActivity(newActivity, activityTestRule); in test()89 activityTestRule.runOnUiThread(() -> { in test()
63 public ActivityTestRule<NavigationTestActivityFirst> activityTestRule = field in ProcessOwnerTest123 FragmentActivity recreated = TestUtils.recreateActivity(activity, activityTestRule); in testRecreation()137 NavigationTestActivityFirst activity = activityTestRule.getActivity(); in testPressHomeButton()191 waitTillResumed(dialogActivity, activityTestRule); in testPressHomeButton()198 FragmentActivity firstActivity = activityTestRule.getActivity(); in setupObserverOnResume()199 waitTillResumed(firstActivity, activityTestRule); in setupObserverOnResume()206 activityTestRule.runOnUiThread(() -> in addProcessObserver()211 activityTestRule.runOnUiThread(() -> in removeProcessObserver()216 waitTillResumed(activity, activityTestRule); in checkProcessObserverSilent()218 activityTestRule.runOnUiThread(() -> in checkProcessObserverSilent()[all …]
71 public ActivityTestRule<SimpleAppLifecycleTestActivity> activityTestRule = field in SimpleAppFullLifecycleTest82 activityTestRule.runOnUiThread( in setup()88 activityTestRule.runOnUiThread( in tearDown()97 activityTestRule.launchActivity(null); in testFullLifecycle()
40 public val activityTestRule: androidx.test.rule.ActivityTestRule<AppCompatActivity> = constant in androidx.lifecycle.viewmodel.compose.ViewModelInAppCompatActivityTest46 activity = activityTestRule.activity in setup()54 activityTestRule.runOnUiThread { in lifecycleOwnerIsAvailable()70 activityTestRule.runOnUiThread { in lifecycleOwnerIsAvailableWhenComposedIntoViewGroup()
41 public val activityTestRule: androidx.test.rule.ActivityTestRule<ComponentActivity> = constant in androidx.lifecycle.viewmodel.compose.ViewModelInComponentActivityTest47 activity = activityTestRule.activity in setup()55 activityTestRule.runOnUiThread { in lifecycleOwnerIsAvailable()72 activityTestRule.runOnUiThread { in lifecycleOwnerIsAvailableWhenComposedIntoViewGroup()
49 public val activityTestRule: androidx.test.rule.ActivityTestRule<FragmentActivity> = in initParameters() constant in androidx.lifecycle.viewmodel.compose.ViewModelInFragmentTest55 activity = activityTestRule.activity in initParameters()62 activityTestRule.runOnUiThread { in viewModelCreatedInFragment()