Home
last modified time | relevance | path

Searched refs:additionalAccessViewModel (Results 1 – 7 of 7) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/
DAdditionalAccessViewModelTest.kt85 private lateinit var additionalAccessViewModel: AdditionalAccessViewModel variable in com.android.healthconnect.controller.tests.permissions.additionalaccess.AdditionalAccessViewModelTest
98 additionalAccessViewModel = in setup()
151 val result = additionalAccessViewModel.loadAccessDate(TEST_APP_PACKAGE_NAME) in loadAccessDate_returnsCorrectDate()
162 additionalAccessViewModel.additionalAccessState.observeForever( in <lambda>()
164 additionalAccessViewModel.loadAdditionalAccessPreferences(TEST_APP_PACKAGE_NAME) in <lambda>()
200 additionalAccessViewModel.additionalAccessState.observeForever( in <lambda>()
202 additionalAccessViewModel.loadAdditionalAccessPreferences(TEST_APP_PACKAGE_NAME) in <lambda>()
240 additionalAccessViewModel.additionalAccessState.observeForever( in loadAdditionalAccessPreferences_backgroundReadNotEnabled_doesNotReturnBackgroundRead()
242 additionalAccessViewModel.loadAdditionalAccessPreferences(TEST_APP_PACKAGE_NAME) in loadAdditionalAccessPreferences_backgroundReadNotEnabled_doesNotReturnBackgroundRead()
282 additionalAccessViewModel.additionalAccessState.observeForever( in loadAdditionalAccessPreferences_noReadPermissionsGranted_additionalPermissionsDisabled()
[all …]
DExerciseRoutesPermissionDialogFragmentTest.kt64 @BindValue val additionalAccessViewModel = mock(AdditionalAccessViewModel::class.java) constant in com.android.healthconnect.controller.tests.permissions.additionalaccess.ExerciseRoutesPermissionDialogFragmentTest
77 whenever(additionalAccessViewModel.additionalAccessState).then { in setup()
84 whenever(additionalAccessViewModel.additionalAccessState).then { in showDialog_permissionStateGranted_preselectCorrectView()
98 whenever(additionalAccessViewModel.additionalAccessState).then { in showDialog_permissionStateDeclared_preselectCorrectView()
110 whenever(additionalAccessViewModel.additionalAccessState).then { in showDialog_permissionStateRevoked_preselectCorrectView()
127 verify(additionalAccessViewModel) in onOptionSelected_withAllowAll_callsViewModelWithGranted()
138 verify(additionalAccessViewModel) in onOptionSelected_withAskEveryTime_callsViewModelWithDeclared()
144 whenever(additionalAccessViewModel.additionalAccessState).then { in onOptionSelected_withRevoke_callsViewModelWithRevoked()
152 verify(additionalAccessViewModel) in onOptionSelected_withRevoke_callsViewModelWithRevoked()
DAdditionalAccessFragmentTest.kt84 @BindValue val additionalAccessViewModel: AdditionalAccessViewModel = mock() in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.additionalaccess.AdditionalAccessFragmentTest
103 whenever(additionalAccessViewModel.additionalAccessState).then { MutableLiveData(State()) } in <lambda>()
104 whenever(additionalAccessViewModel.showEnableExerciseEvent) in <lambda>()
106 whenever(additionalAccessViewModel.loadAccessDate(any())).thenReturn(NOW) in <lambda>()
128 verify(additionalAccessViewModel).loadAdditionalAccessPreferences(eq(TEST_APP_PACKAGE_NAME)) in <lambda>()
134 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
152 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
166 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
185 whenever(additionalAccessViewModel.additionalAccessState).then { MutableLiveData(state) } in <lambda>()
226 whenever(additionalAccessViewModel.additionalAccessState).then { MutableLiveData(state) } in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DSettingsManageAppPermissionsFragment.kt99 private val additionalAccessViewModel: AdditionalAccessViewModel by viewModels() in <lambda>() constant in com.android.healthconnect.controller.permissions.app.SettingsManageAppPermissionsFragment
138 additionalAccessViewModel.loadAdditionalAccessPreferences(packageName) in <lambda>()
238 additionalAccessViewModel.additionalAccessState.observe(viewLifecycleOwner) { state -> in <lambda>()
329 additionalAccessViewModel.additionalAccessState.value?.historyReadUIState?.isDeclared in <lambda>()
DConnectedAppFragment.kt111 private val additionalAccessViewModel: AdditionalAccessViewModel by activityViewModels() in <lambda>() constant in com.android.healthconnect.controller.permissions.app.ConnectedAppFragment
248 additionalAccessViewModel.loadAdditionalAccessPreferences(packageName) in <lambda>()
249 additionalAccessViewModel.additionalAccessState.observe(viewLifecycleOwner) { state -> in <lambda>()
372 additionalAccessViewModel.additionalAccessState.value?.historyReadUIState?.isDeclared in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DConnectedAppFragmentTest.kt96 @BindValue val additionalAccessViewModel: AdditionalAccessViewModel = mock() in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.ConnectedAppFragmentTest
131 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
442 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
545 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
561 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
580 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
599 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/settings/
DSettingsManageAppPermissionsFragmentTest.kt96 @BindValue val additionalAccessViewModel: AdditionalAccessViewModel = mock() in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.settings.SettingsManageAppPermissionsFragmentTest
127 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
354 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
370 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
387 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()
403 whenever(additionalAccessViewModel.additionalAccessState).then { in <lambda>()