Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/home/
DHomeFragmentTest.kt50 import com.android.healthconnect.controller.recentaccess.RecentAccessViewModel.RecentAccessState in <lambda>()
229 MutableLiveData<RecentAccessState>(RecentAccessState.WithData(listOf(recentApp))) in <lambda>()
264 MutableLiveData<RecentAccessState>(RecentAccessState.WithData(listOf(recentApp))) in <lambda>()
307 MutableLiveData<RecentAccessState>(RecentAccessState.WithData(listOf(recentApp))) in <lambda>()
324 MutableLiveData<RecentAccessState>(RecentAccessState.WithData(emptyList())) in <lambda>()
351 MutableLiveData<RecentAccessState>(RecentAccessState.WithData(emptyList())) in <lambda>()
372 MutableLiveData<RecentAccessState>(RecentAccessState.WithData(emptyList())) in <lambda>()
397 MutableLiveData<RecentAccessState>(RecentAccessState.WithData(emptyList())) in <lambda>()
425 MutableLiveData<RecentAccessState>(RecentAccessState.WithData(emptyList())) in <lambda>()
461 MutableLiveData<RecentAccessState>(RecentAccessState.WithData(emptyList())) in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/recentaccess/
DRecentAccessViewModel.kt25 import com.android.healthconnect.controller.recentaccess.RecentAccessViewModel.RecentAccessState.Lo… in <lambda>()
53 private val _recentAccessApps = MutableLiveData<RecentAccessState>() in <lambda>()
54 val recentAccessApps: LiveData<RecentAccessState> in <lambda>()
59 if (_recentAccessApps.value !is RecentAccessState.WithData) { in <lambda>()
65 _recentAccessApps.postValueIfUpdated(RecentAccessState.WithData(clusters)) in <lambda>()
67 _recentAccessApps.postValueIfUpdated(RecentAccessState.Error) in <lambda>()
214 sealed class RecentAccessState { in <lambda>() class in com.android.healthconnect.controller.recentaccess.RecentAccessViewModel
215 object Loading : RecentAccessState() in <lambda>()
216 object Error : RecentAccessState() in <lambda>()
217 data class WithData(val recentAccessEntries: List<RecentAccessEntry>) : RecentAccessState() in <lambda>()
DRecentAccessFragment.kt33 import com.android.healthconnect.controller.recentaccess.RecentAccessViewModel.RecentAccessState in <lambda>()
127 is RecentAccessState.Loading -> { in <lambda>()
130 is RecentAccessState.Error -> { in <lambda>()
133 is RecentAccessState.WithData -> { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/recentaccess/
DRecentAccessFragmentTest.kt32 import com.android.healthconnect.controller.recentaccess.RecentAccessViewModel.RecentAccessState
116 MutableLiveData<RecentAccessState>( in test_RecentAccessFragment_displaysCorrectly()
117 RecentAccessState.WithData(listOf(recentApp1, recentApp2))) in test_RecentAccessFragment_displaysCorrectly()
173 MutableLiveData<RecentAccessState>( in test_RecentAccessFragment_inactiveApp_doesNotNavigate()
174 RecentAccessState.WithData(listOf(recentApp1, recentApp2))) in test_RecentAccessFragment_inactiveApp_doesNotNavigate()
205 MutableLiveData<RecentAccessState>(RecentAccessState.WithData(listOf(recentApp))) in test_RecentAccessFragment_display12HourFormatCorrectly()
DRecentAccessViewModelTest.kt26 import com.android.healthconnect.controller.recentaccess.RecentAccessViewModel.RecentAccessState in <lambda>()
129 val testObserver = TestObserver<RecentAccessState>() in <lambda>()
212 val testObserver = TestObserver<RecentAccessState>() in <lambda>()
292 val testObserver = TestObserver<RecentAccessState>() in <lambda>()
343 val testObserver = TestObserver<RecentAccessState>() in <lambda>()
403 val testObserver = TestObserver<RecentAccessState>() in <lambda>()
455 val testObserver = TestObserver<RecentAccessState>() in <lambda>()
546 val testObserver = TestObserver<RecentAccessState>() in <lambda>()
586 state: RecentAccessState?, in <lambda>()
589 assertThat(state).isInstanceOf(RecentAccessState.WithData::class.java) in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/home/
DHomeFragment.kt42 import com.android.healthconnect.controller.recentaccess.RecentAccessViewModel.RecentAccessState in <lambda>()
163 is RecentAccessState.WithData -> { in <lambda>()