Home
last modified time | relevance | path

Searched refs:mAccountManager (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/sync/android/java/src/org/chromium/sync/signin/
DSystemAccountManagerDelegate.java27 private final AccountManager mAccountManager; field in SystemAccountManagerDelegate
30 mAccountManager = AccountManager.get(context); in SystemAccountManagerDelegate()
35 return mAccountManager.getAccountsByType(type); in getAccountsByType()
41 return mAccountManager.getAuthToken(account, authTokenType, null, notifyAuthFailure, in getAuthToken()
49 return mAccountManager.getAuthToken(account, authTokenType, options, activity, callback, in getAuthToken()
55 mAccountManager.invalidateAuthToken(accountType, authToken); in invalidateAuthToken()
62 return mAccountManager.blockingGetAuthToken(account, authTokenType, notifyAuthFailure); in blockingGetAuthToken()
67 return mAccountManager.getAccounts(); in getAccounts()
72 return mAccountManager.addAccountExplicitly(account, password, userdata); in addAccountExplicitly()
78 return mAccountManager.removeAccount(account, callback, handler); in removeAccount()
[all …]
DAccountManagerHelper.java51 private final AccountManagerDelegate mAccountManager; field in AccountManagerHelper
71 mAccountManager = accountManager; in AccountManagerHelper()
111 Account[] accounts = mAccountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE); in getGoogleAccountNames()
119 return mAccountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE); in getGoogleAccounts()
130 Account[] accounts = mAccountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE); in getAccountFromName()
150 AuthenticatorDescription[] descs = mAccountManager.getAuthenticatorTypes(); in hasGoogleAccountAuthenticator()
165 AccountManagerFuture<Bundle> future = mAccountManager.getAuthToken(account, in getAuthTokenFromBackground()
254 future = mAccountManager.getAuthToken( in getAuthTokenAsynchronously()
257 future = mAccountManager.getAuthToken( in getAuthTokenAsynchronously()
316 mAccountManager.invalidateAuthToken(GOOGLE_ACCOUNT_TYPE, authToken); in getNewAuthToken()
[all …]
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/signin/
DOAuth2TokenServiceTest.java23 private MockAccountManager mAccountManager; field in OAuth2TokenServiceTest
31 mAccountManager = new MockAccountManager(mContext, getInstrumentation().getContext()); in setUp()
32 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); in setUp()
47 mAccountManager.addAccountHolderExplicitly(accountHolder1); in testGetAccountsOneAccountRegistered()
59 mAccountManager.addAccountHolderExplicitly(accountHolder1); in testGetAccountsTwoAccountsRegistered()
62 mAccountManager.addAccountHolderExplicitly(accountHolder2); in testGetAccountsTwoAccountsRegistered()
99 mAccountManager.addAccountHolderExplicitly(accountHolder); in runTestOfGetOAuth2AccessTokenWithTimeout()
DOAuth2TokenServiceIntegrationTest.java41 private MockAccountManager mAccountManager; field in OAuth2TokenServiceIntegrationTest
53 mAccountManager = new MockAccountManager(mContext, getInstrumentation().getContext()); in setUp()
54 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); in setUp()
173 mAccountManager.addAccountHolderExplicitly(TEST_ACCOUNT_HOLDER_1); in testValidateAccountsOneAccountsRegisteredAndNoSignedInUser()
188 mAccountManager.addAccountHolderExplicitly(TEST_ACCOUNT_HOLDER_1); in testValidateAccountsOneAccountsRegisteredSignedIn()
206 mAccountManager.addAccountHolderExplicitly(TEST_ACCOUNT_HOLDER_1); in testValidateAccountsTwoAccountsRegisteredAndOneSignedIn()
207 mAccountManager.addAccountHolderExplicitly(TEST_ACCOUNT_HOLDER_2); in testValidateAccountsTwoAccountsRegisteredAndOneSignedIn()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/
DAutoLoginAccountDelegate.java25 private final AccountManager mAccountManager; field in AutoLoginAccountDelegate
34 mAccountManager = AccountManager.get(activity); in AutoLoginAccountDelegate()
51 mAccountManager.getAuthToken(mAccount, mAuthTokenType, null, mActivity, this, null); in logIn()
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/sync/
DSyncTest.java44 private MockAccountManager mAccountManager; field in SyncTest
55 mAccountManager = new MockAccountManager(mContext, getInstrumentation().getContext()); in setUp()
56 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); in setUp()
156 Account defaultTestAccount = SyncTestUtil.setupTestAccount(mAccountManager, in setupTestAccountAndSignInToSync()