Home
last modified time | relevance | path

Searched refs:fragmentModel (Results 1 – 4 of 4) sorted by relevance

/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
DViewModelTest.java138 assertThat(fragment1.fragmentModel, not(is(fragment2.fragmentModel))); in testSameFragmentViewModels()
139 fragment1Model[0] = fragment1.fragmentModel; in testSameFragmentViewModels()
140 fragment2Model[0] = fragment2.fragmentModel; in testSameFragmentViewModels()
154 assertThat(fragment1.fragmentModel, is(fragment1Model[0])); in testSameFragmentViewModels()
155 assertThat(fragment2.fragmentModel, is(fragment2Model[0])); in testSameFragmentViewModels()
206 assertThat(fragment.fragmentModel.mCleared, is(true)); in testFragmentOnClearedWhenFinished()
/frameworks/support/lifecycle/extensions/src/androidTest/java/androidx/lifecycle/
DViewModelTest.java74 assertThat(fragment1.fragmentModel, not(is(fragment2.activityModel))); in ensureSameViewHolders()
79 fragment1Model[0] = fragment1.fragmentModel; in ensureSameViewHolders()
80 fragment2Model[0] = fragment2.fragmentModel; in ensureSameViewHolders()
96 assertThat(fragment1.fragmentModel, is(fragment1Model[0])); in ensureSameViewHolders()
97 assertThat(fragment2.fragmentModel, is(fragment2Model[0])); in ensureSameViewHolders()
/frameworks/support/lifecycle/extensions/src/androidTest/java/androidx/lifecycle/viewmodeltest/
DViewModelActivity.java51 public TestViewModel fragmentModel; field in ViewModelActivity.ViewModelFragment
58 fragmentModel = ViewModelProviders.of(this).get(KEY_FRAGMENT_MODEL, in onCreate()
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/test/
DViewModelActivity.java54 public TestViewModel fragmentModel; field in ViewModelActivity.ViewModelFragment
63 fragmentModel = viewModelProvider.get(KEY_FRAGMENT_MODEL, in onCreate()