Use single queryDetailsForDevice if possible

To improve performance.

Since queryDetailsForDevice() also aggregated the uids into one,
the apps list in DataUsageList still needs another separated api call.

Fix: 315449973
Test: manual - on DataUsageList page
Test: unit tests
Change-Id: I96c23dd7d0d40ecd183e0fb0f61329db42dae1ab
This commit is contained in:
Chaohui Wang
2023-12-15 16:36:05 +08:00
parent cb9870b087
commit 51fc4bef49
14 changed files with 405 additions and 196 deletions

View File

@@ -26,11 +26,6 @@ data class NetworkCycleChartData(
val dailyUsage: List<NetworkUsageData>,
) {
companion object {
val AllZero = NetworkCycleChartData(
total = NetworkUsageData.AllZero,
dailyUsage = emptyList(),
)
val BUCKET_DURATION = 1.days
}
}