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.java42 private static final Account ACCOUNT = new Account(MockAccountAuthenticator.ACCOUNT_NAME, field in ContentResolverSyncTestCase
63 removeAccount(sAccountManager, ACCOUNT, null /* callback */); in tearDown()
144 if (!ContentResolver.isSyncActive(ACCOUNT, AUTHORITY) in cancelSync()
145 && !ContentResolver.isSyncPending(ACCOUNT, AUTHORITY)) { in cancelSync()
186 addAccountAndVerifyInitSync(ACCOUNT, in testRequestSync()
193 setIsSyncable(ACCOUNT, AUTHORITY, true); in testRequestSync()
194 cancelSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testRequestSync()
198 requestSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testRequestSync()
203 assertEquals(ACCOUNT, getMockSyncAdapter().getAccounts().get(0)); in testRequestSync()
217 addAccountAndVerifyInitSync(ACCOUNT, in testCancelSync()
[all …]
DContentResolverTest.java70 private static final Account ACCOUNT = new Account("cts", "cts"); field in ContentResolverTest
1198 ContentResolver.requestSync(ACCOUNT, AUTHORITY, extras); in testStartCancelSync()
1201 ContentResolver.cancelSync(ACCOUNT, AUTHORITY); in testStartCancelSync()
/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/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java100 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); field in AccountManagerTest
165 assertTrue(removeAccount(am, ACCOUNT, mActivity, null /* callback */).getBoolean( in tearDown()
245 ACCOUNT.name, in validateAccountAndAuthTokenResult()
248 ACCOUNT.type, in validateAccountAndAuthTokenResult()
306 assertEquals(ACCOUNT, mockAuthenticator.getAccount()); in validateCredentials()
578 addAccountExplicitly(ACCOUNT, ACCOUNT_PASSWORD, null /* userData */); in testAddAccountExplicitlyAndRemoveAccount()
584 assertTrue(isAccountPresent(am.getAccounts(), ACCOUNT)); in testAddAccountExplicitlyAndRemoveAccount() local
586 assertTrue(removeAccount(am, ACCOUNT, mActivity, null /* callback */).getBoolean( in testAddAccountExplicitlyAndRemoveAccount()
661 addAccountExplicitly(ACCOUNT, ACCOUNT_PASSWORD, null /* userData */); in testAddAccountExplicitlyAndRemoveAccountWithDeprecatedApi()
667 assertTrue(isAccountPresent(am.getAccounts(), ACCOUNT)); in testAddAccountExplicitlyAndRemoveAccountWithDeprecatedApi() local
[all …]
DMockAccountAuthenticator.java169 am.addAccountExplicitly(AccountManagerTest.ACCOUNT, "fakePassword", null); in addAccount()
/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()