/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/ |
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)
|
AccountManagementTest.java | 43 private AccountManager mAccountManager; 48 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE); 53 mAccountManager.removeAccountExplicitly(ACCOUNT); 54 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) 61 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) 65 mAccountManager.addAccount(MockAccountAuthenticator.ACCOUNT_TYPE, 71 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) 76 Bundle result = mAccountManager.addAccount(MockAccountAuthenticator.ACCOUNT_TYPE, 88 String authToken = mAccountManager.blockingGetAuthToken(account, "authTokenType", false); 94 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE [all...] |
/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/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(
|
/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/src/com/android/contacts/model/ |
DeviceLocalAccountLocator.java | 86 private final AccountManager mAccountManager; 89 mAccountManager = accountManager; 95 final Account[] accounts = mAccountManager
|
/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...] |
/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));
|
/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/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/tests/robotests/src/com/android/settings/system/ |
FactoryResetPreferenceControllerTest.java | 54 private AccountManager mAccountManager; 62 when(mContext.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager);
|
/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);
|
/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/src/com/android/settings/dashboard/ |
SupportFragment.java | 75 private AccountManager mAccountManager; 89 mAccountManager = AccountManager.get(mActivity); 113 mAccountManager.addOnAccountsUpdatedListener( 129 mAccountManager.removeOnAccountsUpdatedListener(this /* listener */);
|
/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);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
Sources.java | 56 private AccountManager mAccountManager; 85 mAccountManager = AccountManager.get(mApplicationContext); 108 mAccountManager.addOnAccountsUpdatedListener(this, null, false); 189 final AccountManager am = mAccountManager; 250 final AccountManager am = mAccountManager;
|
/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/Settings/tests/robotests/src/com/android/settings/accounts/ |
AccountSyncPreferenceControllerTest.java | 55 private AccountManager mAccountManager; 65 application.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager); 68 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn( 70 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]);
|
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]);
|
RemoveAccountPreferenceControllerTest.java | 70 private AccountManager mAccountManager; 91 shadowContext.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager); 98 when(mAccountManager.getAuthenticatorTypesAsUser(anyInt())).thenReturn( 100 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(new Account[0]); 143 when(activity.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager); 153 verify(mAccountManager).removeAccountAsUser(eq(account), nullable(Activity.class),
|
/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(
|