Home
last modified time | relevance | path

Searched refs:healthPermissionManager (Results 1 – 19 of 19) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DMockedConnectedAppFragmentTest.kt64 @BindValue val healthPermissionManager: HealthPermissionManager = mock() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.MockedConnectedAppFragmentTest
82 whenever(healthPermissionManager.getGrantedHealthPermissions(TEST_APP_PACKAGE_NAME)) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog()
108 verify(healthPermissionManager) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog()
110 verify(healthPermissionManager) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog()
112 verify(healthPermissionManager, never()) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog()
120 whenever(healthPermissionManager.getGrantedHealthPermissions(TEST_APP_PACKAGE_NAME)) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog()
136 healthPermissionManager.revokeHealthPermission( in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog()
161 verify(healthPermissionManager) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog()
163 verify(healthPermissionManager) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog()
165 verify(healthPermissionManager) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/
DHealthPermissionManagerImplTest.kt37 private lateinit var healthPermissionManager: HealthPermissionManagerImpl variable in com.android.healthconnect.controller.tests.permissions.api.HealthPermissionManagerImplTest
42 healthPermissionManager = HealthPermissionManagerImpl(healthConnectManager) in setup()
47 healthPermissionManager.getGrantedHealthPermissions("packageName") in getGrantedHealthPermissions_callsHealthConnectManager()
56 healthPermissionManager.getHealthPermissionsFlags(packageName, permissions) in getHealthPermissionsFlags_callsHealthConnectManager()
66 healthPermissionManager.setHealthPermissionsUserFixedFlagValue( in setHealthPermissionsUserFixedFlagValue_callsHealthConnectManager()
77 healthPermissionManager.grantHealthPermission(packageName, permission) in grantHealthPermission_callsHealthConnectManager()
88 healthPermissionManager.revokeHealthPermission(packageName, permission) in revokeHealthPermission_callsHealthConnectManager()
98 healthPermissionManager.revokeAllHealthPermissions(packageName) in revokeAllHealthPermissions_callsHealthConnectManager()
106 healthPermissionManager.loadStartAccessDate(packageName) in loadStartAccessDate_callsHealthConnectManager()
DGetGrantedHealthPermissionsUseCaseTest.kt34 private val healthPermissionManager: HealthPermissionManager = constant in com.android.healthconnect.controller.tests.permissions.api.GetGrantedHealthPermissionsUseCaseTest
40 useCase = GetGrantedHealthPermissionsUseCase(healthPermissionManager) in setup()
47 verify(healthPermissionManager).getGrantedHealthPermissions("TEST_APP") in invoke_callsHealthPermissionManager()
53 whenever(healthPermissionManager.getGrantedHealthPermissions(any())) in invoke_callsHealthPermissionManager_returnsCorrectList()
57 verify(healthPermissionManager).getGrantedHealthPermissions("TEST_APP") in invoke_callsHealthPermissionManager_returnsCorrectList()
63 whenever(healthPermissionManager.getGrantedHealthPermissions(any())) in invoke_whenHealthPermissionManagerFails_returnsEmptyList()
67 verify(healthPermissionManager).getGrantedHealthPermissions("TEST_APP") in invoke_whenHealthPermissionManagerFails_returnsEmptyList()
DSetHealthPermissionsUserFixedFlagValueUseCaseTest.kt31 private val healthPermissionManager: HealthPermissionManager = constant in com.android.healthconnect.controller.tests.permissions.api.SetHealthPermissionsUserFixedFlagValueUseCaseTest
37 useCase = SetHealthPermissionsUserFixedFlagValueUseCase(healthPermissionManager) in setup()
44 verify(healthPermissionManager) in invoke_setFlag_callsHealthPermissionManager()
53 verify(healthPermissionManager) in invoke_clearFlag_callsHealthPermissionManager()
DRevokeHealthPermissionUseCaseTest.kt34 private val healthPermissionManager: HealthPermissionManager = constant in com.android.healthconnect.controller.tests.permissions.api.RevokeHealthPermissionUseCaseTest
40 useCase = RevokeHealthPermissionUseCase(healthPermissionManager) in setup()
49 verify(healthPermissionManager) in invoke_withFitnessPermission_callsHealthPermissionManager()
57 verify(healthPermissionManager) in invoke_withAdditionalPermission_callsHealthPermissionManager()
DGrantHealthPermissionUseCaseTest.kt34 private val healthPermissionManager: HealthPermissionManager = constant in com.android.healthconnect.controller.tests.permissions.api.GrantHealthPermissionUseCaseTest
40 useCase = GrantHealthPermissionUseCase(healthPermissionManager) in setup()
47 verify(healthPermissionManager) in invoke_withFitnessPermission_callsHealthPermissionManager()
55 verify(healthPermissionManager) in invoke_withAdditionalPermission_callsHealthPermissionManager()
DGetHealthPermissionsFlagsUseCaseTest.kt34 private val healthPermissionManager: HealthPermissionManager = constant in com.android.healthconnect.controller.tests.permissions.api.GetHealthPermissionsFlagsUseCaseTest
40 useCase = GetHealthPermissionsFlagsUseCase(healthPermissionManager) in setup()
47 verify(healthPermissionManager) in invoke_callsHealthPermissionManager()
54 whenever(healthPermissionManager.getHealthPermissionsFlags(any(), any())) in invoke_whenHealthPermissionManagerFails_returnsEmptyMap()
DLoadAccessDateUseCaseTest.kt36 private val healthPermissionManager = Mockito.mock(HealthPermissionManager::class.java) constant in com.android.healthconnect.controller.tests.permissions.api.LoadAccessDateUseCaseTest
43 loadAccessDateUseCase = LoadAccessDateUseCase(healthPermissionManager) in setup()
49 whenever(healthPermissionManager.loadStartAccessDate(any())).thenReturn(expected) in loadAccessDate_callsHealthPermissionManager()
57 whenever(healthPermissionManager.loadStartAccessDate(any())) in loadAccessDate_whenHealthPermissionManagerFails_returnsNull()
DRevokeAllHealthPermissionsUseCaseTest.kt31 private val healthPermissionManager: HealthPermissionManager = constant in com.android.healthconnect.controller.tests.permissions.api.RevokeAllHealthPermissionsUseCaseTest
37 useCase = RevokeAllHealthPermissionsUseCase(healthPermissionManager) in setup()
44 verify(healthPermissionManager).revokeAllHealthPermissions("TEST_APP") in invoke_callsHealthPermissionManager()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/
DLoadPotentialPriorityListUseCaseTest.kt68 private val healthPermissionManager: HealthPermissionManager = in <lambda>() constant in com.android.healthconnect.controller.tests.datasources.api.LoadPotentialPriorityListUseCaseTest
80 GetGrantedHealthPermissionsUseCase(healthPermissionManager) in <lambda>()
125 whenever(healthPermissionManager.getGrantedHealthPermissions(TEST_APP_PACKAGE_NAME)) in <lambda>()
131 whenever(healthPermissionManager.getGrantedHealthPermissions(TEST_APP_PACKAGE_NAME_2)) in <lambda>()
137 whenever(healthPermissionManager.getGrantedHealthPermissions(TEST_APP_PACKAGE_NAME_3)) in <lambda>()
156 whenever(healthPermissionManager.getGrantedHealthPermissions(TEST_APP_PACKAGE_NAME)) in <lambda>()
162 whenever(healthPermissionManager.getGrantedHealthPermissions(TEST_APP_PACKAGE_NAME_2)) in <lambda>()
168 whenever(healthPermissionManager.getGrantedHealthPermissions(TEST_APP_PACKAGE_NAME_3)) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/route/
DExerciseRouteViewModelTest.kt76 private val healthPermissionManager = mock(HealthPermissionManager::class.java) in <lambda>() constant in com.android.healthconnect.controller.tests.route.ExerciseRouteViewModelTest
92 GetGrantedHealthPermissionsUseCase(healthPermissionManager), in <lambda>()
93 GetHealthPermissionsFlagsUseCase(healthPermissionManager), in <lambda>()
94 GrantHealthPermissionUseCase(healthPermissionManager), in <lambda>()
95 LoadAccessDateUseCase(healthPermissionManager), in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/api/
DRevokeAllHealthPermissionsUseCase.kt25 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.RevokeAllHealthPermissionsUseCase
27 healthPermissionManager.revokeAllHealthPermissions(packageName) in invoke()
DRevokeHealthPermissionUseCase.kt25 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.RevokeHealthPermissionUseCase
27 healthPermissionManager.revokeHealthPermission(packageName, permission) in invoke()
DGrantHealthPermissionUseCase.kt25 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.GrantHealthPermissionUseCase
27 healthPermissionManager.grantHealthPermission(packageName, permission) in invoke()
DSetHealthPermissionsUserFixedFlagValueUseCase.kt27 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.SetHealthPermissionsUserFixedFlagValueUseCase
29 healthPermissionManager.setHealthPermissionsUserFixedFlagValue( in invoke()
DLoadAccessDateUseCase.kt24 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.LoadAccessDateUseCase
33 healthPermissionManager.loadStartAccessDate(it) in invoke()
DGetHealthPermissionsFlagsUseCase.kt27 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.GetHealthPermissionsFlagsUseCase
35 healthPermissionManager.getHealthPermissionsFlags(packageName, permissions) in invoke()
DGetGrantedHealthPermissionsUseCase.kt26 constructor(private val healthPermissionManager: HealthPermissionManager) : constant in com.android.healthconnect.controller.permissions.api.GetGrantedHealthPermissionsUseCase
34 healthPermissionManager.getGrantedHealthPermissions(packageName) in invoke()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/service/
DUseCaseModule.kt281 healthPermissionManager: HealthPermissionManager in providesGetGrantedHealthPermissionsUseCase()
283 return GetGrantedHealthPermissionsUseCase(healthPermissionManager) in providesGetGrantedHealthPermissionsUseCase()