/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/ |
D | PartiallyCoveredActivityTest.java | 94 public ActivityTestRule<CollectingSupportActivity> activityRule = 121 final CollectingSupportActivity activity = activityRule.getActivity(); 128 activityRule.runOnUiThread(() -> activityRule.getActivity().replaceFragment(fragment)); 136 activityRule.runOnUiThread(() -> { in coveredWithDialog_childFragment() 137 activityRule.getActivity().replaceFragment(parentFragment); in coveredWithDialog_childFragment() 144 TestUtils.waitTillResumed(owner, activityRule); in runTest() 152 TestUtils.waitTillResumed(activityRule.getActivity(), activityRule); in runTest() local 158 CollectingSupportActivity activity = activityRule.getActivity(); in runTest() 159 activityRule.finishActivity(); in runTest() 160 TestUtils.waitTillDestroyed(activity, activityRule); in runTest() [all …]
|
D | TestUtils.java | 84 static void waitTillCreated(final LifecycleOwner owner, ActivityTestRule<?> activityRule) in waitTillCreated() argument 86 waitTillState(owner, activityRule, CREATED); in waitTillCreated() 89 static void waitTillStarted(final LifecycleOwner owner, ActivityTestRule<?> activityRule) in waitTillStarted() argument 91 waitTillState(owner, activityRule, STARTED); in waitTillStarted() 94 static void waitTillResumed(final LifecycleOwner owner, ActivityTestRule<?> activityRule) in waitTillResumed() argument 96 waitTillState(owner, activityRule, RESUMED); in waitTillResumed() 99 static void waitTillDestroyed(final LifecycleOwner owner, ActivityTestRule<?> activityRule) in waitTillDestroyed() argument 101 waitTillState(owner, activityRule, DESTROYED); in waitTillDestroyed() 104 static void waitTillState(final LifecycleOwner owner, ActivityTestRule<?> activityRule, in waitTillState() argument 108 activityRule.runOnUiThread(() -> { in waitTillState() [all …]
|
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/drawer/ |
D | WearableDrawerLayoutEspressoTest.java | 84 @Rule public final ActivityTestRule<DrawerTestActivity> activityRule = field in WearableDrawerLayoutEspressoTest 101 activityRule.launchActivity(mSinglePageIntent); in openingNavigationDrawerDoesNotCloseActionDrawer() 102 DrawerTestActivity activity = activityRule.getActivity(); in openingNavigationDrawerDoesNotCloseActionDrawer() 125 activityRule.launchActivity(mSinglePageIntent); in swipingDownNavigationDrawerDoesNotCloseActionDrawer() 146 activityRule.launchActivity(mSinglePageIntent); in firstNavDrawerItemShouldBeSelectedInitially() 161 activityRule.launchActivity(mSinglePageIntent); in selectingNavItemChangesTextAndClosedDrawer() 188 activityRule.launchActivity(new DrawerTestActivity.Builder() in programmaticallySelectingNavItemChangesTextInSinglePage() 193 activityRule.getActivity().findViewById(R.id.navigation_drawer); in programmaticallySelectingNavItemChangesTextInSinglePage() 208 activityRule.launchActivity(new DrawerTestActivity.Builder() in programmaticallySelectingNavItemChangesTextInMultiPage() 213 activityRule.getActivity().findViewById(R.id.navigation_drawer); in programmaticallySelectingNavItemChangesTextInMultiPage() [all …]
|
/frameworks/support/navigation/runtime/ktx/src/androidTest/java/androidx/navigation/ |
D | ActivityTest.kt | 31 @get:Rule val activityRule = ActivityTestRule<TestActivity>(TestActivity::class.java) constant in androidx.navigation.ActivityTest 32 private val view get() = activityRule.activity.findViewById<View>(VIEW_ID) 35 val navController = NavController(activityRule.activity) in findNavController() 38 val foundNavController = activityRule.activity.findNavController(VIEW_ID) in findNavController() 45 activityRule.activity.findNavController(VIEW_ID) in findNavControllerNull() 55 activityRule.activity.findNavController(INVALID_VIEW_ID) in findNavControllerInvalidViewId()
|
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/ |
D | SwipeDismissFrameLayoutTest.java | 66 public final ActivityTestRule<SwipeDismissFrameLayoutTestActivity> activityRule = field in SwipeDismissFrameLayoutTest 81 Activity activity = activityRule.getActivity(); in testCanScrollHorizontally() 103 Activity activity = activityRule.getActivity(); in canScrollHorizontallyShouldBeFalseWhenInvisible() 125 Activity activity = activityRule.getActivity(); in canScrollHorizontallyShouldBeFalseWhenGone() 148 Activity activity = activityRule.getActivity(); in testSwipeDismissEnabledByDefault() 172 Activity activity = activityRule.getActivity(); in testSwipeDoesNotDismissViewIfDisabled() 187 Activity activity = activityRule.getActivity(); in testAddRemoveCallback() 201 activityRule.runOnUiThread(new Runnable() { in testSwipeDoesNotDismissViewIfScrollable() 204 Activity activity = activityRule.getActivity(); in testSwipeDoesNotDismissViewIfScrollable() 286 activityRule.launchActivity( in setUpSimpleLayout() [all …]
|
/frameworks/support/fragment/ktx/src/androidTest/java/androidx/fragment/app/ |
D | FragmentManagerTest.kt | 12 @get:Rule val activityRule = ActivityTestRule<TestActivity>(TestActivity::class.java) constant in androidx.fragment.app.FragmentManagerTest 13 private val fragmentManager get() = activityRule.activity.supportFragmentManager
|
/frameworks/support/navigation/fragment/ktx/src/androidTest/java/androidx/navigation/fragment/ |
D | FragmentTest.kt | 32 @get:Rule val activityRule = ActivityTestRule<TestActivity>(TestActivity::class.java) constant in androidx.navigation.fragment.ActivityTest 33 private val fragmentManager get() = activityRule.activity.supportFragmentManager
|
D | FragmentNavigatorDestinationBuilderTest.kt | 37 val activityRule = ActivityTestRule<TestActivity>(TestActivity::class.java) constant in androidx.navigation.fragment.TestNavigatorDestinationBuilderTest 38 private val fragmentManager get() = activityRule.activity.supportFragmentManager
|
/frameworks/support/viewpager/src/androidTest/java/androidx/viewpager/widget/ |
D | ViewPagerTest.java | 39 public final ActivityTestRule<ViewPagerActivity> activityRule = new ActivityTestRule<>( field in ViewPagerTest 55 ViewPager pager = activityRule.getActivity().pager; in setPrimaryItemNotCalledWhenAdapterIsEmpty()
|