/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
H A D | Authenticator.java | 37 * part of the authentication process. In the account setup UI, the user enters 42 * we need to return the appropriate authToken for the specified account. If we 43 * already have an authToken stored in the account, we return that authToken. If 76 AccountAuthenticatorResponse response, Account account, Bundle options) { 88 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, argument 103 final String password = am.getPassword(account); 105 final String authToken = NetworkUtilities.authenticate(account.name, password); 108 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 119 intent.putExtra(AuthenticatorActivity.PARAM_USERNAME, account.name); 136 AccountAuthenticatorResponse response, Account account, Strin 75 confirmCredentials( AccountAuthenticatorResponse response, Account account, Bundle options) argument 135 hasFeatures( AccountAuthenticatorResponse response, Account account, String[] features) argument 147 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
H A D | NetworkUtilities.java | 62 /** POST parameter name for the user's account name */ 100 * @param username The server account username 101 * @param password The server account password 153 * @param account The account being synced 155 * account 161 Account account, String authtoken, long serverSyncState, List<RawContact> dirtyContacts) 178 params.add(new BasicNameValuePair(PARAM_USERNAME, account.name)); 160 syncContacts( Account account, String authtoken, long serverSyncState, List<RawContact> dirtyContacts) argument
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/ |
H A D | SyncAdapter.java | 67 public void onPerformSync(Account account, Bundle extras, String authority, argument 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 168 getServerSyncMarker(Account account) argument 181 setServerSyncMarker(Account account, long marker) argument [all...] |
/development/apps/Development/src/com/android/development/ |
H A D | AccountsTester.java | 110 Account account; field in class:AccountsTester.AccountArrayAdapter.ViewHolder 140 final Account account = getItem(position); 141 holder.account = account; 144 if (desc.type.equals(account.type)) { 159 holder.name.setText(account.name); 225 new CallbackToDialog(AccountsTester.this, "add account"), 255 mLongPressedAccount = holder.account; 259 outState.putParcelable("account", mLongPressedAccount); 263 mLongPressedAccount = savedInstanceState.getParcelable("account"); 452 GetAndInvalidateAuthTokenCallback(Account account) argument [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
H A D | ContactManager.java | 69 public static long ensureSampleGroupExists(Context context, Account account) { argument 77 new String[] { account.name, account.type, SAMPLE_GROUP_NAME }, null); 91 contentValues.put(Groups.ACCOUNT_NAME, account.name); 92 contentValues.put(Groups.ACCOUNT_TYPE, account.type); 108 * @param account The username for the account 114 public static synchronized long updateContacts(Context context, String account, argument 160 addContact(context, account, rawContact, groupId, true, batchOperation); 180 * @param account Th 183 getDirtyContacts(Context context, Account account) argument 485 setAccountContactsVisibility(Context context, Account account, boolean visible) argument [all...] |