diff options
author | Jeff Sharkey <jsharkey@android.com> | 2017-01-09 18:21:21 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2017-01-09 22:30:58 -0700 |
commit | 8dedad31f7fa604028ee6d28963bcc564e76c467 (patch) | |
tree | 56b0761b6cc37c6e56b639358edde3d7efb6db00 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | bd439dcef072fd9a853a6bc9055cfa347ad7c969 (diff) |
Wire up storage stats API to installd.
Now that installd has the implementation details we need, we can wire
up the public APIs to use them.
Shuffle APIs around a bit so that StorageStats can be reused for both
UID and UserHandle results, and rename StorageSummary to
ExternalStorageStats. Provide getTotalBytes() and getFreeBytes() as
first-class methods so we can answer those questions quickly without
paying the cost of measuring external storage details.
Current costs on a typical device with a test account after flushing
dentry caches:
queryStatsForUid() manual: 6922ms
queryStatsForUid() quota: 525ms
queryStatsForUser() manual: 1686ms
queryStatsForUser() quota: 113ms
queryExternalStatsForUser() manual: 42ms
queryExternalStatsForUser() quota: 2ms
For verification purposes, a new "fw.verify_storage" system property
can be set to compute both manual and quota statistics, and log any
discrepancies.
Test: builds, boots
Bug: 27948817, 32206268
Change-Id: I4ea3df3372a7379aa8cf4c20c44120c8f0702c15
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions