Searched refs:mViewModelStore (Results 1 - 6 of 6) sorted by relevance

/frameworks/support/lifecycle/viewmodel/src/main/java/androidx/lifecycle/
H A DViewModelProvider.java55 private final ViewModelStore mViewModelStore; field in class:ViewModelProvider
80 this.mViewModelStore = store;
123 ViewModel viewModel = mViewModelStore.get(key);
136 mViewModelStore.put(key, viewModel);
/frameworks/support/fragment/src/main/java/androidx/fragment/app/
H A DFragmentActivity.java98 private ViewModelStore mViewModelStore; field in class:FragmentActivity
301 if (mViewModelStore == null) {
302 mViewModelStore = new ViewModelStore();
304 return mViewModelStore;
330 mViewModelStore = nc.viewModelStore;
405 if (mViewModelStore != null && !isChangingConfigurations()) {
406 mViewModelStore.clear();
563 if (fragments == null && mViewModelStore == null && custom == null) {
569 nci.viewModelStore = mViewModelStore;
H A DFragmentState.java105 mInstance.mViewModelStore = viewModelStore;
H A DFragment.java163 ViewModelStore mViewModelStore; field in class:Fragment
322 if (mViewModelStore == null) {
323 mViewModelStore = new ViewModelStore();
325 return mViewModelStore;
1720 if (mViewModelStore != null && !mHost.mFragmentManager.mStateSaved) {
1721 mViewModelStore.clear();
H A DFragmentManager.java2865 if (viewModelStores == null && f.mViewModelStore != null) {
2873 viewModelStores.add(f.mViewModelStore);
/frameworks/support/loader/src/androidTest/java/androidx/loader/app/
H A DLoaderManagerTest.java283 private ViewModelStore mViewModelStore = new ViewModelStore(); field in class:LoaderManagerTest.LoaderOwner
298 return mViewModelStore;

Completed in 56 milliseconds