Searched refs:ViewModelActivity (Results 1 – 4 of 4) sorted by relevance
35 import androidx.fragment.app.test.ViewModelActivity;36 import androidx.fragment.app.test.ViewModelActivity.ViewModelFragment;54 public ActivityTestRule<ViewModelActivity> mActivityRule =55 new ActivityTestRule<>(ViewModelActivity.class);75 final ViewModelActivity[] viewModelActivity = new ViewModelActivity[1]; in testSameActivityViewModels()85 ViewModelActivity.FRAGMENT_TAG_1); in testSameActivityViewModels()87 ViewModelActivity.FRAGMENT_TAG_2); in testSameActivityViewModels()107 ViewModelActivity.FRAGMENT_TAG_1); in testSameActivityViewModels()109 ViewModelActivity.FRAGMENT_TAG_2); in testSameActivityViewModels()126 final ViewModelActivity[] viewModelActivity = new ViewModelActivity[1]; in testSameFragmentViewModels()[all …]
37 import androidx.lifecycle.viewmodeltest.ViewModelActivity;38 import androidx.lifecycle.viewmodeltest.ViewModelActivity.ViewModelFragment;53 public ActivityTestRule<ViewModelActivity> mActivityRule =54 new ActivityTestRule<>(ViewModelActivity.class);62 final ViewModelActivity[] viewModelActivity = new ViewModelActivity[1]; in ensureSameViewHolders()68 ViewModelActivity.FRAGMENT_TAG_1); in ensureSameViewHolders()70 ViewModelActivity.FRAGMENT_TAG_2); in ensureSameViewHolders()88 ViewModelActivity.FRAGMENT_TAG_1); in ensureSameViewHolders()90 ViewModelActivity.FRAGMENT_TAG_2); in ensureSameViewHolders()117 final ViewModelActivity activity = mActivityRule.getActivity(); in testOnClear()[all …]
27 public class ViewModelActivity extends FragmentActivity { class