/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/ |
SyncUtils.java | 20 import android.accounts.AccountManager; 54 AccountManager accountManager = 55 (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE); 56 if (accountManager.addAccountExplicitly(account, null, null)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/ |
AuthUtils.java | 20 import android.accounts.AccountManager; 35 private final AccountManager mAccountManager; 38 mAccountManager = AccountManager.get(context); 42 * @see AccountManager#invalidateAuthToken(String, String) 49 * @see AccountManager#getAuthToken( 60 * @see AccountManager#blockingGetAuthToken(Account, String, boolean)
|
AccountsChangedReceiver.java | 19 import android.accounts.AccountManager; 32 * {@link BroadcastReceiver} for {@link AccountManager#LOGIN_ACCOUNTS_CHANGED_ACTION}. 39 if (!AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION.equals(intent.getAction())) {
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
AccountManagerTest.java | 20 import android.accounts.AccountManager; 124 private static AccountManager am; 152 SESSION_BUNDLE.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); 156 am = AccountManager.get(mContext); 165 AccountManager.KEY_BOOLEAN_RESULT)); 167 AccountManager.KEY_BOOLEAN_RESULT)); 194 expected.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 195 expected.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); 231 String token = actual.getString(AccountManager.KEY_AUTHTOKEN); 245 actual.get(AccountManager.KEY_ACCOUNT_NAME)) [all...] |
/cts/hostsidetests/devicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/ |
TestAuthenticator.java | 21 import android.accounts.AccountManager; 77 result.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType); 78 result.putString(AccountManager.KEY_ACCOUNT_NAME, name); 80 mContxet.getSystemService(AccountManager.class).addAccountExplicitly( 131 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, hasAll);
|
AccountCheckTest.java | 19 import android.accounts.AccountManager; 37 private AccountManager mAccountManager; 44 mAccountManager = getContext().getSystemService(AccountManager.class); 67 assertEquals(ACCOUNT_TYPE, result.getString(AccountManager.KEY_ACCOUNT_TYPE)); 135 final AccountManager am = AccountManager.get(mContext); 163 private boolean hasAccountFeatures(AccountManager am, Account account, String[] features) {
|
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/ |
AccountManagementTest.java | 20 import android.accounts.AccountManager; 43 private AccountManager mAccountManager; 48 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE); 79 // Normally the expected result of addAccount() is AccountManager returning 82 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE); 83 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
DpcAllowedAccountManagementTest.java | 20 import android.accounts.AccountManager; 52 private AccountManager mAccountManager; 57 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE); 100 // Normally the expected result of addAccount() is AccountManager returning 103 assertEquals(ACCOUNT_TYPE_1, result.getString(AccountManager.KEY_ACCOUNT_TYPE)); 116 // Normally the expected result of addAccount() is AccountManager returning 119 assertEquals(ACCOUNT_TYPE_1, result.getString(AccountManager.KEY_ACCOUNT_TYPE));
|
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/ |
AuthenticatorContentProvider.java | 20 import android.accounts.AccountManager; 81 AccountManager am = AccountManager.get(context); 99 AccountManager am = AccountManager.get(context);
|
TestDefaultAuthenticator.java | 22 import android.accounts.AccountManager; 70 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); 71 result.putString(AccountManager.KEY_ACCOUNT_TYPE, mAccountType); 112 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 113 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
AddAccountWithTypeActivity.java | 19 import android.accounts.AccountManager; 50 .getParcelable(AccountManager.KEY_INTENT); 67 String accountType = getIntent().getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); 84 String accountType = data.getExtras().getString(AccountManager.KEY_ACCOUNT_TYPE); 98 AccountManager.get(this).addAccount(
|
AccountSyncActivity.java | 20 import android.accounts.AccountManager; 41 for (Account candidateAccount : AccountManager.get(this).getAccounts()) {
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAccountManager.java | 4 import android.accounts.AccountManager; 27 * Shadows the {@code android.accounts.AccountManager} class. 30 @Implements(AccountManager.class) 35 private static AccountManager singleton; 42 public static AccountManager get(Context context) { 44 singleton = Robolectric.newInstanceOf(AccountManager.class); 100 bundle.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN_VALUE); 101 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); 102 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 158 bundle.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN_VALUE) [all...] |
/frameworks/base/core/java/android/accounts/ |
AbstractAccountAuthenticator.java | 38 * with an intent with action {@link AccountManager#ACTION_AUTHENTICATOR_INTENT}. This service 59 * string that user will use when making calls on the {@link AccountManager} and it also 89 * {@link AccountManager#KEY_INTENT}. 92 * the {@link AccountAuthenticatorResponse} as {@link AccountManager#KEY_ACCOUNT_MANAGER_RESPONSE}. 174 Log.v(TAG, "addAccount: result " + AccountManager.sanitizeResult(result)); 199 + AccountManager.sanitizeResult(result)); 219 result.putString(AccountManager.KEY_AUTH_TOKEN_LABEL, 226 + AccountManager.sanitizeResult(result)); 251 Log.v(TAG, "getAuthToken: result " + AccountManager.sanitizeResult(result)); 280 + AccountManager.sanitizeResult(result)) [all...] |
/packages/apps/Email/provider_src/com/android/email/service/ |
AuthenticatorService.java | 26 import android.accounts.AccountManager; 39 * with addAccount, it simply adds the account to AccountManager directly with a username and 72 AccountManager.get(AuthenticatorService.this).addAccountExplicitly( 103 b.putString(AccountManager.KEY_ACCOUNT_NAME, options.getString(OPTIONS_USERNAME)); 104 b.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType); 114 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); 115 b.putParcelable(AccountManager.KEY_INTENT, intent); 159 if (AccountManager.ACTION_AUTHENTICATOR_INTENT.equals(intent.getAction())) {
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
AccountManagerTest.java | 17 import android.accounts.AccountManager; 27 private AccountManager accountManager; 36 accountManager = AccountManager.get(activity); 37 accountManager.invalidateAuthToken(null, null); 46 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null); 56 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null); 66 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null); 76 accountManager.invalidateAuthToken(accountType, null) [all...] |
/cts/hostsidetests/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/ |
InvalidSyncAuthoritiesDeviceTest.java | 23 import android.accounts.AccountManager; 45 private AccountManager mAccountManager; 50 mAccountManager = context.getSystemService(AccountManager.class);
|
StubAuthenticator.java | 22 import android.accounts.AccountManager; 60 result.putString(AccountManager.KEY_ERROR_MESSAGE, "Unsupported operation"); 99 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
|
/development/samples/DeviceAdminWhitelistedAccount/src/com/example/android/app/admin/whitelistedaccount/ |
MyAuthenticator.java | 22 import android.accounts.AccountManager; 50 final AccountManager am = AccountManager.get(context); 118 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, hasAll);
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
AccountAuthenticatorCache.java | 19 import android.accounts.AccountManager; 51 super(context, AccountManager.ACTION_AUTHENTICATOR_INTENT, 52 AccountManager.AUTHENTICATOR_META_DATA_NAME, 53 AccountManager.AUTHENTICATOR_ATTRIBUTES_NAME, sSerializer);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
AccountManagerServiceTest.java | 33 import android.accounts.AccountManager; 443 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString()); 450 AccountManager.ERROR_CODE_USER_RESTRICTED); 476 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString()); 498 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString()); 505 AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE); 533 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString()); 559 Bundle sessionBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE); 564 assertNull(result.getString(AccountManager.KEY_PASSWORD)); 565 assertNull(result.getString(AccountManager.KEY_AUTHTOKEN, null)) [all...] |
/external/nist-sip/java/gov/nist/javax/sip/ |
SipStackExt.java | 4 import gov.nist.javax.sip.clientauthutils.AccountManager; 58 * @param accountManager -- account manager (for fetching credentials). 66 public AuthenticationHelper getAuthenticationHelper(AccountManager accountManager, 73 * @param accountManager -- account manager (for fetching credentials). 81 public AuthenticationHelper getSecureAuthenticationHelper(SecureAccountManager accountManager,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
AccountUtils.java | 20 import android.accounts.AccountManager; 34 return AccountManager.get(context).getAccounts();
|
/cts/hostsidetests/content/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/ |
CtsSyncAccountAccessSameCertTestCases.java | 22 import android.accounts.AccountManager; 81 AccountManager accountManager = getContext().getSystemService(AccountManager.class); 82 Bundle result = accountManager.addAccount("com.stub", null, null, null, activity, 86 result.getString(AccountManager.KEY_ACCOUNT_NAME), 87 result.getString(AccountManager.KEY_ACCOUNT_TYPE)); 113 accountManager.removeAccount(addedAccount, activity, null, null);
|
/development/apps/PushApiTestAppOne/src/com/example/android/pushapithirdpartyone/ |
MainActivity.java | 20 import android.accounts.AccountManager; 46 private static AccountManager am; 53 am = AccountManager.get(getApplicationContext()); 101 Intent intent = AccountManager.newChooseAccountIntent(null, null, null, null, null, 119 Toast.makeText(this, data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE),
|