Lines Matching refs:response

103  * and return the result via that response when the activity finishes (or whenever else  the
118 public void addAccount(IAccountAuthenticatorResponse response, String accountType,
129 new AccountAuthenticatorResponse(response),
136 response.onResult(result);
139 handleException(response, "addAccount", accountType, e);
143 public void confirmCredentials(IAccountAuthenticatorResponse response,
151 new AccountAuthenticatorResponse(response), account, options);
158 response.onResult(result);
161 handleException(response, "confirmCredentials", account.toString(), e);
165 public void getAuthTokenLabel(IAccountAuthenticatorResponse response,
181 response.onResult(result);
183 handleException(response, "getAuthTokenLabel", authTokenType, e);
187 public void getAuthToken(IAccountAuthenticatorResponse response,
197 new AccountAuthenticatorResponse(response), account,
204 response.onResult(result);
207 handleException(response, "getAuthToken",
212 public void updateCredentials(IAccountAuthenticatorResponse response, Account account,
221 new AccountAuthenticatorResponse(response), account,
229 response.onResult(result);
232 handleException(response, "updateCredentials",
237 public void editProperties(IAccountAuthenticatorResponse response,
242 new AccountAuthenticatorResponse(response), accountType);
244 response.onResult(result);
247 handleException(response, "editProperties", accountType, e);
251 public void hasFeatures(IAccountAuthenticatorResponse response,
256 new AccountAuthenticatorResponse(response), account, features);
258 response.onResult(result);
261 handleException(response, "hasFeatures", account.toString(), e);
265 public void getAccountRemovalAllowed(IAccountAuthenticatorResponse response,
270 new AccountAuthenticatorResponse(response), account);
272 response.onResult(result);
275 handleException(response, "getAccountRemovalAllowed", account.toString(), e);
280 private void handleException(IAccountAuthenticatorResponse response, String method,
286 response.onError(AccountManager.ERROR_CODE_NETWORK_ERROR, e.getMessage());
291 response.onError(AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION,
297 response.onError(AccountManager.ERROR_CODE_BAD_ARGUMENTS,
301 response.onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION,
325 * properties. In order to indicate success the activity should call response.setResult()
327 * @param response used to set the result for the request. If the Constants.INTENT_KEY
328 * is set in the bundle then this response field is to be used for sending future
333 * sent later using response.
335 public abstract Bundle editProperties(AccountAuthenticatorResponse response,
340 * @param response to send the result back to the AccountManager, will never be null
346 * @return a Bundle result or null if the result is to be returned via the response. The result
358 public abstract Bundle addAccount(AccountAuthenticatorResponse response, String accountType,
364 * @param response to send the result back to the AccountManager, will never be null
367 * @return a Bundle result or null if the result is to be returned via the response. The result
378 public abstract Bundle confirmCredentials(AccountAuthenticatorResponse response,
383 * @param response to send the result back to the AccountManager, will never be null
387 * @return a Bundle result or null if the result is to be returned via the response. The result
399 public abstract Bundle getAuthToken(AccountAuthenticatorResponse response,
412 * @param response to send the result back to the AccountManager, will never be null
417 * @return a Bundle result or null if the result is to be returned via the response. The result
429 public abstract Bundle updateCredentials(AccountAuthenticatorResponse response,
434 * @param response to send the result back to the AccountManager, will never be null
437 * @return a Bundle result or null if the result is to be returned via the response. The result
449 public abstract Bundle hasFeatures(AccountAuthenticatorResponse response,
454 * @param response to send the result back to the AccountManager, will never be null
456 * @return a Bundle result or null if the result is to be returned via the response. The result
468 public Bundle getAccountRemovalAllowed(AccountAuthenticatorResponse response,