OSDN Git Service

Consistent "low storage" behavior.
authorJeff Sharkey <jsharkey@android.com>
Tue, 30 May 2017 20:38:42 +0000 (14:38 -0600)
committerJeff Sharkey <jsharkey@android.com>
Tue, 30 May 2017 22:08:42 +0000 (16:08 -0600)
commit60f8a5330ca921d936ae306bf6d17596b82b518c
tree275a1dc3dd1e16461156a735a7c194b4a12c191c
parent8caf56ef7caf33a602ef0d99afc6469f723fb1eb
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
cmds/installd/InstalldNativeService.cpp
cmds/installd/InstalldNativeService.h
cmds/installd/binder/android/os/IInstalld.aidl
cmds/installd/tests/installd_cache_test.cpp