/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountPreferenceControllerTest.java | 82 private AccountManager mAccountManager; field in AccountPreferenceControllerTest 95 shadowApp.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager); in setUp() 99 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())) in setUp() 101 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp() 344 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() 350 when(mAccountManager.getAccountsByTypeAsUser(eq("com.acct1"), any(UserHandle.class))) in onResume_twoAccountsOfSameType_shouldAddThreePreferences() 357 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn(authDescs); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() 397 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(allAccounts); in onResume_twoAccountsOfSameName_shouldAddFivePreferences() 398 when(mAccountManager.getAccountsByTypeAsUser(eq("com.acct1"), any(UserHandle.class))) in onResume_twoAccountsOfSameName_shouldAddFivePreferences() 400 when(mAccountManager.getAccountsByTypeAsUser(eq("com.acct2"), any(UserHandle.class))) in onResume_twoAccountsOfSameName_shouldAddFivePreferences() [all …]
|
D | RemoveAccountPreferenceControllerTest.java | 86 private AccountManager mAccountManager; field in RemoveAccountPreferenceControllerTest 105 ShadowApplication.getInstance().setSystemService(Context.ACCOUNT_SERVICE, mAccountManager); in setUp() 112 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())) in setUp() 114 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp() 152 when(activity.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager); in confirmRemove_shouldRemoveAccount() 164 verify(mAccountManager).removeAccountAsUser(eq(account), nullable(Activity.class), in confirmRemove_shouldRemoveAccount() 187 when(activity.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager); in confirmRemove_activityGone_shouldSilentlyRemoveAccount() 198 verify(mAccountManager).removeAccountAsUser(eq(account), nullable(Activity.class), in confirmRemove_activityGone_shouldSilentlyRemoveAccount()
|
D | ChooseAccountPreferenceControllerTest.java | 71 private ShadowAccountManager mAccountManager; field in ChooseAccountPreferenceControllerTest 80 mAccountManager = (ShadowAccountManager) Shadows.shadowOf(AccountManager.get(mContext)); in setUp() 118 mAccountManager.addAuthenticator(authDesc); in updateAuthDescriptions_oneProvider_shouldNotAddPreference() 143 mAccountManager.addAuthenticator(authDesc); in updateAuthDescriptions_oneAdminDisabledProvider_shouldNotAddPreference() 168 mAccountManager.addAuthenticator(authDesc); in updateAuthDescriptions_noProvider_shouldNotAddPreference() 194 mAccountManager.addAuthenticator(authDesc); in updateAuthDescriptions_twoProvider_shouldAddTwoPreference() 195 mAccountManager.addAuthenticator(authDesc2); in updateAuthDescriptions_twoProvider_shouldAddTwoPreference()
|
D | AccountSyncPreferenceControllerTest.java | 56 private AccountManager mAccountManager; field in AccountSyncPreferenceControllerTest 66 ShadowApplication.getInstance().setSystemService(Context.ACCOUNT_SERVICE, mAccountManager); in setUp() 68 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn( in setUp() 70 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp()
|
D | AccountDashboardFragmentTest.java | 57 private AccountManager mAccountManager; field in AccountDashboardFragmentTest 108 when(AccountManager.get(mContext)).thenReturn(mAccountManager); in searchIndexProvider_hasAccounts_shouldIndex() 109 doReturn(accounts).when(mAccountManager).getAccounts(); in searchIndexProvider_hasAccounts_shouldIndex()
|
D | AccountTypePreferenceLoaderTest.java | 70 private AccountManager mAccountManager; field in AccountTypePreferenceLoaderTest 86 shadowContext.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager); in setUp() 87 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn( in setUp() 89 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); in setUp()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/ |
D | AuthUtils.java | 35 private final AccountManager mAccountManager; field in AuthUtils 38 mAccountManager = AccountManager.get(context); in AuthUtils() 45 mAccountManager.invalidateAuthToken(accountType, authToken); in invalidateAuthToken() 55 return mAccountManager.getAuthToken(account, authTokenType, options, notifyAuthFailure, in getAuthToken() 65 return mAccountManager.blockingGetAuthToken(account, authTokenType, notifyAuthFailure); in blockingGetAuthToken()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | AccountsTestHelper.java | 44 private final AccountManager mAccountManager; field in AccountsTestHelper 57 mAccountManager = AccountManager.get(mContext); in AccountsTestHelper() 64 assertTrue(mAccountManager.addAccountExplicitly(newAccount, null, null)); in addTestAccount() 91 mAccountManager.removeAccountExplicitly(remove); in removeTestAccount() 102 mAccountManager.getAccountsByType(TEST_ACCOUNT_TYPE)); in hasTestAccount() 121 mAccountManager.removeAccountExplicitly(account); in cleanup()
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | AccountManagerCompat.java | 24 mAccountManager = accountManager; in AccountManagerCompat() 27 private final AccountManager mAccountManager; field in AccountManagerCompat 36 return mAccountManager.getAccountsByTypeAsUser(type, userHandle); in getAccountsByTypeAsUser() 40 mAccountManager.addSharedAccountsFromParentUser(parentUser, user); in addSharedAccountsFromParentUser()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | AccountTypeManagerTest.java | 60 @Mock private AccountManager mAccountManager; field in AccountTypeManagerTest 107 when(mAccountManager.getAccountsByType(Mockito.anyString())).thenReturn(ACCOUNTS); in testGetDefaultAccount_NoDefaultAccountPreferenceSet() 112 when(mAccountManager.getAccountsByType(Mockito.anyString())).thenReturn(ACCOUNTS); in testGetDefaultAccount_DefaultAccountPreferenceSet() 119 when(mAccountManager.getAccountsByType(Mockito.anyString())).thenReturn(ACCOUNTS); in testGetDefaultAccount_DefaultAccountPreferenceSet_NonGoogleAccountType() 126 when(mAccountManager.getAccountsByType(Mockito.anyString())).thenReturn(ACCOUNTS); in testGetDefaultAccount_DefaultAccountPreferenceSet_UnknownName() 135 mAccountManager, mPrefs, "contact_editor_default_account_key"); in getDefaultGoogleAccountName()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | DeviceLocalAccountLocator.java | 35 private final AccountManager mAccountManager; field in DeviceLocalAccountLocator 40 mAccountManager = accountManager; in DeviceLocalAccountLocator() 48 @SuppressWarnings("MissingPermission") final Account[] accounts = mAccountManager in getDeviceLocalAccounts()
|
D | AccountTypeManager.java | 349 private final AccountManager mAccountManager; 372 return getAccountsWithDataSets(mAccountManager.getAccounts(), typeProvider); 405 mAccountManager = AccountManager.get(mContext); 430 mAccountManager.addOnAccountsUpdatedListener(this, mMainThreadHandler, false); 484 getAccountsWithDataSets(mAccountManager.getAccounts(), mTypeProvider); 506 mAccountManager.getAuthenticatorTypes(), ContentResolver.getSyncAdapterTypes())) { 652 return getDefaultGoogleAccount(mAccountManager, sharedPreferences, defaultAccountKey); 658 mAccountManager.getAccountsByType(GoogleAccountType.ACCOUNT_TYPE); 681 final Account[] accounts = mAccountManager.getAccounts(); 732 final Account[] accounts = mAccountManager.getAccountsByType(account.type);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | MainClearTest.java | 94 private AccountManager mAccountManager; field in MainClearTest 379 when(mMockActivity.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager); in testGetAccountConfirmationIntent_no_relevant_accounts() 380 when(mAccountManager.getAccountsByType(TEST_ACCOUNT_TYPE)).thenReturn(accounts); in testGetAccountConfirmationIntent_no_relevant_accounts() 393 when(mMockActivity.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager); in testGetAccountConfirmationIntent_unresolved() 394 when(mAccountManager.getAccountsByType(TEST_ACCOUNT_TYPE)).thenReturn(accounts); in testGetAccountConfirmationIntent_unresolved() 412 when(mMockActivity.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager); in testTryShowAccountConfirmation_ok() 413 when(mAccountManager.getAccountsByType(TEST_ACCOUNT_TYPE)).thenReturn(accounts); in testTryShowAccountConfirmation_ok()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/ |
D | PbapClientConnectionHandler.java | 134 private AccountManager mAccountManager; field in PbapClientConnectionHandler 156 mAccountManager = AccountManager.get(mPbapClientStateMachine.getContext()); in PbapClientConnectionHandler() 452 if (mAccountManager.addAccountExplicitly(mAccount, null, null)) { in addAccount() 461 if (mAccountManager.removeAccountExplicitly(mAccount)) { in removeAccount()
|
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
D | AccountTypeManager.java | 242 private AccountManager mAccountManager; field in AccountTypeManagerImpl 269 mAccountManager = AccountManager.get(mContext); in AccountTypeManagerImpl() 306 mAccountManager.addOnAccountsUpdatedListener(this, mListenerHandler, false); in AccountTypeManagerImpl() 421 final AccountManager am = mAccountManager; in loadAccountsInBackground() 518 Account[] accounts = mAccountManager.getAccounts(); in loadAccountsInBackground()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountTypesHelperTest.java | 55 private AccountManager mAccountManager = AccountManager.get(application); field in AccountTypesHelperTest 175 return Shadow.extract(mAccountManager); in getShadowAccountManager()
|