Searched refs:additionalAccessViewModel (Results 1 – 7 of 7) sorted by relevance
85 private lateinit var additionalAccessViewModel: AdditionalAccessViewModel variable in com.android.healthconnect.controller.tests.permissions.additionalaccess.AdditionalAccessViewModelTest98 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 …]
64 @BindValue val additionalAccessViewModel = mock(AdditionalAccessViewModel::class.java) constant in com.android.healthconnect.controller.tests.permissions.additionalaccess.ExerciseRoutesPermissionDialogFragmentTest77 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()
84 @BindValue val additionalAccessViewModel: AdditionalAccessViewModel = mock() in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.additionalaccess.AdditionalAccessFragmentTest103 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 …]
99 private val additionalAccessViewModel: AdditionalAccessViewModel by viewModels() in <lambda>() constant in com.android.healthconnect.controller.permissions.app.SettingsManageAppPermissionsFragment138 additionalAccessViewModel.loadAdditionalAccessPreferences(packageName) in <lambda>()238 additionalAccessViewModel.additionalAccessState.observe(viewLifecycleOwner) { state -> in <lambda>()329 additionalAccessViewModel.additionalAccessState.value?.historyReadUIState?.isDeclared in <lambda>()
111 private val additionalAccessViewModel: AdditionalAccessViewModel by activityViewModels() in <lambda>() constant in com.android.healthconnect.controller.permissions.app.ConnectedAppFragment248 additionalAccessViewModel.loadAdditionalAccessPreferences(packageName) in <lambda>()249 additionalAccessViewModel.additionalAccessState.observe(viewLifecycleOwner) { state -> in <lambda>()372 additionalAccessViewModel.additionalAccessState.value?.historyReadUIState?.isDeclared in <lambda>()
96 @BindValue val additionalAccessViewModel: AdditionalAccessViewModel = mock() in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.ConnectedAppFragmentTest131 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>()
96 @BindValue val additionalAccessViewModel: AdditionalAccessViewModel = mock() in <lambda>() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.settings.SettingsManageAppPermissionsFragmentTest127 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>()