/external/nist-sip/java/gov/nist/javax/sip/clientauthutils/ |
AccountManager.java | 5 public interface AccountManager {
|
/frameworks/volley/src/com/android/volley/toolbox/ |
AndroidAuthenticator.java | 22 import android.accounts.AccountManager; 29 * An Authenticator that uses {@link AccountManager} to get auth 40 * @param context Context for accessing AccountManager 42 * @param authTokenType Auth token type passed to AccountManager 50 * @param context Context for accessing AccountManager 52 * @param authTokenType Auth token type passed to AccountManager 72 final AccountManager accountManager = AccountManager.get(mContext); 73 AccountManagerFuture<Bundle> future = accountManager.getAuthToken(mAccount [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
AccountManagerTest.java | 21 import android.accounts.AccountManager; 31 private AccountManager mAccountManager; 36 mAccountManager = AccountManager.get(getContext()); 41 * Verifies that AccountManager.getAccounts() requires Permission. 49 fail("AccountManager.getAccounts() did not throw SecurityException as expected"); 56 * Verifies that AccountManager.getAccountsByType() requires Permission. 64 fail("AccountManager.getAccountsByType() did not throw SecurityException as expected"); 71 * Verifies that AccountManager.getAccountsByTypeAndFeatures() requires 80 fail("AccountManager.getAccountsByTypeAndFeatures() did not throw SecurityException as expected");
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
Authenticator.java | 25 import android.accounts.AccountManager; 41 * SyncAdapter calls AccountManager.blockingGetAuthToken(). When we get called, 68 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); 70 bundle.putParcelable(AccountManager.KEY_INTENT, intent); 96 result.putString(AccountManager.KEY_ERROR_MESSAGE, "invalid authTokenType"); 102 final AccountManager am = AccountManager.get(mContext); 108 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 109 result.putString(AccountManager.KEY_ACCOUNT_TYPE, Constants.ACCOUNT_TYPE); 110 result.putString(AccountManager.KEY_AUTHTOKEN, authToken) [all...] |
/cts/tests/src/android/content/cts/ |
MockAccountAuthenticator.java | 22 import android.accounts.AccountManager; 42 result.putString(AccountManager.KEY_ACCOUNT_NAME, ACCOUNT_NAME); 43 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); 44 result.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN); 72 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true); 92 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/ |
StaticAccountAuthenticator.java | 22 import android.accounts.AccountManager; 44 sAccountBundle.putString(AccountManager.KEY_ACCOUNT_NAME, NAME); 45 sAccountBundle.putString(AccountManager.KEY_ACCOUNT_TYPE, TYPE); 46 sAccountBundle.putString(AccountManager.KEY_AUTHTOKEN, TOKEN); 73 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true); 98 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false);
|
/frameworks/base/core/java/android/accounts/ |
AccountAuthenticatorActivity.java | 29 * intent.putExtra({@link AccountManager#KEY_ACCOUNT_AUTHENTICATOR_RESPONSE}, response); 34 * is never set or if it is set to null then error {@link AccountManager#ERROR_CODE_CANCELED} 60 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE); 76 mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED,
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/ |
TestAuthenticator.java | 22 import android.accounts.AccountManager; 70 AccountManager.get(mContext).addAccountExplicitly(account, PASSWORD, null); 73 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 74 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); 86 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 87 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); 88 bundle.putString(AccountManager.KEY_AUTHTOKEN, account.name); 121 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false);
|
TestSyncAdapter.java | 19 import android.accounts.AccountManager; 35 private final AccountManager mAccountManager; 42 mAccountManager = AccountManager.get(mContext);
|
/packages/apps/Email/src/com/android/email/service/ |
EasTestAuthenticatorService.java | 22 import android.accounts.AccountManager; 33 * Anauthenticator service for reconciliation tests; it simply adds the account to AccountManager 58 AccountManager.get(EasTestAuthenticatorService.this).addAccountExplicitly( 62 b.putString(AccountManager.KEY_ACCOUNT_NAME, TEST_ACCOUNT_TYPE); 72 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); 73 b.putParcelable(AccountManager.KEY_INTENT, intent); 117 if (AccountManager.ACTION_AUTHENTICATOR_INTENT.equals(intent.getAction())) {
|
AuthenticatorService.java | 25 import android.accounts.AccountManager; 38 * with addAccount, it simply adds the account to AccountManager directly with a username and 66 AccountManager.get(AuthenticatorService.this).addAccountExplicitly( 97 b.putString(AccountManager.KEY_ACCOUNT_NAME, options.getString(OPTIONS_USERNAME)); 98 b.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType); 108 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); 109 b.putParcelable(AccountManager.KEY_INTENT, intent); 153 if (AccountManager.ACTION_AUTHENTICATOR_INTENT.equals(intent.getAction())) {
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/ |
AutoLoginAccountDelegate.java | 8 import android.accounts.AccountManager; 25 private final AccountManager mAccountManager; 34 mAccountManager = AccountManager.get(activity); 76 result = value.getResult().getString(AccountManager.KEY_AUTHTOKEN);
|
/developers/build/prebuilts/gradle/BasicSyncAdapter/BasicSyncAdapterSample/src/main/java/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)) {
|
/developers/samples/android/connectivity/sync/BasicSyncAdapter/BasicSyncAdapterSample/src/main/java/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)) {
|
/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)) {
|
/external/robolectric/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...] |
/cts/tests/tests/accounts/src/android/accounts/cts/ |
MockAccountAuthenticator.java | 22 import android.accounts.AccountManager; 94 result.putString(AccountManager.KEY_ACCOUNT_NAME, AccountManagerTest.ACCOUNT_NAME); 95 result.putString(AccountManager.KEY_ACCOUNT_TYPE, AccountManagerTest.ACCOUNT_TYPE); 96 result.putString(AccountManager.KEY_AUTHTOKEN, AccountManagerTest.AUTH_TOKEN); 159 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true); 202 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true); 212 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, booleanResult);
|
/external/robolectric/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...] |
/frameworks/base/services/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);
|
/packages/apps/Browser/src/com/android/browser/ |
DeviceAccountLogin.java | 20 import android.accounts.AccountManager; 34 private final AccountManager mAccountManager; 56 mAccountManager = AccountManager.get(activity); 86 AccountManager.KEY_AUTHTOKEN);
|
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
Chromoting.java | 8 import android.accounts.AccountManager; 113 AccountManager.get(this).getAuthToken(mAccount, TOKEN_SCOPE, null, this, 121 AccountManager.get(this).getAuthTokenByFeatures( 148 Account[] usableAccounts = AccountManager.get(this).getAccountsByType(ACCOUNT_TYPE); 171 AccountManager.get(this).getAuthTokenByFeatures( 184 AccountManager.get(this).getAuthToken(mAccount, TOKEN_SCOPE, null, this, 219 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME); 220 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE); 221 String authToken = result.getString(AccountManager.KEY_AUTHTOKEN); 269 AccountManager authenticator = AccountManager.get(mUi) [all...] |
/external/chromium_org/chrome/android/testshell/java/src/org/chromium/chrome/testshell/signin/ |
AccountsChangedReceiver.java | 8 import android.accounts.AccountManager; 29 if (AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION.equals(intent.getAction())) {
|
/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/apps/Exchange/src/com/android/exchange/ |
ExchangeBroadcastReceiver.java | 6 import android.accounts.AccountManager; 24 final Account[] accounts = AccountManager.get(context)
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
AccountUtils.java | 20 import android.accounts.AccountManager; 34 return AccountManager.get(context).getAccounts();
|