summaryrefslogtreecommitdiff
path: root/services/usage/java
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2017-07-06 11:29:06 -0600
committer Jeff Sharkey <jsharkey@android.com> 2017-07-06 11:29:10 -0600
commitc8b29ac6f0340bd0c3c9eb388c4be2d446de9a59 (patch)
treeb2ff4065fd6ba77a11b38fd8a6e8a36bf32028a4 /services/usage/java
parent4f5adb9801e08f34731cfe22be3c197a5dd09ba4 (diff)
Change storage migration to use quota APIs.
New quota APIs are much faster than trying to measure manually, and removing this last user of calculateDirectorySize() means we can remove it once and for all. Bug: 36056324 Test: builds, boots Change-Id: Ibdf1ee4e8885680e106df6a9269b6309ddc61af8
Diffstat (limited to 'services/usage/java')
-rw-r--r--services/usage/java/com/android/server/usage/StorageStatsService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/usage/java/com/android/server/usage/StorageStatsService.java b/services/usage/java/com/android/server/usage/StorageStatsService.java
index 9f4fb85f64c4..21b11b058160 100644
--- a/services/usage/java/com/android/server/usage/StorageStatsService.java
+++ b/services/usage/java/com/android/server/usage/StorageStatsService.java
@@ -392,6 +392,7 @@ public class StorageStatsService extends IStorageStatsManager.Stub {
res.videoBytes = stats[2];
res.imageBytes = stats[3];
res.appBytes = stats[4];
+ res.obbBytes = stats[5];
return res;
}