OSDN Git Service

Consistent "low storage" behavior.
authorJeff Sharkey <jsharkey@android.com>
Tue, 30 May 2017 20:38:42 +0000 (14:38 -0600)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Wed, 31 May 2017 20:04:28 +0000 (20:04 +0000)
commit28443c23fb22fd9cc07117842c4c2155e3fde5fc
tree175161351c82606317f71d1e38e762766c8e9edf
parent0ef5f7761d5fbb8a3aaab222377e015e655f3e04
Consistent "low storage" behavior.

When freeing cached data, the caller can now provide a "reserved"
size which we won't clear cached data from.

Bug: 38008706
Test: cts-tradefed run commandAndExit cts-dev -m CtsJobSchedulerTestCases -t android.jobscheduler.cts.StorageConstraintTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Change-Id: Ieb91b3e5345a950d4785fd7915f520f0a68a567a
(cherry picked from commit 60f8a5330ca921d936ae306bf6d17596b82b518c)
cmds/installd/InstalldNativeService.cpp
cmds/installd/InstalldNativeService.h
cmds/installd/binder/android/os/IInstalld.aidl
cmds/installd/tests/installd_cache_test.cpp