Home
last modified time | relevance | path

Searched refs:ACCOUNT (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DContentResolverSyncTestCase.java39 private static final Account ACCOUNT = new Account(MockAccountAuthenticator.ACCOUNT_NAME, field in ContentResolverSyncTestCase
58 removeAccount(sAccountManager, ACCOUNT, null /* callback */); in tearDown()
167 addAccountAndVerifyInitSync(ACCOUNT, in testRequestSync()
175 setIsSyncable(ACCOUNT, AUTHORITY, true); in testRequestSync()
176 cancelSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testRequestSync()
180 requestSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testRequestSync()
185 assertEquals(ACCOUNT, getMockSyncAdapter().getAccounts().get(0)); in testRequestSync()
199 addAccountAndVerifyInitSync(ACCOUNT, in testCancelSync()
207 setIsSyncable(ACCOUNT, AUTHORITY, true); in testCancelSync()
208 requestSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testCancelSync()
[all …]
DContentResolverTest.java74 private static final Account ACCOUNT = new Account("cts", "cts"); field in ContentResolverTest
1047 ContentResolver.requestSync(ACCOUNT, AUTHORITY, extras); in testStartCancelSync()
1050 ContentResolver.cancelSync(ACCOUNT, AUTHORITY); in testStartCancelSync()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java89 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); field in AccountManagerTest
136 assertTrue(removeAccount(am, ACCOUNT, mActivity, null /* callback */).getBoolean( in tearDown()
216 ACCOUNT.name, in validateAccountAndAuthTokenResult()
219 ACCOUNT.type, in validateAccountAndAuthTokenResult()
277 assertEquals(ACCOUNT, mockAuthenticator.getAccount()); in validateCredentials()
505 addAccountExplicitly(ACCOUNT, ACCOUNT_PASSWORD, null /* userData */); in testAddAccountExplicitlyAndRemoveAccount()
511 assertTrue(isAccountPresent(am.getAccounts(), ACCOUNT)); in testAddAccountExplicitlyAndRemoveAccount() local
513 assertTrue(removeAccount(am, ACCOUNT, mActivity, null /* callback */).getBoolean( in testAddAccountExplicitlyAndRemoveAccount()
560 addAccountExplicitly(ACCOUNT, ACCOUNT_PASSWORD, null /* userData */); in testAddAccountExplicitlyAndRemoveAccountWithDeprecatedApi()
566 assertTrue(isAccountPresent(am.getAccounts(), ACCOUNT)); in testAddAccountExplicitlyAndRemoveAccountWithDeprecatedApi() local
[all …]
DMockAccountAuthenticator.java155 am.addAccountExplicitly(AccountManagerTest.ACCOUNT, "fakePassword", null); in addAccount()