HomeSort by relevance Sort by last modified time
    Searched refs:authTokenType (Results 1 - 25 of 42) sorted by null

1 2

  /external/chromium_org/sync/test/android/javatests/src/org/chromium/sync/test/util/
AccountHolder.java 49 public boolean hasAuthTokenRegistered(String authTokenType) {
50 return mAuthTokens.containsKey(authTokenType);
53 public String getAuthToken(String authTokenType) {
54 return mAuthTokens.get(authTokenType);
57 public boolean hasBeenAccepted(String authTokenType) {
59 mHasBeenAccepted.containsKey(authTokenType) && mHasBeenAccepted.get(authTokenType);
107 public AccountHolder withAuthToken(String authTokenType, String authToken) {
108 return copy().authToken(authTokenType, authToken).build();
111 public AccountHolder withHasBeenAccepted(String authTokenType, boolean hasBeenAccepted)
    [all...]
MockAccountManager.java 58 * authtokentype for a given account, use prepareGrantAppPermission(...).
60 * If you want to auto-approve a given authtokentype, use addAccountHolderExplicitly(...) with
204 public String blockingGetAuthToken(Account account, String authTokenType,
208 if (accountHolder.hasBeenAccepted(authTokenType)) {
210 return internalGenerateAndStoreAuthToken(accountHolder, authTokenType);
212 AccountAuthTokenPreparation prepared = getPreparedPermission(account, authTokenType);
213 Intent intent = newGrantCredentialsPermissionIntent(false, account, authTokenType);
216 return internalGenerateAndStoreAuthToken(accountHolder, authTokenType);
220 public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType,
223 return getAuthTokenFuture(account, authTokenType, activity, callback, handler)
    [all...]
MockGrantCredentialsPermissionActivity.java 31 static final String AUTH_TOKEN_TYPE = "authTokenType";
38 String authTokenType = getIntent().getStringExtra(AUTH_TOKEN_TYPE);
40 String message = "account = " + accountName + ", authTokenType = " + authTokenType;
  /frameworks/base/core/java/android/accounts/
IAccountAuthenticator.aidl 32 String authTokenType, in String[] requiredFeatures, in Bundle options);
44 String authTokenType, in Bundle options);
49 void getAuthTokenLabel(in IAccountAuthenticatorResponse response, String authTokenType);
55 String authTokenType, in Bundle options);
IAccountManager.aidl 43 String peekAuthToken(in Account account, String authTokenType);
44 void setAuthToken(in Account account, String authTokenType, String authToken);
48 void updateAppPermission(in Account account, String authTokenType, int uid, boolean value);
51 String authTokenType, boolean notifyOnAuthFailure, boolean expectActivityLaunch,
54 String authTokenType, in String[] requiredFeatures, boolean expectActivityLaunch,
57 String authTokenType, in String[] requiredFeatures, boolean expectActivityLaunch,
60 String authTokenType, boolean expectActivityLaunch, in Bundle options);
66 String authTokenType);
AbstractAccountAuthenticator.java 119 String authTokenType, String[] features, Bundle options)
123 + ", authTokenType " + authTokenType
130 accountType, authTokenType, features, options);
166 String authTokenType)
169 Log.v(TAG, "getAuthTokenLabel: authTokenType " + authTokenType);
175 AbstractAccountAuthenticator.this.getAuthTokenLabel(authTokenType));
183 handleException(response, "getAuthTokenLabel", authTokenType, e);
188 Account account, String authTokenType, Bundle loginOptions
    [all...]
AccountManager.java 506 * @param authTokenType The type of token whose permissions are being modified
511 public void updateAppPermission(Account account, String authTokenType, int uid, boolean value) {
513 mService.updateAppPermission(account, authTokenType, uid, value);
523 * @param authTokenType the token type. must not be null.
530 final String accountType, final String authTokenType,
533 if (authTokenType == null) throw new IllegalArgumentException("authTokenType is null");
536 mService.getAuthTokenLabel(mResponse, accountType, authTokenType);
    [all...]
ChooseTypeAndAccountActivity.java 80 * This is passed as the authTokenType string in AccountManager.addAccount()
83 public static final String EXTRA_ADD_ACCOUNT_AUTH_TOKEN_TYPE_STRING = "authTokenType";
379 final String authTokenType = getIntent().getStringExtra(
381 AccountManager.get(this).addAccount(type, authTokenType, requiredFeatures,
  /external/chromium_org/sync/android/java/src/org/chromium/sync/signin/
AccountManagerHelper.java 164 public String getAuthTokenFromBackground(Account account, String authTokenType) {
166 authTokenType, false, null, null);
178 public void getAuthTokenFromForeground(Activity activity, Account account, String authTokenType,
182 getAuthTokenAsynchronously(activity, account, authTokenType, callback, numTries,
193 ConnectionRetry(Account account, String authTokenType, GetAuthTokenCallback callback,
196 mAuthTokenType = authTokenType;
249 final String authTokenType, final GetAuthTokenCallback callback,
255 account, authTokenType, null, activity, null, null);
258 account, authTokenType, false, null, null);
273 onGotAuthTokenResult(account, authTokenType, authToken, callback, numTries
    [all...]
SystemAccountManagerDelegate.java 39 public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType,
41 return mAccountManager.getAuthToken(account, authTokenType, null, notifyAuthFailure,
46 public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType,
49 return mAccountManager.getAuthToken(account, authTokenType, options, activity, callback,
59 public String blockingGetAuthToken(Account account, String authTokenType,
62 return mAccountManager.blockingGetAuthToken(account, authTokenType, notifyAuthFailure);
103 public String peekAuthToken(Account account, String authTokenType) {
104 return mAccountManager.peekAuthToken(account, authTokenType);
AccountManagerDelegate.java 25 AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType,
28 AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, Bundle options,
33 String blockingGetAuthToken(Account account, String authTokenType, boolean notifyAuthFailure)
52 String peekAuthToken(Account account, String authTokenType);
  /cts/tests/tests/accounts/src/android/accounts/cts/
MockAccountAuthenticator.java 106 String authTokenType, String[] requiredFeatures, Bundle options)
111 this.mAuthTokenType = authTokenType;
123 String authTokenType, Bundle options) throws NetworkErrorException {
127 this.mAuthTokenType = authTokenType;
169 String authTokenType, Bundle options) throws NetworkErrorException {
173 this.mAuthTokenType = authTokenType;
180 * Ask the authenticator for a localized label for the given authTokenType.
183 public String getAuthTokenLabel(String authTokenType) {
184 this.mAuthTokenType = authTokenType;
  /cts/tests/tests/content/src/android/content/cts/
MockAccountAuthenticator.java 51 String authTokenType, String[] requiredFeatures, Bundle options)
63 String authTokenType, Bundle options) throws NetworkErrorException {
78 String authTokenType, Bundle options) throws NetworkErrorException {
83 public String getAuthTokenLabel(String authTokenType) {
  /cts/tests/tests/provider/src/android/provider/cts/contacts/account/
StaticAccountAuthenticator.java 64 String authTokenType, String[] requiredFeatures, Bundle options)
79 String authTokenType, Bundle options) throws NetworkErrorException {
84 public String getAuthTokenLabel(String authTokenType) {
90 String authTokenType, Bundle options) throws NetworkErrorException {
  /frameworks/volley/src/com/android/volley/toolbox/
AndroidAuthenticator.java 42 * @param authTokenType Auth token type passed to AccountManager
44 public AndroidAuthenticator(Context context, Account account, String authTokenType) {
45 this(context, account, authTokenType, false);
52 * @param authTokenType Auth token type passed to AccountManager
55 public AndroidAuthenticator(Context context, Account account, String authTokenType,
59 mAuthTokenType = authTokenType;
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
AccountManagerTest.java 30 private String authTokenType;
39 authTokenType = "authTokenType";
46 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null);
56 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null);
66 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null);
82 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null);
93 accountManager.getAuthToken(ACCOUNT, authTokenType, null, activity, null, null);
132 shadowOf(accountManager).setCachedAuthToken(ACCOUNT, authTokenType, "myToken");
134 String authToken = accountManager.peekAuthToken(ACCOUNT, authTokenType);
    [all...]
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
Authenticator.java 65 String authTokenType, String[] requiredFeatures, Bundle options) {
89 String authTokenType, Bundle loginOptions) throws NetworkErrorException {
94 if (!authTokenType.equals(Constants.AUTHTOKEN_TYPE)) {
96 result.putString(AccountManager.KEY_ERROR_MESSAGE, "invalid authTokenType");
120 intent.putExtra(AuthenticatorActivity.PARAM_AUTHTOKEN_TYPE, authTokenType);
128 public String getAuthTokenLabel(String authTokenType) {
148 String authTokenType, Bundle loginOptions) {
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/
TestAuthenticator.java 63 String authTokenType, String[] requiredFeatures, Bundle options) {
83 String authTokenType, Bundle loginOptions) {
107 public String getAuthTokenLabel(String authTokenType) {
127 String authTokenType, Bundle loginOptions) {
  /packages/apps/Email/src/com/android/email/service/
EasTestAuthenticatorService.java 49 String authTokenType, String[] requiredFeatures, Bundle options)
91 String authTokenType, Bundle loginOptions) throws NetworkErrorException {
96 public String getAuthTokenLabel(String authTokenType) {
109 String authTokenType, Bundle loginOptions) {
AuthenticatorService.java 57 String authTokenType, String[] requiredFeatures, Bundle options)
133 String authTokenType, Bundle loginOptions) throws NetworkErrorException {
138 public String getAuthTokenLabel(String authTokenType) {
151 String authTokenType, Bundle loginOptions) {
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowAccountManager.java 50 public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, Bundle options, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) {
108 public AccountManagerFuture<Bundle> getAuthTokenByFeatures(String accountType, String authTokenType, String[] features, Activity activity, Bundle addAccountOptions, Bundle getAuthTokenOptions, AccountManagerCallback<Bundle> callback, Handler handler) {
191 public String peekAuthToken(Account account, String authTokenType) {
193 return (tokens != null) ? tokens.get(authTokenType) : null;
196 public void setCachedAuthToken(Account account, String authTokenType, String authTokenValue) {
200 cachedAuthTokenValues.get(account).put(authTokenType, authTokenValue);
  /development/apps/Development/src/com/android/development/
AccountsTester.java 213 String authTokenType = mDesiredAuthTokenTypeEditText.getText().toString();
214 if (TextUtils.isEmpty(authTokenType)) {
215 authTokenType = null;
223 authTokenType, requiredFeatures, null /* options */,
316 String authTokenType = value.getText().toString();
320 authTokenType,
327 mAccountManager.getAuthToken(account, authTokenType, false,
330 String[] features = TextUtils.split(authTokenType, ",");
336 authTokenType, null /* loginOptions */,
357 String authTokenType = value.getText().toString()
    [all...]
  /frameworks/base/services/core/java/com/android/server/accounts/
AccountManagerService.java     [all...]
  /frameworks/base/test-runner/src/android/test/
IsolatedContext.java 143 public String blockingGetAuthToken(Account account, String authTokenType,
  /external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/sync/
SyncTestUtil.java 298 for (String authTokenType : allowedAuthTokenTypes) {
299 accountHolder.hasBeenAccepted(authTokenType, true);

Completed in 828 milliseconds

1 2