History log of /frameworks/base/packages/ExtServices/tests/src/android/ext/services/storage/CacheQuotaServiceImplTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
dafb17e7eb9a15862ed1314dff2b82d29ad23632 03-Apr-2017 Jeff Sharkey <jsharkey@android.com> We really want f_frsize and f_bavail.

It's confusing, but f_bsize is not the value you're looking for; the
real block size is f_frsize. Fix all those bugs.

Also, the vast majority of clients are interested in the usable
disk space, not including reserved space.

Test: builds, boots
Bug: 36840579
Change-Id: Ib1470389afd49c14cab62282ec1e978ebb2c4791
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/storage/CacheQuotaServiceImplTest.java
cf9d19e030830fd808d59f1c97edf65e66f675d6 23-Jan-2017 Daniel Nishi <dhnishi@google.com> First pass at adding the cache quota suggestions.

This currently integrates with installd, but not with
any framework API to expose this information to apps.

The first pass, as per the design doc, adds a service
which polls for large changes in the file system free space.
If enough spaces changes, it begins a recalculation of the
cache quotas and pipes the information down to installd.
This calculation is done in the updateable ExtServices.

Further enhancements in later patches include integrating this
to listen to package install and removal events, caching the
last computed quota values into an XML file on disk to load
on boot, and exposing the information to apps.

Bug: 33965858
Test: ExtServices unit test

Change-Id: Ie39f228b73532cb6ce2f98529f7c5df0839202ae
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/storage/CacheQuotaServiceImplTest.java