Home | History | Annotate | Download | only in content

Lines Matching refs:account

19 import android.accounts.Account;
65 * indicate which content authority and for which account types this sync adapter serves.
76 * it sync an account's data.
78 * to intialize the isSyncable state to 1 for that sync adapter for each account that is added.
97 private final HashMap<Account, SyncThread> mSyncThreads = new HashMap<Account, SyncThread>();
109 * {@link ContentResolver#setIsSyncable(android.accounts.Account, String, int)} with 1 if it
122 * {@link ContentResolver#setIsSyncable(android.accounts.Account, String, int)} with 1 if it
141 private Account toSyncKey(Account account) {
143 return account;
150 public void startSync(ISyncContext syncContext, String authority, Account account,
157 final Account threadsKey = toSyncKey(account);
163 if (ContentResolver.getIsSyncable(account, authority) < 0) {
164 ContentResolver.setIsSyncable(account, authority, 1);
171 syncContextClient, authority, account, extras);
208 public void initialize(Account account, String authority) throws RemoteException {
211 startSync(null, authority, account, extras);
223 private final Account mAccount;
225 private final Account mThreadsKey;
228 Account account, Bundle extras) {
232 mAccount = account;
234 mThreadsKey = toSyncKey(account);
289 * Perform a sync for this account. SyncAdapter-specific parameters may
293 * @param account the account that should be synced
300 public abstract void onPerformSync(Account account, Bundle extras,