Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/access/
DAccessViewModelTest.kt3 import com.android.healthconnect.controller.data.access.AccessViewModel
37 private lateinit var viewModel: AccessViewModel
48 viewModel = AccessViewModel(fakeLoadAccessUseCase) in setup()
66 val testObserver = TestObserver<AccessViewModel.AccessScreenState>() in <lambda>()
72 .isEqualTo(AccessViewModel.AccessScreenState.WithData(expected)) in <lambda>()
DAccessFragmentTest.kt34 import com.android.healthconnect.controller.data.access.AccessViewModel
35 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState
36 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState.WithData
61 @BindValue val viewModel: AccessViewModel = Mockito.mock(AccessViewModel::class.java)
75 MutableLiveData<AccessViewModel.AccessScreenState>(WithData(emptyMap())) in dataAccessFragment_noSections_noneDisplayed()
147 MutableLiveData<AccessViewModel.AccessScreenState>(WithData(map)) in dataAccessFragment_inactiveSection_isDisplayed()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/access/
DAccessViewModel.kt23 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState.Error
24 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState.WithData
38 class AccessViewModel @Inject constructor(private val loadAccessUseCase: ILoadAccessUseCase) : class
DAccessFragment.kt63 private val viewModel: AccessViewModel by viewModels() in <lambda>()
111 is AccessViewModel.AccessScreenState.Loading -> { in <lambda>()
114 is AccessViewModel.AccessScreenState.Error -> { in <lambda>()
117 is AccessViewModel.AccessScreenState.WithData -> { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataaccess/
DHealthDataAccessFragmentTest.kt28 import com.android.healthconnect.controller.data.access.AccessViewModel
29 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState
30 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState.WithData
61 @BindValue val viewModel: AccessViewModel = Mockito.mock(AccessViewModel::class.java)
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataaccess/
DHealthDataAccessFragment.kt28 import com.android.healthconnect.controller.data.access.AccessViewModel in <lambda>()
29 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState in <lambda>()
77 private val viewModel: AccessViewModel by viewModels() in <lambda>()