Home
last modified time | relevance | path

Searched refs:mMockAccountManager (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DChooseAccountPreferenceControllerTest.java90 private AccountManager mMockAccountManager; field in ChooseAccountPreferenceControllerTest
146 when(mMockAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn( in onAccountsUpdate_currentUserUpdated_shouldForceUpdate()
152 when(mMockAccountManager.getAccountsAsUser(anyInt())).thenReturn(mAccounts); in onAccountsUpdate_currentUserUpdated_shouldForceUpdate()
215 when(AccountManager.get(mContext)).thenReturn(mMockAccountManager); in initMocks()
226 when(mMockAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn( in initMocks()
228 when(mMockAccountManager.getAccountsAsUser(anyInt())).thenReturn(mAccounts); in initMocks()
DAccountDetailsFragmentTest.java62 private AccountManager mMockAccountManager; field in AccountDetailsFragmentTest
76 when(AccountManager.get(any())).thenReturn(mMockAccountManager); in setUp()
134 when(mMockAccountManager.getAccountsByTypeAsUser(anyString(), any())).thenReturn(accounts); in addAccounts()
DAccountListPreferenceControllerTest.java90 private AccountManager mMockAccountManager; field in AccountListPreferenceControllerTest
291 when(AccountManager.get(mContext)).thenReturn(mMockAccountManager); in initMocks()
292 when(mMockAccountManager.getAccountsByTypeAsUser(any(), any())).then(invocation -> { in initMocks()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DFactoryResetAccountsPreferenceControllerTest.java81 private AccountManager mMockAccountManager; field in FactoryResetAccountsPreferenceControllerTest
101 when(AccountManager.get(mContext)).thenReturn(mMockAccountManager); in setUp()
257 when(mMockAccountManager.getAuthenticatorTypesAsUser(anyInt())).then( in updateAccountManagerMocks()
266 when(mMockAccountManager.getAccountsAsUser(anyInt())).then( in updateAccountManagerMocks()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java126 private AccountManager mMockAccountManager; field in ContactsActor
328 return mMockAccountManager; in ContactsActor()
378 return mMockAccountManager; in ContactsActor()
424 mMockAccountManager = new MockAccountManager(mProviderContext); in ContactsActor()