Searched refs:mAccountManager (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerUnaffiliatedAuthenticatorTests.java | 48 private AccountManager mAccountManager; field in AccountManagerUnaffiliatedAuthenticatorTests 54 mAccountManager = AccountManager.get(getContext()); in setUp() 76 mAccountManager.notifyAccountAuthenticated( in testNotifyAccountAuthenticated() 84 mAccountManager.editProperties( in testEditProperties() 97 mAccountManager.addAccountExplicitly( in testAddAccountExplicitly() 107 mAccountManager.removeAccount( in testRemoveAccount_withBooleanResult() 117 mAccountManager.removeAccount( in testRemoveAccount_withBundleResult() 128 mAccountManager.removeAccountExplicitly( in testRemoveAccountExplicitly() 136 mAccountManager.getPassword( in testGetPassword() 144 mAccountManager.setPassword( in testSetPassword() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AccountManagementTest.java | 47 private AccountManager mAccountManager; field in AccountManagementTest 52 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE); in setUp() 54 AccountUtilsTest.removeAllAccountsForType(mAccountManager, ACCOUNT_TYPE_1); in setUp() 60 AccountUtilsTest.removeAllAccountsForType(mAccountManager, ACCOUNT_TYPE_1); in tearDown() 90 assertEquals(0, mAccountManager.getAccountsByType(ACCOUNT_TYPE_1).length); in testAccountManagementDisabled_addAccount() 93 mAccountManager.addAccount(ACCOUNT_TYPE_1, null, null, null, null, null, null) in testAccountManagementDisabled_addAccount() 99 assertEquals(0, mAccountManager.getAccountsByType(ACCOUNT_TYPE_1).length); in testAccountManagementDisabled_addAccount() 105 Bundle result = mAccountManager.addAccount(ACCOUNT_TYPE_1, in testAccountManagementDisabled_addAccount() 123 assertEquals(0, mAccountManager.getAccountsByType(ACCOUNT_TYPE_1).length); in testAccountManagementDisabled_removeAccount() 126 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT_0, "password", null)); in testAccountManagementDisabled_removeAccount() [all …]
|
D | AccountUtilsTest.java | 36 private AccountManager mAccountManager; field in AccountUtilsTest 41 mAccountManager = (AccountManager) getContext().getSystemService(Context.ACCOUNT_SERVICE); in setUp() 45 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccount() 47 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT_0, "password", null)); in testAddAccount() 48 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccount() 53 removeAllAccountsForType(mAccountManager, MockAccountAuthenticator.ACCOUNT_TYPE); in testRemoveAccounts()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsProvider2_AccountRemovalTest.java | 57 private AccountManager mAccountManager; field in ContactsProvider2_AccountRemovalTest 63 mAccountManager = AccountManager.get(getContext()); in setUp() 72 mAccountManager.addAccountExplicitly(ACCT_1, null, null); in testAccountRemoval_deletesContacts() 73 mAccountManager.addAccountExplicitly(ACCT_2, null, null); in testAccountRemoval_deletesContacts() 77 mAccountManager.removeAccount(ACCT_2, null, null); in testAccountRemoval_deletesContacts() 80 mAccountManager.removeAccount(ACCT_1, null, null); in testAccountRemoval_deletesContacts() 85 mAccountManager.addAccountExplicitly(ACCT_1, null, null); in testAccountRemoval_hasDeleteLogsForContacts() 86 mAccountManager.addAccountExplicitly(ACCT_2, null, null); in testAccountRemoval_hasDeleteLogsForContacts() 91 mAccountManager.removeAccount(ACCT_2, null, null); in testAccountRemoval_hasDeleteLogsForContacts() 95 mAccountManager.removeAccount(ACCT_1, null, null); in testAccountRemoval_hasDeleteLogsForContacts() [all …]
|