OSDN Git Service

Add a delay before scheduling local syncs
authorShreyas Basarge <snb@google.com>
Fri, 30 Sep 2016 23:19:44 +0000 (00:19 +0100)
committerShreyas Basarge <snb@google.com>
Sat, 1 Oct 2016 00:11:38 +0000 (01:11 +0100)
commitba1f7903693653f69f644d91c071aed6641cb3c1
treea84bea889b8e984f3ffa9ec66a4e33dbc0adf335
parent38652db8188917f3e51dbedbea0d8f00265772e5
Add a delay before scheduling local syncs

Pre-N devices display this delay. This should help
in batching syncs (saving battery and bandwidth).
Also, certain apps (Gmail) rely on this delay
to allow users to undo deletes.

Bug: 28057410
Change-Id: I17178c87e2f8315237321bdda1e146e8da492ffa
services/core/java/com/android/server/content/SyncManager.java