/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/ |
D | AccountManagementTest.java | 43 private AccountManager mAccountManager; field in AccountManagementTest 48 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE); in setUp() 53 mAccountManager.removeAccountExplicitly(ACCOUNT); in tearDown() 54 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in tearDown() 61 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccount_blocked() 65 mAccountManager.addAccount(MockAccountAuthenticator.ACCOUNT_TYPE, in testAddAccount_blocked() 71 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccount_blocked() 76 Bundle result = mAccountManager.addAccount(MockAccountAuthenticator.ACCOUNT_TYPE, in testAddAccount_allowed() 88 String authToken = mAccountManager.blockingGetAuthToken(account, "authTokenType", false); in testAddAccount_allowed() 94 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccount_blocked() [all …]
|
D | AccountUtilsTest.java | 44 private AccountManager mAccountManager; field in AccountUtilsTest 49 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE); in setUp() 53 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccountExplicitly() 55 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT, "password", null)); in testAddAccountExplicitly() 56 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccountExplicitly() 61 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccountExplicitly() 63 mAccountManager.removeAccountExplicitly(ACCOUNT); in testRemoveAccountExplicitly() 64 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccountExplicitly()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerUnaffiliatedAuthenticatorTests.java | 57 private AccountManager mAccountManager; field in AccountManagerUnaffiliatedAuthenticatorTests 65 mAccountManager = AccountManager.get(getContext()); in setUp() 70 mAccountManager.notifyAccountAuthenticated( in testNotifyAccountAuthenticated() 78 mAccountManager.editProperties( in testEditProperties() 91 mAccountManager.addAccountExplicitly( in testAddAccountExplicitly() 101 mAccountManager.removeAccount( in testRemoveAccount_withBooleanResult() 111 mAccountManager.removeAccount( in testRemoveAccount_withBundleResult() 122 mAccountManager.removeAccountExplicitly( in testRemoveAccountExplicitly() 130 mAccountManager.getPassword( in testGetPassword() 138 mAccountManager.setPassword( in testSetPassword() [all …]
|
D | AbstractAuthenticatorTests.java | 51 private AccountManager mAccountManager; field in AbstractAuthenticatorTests 57 mAccountManager = AccountManager.get(getContext()); in setUp() 80 AccountManagerFuture<Bundle> future = mAccountManager.startAddAccountSession( in testStartAddAccountSessionDefaultImpl() 116 AccountManagerFuture<Bundle> future = mAccountManager.startUpdateCredentialsSession( in testStartUpdateCredentialsSessionDefaultImpl() 156 AccountManagerFuture<Bundle> future = mAccountManager.startAddAccountSession( in testFinishSessionAndStartAddAccountSessionDefaultImpl() 174 future = mAccountManager.finishSession( in testFinishSessionAndStartAddAccountSessionDefaultImpl() 226 AccountManagerFuture<Bundle> future = mAccountManager.startUpdateCredentialsSession( in testFinishSessionAndStartUpdateCredentialsSessionDefaultImpl() 243 future = mAccountManager.finishSession( in testFinishSessionAndStartUpdateCredentialsSessionDefaultImpl() 301 AccountManagerFuture<Boolean> future = mAccountManager.isCredentialsUpdateSuggested( in testIsCredentialsUpdateSuggestedDefaultImpl()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsProvider2_AccountRemovalTest.java | 49 private AccountManager mAccountManager; field in ContactsProvider2_AccountRemovalTest 55 mAccountManager = AccountManager.get(getContext()); in setUp() 64 mAccountManager.addAccountExplicitly(ACCT_1, null, null); in testAccountRemoval_deletesContacts() 65 mAccountManager.addAccountExplicitly(ACCT_2, null, null); in testAccountRemoval_deletesContacts() 69 mAccountManager.removeAccount(ACCT_2, null, null); in testAccountRemoval_deletesContacts() 72 mAccountManager.removeAccount(ACCT_1, null, null); in testAccountRemoval_deletesContacts() 77 mAccountManager.addAccountExplicitly(ACCT_1, null, null); in testAccountRemoval_hasDeleteLogsForContacts() 78 mAccountManager.addAccountExplicitly(ACCT_2, null, null); in testAccountRemoval_hasDeleteLogsForContacts() 83 mAccountManager.removeAccount(ACCT_2, null, null); in testAccountRemoval_hasDeleteLogsForContacts() 87 mAccountManager.removeAccount(ACCT_1, null, null); in testAccountRemoval_hasDeleteLogsForContacts() [all …]
|
D | ContactsContract_DirectoryTest.java | 40 private AccountManager mAccountManager; field in ContactsContract_DirectoryTest 51 mAccountManager = getContext().getSystemService(AccountManager.class); in setUp() 60 mAccountManager.removeAccountExplicitly(mAccount); in tearDown()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AllowedAccountManagementTest.java | 47 private AccountManager mAccountManager; field in AllowedAccountManagementTest 52 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE); in setUp() 90 assertEquals(0, mAccountManager.getAccountsByType(ACCOUNT_TYPE_1).length); in testAccountManagementDisabled_profileAndDeviceOwnerCanAddAccount() 92 Bundle result = mAccountManager.addAccount(ACCOUNT_TYPE_1, in testAccountManagementDisabled_profileAndDeviceOwnerCanAddAccount() 106 assertEquals(0, mAccountManager.getAccountsByType(ACCOUNT_TYPE_1).length); in testUserRestriction_profileAndDeviceOwnerCanAddAndRemoveAccount() 108 Bundle result = mAccountManager.addAccount(ACCOUNT_TYPE_1, in testUserRestriction_profileAndDeviceOwnerCanAddAndRemoveAccount() 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()
|
/cts/hostsidetests/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/ |
D | InvalidSyncAuthoritiesDeviceTest.java | 46 private AccountManager mAccountManager; field in InvalidSyncAuthoritiesDeviceTest 51 mAccountManager = context.getSystemService(AccountManager.class); in setUp() 53 final Account[] accounts = mAccountManager.getAccountsByType(VALID_TEST_ACCOUNT_TYPE); in setUp() 60 mAccountManager.addAccountExplicitly(mValidAccount, "password", null)); in createTestAccount() 88 mAccountManager.removeAccountExplicitly(mValidAccount); in removeTestAccount()
|
/cts/hostsidetests/devicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/ |
D | AccountCheckTest.java | 37 private AccountManager mAccountManager; field in AccountCheckTest 44 mAccountManager = getContext().getSystemService(AccountManager.class); in setUp() 51 for (Account account : mAccountManager.getAccountsByType(ACCOUNT_TYPE)) { in testRemoveAllAccounts() 53 mAccountManager.removeAccountExplicitly(account); in testRemoveAllAccounts() 58 final Bundle result = mAccountManager.addAccount( in addAccount()
|