Home
last modified time | relevance | path

Searched refs:AccountManagerHelper (Results 1 – 18 of 18) sorted by relevance

/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/signin/
DOAuth2TokenService.java16 import org.chromium.sync.signin.AccountManagerHelper;
79 AccountManagerHelper accountManagerHelper = AccountManagerHelper.get(context); in getAccountOrNullFromUsername()
93 AccountManagerHelper accountManagerHelper = AccountManagerHelper.get(context); in getAccounts()
115 AccountManagerHelper accountManagerHelper = AccountManagerHelper.get(context); in getOAuth2AuthToken()
117 null, account, oauth2Scope, new AccountManagerHelper.GetAuthTokenCallback() { in getOAuth2AuthToken()
136 AccountManagerHelper.GetAuthTokenCallback callback) { in getOAuth2AccessToken()
138 AccountManagerHelper.get(context).getAuthTokenFromForeground( in getOAuth2AccessToken()
162 new AccountManagerHelper.GetAuthTokenCallback() { in getOAuth2AccessTokenWithTimeout()
188 return AccountManagerHelper.get(context).hasAccountForName(accountName); in hasOAuth2RefreshToken()
197 AccountManagerHelper.get(context).invalidateAuthToken(accessToken); in invalidateOAuth2AuthToken()
[all …]
DAndroidProfileOAuth2TokenServiceHelper.java11 import org.chromium.sync.signin.AccountManagerHelper;
30 Account account, String scope, AccountManagerHelper.GetAuthTokenCallback callback) { in getOAuth2AccessToken()
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/signin/
DOAuth2TokenServiceTest.java13 import org.chromium.sync.signin.AccountManagerHelper;
32 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); in setUp()
45 Account account1 = AccountManagerHelper.createAccountFromName("foo@gmail.com"); in testGetAccountsOneAccountRegistered()
57 Account account1 = AccountManagerHelper.createAccountFromName("foo@gmail.com"); in testGetAccountsTwoAccountsRegistered()
60 Account account2 = AccountManagerHelper.createAccountFromName("bar@gmail.com"); in testGetAccountsTwoAccountsRegistered()
90 Account account = AccountManagerHelper.createAccountFromName("test@gmail.com"); in runTestOfGetOAuth2AccessTokenWithTimeout()
DOAuth2TokenServiceIntegrationTest.java16 import org.chromium.sync.signin.AccountManagerHelper;
31 AccountManagerHelper.createAccountFromName("foo@gmail.com");
33 AccountManagerHelper.createAccountFromName("bar@gmail.com");
54 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); in setUp()
/external/chromium_org/sync/android/java/src/org/chromium/sync/signin/
DAccountManagerHelper.java39 public class AccountManagerHelper { class
49 private static AccountManagerHelper sAccountManagerHelper;
68 private AccountManagerHelper(Context context, in AccountManagerHelper() method in AccountManagerHelper
84 public static AccountManagerHelper get(Context context) { in get()
87 sAccountManagerHelper = new AccountManagerHelper(context, in get()
98 sAccountManagerHelper = new AccountManagerHelper(context, accountManager); in overrideAccountManagerHelperForTests()
DChromeSigninController.java65 return AccountManagerHelper.createAccountFromName(syncAccountName); in getSignedInUser()
/external/chromium_org/chrome/android/testshell/java/src/org/chromium/chrome/testshell/sync/
DAccountChooserFragment.java14 import org.chromium.sync.signin.AccountManagerHelper;
31 List<String> accountsList = AccountManagerHelper.get(getActivity()).getGoogleAccountNames(); in onCreateDialog()
DSyncController.java20 import org.chromium.sync.signin.AccountManagerHelper;
98 final Account account = AccountManagerHelper.createAccountFromName(accountName); in signIn()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/sync/
DDelayedSyncController.java20 import org.chromium.sync.signin.AccountManagerHelper;
52 Account account = AccountManagerHelper.createAccountFromName(accountName); in resumeDelayedSyncs()
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/sync/
DSyncTest.java27 import org.chromium.sync.signin.AccountManagerHelper;
56 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); in setUp()
141 AccountManagerHelper.createAccountFromName(SyncTestUtil.DEFAULT_TEST_ACCOUNT); in testDisableAndEnableSync()
DDelayedSyncControllerTest.java24 import org.chromium.sync.signin.AccountManagerHelper;
28 AccountManagerHelper.createAccountFromName("something@gmail.com");
DChromiumSyncAdapterTest.java19 import org.chromium.sync.signin.AccountManagerHelper;
24 AccountManagerHelper.createAccountFromName("test@gmail.com");
/external/chromium_org/sync/android/javatests/src/org/chromium/sync/notifier/
DInvalidationServiceTest.java25 import org.chromium.sync.signin.AccountManagerHelper;
524 Account account = AccountManagerHelper.createAccountFromName("test@example.com"); in testRegistrationIntent()
549 Account account2 = AccountManagerHelper.createAccountFromName("test2@example.com"); in testRegistrationIntent()
605 Account account = AccountManagerHelper.createAccountFromName("test@example.com"); in testRegistrationIntentWithTypesAndObjectIds()
675 Account account = AccountManagerHelper.createAccountFromName("test@example.com"); in testRegistrationIntentNoProxyTabsUsingReady()
705 Account account = AccountManagerHelper.createAccountFromName("test@example.com"); in testRegistrationIntentNoProxyTabsAlreadyWithClientId()
742 Account account = AccountManagerHelper.createAccountFromName("test@example.com"); in testRegistrationIntentWhenClientShouldNotBeRunning()
769 Account account = AccountManagerHelper.createAccountFromName("test@example.com"); in testDeferredRegistrationsIssued()
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/
DInvalidationControllerTest.java27 import org.chromium.sync.signin.AccountManagerHelper;
121 Account account = AccountManagerHelper.createAccountFromName("test@gmail.com"); in setupSync()
223 Account storedAccount = AccountManagerHelper.createAccountFromName("test@gmail.com"); in testRefreshShouldReadValuesFromDiskWithSpecificTypes()
262 Account storedAccount = AccountManagerHelper.createAccountFromName("test@gmail.com"); in testRefreshShouldReadValuesFromDiskWithAllTypes()
/external/chromium_org/sync/test/android/javatests/src/org/chromium/sync/test/util/
DMockAccountManager.java28 import org.chromium.sync.signin.AccountManagerHelper;
116 if (!AccountManagerHelper.GOOGLE_ACCOUNT_TYPE.equals(type)) { in getAccountsByType()
190 AccountManager.KEY_ACCOUNT_TYPE, AccountManagerHelper.GOOGLE_ACCOUNT_TYPE);
290 if (!AccountManagerHelper.GOOGLE_ACCOUNT_TYPE.equals(accountType)) {
306 AccountManagerHelper.GOOGLE_ACCOUNT_TYPE, "p1", 0, 0, 0, 0);
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/
DInvalidationService.java26 import org.chromium.sync.signin.AccountManagerHelper;
204 AccountManagerHelper.get(this).getNewAuthTokenFromForeground( in requestAuthToken()
206 new AccountManagerHelper.GetAuthTokenCallback() { in requestAuthToken()
DSyncStatusHelper.java16 import org.chromium.sync.signin.AccountManagerHelper;
378 Account[] googleAccounts = AccountManagerHelper.get(mApplicationContext). in makeSyncable()
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/sync/
DSyncTestUtil.java23 import org.chromium.sync.signin.AccountManagerHelper;
292 Account account = AccountManagerHelper.createAccountFromName(accountName); in setupTestAccount()