summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/IContentService.aidl
diff options
context:
space:
mode:
authorFred Quintana <fredq@google.com>2009-06-22 18:00:59 -0700
committerFred Quintana <fredq@google.com>2009-06-23 15:53:16 -0700
commitac9385ef3105fb7464e1f46049c62755a8b7f0e9 (patch)
tree922fb69a8ec88aaa1ade3be16a9f7aa0d46fa25b /core/java/android/content/IContentService.aidl
parentf86a58ff3d14fa6af3fa447809b45895bbb365f6 (diff)
downloadframeworks_base-ac9385ef3105fb7464e1f46049c62755a8b7f0e9.zip
frameworks_base-ac9385ef3105fb7464e1f46049c62755a8b7f0e9.tar.gz
frameworks_base-ac9385ef3105fb7464e1f46049c62755a8b7f0e9.tar.bz2
- clean up the sync settings names to:
(get|set)SyncAutomatically (get|set)MasterSyncAutomatically - change SYNC_EXTRAS_FORCE to SYNC_EXTRAS_MANUAL to mace clear that this overrides the .*SyncAutomatically settings - make ContentResolver methods that call the sync controls methods in IContentService so that SDK users can use them - rename startSync to requestSync to reinforce the fact that a sync is not immediately or always started when this method is called - add an Account parameter to all the sync settings and control methods - change the sync control methods to take a String authority rather than a Uri uri
Diffstat (limited to 'core/java/android/content/IContentService.aidl')
-rw-r--r--core/java/android/content/IContentService.aidl23
1 files changed, 15 insertions, 8 deletions
diff --git a/core/java/android/content/IContentService.aidl b/core/java/android/content/IContentService.aidl
index 4352227..658a5bc 100644
--- a/core/java/android/content/IContentService.aidl
+++ b/core/java/android/content/IContentService.aidl
@@ -19,6 +19,7 @@ package android.content;
import android.accounts.Account;
import android.content.ActiveSyncInfo;
import android.content.ISyncStatusObserver;
+import android.content.SyncAdapterType;
import android.content.SyncStatusInfo;
import android.net.Uri;
import android.os.Bundle;
@@ -35,15 +36,15 @@ interface IContentService {
void notifyChange(in Uri uri, IContentObserver observer,
boolean observerWantsSelfNotifications, boolean syncToNetwork);
- void startSync(in Uri url, in Bundle extras);
- void cancelSync(in Uri uri);
+ void requestSync(in Account account, String authority, in Bundle extras);
+ void cancelSync(in Account account, String authority);
/**
* Check if the provider should be synced when a network tickle is received
* @param providerName the provider whose setting we are querying
* @return true of the provider should be synced when a network tickle is received
*/
- boolean getSyncProviderAutomatically(String providerName);
+ boolean getSyncAutomatically(in Account account, String providerName);
/**
* Set whether or not the provider is synced when it receives a network tickle.
@@ -51,11 +52,11 @@ interface IContentService {
* @param providerName the provider whose behavior is being controlled
* @param sync true if the provider should be synced when tickles are received for it
*/
- void setSyncProviderAutomatically(String providerName, boolean sync);
+ void setSyncAutomatically(in Account account, String providerName, boolean sync);
- void setListenForNetworkTickles(boolean flag);
+ void setMasterSyncAutomatically(boolean flag);
- boolean getListenForNetworkTickles();
+ boolean getMasterSyncAutomatically();
/**
* Returns true if there is currently a sync operation for the given
@@ -66,17 +67,23 @@ interface IContentService {
ActiveSyncInfo getActiveSync();
/**
+ * Returns the types of the SyncAdapters that are registered with the system.
+ * @return Returns the types of the SyncAdapters that are registered with the system.
+ */
+ SyncAdapterType[] getSyncAdapterTypes();
+
+ /**
* Returns the status that matches the authority. If there are multiples accounts for
* the authority, the one with the latest "lastSuccessTime" status is returned.
* @param authority the authority whose row should be selected
* @return the SyncStatusInfo for the authority, or null if none exists
*/
- SyncStatusInfo getStatusByAuthority(String authority);
+ SyncStatusInfo getSyncStatus(in Account account, String authority);
/**
* Return true if the pending status is true of any matching authorities.
*/
- boolean isAuthorityPending(in Account account, String authority);
+ boolean isSyncPending(in Account account, String authority);
void addStatusChangeListener(int mask, ISyncStatusObserver callback);