HomeSort by relevance Sort by last modified time
    Searched full:accountmanager (Results 1 - 25 of 219) sorted by null

1 2 3 4 5 6 7 8 9

  /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/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");
  /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/
AbstractAccountAuthenticator.java 36 * with an intent with action {@link AccountManager#ACTION_AUTHENTICATOR_INTENT}. This service
57 * string that user will use when making calls on the {@link AccountManager} and it also
87 * {@link AccountManager#KEY_INTENT}.
90 * the {@link AccountAuthenticatorResponse} as {@link AccountManager#KEY_ACCOUNT_MANAGER_RESPONSE}.
133 Log.v(TAG, "addAccount: result " + AccountManager.sanitizeResult(result));
155 + AccountManager.sanitizeResult(result));
174 result.putString(AccountManager.KEY_AUTH_TOKEN_LABEL,
179 + AccountManager.sanitizeResult(result));
201 Log.v(TAG, "getAuthToken: result " + AccountManager.sanitizeResult(result));
226 + AccountManager.sanitizeResult(result))
    [all...]
OnAccountsUpdateListener.java 20 * An interface that contains the callback used by the AccountManager
24 * This invoked when the AccountManager starts up and whenever the account
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,
ChooseTypeAndAccountActivity.java 66 * This is passed as the addAccountOptions parameter in AccountManager.addAccount()
72 * This is passed as the requiredFeatures parameter in AccountManager.addAccount()
79 * This is passed as the authTokenType string in AccountManager.addAccount()
197 final AccountManager accountManager = AccountManager.get(this);
199 mAccounts = getAcceptableAccountChoices(accountManager);
314 String accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE);
327 accountName = data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);
328 accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE)
    [all...]
ChooseAccountActivity.java 43 private static final String TAG = "AccountManager";
56 mAccounts = getIntent().getParcelableArrayExtra(AccountManager.KEY_ACCOUNTS);
58 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_MANAGER_RESPONSE);
92 for(AuthenticatorDescription desc : AccountManager.get(this).getAuthenticatorTypes()) {
123 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
124 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
134 mAccountManagerResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled");
  /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...]
  /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);
  /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...]
  /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);
71 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
72 b.putParcelable(AccountManager.KEY_INTENT, intent);
116 if (AccountManager.ACTION_AUTHENTICATOR_INTENT.equals(intent.getAction())) {
EasAuthenticatorService.java 27 import android.accounts.AccountManager;
39 * with addAccount, it simply adds the account to AccountManager directly with a username and
68 AccountManager.get(EasAuthenticatorService.this).addAccountExplicitly(
103 b.putString(AccountManager.KEY_ACCOUNT_NAME, options.getString(OPTIONS_USERNAME));
104 b.putString(AccountManager.KEY_ACCOUNT_TYPE, AccountManagerTypes.TYPE_EXCHANGE);
113 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
114 b.putParcelable(AccountManager.KEY_INTENT, intent);
158 if (AccountManager.ACTION_AUTHENTICATOR_INTENT.equals(intent.getAction())) {
PopImapAuthenticatorService.java 27 import android.accounts.AccountManager;
39 * with addAccount, it simply adds the account to AccountManager directly with a username and
66 AccountManager.get(PopImapAuthenticatorService.this).addAccountExplicitly(
81 b.putString(AccountManager.KEY_ACCOUNT_NAME, options.getString(OPTIONS_USERNAME));
82 b.putString(AccountManager.KEY_ACCOUNT_TYPE, AccountManagerTypes.TYPE_POP_IMAP);
91 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
92 b.putParcelable(AccountManager.KEY_INTENT, intent);
136 if (AccountManager.ACTION_AUTHENTICATOR_INTENT.equals(intent.getAction())) {
  /packages/apps/Email/src/com/android/email/provider/
AccountReconciler.java 19 import android.accounts.AccountManager;
35 // AccountManager accounts with a name beginning with this constant are ignored for purposes
61 * AccountManager. If there are any orphans (an account in one list without a corresponding
65 * incomplete integration with AccountManager.
99 // AccountManager account
118 // This account has been deleted in the AccountManager!
120 "Account deleted in AccountManager; deleting from provider: " +
127 // Now, look through AccountManager accounts to make sure we have a corresponding cached EAS
146 "Account deleted from provider; deleting from AccountManager: " +
149 AccountManagerFuture<Boolean> blockingResult = AccountManager.get(context
    [all...]
  /frameworks/base/docs/html/training/id-auth/
identify.jd 16 <li><a href="#ForYou">Determine if AccountManager for You</a></li>
19 <li><a href="#TaskFive">Query AccountManager for a List of Accounts</a></li>
33 <p>For many applications, the answer is the {@link android.accounts.AccountManager} APIs. With the
44 <h2 id="ForYou">Determine if AccountManager for You</h2>
50 <li>Retrieve a built-in account from {@link android.accounts.AccountManager}</li>
74 When you query {@link android.accounts.AccountManager} for account names, you can choose to filter
97 <h2 id="TaskFive">Query AccountManager for a List of Accounts</h2>
100 type. Get an instance of {@link android.accounts.AccountManager} by calling {@link
101 android.accounts.AccountManager#get(android.content.Context) AccountManager.get()}. Then use tha
    [all...]
authenticate.jd 96 android.accounts.AccountManager#getAuthToken AccountManager.getAuthToken()} to get the
99 <p>Watch out! Calling methods on {@link android.accounts.AccountManager} can be tricky! Since
101 android.accounts.AccountManager} methods are asynchronous. This means that instead of doing all of
105 AccountManager am = AccountManager.get(this);
118 {@link android.accounts.AccountManagerCallback}. {@link android.accounts.AccountManager} calls
134 // is stored in the constant AccountManager.KEY_AUTHTOKEN.
135 token = bundle.getString(AccountManager.KEY_AUTHTOKEN);
142 android.accounts.AccountManager#KEY_AUTHTOKEN} key and you're off to the races. Things don'
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/clientauthutils/
AccountManager.java 5 public interface AccountManager {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
AccountUtils.java 20 import android.accounts.AccountManager;
33 return AccountManager.get(context).getAccounts();
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
SelectAccountDialogFragment.java 20 import android.accounts.AccountManager;
46 AccountManager accountManager = AccountManager.get(getActivity());
47 Account[] accounts = accountManager.getAccounts();
  /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);
  /frameworks/base/docs/html/sdk/api_diff/11/changes/
android.accounts.AccountManager.html 10 android.accounts.AccountManager
74 Class android.accounts.<A HREF="../../../../reference/android/accounts/AccountManager.html" target="_top"><font size="+2"><code>AccountManager</code></font></A>
87 <A NAME="android.accounts.AccountManager.KEY_CALLER_PID"></A>
88 <nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/accounts/AccountManager.html#KEY_CALLER_PID" target="_top"><code>KEY_CALLER_PID</code></A></nobr>
94 <A NAME="android.accounts.AccountManager.KEY_CALLER_UID"></A>
95 <nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/accounts/AccountManager.html#KEY_CALLER_UID" target="_top"><code>KEY_CALLER_UID</code></A></nobr>
  /packages/apps/Contacts/src/com/android/contacts/util/
AccountPromptUtils.java 19 import android.accounts.AccountManager;
48 * The following intent keys are understood by the {@link AccountManager} and should not be
63 * account type is not available from the {@link AccountManager}.
67 // {@link AccountManager} to show a similar account prompt
68 // (see {@link AccountManager#addAccount()} in {@link #launchAccountPrompt()}
71 AccountManager.get(context).getAuthenticatorTypes();
99 AccountManager.get(activity).addAccount(GoogleAccountType.ACCOUNT_TYPE, null, null, options,

Completed in 564 milliseconds

1 2 3 4 5 6 7 8 9