From f8c2bb36f7b5d49553155559bc30c4e9211340e4 Mon Sep 17 00:00:00 2001 From: Ken Shirriff Date: Thu, 19 Nov 2009 18:00:16 -0800 Subject: [PATCH] Add gservices flags for calendar sync. --- core/java/android/provider/Settings.java | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 1c52cf3c01625..c20d3381fee5e 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -3576,6 +3576,44 @@ public final class Settings { */ public static final String USE_LOCATION_FOR_SERVICES = "use_location"; + /** + * The number of entries to fetch from the feed at a time for calendar sync. + */ + private static final String GOOGLE_CALENDAR_SYNC_ENTRY_FETCH_QUEUE_SIZE = + "google_calendar_sync_entry_fetch_queue_size"; + + /** + * The number of entities to fetch from the provider at a time for calendar sync. + */ + private static final String GOOGLE_CALENDAR_SYNC_ENTITY_FETCH_QUEUE_SIZE = + "google_calendar_sync_entity_fetch_queue_size"; + + /** + * The maximum number of simultaneous changes to allow before alerting the user for + * calendar sync. + */ + private static final String GOOGLE_CALENDAR_SYNC_NUM_ALLOWED_SIMULTANEOUS_CHANGES = + "google_calendar_sync_num_allowed_simultaneous changes"; + + /** + * The maximum percentage of simultaneous changes to allow before alerting the user for + * calendar sync. + */ + private static final String GOOGLE_CALENDAR_SYNC_PERCENT_ALLOWED_SIMULTANEOUS_CHANGES = + "google_calendar_sync_percent_allowed_simultaneous_changes"; + + /** + * The number of times to apply local changes in calendar sync before stopping. + */ + private static final String GOOGLE_CALENDAR_SYNC_MAX_LOOP_ATTEMPTS = + "google_calendar_sync_max_loop_attempts"; + + /** + * The batch size for applying server changes to the provider for calendar sync. + */ + private static final String GOOGLE_CALENDAR_SYNC_NUM_APPLICATIONS_PER_BATCH = + "google_calendar_sync_num_applications_per_batch"; + /** * The length of the calendar sync window into the future. * This specifies the number of days into the future for the sliding window sync.