/external/chromium_org/sync/test/android/javatests/src/org/chromium/sync/test/util/ |
D | MockAccountManager.java | 198 public String blockingGetAuthToken(Account account, String authTokenType, 202 if (accountHolder.hasBeenAccepted(authTokenType)) { 204 return internalGenerateAndStoreAuthToken(accountHolder, authTokenType); 206 AccountAuthTokenPreparation prepared = getPreparedPermission(account, authTokenType); 207 Intent intent = newGrantCredentialsPermissionIntent(false, account, authTokenType); 210 return internalGenerateAndStoreAuthToken(accountHolder, authTokenType); 214 public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, 217 return getAuthTokenFuture(account, authTokenType, activity, callback, handler); 221 public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, 223 return getAuthTokenFuture(account, authTokenType, null, callback, handler); [all …]
|
D | AccountHolder.java | 49 public boolean hasAuthTokenRegistered(String authTokenType) { in hasAuthTokenRegistered() argument 50 return mAuthTokens.containsKey(authTokenType); in hasAuthTokenRegistered() 53 public String getAuthToken(String authTokenType) { in getAuthToken() argument 54 return mAuthTokens.get(authTokenType); in getAuthToken() 57 public boolean hasBeenAccepted(String authTokenType) { in hasBeenAccepted() argument 59 mHasBeenAccepted.containsKey(authTokenType) && mHasBeenAccepted.get(authTokenType); in hasBeenAccepted() 107 public AccountHolder withAuthToken(String authTokenType, String authToken) { in withAuthToken() argument 108 return copy().authToken(authTokenType, authToken).build(); in withAuthToken() 111 public AccountHolder withHasBeenAccepted(String authTokenType, boolean hasBeenAccepted) { in withHasBeenAccepted() argument 112 return copy().hasBeenAccepted(authTokenType, hasBeenAccepted).build(); in withHasBeenAccepted() [all …]
|
D | MockGrantCredentialsPermissionActivity.java | 38 String authTokenType = getIntent().getStringExtra(AUTH_TOKEN_TYPE); in onCreate() local 40 String message = "account = " + accountName + ", authTokenType = " + authTokenType; in onCreate()
|
/external/chromium_org/sync/android/java/src/org/chromium/sync/signin/ |
D | AccountManagerHelper.java | 164 public String getAuthTokenFromBackground(Account account, String authTokenType) { in getAuthTokenFromBackground() argument 166 authTokenType, false, null, null); in getAuthTokenFromBackground() 178 public void getAuthTokenFromForeground(Activity activity, Account account, String authTokenType, in getAuthTokenFromForeground() argument 182 getAuthTokenAsynchronously(activity, account, authTokenType, callback, numTries, in getAuthTokenFromForeground() 193 ConnectionRetry(Account account, String authTokenType, GetAuthTokenCallback callback, in ConnectionRetry() argument 196 mAuthTokenType = authTokenType; in ConnectionRetry() 249 final String authTokenType, final GetAuthTokenCallback callback, in getAuthTokenAsynchronously() argument 255 account, authTokenType, null, activity, null, null); in getAuthTokenAsynchronously() 258 account, authTokenType, false, null, null); in getAuthTokenAsynchronously() 273 onGotAuthTokenResult(account, authTokenType, authToken, callback, numTries, in getAuthTokenAsynchronously() [all …]
|
D | SystemAccountManagerDelegate.java | 39 public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, in getAuthToken() argument 41 return mAccountManager.getAuthToken(account, authTokenType, null, notifyAuthFailure, in getAuthToken() 46 public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, in getAuthToken() argument 49 return mAccountManager.getAuthToken(account, authTokenType, options, activity, callback, in getAuthToken() 59 public String blockingGetAuthToken(Account account, String authTokenType, in blockingGetAuthToken() argument 62 return mAccountManager.blockingGetAuthToken(account, authTokenType, notifyAuthFailure); in blockingGetAuthToken() 103 public String peekAuthToken(Account account, String authTokenType) { in peekAuthToken() argument 104 return mAccountManager.peekAuthToken(account, authTokenType); in peekAuthToken()
|
D | AccountManagerDelegate.java | 25 AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, in getAuthToken() argument 28 AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, Bundle options, in getAuthToken() argument 33 String blockingGetAuthToken(Account account, String authTokenType, boolean notifyAuthFailure) in blockingGetAuthToken() argument 52 String peekAuthToken(Account account, String authTokenType); in peekAuthToken() argument
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | AccountManagerTest.java | 30 private String authTokenType; field in AccountManagerTest 39 authTokenType = "authTokenType"; in setUp() 46 …accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, … in testGetAuthTokenByFeatures_isCancelled() 56 …accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, … in testGetAuthTokenByFeatures_isDoneWithCancel() 66 …accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, … in testGetAuthTokenByFeatures_isDoneWithGetResult() 82 …accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, … in testGetAuthTokenByFeatures_getResult() 93 accountManager.getAuthToken(ACCOUNT, authTokenType, null, activity, null, null); in testGetAuthToken_getResult() 132 shadowOf(accountManager).setCachedAuthToken(ACCOUNT, authTokenType, "myToken"); in testPeek() 134 String authToken = accountManager.peekAuthToken(ACCOUNT, authTokenType); in testPeek() 141 shadowOf(accountManager).setCachedAuthToken(ACCOUNT, authTokenType, "myToken"); in testPeek_differentAccount() [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowAccountManager.java | 50 …public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, Bundle opt… in getAuthToken() argument 108 …nagerFuture<Bundle> getAuthTokenByFeatures(String accountType, String authTokenType, String[] feat… in getAuthTokenByFeatures() argument 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);
|
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/sync/ |
D | SyncTestUtil.java | 297 for (String authTokenType : allowedAuthTokenTypes) { in setupTestAccount() 298 accountHolder.hasBeenAccepted(authTokenType, true); in setupTestAccount()
|