Searched refs:appPermissionViewModel (Results 1 – 3 of 3) sorted by relevance
86 private lateinit var appPermissionViewModel: AppPermissionViewModel variable in com.android.healthconnect.controller.tests.permissions.connectedapps.AppPermissionViewModelTest116 appPermissionViewModel = in setup()142 val result = appPermissionViewModel.loadAccessDate(TEST_APP_PACKAGE_NAME) in loadsCorrectAccessDate()161 appPermissionViewModel.appPermissions.observeForever(appPermissionsObserver) in <lambda>()162 appPermissionViewModel.grantedPermissions.observeForever(grantedPermissionsObserver) in <lambda>()164 appPermissionViewModel.loadPermissionsForPackage(TEST_APP_PACKAGE_NAME) in <lambda>()196 appPermissionViewModel.appPermissions.observeForever(appPermissionsObserver) in <lambda>()197 appPermissionViewModel.grantedPermissions.observeForever(grantedPermissionsObserver) in <lambda>()199 appPermissionViewModel.loadPermissionsForPackage(TEST_APP_PACKAGE_NAME) in <lambda>()215 appPermissionViewModel.grantedPermissions.observeForever(grantedPermissionsObserver) in <lambda>()[all …]
109 private val appPermissionViewModel: AppPermissionViewModel by activityViewModels() in <lambda>() constant in com.android.healthconnect.controller.permissions.app.ConnectedAppFragment147 appPermissionViewModel.loadPermissionsForPackage(packageName) in <lambda>()149 appPermissionViewModel.appPermissions.observe(viewLifecycleOwner) { permissions -> in <lambda>()152 appPermissionViewModel.grantedPermissions.observe(viewLifecycleOwner) { granted -> in <lambda>()157 appPermissionViewModel.lastReadPermissionDisconnected.observe(viewLifecycleOwner) { lastRead in <lambda>()165 appPermissionViewModel.markLastReadShown() in <lambda>()170 if (isReloadNeeded) appPermissionViewModel.loadPermissionsForPackage(packageName) in <lambda>()173 appPermissionViewModel.revokeAllPermissionsState.observe(viewLifecycleOwner) { state -> in <lambda>()184 appPermissionViewModel.showDisableExerciseRouteEvent.observe(viewLifecycleOwner) { event -> in <lambda>()196 val permissionsUpdated = appPermissionViewModel.revokeAllPermissions(packageName) in <lambda>()[all …]
99 val appPermissionViewModel: AppPermissionViewModel = mock(AppPermissionViewModel::class.java) constant in com.android.healthconnect.controller.tests.navigation.TrampolineActivityTest140 whenever(appPermissionViewModel.appInfo).then { MutableLiveData(TEST_APP) } in setup()142 appPermissionViewModel.shouldNavigateToAppPermissionsFragment( in setup()145 whenever(appPermissionViewModel.appPermissions).then { in setup()148 whenever(appPermissionViewModel.grantedPermissions).then { in setup()151 whenever(appPermissionViewModel.revokeAllPermissionsState).then { in setup()154 whenever(appPermissionViewModel.allAppPermissionsGranted).then { MediatorLiveData(false) } in setup()155 whenever(appPermissionViewModel.atLeastOnePermissionGranted).then { MediatorLiveData(true) } in setup()157 whenever(appPermissionViewModel.loadAccessDate(anyString())).thenReturn(accessDate) in setup()158 whenever(appPermissionViewModel.lastReadPermissionDisconnected).then { in setup()[all …]