diff options
author | Amith Yamasani <yamasani@google.com> | 2015-04-10 16:16:30 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2015-04-13 15:36:32 -0700 |
commit | 96a0fd65e18e5b9a0eaed3c24fd8a60a1fac1c3a (patch) | |
tree | 497996afd2d57bc9b65602bd4bcd595c60c4917e /services/core/java/com/android/server/content/SyncOperation.java | |
parent | fb1e9b79782580acabf0dd4dda6a74349fafc978 (diff) | |
download | frameworks_base-96a0fd65e18e5b9a0eaed3c24fd8a60a1fac1c3a.zip frameworks_base-96a0fd65e18e5b9a0eaed3c24fd8a60a1fac1c3a.tar.gz frameworks_base-96a0fd65e18e5b9a0eaed3c24fd8a60a1fac1c3a.tar.bz2 |
Delay syncs for idle apps
Apps that haven't been in use for a while and are considered idle
are not synced until the device is charging or the app is used.
Bug: 20066058
Change-Id: I3471e3a11edae04777163b0dbd74e86495743caa
Diffstat (limited to 'services/core/java/com/android/server/content/SyncOperation.java')
-rw-r--r-- | services/core/java/com/android/server/content/SyncOperation.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/content/SyncOperation.java b/services/core/java/com/android/server/content/SyncOperation.java index 35827cc..10efe81 100644 --- a/services/core/java/com/android/server/content/SyncOperation.java +++ b/services/core/java/com/android/server/content/SyncOperation.java @@ -90,6 +90,9 @@ public class SyncOperation implements Comparable { /** Descriptive string key for this operation */ public String wakeLockName; + /** Whether this sync op was recently skipped due to the app being idle */ + public boolean appIdle; + public SyncOperation(Account account, int userId, int reason, int source, String provider, Bundle extras, long runTimeFromNow, long flexTime, long backoff, long delayUntil, boolean allowParallelSyncs) { |