/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 | 60 * authtokentype for a given account, use prepareGrantAppPermission(...). 62 * If you want to auto-approve a given authtokentype, use addAccountHolderExplicitly(...) with 206 public String blockingGetAuthToken(Account account, String authTokenType, 210 if (accountHolder.hasBeenAccepted(authTokenType)) { 212 return internalGenerateAndStoreAuthToken(accountHolder, authTokenType); 214 AccountAuthTokenPreparation prepared = getPreparedPermission(account, authTokenType); 215 Intent intent = newGrantCredentialsPermissionIntent(false, account, authTokenType); 218 return internalGenerateAndStoreAuthToken(accountHolder, authTokenType); 222 public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, 225 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 | 48 String peekAuthToken(in Account account, String authTokenType); 49 void setAuthToken(in Account account, String authTokenType, String authToken); 53 void updateAppPermission(in Account account, String authTokenType, int uid, boolean value); 56 String authTokenType, boolean notifyOnAuthFailure, boolean expectActivityLaunch, 59 String authTokenType, in String[] requiredFeatures, boolean expectActivityLaunch, 62 String authTokenType, in String[] requiredFeatures, boolean expectActivityLaunch, 65 String authTokenType, boolean expectActivityLaunch, in Bundle options); 71 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 | 163 public String getAuthTokenFromBackground(Account account, String authTokenType) { 165 authTokenType, false, null, null); 177 public void getAuthTokenFromForeground(Activity activity, Account account, String authTokenType, 181 getAuthTokenAsynchronously(activity, account, authTokenType, callback, numTries, 192 ConnectionRetry(Account account, String authTokenType, GetAuthTokenCallback callback, 195 mAuthTokenType = authTokenType; 248 final String authTokenType, final GetAuthTokenCallback callback, 254 account, authTokenType, null, activity, null, null); 257 account, authTokenType, false, null, null); 272 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/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/provider_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) {
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
MockAccountAuthenticator.java | 113 String authTokenType, String[] requiredFeatures, Bundle options) 118 this.mAuthTokenType = authTokenType; 130 String authTokenType, Bundle options) throws NetworkErrorException { 134 this.mAuthTokenType = authTokenType; 176 String authTokenType, Bundle options) throws NetworkErrorException { 180 this.mAuthTokenType = authTokenType; 187 * Ask the authenticator for a localized label for the given authTokenType. 190 public String getAuthTokenLabel(String authTokenType) { 191 this.mAuthTokenType = authTokenType;
|
/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);
|