Searched refs:getAccountsAsUser (Results 1 – 11 of 11) sorted by relevance
101 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp()344 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_twoAccountsOfSameType_shouldAddThreePreferences()397 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(allAccounts); in onResume_twoAccountsOfSameName_shouldAddFivePreferences()423 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_noAccountChange_shouldNotAddAccountPreference()458 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_oneNewAccount_shouldAddOneAccountPreference()514 when(mAccountManager.getAccountsAsUser(2)).thenReturn(accounts); in onResume_oneNewAccountType_shouldAddOneAccountPreference()538 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_oneAccountRemoved_shouldRemoveOneAccountPreference()581 when(mAccountManager.getAccountsAsUser(1)).thenReturn(accounts); in onResume_userReEnabled_shouldAddOneAccountPreference()
70 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp()
114 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp()
89 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp()
55 protected Account[] getAccountsAsUser(int userId) { in getAccountsAsUser() method in ShadowAccountManager
151 when(mMockAccountManager.getAccountsAsUser(anyInt())).thenReturn(mAccounts); in onAccountsUpdate_currentUserUpdated_shouldForceUpdate()224 when(mMockAccountManager.getAccountsAsUser(anyInt())).thenReturn(mAccounts); in initMocks()
40 protected Account[] getAccountsAsUser(int userId) { in getAccountsAsUser() method in ShadowAccountManager
84 Account[] accounts = AccountManager.get(getContext()).getAccountsAsUser(profile.id); in updateState()
106 for (Account account : accountManager.getAccountsAsUser(userHandle.getIdentifier())) { in finishIfAccountMissing()
266 when(mMockAccountManager.getAccountsAsUser(anyInt())).then( in updateAccountManagerMocks()
512 Account[] accounts = mgr.getAccountsAsUser(profileId); in loadAccountList()