Home
last modified time | relevance | path

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

/cts/tests/tests/content/src/android/content/cts/
DContentResolverSyncTestCase.java44 private static final Account ACCOUNT = new Account(MockAccountAuthenticator.ACCOUNT_NAME, field in ContentResolverSyncTestCase
65 removeAccount(sAccountManager, ACCOUNT, null /* callback */); in tearDown()
146 if (!ContentResolver.isSyncActive(ACCOUNT, AUTHORITY) in cancelSync()
147 && !ContentResolver.isSyncPending(ACCOUNT, AUTHORITY)) { in cancelSync()
188 addAccountAndVerifyInitSync(ACCOUNT, in testRequestSync()
195 setIsSyncable(ACCOUNT, AUTHORITY, true); in testRequestSync()
196 cancelSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testRequestSync()
200 requestSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testRequestSync()
205 assertEquals(ACCOUNT, getMockSyncAdapter().getAccounts().get(0)); in testRequestSync()
219 addAccountAndVerifyInitSync(ACCOUNT, in testCancelSync()
[all …]
DContentResolverTest.java76 private static final Account ACCOUNT = new Account("cts", "cts"); field in ContentResolverTest
1207 ContentResolver.requestSync(ACCOUNT, AUTHORITY, extras); in testStartCancelSync()
1210 ContentResolver.cancelSync(ACCOUNT, AUTHORITY); in testStartCancelSync()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java98 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); field in AccountManagerTest
163 assertTrue(removeAccount(am, ACCOUNT, mActivity, null /* callback */).getBoolean( in tearDown()
243 ACCOUNT.name, in validateAccountAndAuthTokenResult()
246 ACCOUNT.type, in validateAccountAndAuthTokenResult()
304 assertEquals(ACCOUNT, mockAuthenticator.getAccount()); in validateCredentials()
576 addAccountExplicitly(ACCOUNT, ACCOUNT_PASSWORD, null /* userData */); in testAddAccountExplicitlyAndRemoveAccount()
582 assertTrue(isAccountPresent(am.getAccounts(), ACCOUNT)); in testAddAccountExplicitlyAndRemoveAccount() local
584 assertTrue(removeAccount(am, ACCOUNT, mActivity, null /* callback */).getBoolean( in testAddAccountExplicitlyAndRemoveAccount()
659 addAccountExplicitly(ACCOUNT, ACCOUNT_PASSWORD, null /* userData */); in testAddAccountExplicitlyAndRemoveAccountWithDeprecatedApi()
665 assertTrue(isAccountPresent(am.getAccounts(), ACCOUNT)); in testAddAccountExplicitlyAndRemoveAccountWithDeprecatedApi() local
[all …]
DMockAccountAuthenticator.java169 am.addAccountExplicitly(AccountManagerTest.ACCOUNT, "fakePassword", null); in addAccount()
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DAccountManagementTest.java40 private final static Account ACCOUNT = new Account("user0", field in AccountManagementTest
53 mAccountManager.removeAccountExplicitly(ACCOUNT); in tearDown()
98 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT, "password", null)); in testRemoveAccount_blocked()
104 mAccountManager.removeAccount(ACCOUNT, null, null).getResult(); in testRemoveAccount_blocked()
113 assertEquals(ACCOUNT, accounts[0]); in testRemoveAccount_blocked()
121 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT, "password", null)); in testRemoveAccount_allowed()
124 assertTrue(mAccountManager.removeAccount(ACCOUNT, null, null).getResult()); in testRemoveAccount_allowed()
DAccountUtilsTest.java41 private final static Account ACCOUNT = new Account("user0", field in AccountUtilsTest
55 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT, "password", null)); in testAddAccountExplicitly()
63 mAccountManager.removeAccountExplicitly(ACCOUNT); in testRemoveAccountExplicitly()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAllowedAccountManagementTest.java45 private final static Account ACCOUNT = new Account("user0", ACCOUNT_TYPE_1); field in AllowedAccountManagementTest
116 result = mAccountManager.removeAccount(ACCOUNT, null, null, null).getResult(); in testUserRestriction_profileAndDeviceOwnerCanAddAndRemoveAccount()
124 Bundle result = mAccountManager.removeAccount(ACCOUNT, null, null, null).getResult(); in testRemoveAccount_noUserRestriction()