Home
last modified time | relevance | path

Searched refs:migrationViewModel (Results 1 – 17 of 17) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/migration/
DMigrationNavigationFragmentTest.kt36 val migrationViewModel: MigrationViewModel = Mockito.mock(MigrationViewModel::class.java) constant in com.android.healthconnect.controller.tests.migration.MigrationNavigationFragmentTest
45 whenever(migrationViewModel.migrationState).then { in whenMigrationFragmentStateLoading_showsLoading()
56 whenever(migrationViewModel.migrationState).then { in whenMigrationFragmentStateError_showsError()
68 whenever(migrationViewModel.migrationState).then { in whenMigrationStateAllowedNotStarted_navigatesToMigrationPausedFragment()
85 whenever(migrationViewModel.migrationState).then { in whenMigrationStateAllowedPaused_navigatesToMigrationPausedFragment()
102 whenever(migrationViewModel.migrationState).then { in whenMigrationStateAppUpdateRequired_navigatesToAppUpdateRequiredFragment()
121 whenever(migrationViewModel.migrationState).then { in whenMigrationStateModuleUpdateRequired_navigatesToModuleUpdateRequiredFragment()
140 whenever(migrationViewModel.migrationState).then { in whenMigrationStateInProgress_navigatesToMigrationInProgressFragment()
158 whenever(migrationViewModel.migrationState).then { in whenMigrationStateCompleteIdle_navigatesToHomeFragment()
175 whenever(migrationViewModel.migrationState).then { in whenMigrationStateComplete_navigatesToHomeFragment()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/
DDataManagementActivityTest.kt61 val migrationViewModel: MigrationViewModel = Mockito.mock(MigrationViewModel::class.java) in <lambda>() constant in com.android.healthconnect.controller.tests.data.DataManagementActivityTest
95 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
101 whenever(migrationViewModel.migrationState).then { in <lambda>()
120 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
126 whenever(migrationViewModel.migrationState).then { in <lambda>()
145 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
151 whenever(migrationViewModel.migrationState).then { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/
DDataManagementActivity.kt44 private val migrationViewModel: MigrationViewModel by viewModels() in <lambda>() constant in com.android.healthconnect.controller.data.DataManagementActivity
57 val currentMigrationState = migrationViewModel.getCurrentMigrationUiState() in <lambda>()
62 migrationViewModel.migrationState.observe(this) { migrationState -> in <lambda>()
95 val currentMigrationState = migrationViewModel.getCurrentMigrationUiState() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/
DMainActivity.kt37 private val migrationViewModel: MigrationViewModel by viewModels() constant in com.android.healthconnect.controller.MainActivity
48 val currentMigrationState = migrationViewModel.getCurrentMigrationUiState() in onCreate()
63 val currentMigrationState = migrationViewModel.getCurrentMigrationUiState() in onResume()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/settings/
DSettingsManagePermissionFragmentTest.kt80 val migrationViewModel: MigrationViewModel = Mockito.mock(MigrationViewModel::class.java) constant in com.android.healthconnect.controller.tests.permissions.connectedapps.settings.SettingsManagePermissionFragmentTest
87 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in setup()
93 whenever(migrationViewModel.migrationState).then { in setup()
189 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in whenMigrationInProgress_showsMigrationInProgressDialog()
195 whenever(migrationViewModel.migrationState).then { in whenMigrationInProgress_showsMigrationInProgressDialog()
233 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in whenRestoreInProgress_showsRestoreInProgressDialog()
239 whenever(migrationViewModel.migrationState).then { in whenRestoreInProgress_showsRestoreInProgressDialog()
DSettingsManageAppPermissionsFragmentTest.kt95 @BindValue val migrationViewModel: MigrationViewModel = mock() in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.settings.SettingsManageAppPermissionsFragmentTest
131 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
137 whenever(migrationViewModel.migrationState).then { in <lambda>()
420 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
426 whenever(migrationViewModel.migrationState).then { in <lambda>()
470 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
476 whenever(migrationViewModel.migrationState).then { in <lambda>()
520 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
526 whenever(migrationViewModel.migrationState).then { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/route/
DRouteRequestActivityTest.kt130 val migrationViewModel: MigrationViewModel = Mockito.mock(MigrationViewModel::class.java) in <lambda>() constant in com.android.healthconnect.controller.tests.route.RouteRequestActivityTest
141 whenever(migrationViewModel.migrationState).then { in <lambda>()
454 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
460 whenever(migrationViewModel.migrationState).then { in <lambda>()
498 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
504 whenever(migrationViewModel.migrationState).then { in <lambda>()
545 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
551 whenever(migrationViewModel.migrationState).then { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/migration/
DMigrationNavigationFragment.kt23 private val migrationViewModel: MigrationViewModel by viewModels() in <lambda>() constant in com.android.healthconnect.controller.migration.MigrationNavigationFragment
36 migrationViewModel.migrationState.observe(viewLifecycleOwner) { migrationState -> in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DMockedPermissionsActivityTest.kt102 val migrationViewModel: MigrationViewModel = Mockito.mock(MigrationViewModel::class.java) in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.request.MockedPermissionsActivityTest
132 whenever(migrationViewModel.migrationState).then { in <lambda>()
730 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
736 whenever(migrationViewModel.migrationState).then { in <lambda>()
787 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
793 whenever(migrationViewModel.migrationState).then { in <lambda>()
844 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in <lambda>()
850 whenever(migrationViewModel.migrationState).then { in <lambda>()
DPermissionsActivityTest.kt123 @BindValue val migrationViewModel: MigrationViewModel = mock(MigrationViewModel::class.java) in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.request.PermissionsActivityTest
135 whenever(migrationViewModel.migrationState).then { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/navigation/
DTrampolineActivityTest.kt91 @BindValue val migrationViewModel: MigrationViewModel = mock(MigrationViewModel::class.java) constant in com.android.healthconnect.controller.tests.navigation.TrampolineActivityTest
116 whenever(migrationViewModel.getCurrentMigrationUiState()).then { in setup()
122 whenever(migrationViewModel.migrationState).then { in setup()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/
DSettingsManagePermissionFragment.kt90 private val migrationViewModel: MigrationViewModel by viewModels() in <lambda>() constant in com.android.healthconnect.controller.permissions.connectedapps.SettingsManagePermissionFragment
114 migrationViewModel.migrationState.observe(viewLifecycleOwner) { migrationState -> in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/home/
DHomeFragmentTest.kt111 val migrationViewModel: MigrationViewModel = Mockito.mock(MigrationViewModel::class.java) in <lambda>() constant in com.android.healthconnect.controller.tests.home.HomeFragmentTest
138 whenever(migrationViewModel.migrationState).then { in <lambda>()
452 whenever(migrationViewModel.migrationState).then { in <lambda>()
492 whenever(migrationViewModel.migrationState).then { in <lambda>()
537 whenever(migrationViewModel.migrationState).then { in <lambda>()
584 whenever(migrationViewModel.migrationState).then { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DPermissionsActivity.kt72 private val migrationViewModel: MigrationViewModel by viewModels() in <lambda>() constant in com.android.healthconnect.controller.permissions.request.PermissionsActivity
206 migrationViewModel.migrationState.observe(this) { migrationState -> in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/route/
DRouteRequestActivity.kt77 private val migrationViewModel: MigrationViewModel by viewModels() in <lambda>() constant in com.android.healthconnect.controller.route.RouteRequestActivity
112 migrationViewModel.migrationState.observe(this) { migrationState -> in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DSettingsManageAppPermissionsFragment.kt100 private val migrationViewModel: MigrationViewModel by viewModels() in <lambda>() constant in com.android.healthconnect.controller.permissions.app.SettingsManageAppPermissionsFragment
170 migrationViewModel.migrationState.observe(viewLifecycleOwner) { migrationState -> in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/home/
DHomeFragment.kt96 private val migrationViewModel: MigrationViewModel by activityViewModels() in <lambda>() constant in com.android.healthconnect.controller.home.HomeFragment
174 migrationViewModel.migrationState.observe(viewLifecycleOwner) { migrationState -> in <lambda>()