Searched refs:mViewModel (Results 1 – 5 of 5) sorted by relevance
65 private AppClipsViewModel mViewModel; field in AppClipsViewModelTest79 mViewModel.performScreenshot(); in performScreenshot_fails_shouldUpdateErrorWithFailed()83 assertThat(mViewModel.getErrorLiveData().getValue()) in performScreenshot_fails_shouldUpdateErrorWithFailed()85 assertThat(mViewModel.getResultLiveData().getValue()).isNull(); in performScreenshot_fails_shouldUpdateErrorWithFailed()92 mViewModel.performScreenshot(); in performScreenshot_succeeds_shouldUpdateScreenshotWithBitmap()96 assertThat(mViewModel.getErrorLiveData().getValue()).isNull(); in performScreenshot_succeeds_shouldUpdateScreenshotWithBitmap()109 assertThat(mViewModel.getErrorLiveData().getValue()) in saveScreenshot_throwsError_shouldUpdateErrorWithFailed()111 assertThat(mViewModel.getResultLiveData().getValue()).isNull(); in saveScreenshot_throwsError_shouldUpdateErrorWithFailed()122 assertThat(mViewModel.getErrorLiveData().getValue()) in saveScreenshot_failsSilently_shouldUpdateErrorWithFailed()124 assertThat(mViewModel.getResultLiveData().getValue()).isNull(); in saveScreenshot_failsSilently_shouldUpdateErrorWithFailed()[all …]
97 private AppClipsViewModel mViewModel; field in AppClipsActivity165 mViewModel = new ViewModelProvider(this, mViewModelFactory).get(AppClipsViewModel.class); in onCreate()166 mViewModel.getScreenshot().observe(this, this::setScreenshot); in onCreate()167 mViewModel.getResultLiveData().observe(this, this::setResultThenFinish); in onCreate()168 mViewModel.getErrorLiveData().observe(this, this::setErrorThenFinish); in onCreate()171 mViewModel.performScreenshot(); in onCreate()189 if (isFinishing() && mViewModel.getErrorLiveData().getValue() == null in onDestroy()190 && mViewModel.getResultLiveData().getValue() == null) { in onDestroy()250 mViewModel.saveScreenshotThenFinish(drawable, bounds, getUser()); in saveScreenshotThenFinish()
66 ComplicationCollectionViewModel mViewModel; field in ComplicationHostViewControllerTest107 when(mViewModel.getComplications()).thenReturn(mComplicationViewModelLiveData); in setup()125 mViewModel, in setup()
52 ComplicationViewModel mViewModel; field in ComplicationViewModelTransformerTest59 when(mViewModelProvider.get(Mockito.any(), Mockito.any())).thenReturn(mViewModel); in setup()
166 private final Optional<NotificationListViewModel> mViewModel; field in NotificationStackScrollLayoutController700 mViewModel = nsslViewModel; in NotificationStackScrollLayoutController()833 mViewModel.ifPresent( in setUpView()