Lines Matching refs:response

105  * and return the result via that response when the activity finishes (or whenever else  the
157 public void addAccount(IAccountAuthenticatorResponse response, String accountType,
168 new AccountAuthenticatorResponse(response),
177 response.onResult(result);
180 handleException(response, "addAccount", accountType, e);
185 public void confirmCredentials(IAccountAuthenticatorResponse response,
193 new AccountAuthenticatorResponse(response), account, options);
202 response.onResult(result);
205 handleException(response, "confirmCredentials", account.toString(), e);
210 public void getAuthTokenLabel(IAccountAuthenticatorResponse response,
228 response.onResult(result);
230 handleException(response, "getAuthTokenLabel", authTokenType, e);
235 public void getAuthToken(IAccountAuthenticatorResponse response,
245 new AccountAuthenticatorResponse(response), account,
254 response.onResult(result);
257 handleException(response, "getAuthToken",
263 public void updateCredentials(IAccountAuthenticatorResponse response, Account account,
272 new AccountAuthenticatorResponse(response), account,
283 response.onResult(result);
286 handleException(response, "updateCredentials",
292 public void editProperties(IAccountAuthenticatorResponse response,
297 new AccountAuthenticatorResponse(response), accountType);
299 response.onResult(result);
302 handleException(response, "editProperties", accountType, e);
307 public void hasFeatures(IAccountAuthenticatorResponse response,
312 new AccountAuthenticatorResponse(response), account, features);
314 response.onResult(result);
317 handleException(response, "hasFeatures", account.toString(), e);
322 public void getAccountRemovalAllowed(IAccountAuthenticatorResponse response,
327 new AccountAuthenticatorResponse(response), account);
329 response.onResult(result);
332 handleException(response, "getAccountRemovalAllowed", account.toString(), e);
337 public void getAccountCredentialsForCloning(IAccountAuthenticatorResponse response,
343 new AccountAuthenticatorResponse(response), account);
345 response.onResult(result);
348 handleException(response, "getAccountCredentialsForCloning", account.toString(), e);
353 public void addAccountFromCredentials(IAccountAuthenticatorResponse response,
360 new AccountAuthenticatorResponse(response), account,
363 response.onResult(result);
366 handleException(response, "addAccountFromCredentials", account.toString(), e);
371 public void startAddAccountSession(IAccountAuthenticatorResponse response,
383 new AccountAuthenticatorResponse(response), accountType, authTokenType,
393 response.onResult(result);
396 handleException(response, "startAddAccountSession", accountType, e);
402 IAccountAuthenticatorResponse response,
416 new AccountAuthenticatorResponse(response),
430 response.onResult(result);
433 handleException(response, "startUpdateCredentialsSession",
441 IAccountAuthenticatorResponse response,
450 new AccountAuthenticatorResponse(response), accountType, sessionBundle);
458 response.onResult(result);
461 handleException(response, "finishSession", accountType, e);
468 IAccountAuthenticatorResponse response,
475 new AccountAuthenticatorResponse(response), account, statusToken);
477 response.onResult(result);
480 handleException(response, "isCredentialsUpdateSuggested", account.toString(), e);
485 private void handleException(IAccountAuthenticatorResponse response, String method,
491 response.onError(AccountManager.ERROR_CODE_NETWORK_ERROR, e.getMessage());
496 response.onError(AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION,
502 response.onError(AccountManager.ERROR_CODE_BAD_ARGUMENTS,
506 response.onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION,
530 * properties. In order to indicate success the activity should call response.setResult()
532 * @param response used to set the result for the request. If the Constants.INTENT_KEY
533 * is set in the bundle then this response field is to be used for sending future
538 * sent later using response.
540 public abstract Bundle editProperties(AccountAuthenticatorResponse response,
545 * @param response to send the result back to the AccountManager, will never be null
551 * @return a Bundle result or null if the result is to be returned via the response. The result
563 public abstract Bundle addAccount(AccountAuthenticatorResponse response, String accountType,
569 * @param response to send the result back to the AccountManager, will never be null
572 * @return a Bundle result or null if the result is to be returned via the response. The result
583 public abstract Bundle confirmCredentials(AccountAuthenticatorResponse response,
617 * @param response to send the result back to the AccountManager, will never be null
621 * @return a Bundle result or null if the result is to be returned via the response.
625 public abstract Bundle getAuthToken(AccountAuthenticatorResponse response,
638 * @param response to send the result back to the AccountManager, will never be null
643 * @return a Bundle result or null if the result is to be returned via the response. The result
655 public abstract Bundle updateCredentials(AccountAuthenticatorResponse response,
660 * @param response to send the result back to the AccountManager, will never be null
663 * @return a Bundle result or null if the result is to be returned via the response. The result
675 public abstract Bundle hasFeatures(AccountAuthenticatorResponse response,
680 * @param response to send the result back to the AccountManager, will never be null
682 * @return a Bundle result or null if the result is to be returned via the response. The result
694 public Bundle getAccountRemovalAllowed(AccountAuthenticatorResponse response,
706 * @param response to send the result back to the AccountManager, will never be null
708 * @return a Bundle result or null if the result is to be returned via the response.
712 public Bundle getAccountCredentialsForCloning(final AccountAuthenticatorResponse response,
719 response.onResult(result);
728 * @param response to send the result back to the AccountManager, will never be null
733 * @return a Bundle result or null if the result is to be returned via the response.
737 public Bundle addAccountFromCredentials(final AccountAuthenticatorResponse response,
745 response.onResult(result);
761 * @param response to send the result back to the AccountManager, will never
771 * response. The result will contain either:
787 final AccountAuthenticatorResponse response,
802 response.onResult(result);
819 * @param response to send the result back to the AccountManager, will never
827 * response. The result will contain either:
843 final AccountAuthenticatorResponse response,
856 response.onResult(result);
873 * @param response to send the result back to the AccountManager, will never
882 * response. The result will contain either:
898 final AccountAuthenticatorResponse response,
928 response.onResult(result);
958 return updateCredentials(response, account, authTokenType, options);
961 return addAccount(response, accountType, authTokenType, requiredFeatures, sessionOptions);
967 * @param response to send the result back to the AccountManager, will never be null.
970 * @return a Bundle result or null if the result is to be returned via the response. The result
982 final AccountAuthenticatorResponse response,