Home | History | Annotate | Download | only in syncadapter

Lines Matching refs:account

27 import android.accounts.Account;
67 public void onPerformSync(Account account, Bundle extras, String authority,
71 // see if we already have a sync-state attached to this account. By handing
74 long lastSyncMarker = getServerSyncMarker(account);
80 ContactManager.setAccountContactsVisibility(getContext(), account, true);
86 // Use the account manager to request the AuthToken we'll need
90 final String authtoken = mAccountManager.blockingGetAuthToken(account,
94 final long groupId = ContactManager.ensureSampleGroupExists(mContext, account);
98 dirtyContacts = ContactManager.getDirtyContacts(mContext, account);
101 updatedContacts = NetworkUtilities.syncContacts(account, authtoken,
109 account.name,
131 account.name, account.type);
136 setServerSyncMarker(account, newSyncState);
165 * @param account the account we're syncing
168 private long getServerSyncMarker(Account account) {
169 String markerString = mAccountManager.getUserData(account, SYNC_MARKER_KEY);
178 * @param account The account we're syncing
181 private void setServerSyncMarker(Account account, long marker) {
182 mAccountManager.setUserData(account, SYNC_MARKER_KEY, Long.toString(marker));