androidx.health.connect.client.testing


Classes

FakeHealthConnectClient

Fake HealthConnectClient to be used in tests for components that use it as a dependency.

FakeHealthConnectClientOverrides

Used to override or intercept responses to emulate scenarios that FakeHealthConnectClient doesn't support.

FakePermissionController

A fake PermissionController that enables full control of permissions in tests for a HealthConnectClient.

Top-level functions summary

AggregationResult
AggregationResult(
    dataOrigins: Set<DataOrigin>,
    metrics: Map<AggregateMetric<Any>, Any>
)

Creates an AggregationResult from a map of metrics.

Top-level functions

fun AggregationResult(
    dataOrigins: Set<DataOrigin> = emptySet(),
    metrics: Map<AggregateMetric<Any>, Any> = emptyMap()
): AggregationResult

Creates an AggregationResult from a map of metrics.