/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/ |
D | MockedConnectedAppFragmentTest.kt | 64 @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/ |
D | HealthPermissionManagerImplTest.kt | 37 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()
|
D | GetGrantedHealthPermissionsUseCaseTest.kt | 34 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()
|
D | SetHealthPermissionsUserFixedFlagValueUseCaseTest.kt | 31 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()
|
D | RevokeHealthPermissionUseCaseTest.kt | 34 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()
|
D | GrantHealthPermissionUseCaseTest.kt | 34 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()
|
D | GetHealthPermissionsFlagsUseCaseTest.kt | 34 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()
|
D | LoadAccessDateUseCaseTest.kt | 36 private val healthPermissionManager = Mockito.mock(HealthPermissionManager::class.java) constant 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()
|
D | RevokeAllHealthPermissionsUseCaseTest.kt | 31 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/ |
D | LoadPotentialPriorityListUseCaseTest.kt | 68 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/ |
D | ExerciseRouteViewModelTest.kt | 76 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/ |
D | RevokeAllHealthPermissionsUseCase.kt | 25 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.RevokeAllHealthPermissionsUseCase 27 healthPermissionManager.revokeAllHealthPermissions(packageName) in invoke()
|
D | RevokeHealthPermissionUseCase.kt | 25 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.RevokeHealthPermissionUseCase 27 healthPermissionManager.revokeHealthPermission(packageName, permission) in invoke()
|
D | GrantHealthPermissionUseCase.kt | 25 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.GrantHealthPermissionUseCase 27 healthPermissionManager.grantHealthPermission(packageName, permission) in invoke()
|
D | SetHealthPermissionsUserFixedFlagValueUseCase.kt | 27 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.SetHealthPermissionsUserFixedFlagValueUseCase 29 healthPermissionManager.setHealthPermissionsUserFixedFlagValue( in invoke()
|
D | LoadAccessDateUseCase.kt | 24 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.LoadAccessDateUseCase 33 healthPermissionManager.loadStartAccessDate(it) in invoke()
|
D | GetHealthPermissionsFlagsUseCase.kt | 27 constructor(private val healthPermissionManager: HealthPermissionManager) { constant in com.android.healthconnect.controller.permissions.api.GetHealthPermissionsFlagsUseCase 35 healthPermissionManager.getHealthPermissionsFlags(packageName, permissions) in invoke()
|
D | GetGrantedHealthPermissionsUseCase.kt | 26 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/ |
D | UseCaseModule.kt | 281 healthPermissionManager: HealthPermissionManager in providesGetGrantedHealthPermissionsUseCase() 283 return GetGrantedHealthPermissionsUseCase(healthPermissionManager) in providesGetGrantedHealthPermissionsUseCase()
|