/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 …]
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerUnaffiliatedAuthenticatorTests.java | 55 private AccountManager mAccountManager; field in AccountManagerUnaffiliatedAuthenticatorTests 63 mAccountManager = AccountManager.get(getContext()); in setUp() 68 mAccountManager.notifyAccountAuthenticated( in testNotifyAccountAuthenticated() 76 mAccountManager.editProperties( in testEditProperties() 89 mAccountManager.addAccountExplicitly( in testAddAccountExplicitly() 99 mAccountManager.removeAccount( in testRemoveAccount_withBooleanResult() 109 mAccountManager.removeAccount( in testRemoveAccount_withBundleResult() 120 mAccountManager.removeAccountExplicitly( in testRemoveAccountExplicitly() 128 mAccountManager.getPassword( in testGetPassword() 136 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/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsProvider2_AccountRemovalTest.java | 67 private AccountManager mAccountManager; field in ContactsProvider2_AccountRemovalTest 73 mAccountManager = AccountManager.get(getContext()); in setUp() 87 mAccountManager.addAccountExplicitly(ACCT_1, null, null); in testAccountRemoval_deletesContacts() 88 mAccountManager.addAccountExplicitly(ACCT_2, null, null); in testAccountRemoval_deletesContacts() 92 mAccountManager.removeAccount(ACCT_2, null, null); in testAccountRemoval_deletesContacts() 95 mAccountManager.removeAccount(ACCT_1, null, null); in testAccountRemoval_deletesContacts() 100 mAccountManager.addAccountExplicitly(ACCT_1, null, null); in testAccountRemoval_hasDeleteLogsForContacts() 101 mAccountManager.addAccountExplicitly(ACCT_2, null, null); in testAccountRemoval_hasDeleteLogsForContacts() 106 mAccountManager.removeAccount(ACCT_2, null, null); in testAccountRemoval_hasDeleteLogsForContacts() 110 mAccountManager.removeAccount(ACCT_1, null, null); in testAccountRemoval_hasDeleteLogsForContacts() [all …]
|
D | ContactsContract_SettingsTest.java | 48 private AccountManager mAccountManager; field in ContactsContract_SettingsTest 55 mAccountManager = AccountManager.get(getContext()); in setUp() 57 mAccountManager.addAccountExplicitly(ACCT_1, null, null); in setUp() 58 mAccountManager.addAccountExplicitly(ACCT_2, null, null); in setUp() 70 mAccountManager.removeAccount(ACCT_1, null, null); in tearDown() 71 mAccountManager.removeAccount(ACCT_2, null, null); in tearDown()
|
D | ContactsContract_DirectoryTest.java | 44 private AccountManager mAccountManager; field in ContactsContract_DirectoryTest 59 mAccountManager = getContext().getSystemService(AccountManager.class); in setUp() 68 mAccountManager.removeAccountExplicitly(mAccount); in tearDown()
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | AccountManagerEnumerationTest.java | 62 private AccountManager mAccountManager; field in AccountManagerEnumerationTest 71 mAccountManager = AccountManager.get(sContext); in onBefore() 81 for (Account account : mAccountManager.getAccountsByType(ACCOUNT_TYPE)) { in onAfter() 82 mAccountManager.removeAccountExplicitly(account); in onAfter() 90 assertThat(mAccountManager.addAccountExplicitly( in addAccountExplicitlyWithVisibility_targetPackageIsVisible() 93 assertThat(mAccountManager.getAccountVisibility(ACCOUNT, TARGET_VISIBLE), in addAccountExplicitlyWithVisibility_targetPackageIsVisible() 95 assertThat(mAccountManager.getAccountsAndVisibilityForPackage(TARGET_VISIBLE, ACCOUNT_TYPE), in addAccountExplicitlyWithVisibility_targetPackageIsVisible() 103 assertThat(mAccountManager.addAccountExplicitly( in addAccountExplicitlyWithVisibility_targetPackageNotVisible() 106 assertThat(mAccountManager.getAccountVisibility(ACCOUNT, TARGET_NOT_VISIBLE), in addAccountExplicitlyWithVisibility_targetPackageNotVisible() 108 assertThat(mAccountManager.getAccountsAndVisibilityForPackage( in addAccountExplicitlyWithVisibility_targetPackageNotVisible() [all …]
|
/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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/accounts/ |
D | AccountManager.java | 31 private final RemoteAccountManager mAccountManager; field in AccountManager 37 mAccountManager = accountManager; in AccountManager() 48 return mAccountManager; in accountManager()
|
D | AccountBuilder.java | 39 private final AccountManager<?> mAccountManager; field in AccountBuilder 46 mAccountManager = accountManager; in AccountBuilder() 50 mAccountManager.accountManager().removeAccount( in AccountBuilder() 115 mAccountManager.user(), addAccount(), mRemoveFunction); in add() 133 return mAccountManager.accountManager().addAccount( in addAccountOnce()
|
/cts/hostsidetests/appcloning/test-apps/AppCloningContactsSharingApps/CloneProfileAppWithLaunchableActivity/src/com/android/cts/launchable/cloneprofile/contacts/app/ |
D | CloneContactsSharingTest.java | 61 private AccountManager mAccountManager; field in CloneContactsSharingTest 67 mAccountManager = AccountManager.get(mContext); in setUp() 410 boolean result = mAccountManager.addAccountExplicitly(testAccount, /* password */ null, in testContactSyncsForCloneAccounts_syncsAreDisabled() 422 mAccountManager.removeAccountExplicitly(testAccount); in testContactSyncsForCloneAccounts_syncsAreDisabled()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | AccountManagementTest.java | 97 private AccountManager mAccountManager; field in AccountManagementTest 101 mAccountManager = sContext.getSystemService(AccountManager.class); in setUp() 280 mAccountManager.addAccount( in addAccount_withDisallowModifyAccountsRestriction_throwsException()
|