diff options
| author | Jeff Sharkey <jsharkey@android.com> | 2016-12-13 08:44:51 -0700 |
|---|---|---|
| committer | Jeff Sharkey <jsharkey@android.com> | 2017-01-03 10:22:39 -0700 |
| commit | 5eb3eb58acf18dd624c477d5b11b45a23aea6261 (patch) | |
| tree | c0f0a57a6a9235d41815f0983d1b7896065294b0 /core/java/android/os/Process.java | |
| parent | fce04dc0be8a391d1bd906d9066db7e7ea9bfb22 (diff) | |
Offer to measure disk stats using quotas.
Now we're getting somewhere! This CL starts measuring disk usage
using quotactl(), which is almost instant and has much lower impact
on flash memory lifetime.
We now grant the per-app cache GID to every launched app, and the
ContextImpl logic that creates cache directories matches the logic
down in installd.
Test: builds, boots, quota stats match manual stats
Bug: 27948817
Change-Id: Ie269a2958ce0e1c17cb74dbfecc791a5c12922cf
Diffstat (limited to 'core/java/android/os/Process.java')
| -rw-r--r-- | core/java/android/os/Process.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index 9cd1a4246a58..d6688e3c00f7 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -184,6 +184,11 @@ public class Process { */ public static final int LAST_SHARED_APPLICATION_GID = 59999; + /** {@hide} */ + public static final int FIRST_APPLICATION_CACHE_GID = 20000; + /** {@hide} */ + public static final int LAST_APPLICATION_CACHE_GID = 29999; + /** * Standard priority of application threads. * Use with {@link #setThreadPriority(int)} and |
