toDomain

Converts persisted network usage rows into a complete domain snapshot.

Missing rows are treated as zero so the UI can render all traffic buckets even after a fresh install or after the user resets statistics from the network usage screen.

Receiver

Room rows stored for known or future network usage buckets.

Author

Dmitriy Moroz


Maps low-level Ktor request categories to Room-backed domain buckets.

Model downloads are counted outside Ktor because native platform downloaders stream those files directly and report byte progress through the repository instead.

Receiver

Ktor-level category attached to a request or response body helper.

Author

Dmitriy Moroz