OSDN Git Service

Cap user-visible cache size at quota.
authorDaniel Nishi <dhnishi@google.com>
Wed, 6 Sep 2017 21:34:41 +0000 (14:34 -0700)
committerDaniel Nishi <dhnishi@google.com>
Wed, 6 Sep 2017 21:37:37 +0000 (14:37 -0700)
commit587207150b76260b07063564300403643a07495b
tree708cbffd02b034db54b32b458c66913273a19fab
parent181d4a8096970a55e8dc5eeeff8830df29e0f201
Cap user-visible cache size at quota.

Anything over the quota is considered free for storage purposes because
the system can clear it out at will. This is reflected in the top level
Storage Settings, but not in the ApplicationsState-based views. This
change makes ApplicationsState cap the cache size as well.

Change-Id: I733a39da7fea993065d767978b4191cc82f908b8
Fixes: 65384688
Test: b/34768986
packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java