Searched refs:getAccountsAsUser (Results 1 – 11 of 11) sorted by relevance
101 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp()343 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_twoAccountsOfSameType_shouldAddThreePreferences()396 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(allAccounts); in onResume_twoAccountsOfSameName_shouldAddFivePreferences()422 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_noAccountChange_shouldNotAddAccountPreference()457 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_oneNewAccount_shouldAddOneAccountPreference()513 when(mAccountManager.getAccountsAsUser(2)).thenReturn(accounts); in onResume_oneNewAccountType_shouldAddOneAccountPreference()537 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_oneAccountRemoved_shouldRemoveOneAccountPreference()580 when(mAccountManager.getAccountsAsUser(1)).thenReturn(accounts); in onResume_userReEnabled_shouldAddOneAccountPreference()
75 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp()
70 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp()
117 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp()
152 when(mMockAccountManager.getAccountsAsUser(anyInt())).thenReturn(mAccounts); in onAccountsUpdate_currentUserUpdated_shouldForceUpdate()228 when(mMockAccountManager.getAccountsAsUser(anyInt())).thenReturn(mAccounts); in initMocks()
53 protected Account[] getAccountsAsUser(int userId) { in getAccountsAsUser() method in ShadowAccountManager
40 protected Account[] getAccountsAsUser(int userId) { in getAccountsAsUser() method in ShadowAccountManager
84 Account[] accounts = AccountManager.get(getContext()).getAccountsAsUser(profile.id); in updateState()
104 for (Account account : accountManager.getAccountsAsUser(userHandle.getIdentifier())) { in finishIfAccountMissing()
266 when(mMockAccountManager.getAccountsAsUser(anyInt())).then( in updateAccountManagerMocks()
480 Account[] accounts = mgr.getAccountsAsUser(profileId); in loadAccountList()