• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.sync.notifier;
6 
7 
8 import android.accounts.Account;
9 import android.content.ContentResolver;
10 import android.content.SyncStatusObserver;
11 
12 public class SystemSyncContentResolverDelegate implements SyncContentResolverDelegate {
13 
14     @Override
addStatusChangeListener(int mask, SyncStatusObserver callback)15     public Object addStatusChangeListener(int mask, SyncStatusObserver callback) {
16         return ContentResolver.addStatusChangeListener(mask, callback);
17     }
18 
19     @Override
removeStatusChangeListener(Object handle)20     public void removeStatusChangeListener(Object handle) {
21         ContentResolver.removeStatusChangeListener(handle);
22     }
23 
24     @Override
setMasterSyncAutomatically(boolean sync)25     public void setMasterSyncAutomatically(boolean sync) {
26         ContentResolver.setMasterSyncAutomatically(sync);
27     }
28 
29     @Override
getMasterSyncAutomatically()30     public boolean getMasterSyncAutomatically() {
31         return ContentResolver.getMasterSyncAutomatically();
32     }
33 
34     @Override
getSyncAutomatically(Account account, String authority)35     public boolean getSyncAutomatically(Account account, String authority) {
36         return ContentResolver.getSyncAutomatically(account, authority);
37     }
38 
39     @Override
setSyncAutomatically(Account account, String authority, boolean sync)40     public void setSyncAutomatically(Account account, String authority, boolean sync) {
41         ContentResolver.setSyncAutomatically(account, authority, sync);
42     }
43 
44     @Override
setIsSyncable(Account account, String authority, int syncable)45     public void setIsSyncable(Account account, String authority, int syncable) {
46         ContentResolver.setIsSyncable(account, authority, syncable);
47     }
48 
49     @Override
getIsSyncable(Account account, String authority)50     public int getIsSyncable(Account account, String authority) {
51         return ContentResolver.getIsSyncable(account, authority);
52     }
53 }
54