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

1 2 3 4 5 6 7 8 910

  /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 67 * This is passed as the addAccountOptions parameter in AccountManager.addAccount()
73 * This is passed as the requiredFeatures parameter in AccountManager.addAccount()
80 * This is passed as the authTokenType string in AccountManager.addAccount()
196 mAccounts = getAcceptableAccountChoices(AccountManager.get(this));
211 final AccountManager accountManager = AccountManager.get(this);
213 mAccounts = getAcceptableAccountChoices(accountManager);
323 String accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE);
336 accountName = data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME)
    [all...]
  /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);
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())) {
  /frameworks/base/docs/html/training/id-auth/
identify.jd 16 <li><a href="#ForYou">Determine if AccountManager is 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 is 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/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);
  /external/nist-sip/java/gov/nist/javax/sip/clientauthutils/
AccountManager.java 5 public interface AccountManager {
  /packages/apps/Exchange/src/com/android/exchange/
ExchangeBroadcastReceiver.java 6 import android.accounts.AccountManager;
24 final Account[] accounts = AccountManager.get(context)
  /external/chromium_org/sync/android/java/src/org/chromium/sync/signin/
AccountManagerHelper.java 9 import android.accounts.AccountManager;
35 * AccountManagerHelper wraps our access of AccountManager in Android.
57 * Invoked on the UI thread once a token has been provided by the AccountManager.
66 * @param accountManager the account manager to use as a backend service
69 AccountManagerDelegate accountManager) {
71 mAccountManager = accountManager;
77 * It is possible to override the AccountManager to use in tests for the instance of the
96 AccountManagerDelegate accountManager) {
98 sAccountManagerHelper = new AccountManagerHelper(context, accountManager);
223 if (result.containsKey(AccountManager.KEY_INTENT))
    [all...]
  /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)) {
  /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();
  /packages/apps/Email/src/com/android/email/provider/
AccountReconciler.java 19 import android.accounts.AccountManager;
45 * Get all AccountManager accounts for all email types.
50 final AccountManager am = AccountManager.get(context);
89 * AccountManager. If there are any orphans (an account in one list without a corresponding
93 * incomplete integration with AccountManager.
107 * Check if the AccountManager accounts list contains a specific account.
154 // AccountManager account
174 // This account has been deleted in the AccountManager!
176 "Account deleted in AccountManager; deleting from provider: "
    [all...]

Completed in 382 milliseconds

1 2 3 4 5 6 7 8 910