HomeSort by relevance Sort by last modified time
    Searched refs:mAccountManager (Results 1 - 25 of 34) sorted by null

1 2

  /cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
AccountManagementTest.java 44 private AccountManager mAccountManager;
49 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE);
54 mAccountManager.removeAccountExplicitly(ACCOUNT);
55 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE)
62 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE)
66 mAccountManager.addAccount(MockAccountAuthenticator.ACCOUNT_TYPE,
72 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE)
77 Bundle result = mAccountManager.addAccount(MockAccountAuthenticator.ACCOUNT_TYPE,
89 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE)
93 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT, "password", null))
    [all...]
AccountUtilsTest.java 44 private AccountManager mAccountManager;
49 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE);
53 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE)
55 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT, "password", null));
56 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE)
61 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE)
63 mAccountManager.removeAccountExplicitly(ACCOUNT);
64 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE)
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/
AuthUtils.java 35 private final AccountManager mAccountManager;
38 mAccountManager = AccountManager.get(context);
45 mAccountManager.invalidateAuthToken(accountType, authToken);
55 return mAccountManager.getAuthToken(account, authTokenType, options, notifyAuthFailure,
65 return mAccountManager.blockingGetAuthToken(account, authTokenType, notifyAuthFailure);
  /cts/tests/tests/provider/src/android/provider/cts/contacts/
ContactsProvider2_AccountRemovalTest.java 57 private AccountManager mAccountManager;
63 mAccountManager = AccountManager.get(getContext());
72 mAccountManager.addAccountExplicitly(ACCT_1, null, null);
73 mAccountManager.addAccountExplicitly(ACCT_2, null, null);
77 mAccountManager.removeAccount(ACCT_2, null, null);
80 mAccountManager.removeAccount(ACCT_1, null, null);
85 mAccountManager.addAccountExplicitly(ACCT_1, null, null);
86 mAccountManager.addAccountExplicitly(ACCT_2, null, null);
91 mAccountManager.removeAccount(ACCT_2, null, null);
95 mAccountManager.removeAccount(ACCT_1, null, null)
    [all...]
ContactsContract_DirectoryTest.java 40 private AccountManager mAccountManager;
51 mAccountManager = getContext().getSystemService(AccountManager.class);
60 mAccountManager.removeAccountExplicitly(mAccount);
  /cts/tests/tests/accounts/src/android/accounts/cts/
AccountManagerUnaffiliatedAuthenticatorTests.java 56 private AccountManager mAccountManager;
64 mAccountManager = AccountManager.get(getContext());
86 mAccountManager.notifyAccountAuthenticated(
94 mAccountManager.editProperties(
107 mAccountManager.addAccountExplicitly(
117 mAccountManager.removeAccount(
127 mAccountManager.removeAccount(
138 mAccountManager.removeAccountExplicitly(
146 mAccountManager.getPassword(
154 mAccountManager.setPassword
    [all...]
AbstractAuthenticatorTests.java 50 private AccountManager mAccountManager;
56 mAccountManager = AccountManager.get(getContext());
76 AccountManagerFuture<Bundle> future = mAccountManager.startAddAccountSession(
112 AccountManagerFuture<Bundle> future = mAccountManager.startUpdateCredentialsSession(
151 AccountManagerFuture<Bundle> future = mAccountManager.startAddAccountSession(
169 future = mAccountManager.finishSession(
220 AccountManagerFuture<Bundle> future = mAccountManager.startUpdateCredentialsSession(
237 future = mAccountManager.finishSession(
295 AccountManagerFuture<Boolean> future = mAccountManager.isCredentialsUpdateSuggested(
  /cts/hostsidetests/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/
InvalidSyncAuthoritiesDeviceTest.java 45 private AccountManager mAccountManager;
50 mAccountManager = context.getSystemService(AccountManager.class);
52 final Account[] accounts = mAccountManager.getAccountsByType(VALID_TEST_ACCOUNT_TYPE);
59 mAccountManager.addAccountExplicitly(mValidAccount, "password", null));
87 mAccountManager.removeAccountExplicitly(mValidAccount);
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DpcAllowedAccountManagementTest.java 52 private AccountManager mAccountManager;
57 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE);
95 assertEquals(0, mAccountManager.getAccountsByType(ACCOUNT_TYPE_1).length);
97 Bundle result = mAccountManager.addAccount(ACCOUNT_TYPE_1,
111 assertEquals(0, mAccountManager.getAccountsByType(ACCOUNT_TYPE_1).length);
113 Bundle result = mAccountManager.addAccount(ACCOUNT_TYPE_1,
  /external/volley/src/test/java/com/android/volley/toolbox/
AndroidAuthenticatorTest.java 40 private AccountManager mAccountManager;
47 mAccountManager = mock(AccountManager.class);
50 mAuthenticator = new AndroidAuthenticator(mAccountManager, mAccount, "cooltype", false);
55 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture);
65 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture);
75 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture);
85 verify(mAccountManager).invalidateAuthToken("cooltype", "monkey");
92 when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture);
  /external/volley/src/main/java/com/android/volley/toolbox/
AndroidAuthenticator.java 36 private final AccountManager mAccountManager;
66 mAccountManager = accountManager;
90 AccountManagerFuture<Bundle> future = mAccountManager.getAuthToken(mAccount,
115 mAccountManager.invalidateAuthToken(mAccount.type, authToken);
  /packages/apps/Contacts/tests/src/com/android/contacts/model/
AccountTypeManagerTest.java 58 @Mock private AccountManager mAccountManager;
105 when(mAccountManager.getAccountsByType(Mockito.anyString())).thenReturn(ACCOUNTS);
110 when(mAccountManager.getAccountsByType(Mockito.anyString())).thenReturn(ACCOUNTS);
117 when(mAccountManager.getAccountsByType(Mockito.anyString())).thenReturn(ACCOUNTS);
124 when(mAccountManager.getAccountsByType(Mockito.anyString())).thenReturn(ACCOUNTS);
133 mAccountManager, mPrefs, "contact_editor_default_account_key");
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/
AccountsTestHelper.java 44 private final AccountManager mAccountManager;
57 mAccountManager = AccountManager.get(mContext);
64 assertTrue(mAccountManager.addAccountExplicitly(newAccount, null, null));
91 mAccountManager.removeAccountExplicitly(remove);
102 mAccountManager.getAccountsByType(TEST_ACCOUNT_TYPE));
121 mAccountManager.removeAccountExplicitly(account);
  /packages/apps/Contacts/src/com/android/contacts/model/
DeviceLocalAccountLocator.java 86 private final AccountManager mAccountManager;
89 mAccountManager = accountManager;
95 final Account[] accounts = mAccountManager
  /cts/hostsidetests/devicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/
AccountCheckTest.java 37 private AccountManager mAccountManager;
44 mAccountManager = getContext().getSystemService(AccountManager.class);
51 for (Account account : mAccountManager.getAccountsByType(ACCOUNT_TYPE)) {
53 mAccountManager.removeAccountExplicitly(account);
58 final Bundle result = mAccountManager.addAccount(
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
SyncAdapter.java 56 private final AccountManager mAccountManager;
63 mAccountManager = AccountManager.get(context);
90 final String authtoken = mAccountManager.blockingGetAuthToken(account,
157 String markerString = mAccountManager.getUserData(account, SYNC_MARKER_KEY);
170 mAccountManager.setUserData(account, SYNC_MARKER_KEY, Long.toString(marker));
  /development/apps/Development/src/com/android/development/
AccountsTester.java 61 private AccountManager mAccountManager;
79 mAccountManager = AccountManager.get(this);
165 mAuthenticatorDescs = mAccountManager.getAuthenticatorTypes();
196 mAccountManager.addOnAccountsUpdatedListener(this, mainHandler,
202 mAccountManager.removeOnAccountsUpdatedListener(this);
208 onAccountsUpdated(mAccountManager.getAccounts());
211 onAccountsUpdated(mAccountManager.getAccountsByType(type));
222 mAccountManager.addAccount(getSelectedAuthenticator().type,
228 mAccountManager.editProperties(getSelectedAuthenticator().type,
270 mAccountManager.removeAccount(account, new AccountManagerCallback<Boolean>()
    [all...]
  /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
CopyAccountToUserTaskTest.java 60 @Mock private AccountManager mAccountManager;
70 when(mContext.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager);
71 when(mAccountManager.copyAccountToUser(
91 verify(mAccountManager).copyAccountToUser(
115 verify(mAccountManager).copyAccountToUser(
136 verifyZeroInteractions(mAccountManager);
152 verifyZeroInteractions(mAccountManager);
  /packages/apps/Settings/src/com/android/settings/dashboard/
SupportFragment.java 75 private AccountManager mAccountManager;
89 mAccountManager = AccountManager.get(mActivity);
113 mAccountManager.addOnAccountsUpdatedListener(
129 mAccountManager.removeOnAccountsUpdatedListener(this /* listener */);
  /packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
AccountDetailDashboardFragmentTest.java 60 private AccountManager mAccountManager;
73 shadowContext.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager);
125 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn(
127 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]);
AccountPreferenceControllerTest.java 77 private AccountManager mAccountManager;
89 shadowContext.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager);
94 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn(
96 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]);
343 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts);
348 when(mAccountManager.getAccountsByTypeAsUser(eq("com.acct1"), any(UserHandle.class)))
355 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn(authDescs);
395 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(allAccounts);
396 when(mAccountManager.getAccountsByTypeAsUser(eq("com.acct1"), any(UserHandle.class)))
398 when(mAccountManager.getAccountsByTypeAsUser(eq("com.acct2"), any(UserHandle.class))
    [all...]
RemoveAccountPreferenceControllerTest.java 69 private AccountManager mAccountManager;
88 shadowContext.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager);
95 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn(
97 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]);
127 when(activity.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager);
137 verify(mAccountManager).removeAccountAsUser(eq(account), any(Activity.class),
AccountTypePreferenceLoaderTest.java 57 private AccountManager mAccountManager;
71 shadowContext.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager);
72 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn(
74 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]);
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
AuthenticatorActivity.java 60 private AccountManager mAccountManager;
99 mAccountManager = AccountManager.get(this);
174 mAccountManager.setPassword(account, mPassword);
196 mAccountManager.addAccountExplicitly(account, mPassword, null);
200 mAccountManager.setPassword(account, mPassword);
  /packages/apps/Settings/tests/robotests/src/com/android/settings/system/
FactoryResetPreferenceControllerTest.java 51 private AccountManager mAccountManager;
59 when(mContext.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager);

Completed in 289 milliseconds

1 2