Home
last modified time | relevance | path

Searched refs:getObservedValue (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/
DLiveDataFunctionsTest.java65 assertThat(observer.getObservedValue()).isNull(); in testNullLiveData()
75 assertThat(observer.getObservedValue()).isTrue(); in testTrueLiveData()
85 assertThat(observer.getObservedValue()).isFalse(); in testFalseLiveData()
119 assertThat(observer.getObservedValue()).isEqualTo(1); in testDistinct()
127 assertThat(observer.getObservedValue()).isEqualTo(2); in testDistinct()
140 assertThat(observer.getObservedValue()).isEqualTo(0); in testFreezable()
146 assertThat(observer.getObservedValue()).isEqualTo(1); in testFreezable()
157 assertThat(observer.getObservedValue()).isEqualTo(2); in testFreezable()
205 assertThat(observer.getObservedValue()).isTrue(); in testAnd_changeValue()
247 assertThat(observer.getObservedValue()).isTrue(); in testOr_changeValue()
[all …]
DLoadingSwitchMapTest.java73 assertThat(mObserver.getObservedValue().isLoading()).isTrue(); in testIsLoading_initializedTrigger()
74 assertThat(mObserver.getObservedValue().getData()).isNull(); in testIsLoading_initializedTrigger()
87 assertThat(mObserver.getObservedValue().isLoading()).isFalse(); in testIsLoading_alreadyLoaded()
88 assertThat(mObserver.getObservedValue().getData()).isEqualTo(1); in testIsLoading_alreadyLoaded()
100 assertThat(mObserver.getObservedValue().isLoading()).isTrue(); in testIsLoading_normalFlow()
104 assertThat(mObserver.getObservedValue().isLoading()).isFalse(); in testIsLoading_normalFlow()
105 assertThat(mObserver.getObservedValue().getData()).isEqualTo(1); in testIsLoading_normalFlow()
120 assertThat(mObserver.getObservedValue().isLoading()).isTrue(); in testIsLoading_secondLoad()
121 assertThat(mObserver.getObservedValue().getData()).isNull(); in testIsLoading_secondLoad()
125 assertThat(mObserver.getObservedValue().isLoading()).isFalse(); in testIsLoading_secondLoad()
[all …]
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DProgressLiveDataTest.java93 assertThat(progressObserver.getObservedValue().getProgress()).isEqualTo(START_PROGRESS); in testSetsValueOnActive()
104 assertThat(progressObserver.getObservedValue().getProgress()).isEqualTo( in testUnknownProgress()
117 assertThat(progressObserver.getObservedValue().getProgress()).isEqualTo( in testMovesForwardAtNormalSpeed()
132 assertThat(progressObserver.getObservedValue().getProgress()).isEqualTo( in testMovesForwardAtCustomSpeed()
146 assertThat(progressObserver.getObservedValue().getProgress()).isEqualTo( in testDoesntMoveForwardWhenPaused()
160 assertThat(progressObserver.getObservedValue().getProgress()).isEqualTo( in testDoesntMoveForwardWhenStopped()
DPlaybackViewModelTest.java116 MediaItemMetadata observedValue = observer.getObservedValue(); in testGetMetadata()
132 assertThat(observer.getObservedValue().getStateCompat()).isEqualTo(mPlaybackState); in testGetPlaybackState()
148 List<MediaItemMetadata> observedValue = observer.getObservedValue(); in testGetSanitizedQueue()
168 assertThat(observer.getObservedValue()).isEqualTo(false); in testGetHasQueue_null()
183 assertThat(observer.getObservedValue()).isEqualTo(false); in testGetHasQueue_empty()
197 assertThat(observer.getObservedValue()).isEqualTo(true); in testGetHasQueue_true()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/
DMediaSourceViewModelTest.java128 assertThat(observer.getObservedValue()).isNull(); in testGetSelectedMediaSource_none()
142 BrowsingState browsingState = observer.getObservedValue(); in testGetMediaController_connectedBrowser()
159 BrowsingState browsingState = observer.getObservedValue(); in testGetMediaController_noActiveSession_notConnected()
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/testing/
DCaptureObserver.java52 public T getObservedValue() { in getObservedValue() method in CaptureObserver