Home
last modified time | relevance | path

Searched refs:mViewModel (Results 1 – 5 of 5) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/appclips/
H A DAppClipsViewModelTest.java65 private AppClipsViewModel mViewModel; field in AppClipsViewModelTest
79 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 …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/appclips/
H A DAppClipsActivity.java97 private AppClipsViewModel mViewModel; field in AppClipsActivity
165 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
H A DComplicationHostViewControllerTest.java66 ComplicationCollectionViewModel mViewModel; field in ComplicationHostViewControllerTest
107 when(mViewModel.getComplications()).thenReturn(mComplicationViewModelLiveData); in setup()
125 mViewModel, in setup()
H A DComplicationViewModelTransformerTest.java52 ComplicationViewModel mViewModel; field in ComplicationViewModelTransformerTest
59 when(mViewModelProvider.get(Mockito.any(), Mockito.any())).thenReturn(mViewModel); in setup()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationStackScrollLayoutController.java166 private final Optional<NotificationListViewModel> mViewModel; field in NotificationStackScrollLayoutController
700 mViewModel = nsslViewModel; in NotificationStackScrollLayoutController()
833 mViewModel.ifPresent( in setUpView()