HomeSort by relevance Sort by last modified time
    Searched refs:AccountManager (Results 1 - 25 of 176) sorted by null

1 2 3 4 5 6 7 8

  /packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
ShadowAccountManager.java 19 import android.accounts.AccountManager;
25 @Implements(AccountManager.class)
  /frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
TestAccountType1Authenticator.java 21 import android.accounts.AccountManager;
49 result.putString(AccountManager.KEY_ACCOUNT_NAME,
51 result.putString(AccountManager.KEY_ACCOUNT_TYPE,
54 AccountManager.KEY_AUTHTOKEN,
78 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName);
79 result.putString(AccountManager.KEY_ACCOUNT_TYPE, mAccountType);
80 result.putString(AccountManager.KEY_AUTHTOKEN,
87 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_NAME, accountName);
88 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_TYPE, accountType);
94 result.putParcelable(AccountManager.KEY_INTENT, intent)
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/clientauthutils/
AccountManager.java 5 public interface AccountManager {
  /cts/tests/tests/accounts/common/src/android/accounts/cts/common/
TestAccountAuthenticator.java 22 import android.accounts.AccountManager;
79 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName);
80 result.putString(AccountManager.KEY_ACCOUNT_TYPE, mAccountType);
84 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_NAME, accountName);
85 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_TYPE, accountType);
91 result.putParcelable(AccountManager.KEY_INTENT, intent);
122 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
123 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
124 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
128 eventualActivityResultData.putExtra(AccountManager.KEY_BOOLEAN_RESULT, true)
    [all...]
  /external/volley/src/main/java/com/android/volley/toolbox/
AndroidAuthenticator.java 22 import android.accounts.AccountManager;
30 * An Authenticator that uses {@link AccountManager} to get auth
36 private final AccountManager mAccountManager;
43 * @param context Context for accessing AccountManager
45 * @param authTokenType Auth token type passed to AccountManager
53 * @param context Context for accessing AccountManager
55 * @param authTokenType Auth token type passed to AccountManager
60 this(AccountManager.get(context), account, authTokenType, notifyAuthFailure);
63 // Visible for testing. Allows injection of a mock AccountManager.
64 AndroidAuthenticator(AccountManager accountManager, Account account
    [all...]
  /cts/tests/tests/accounts/src/android/accounts/cts/
MockAccountAuthenticator.java 22 import android.accounts.AccountManager;
137 AccountManager am = AccountManager.get(mContext);
142 AccountManager am = AccountManager.get(mContext);
148 result.putString(AccountManager.KEY_ACCOUNT_NAME, AccountManagerTest.ACCOUNT_NAME);
149 result.putString(AccountManager.KEY_ACCOUNT_TYPE, AccountManagerTest.ACCOUNT_TYPE);
151 AccountManager.KEY_AUTHTOKEN,
168 AccountManager am = AccountManager.get(mContext)
    [all...]
AbstractAuthenticatorTests.java 20 import android.accounts.AccountManager;
37 * Tests for AccountManager and AbstractAccountAuthenticator. This is to test
50 private AccountManager mAccountManager;
56 mAccountManager = AccountManager.get(getContext());
88 assertNull(result.get(AccountManager.KEY_AUTHTOKEN));
94 Bundle sessionBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE);
98 assertNull(sessionBundle.getString(AccountManager.KEY_ACCOUNT_TYPE));
125 assertNull(result.get(AccountManager.KEY_AUTHTOKEN));
131 Bundle sessionBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE);
165 Bundle escrowBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE)
    [all...]
AccountRemovalDummyActivity.java 20 import android.accounts.AccountManager;
45 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
  /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/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
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);
71 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
91 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
AccountUtilsTest.java 20 import android.accounts.AccountManager;
44 private AccountManager mAccountManager;
49 mAccountManager = (AccountManager) mContext.getSystemService(Context.ACCOUNT_SERVICE);
  /cts/tests/tests/content/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;
42 sAccountBundle.putString(AccountManager.KEY_ACCOUNT_NAME, NAME);
43 sAccountBundle.putString(AccountManager.KEY_ACCOUNT_TYPE, TYPE);
44 sAccountBundle.putString(AccountManager.KEY_AUTHTOKEN, TOKEN);
71 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
96 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false);
  /cts/hostsidetests/content/test-apps/SyncAccountAccessStubs/src/com/android/cts/stub/
StubAuthenticator.java 22 import android.accounts.AccountManager;
61 AccountManager accountManager = getSystemService(AccountManager.class);
62 accountManager.addAccountExplicitly(new Account("foo", accountType), "bar", null);
65 result.putString(AccountManager.KEY_ACCOUNT_NAME, "foo");
66 result.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType);
109 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
114 AccountManager accountManager = getSystemService(AccountManager.class)
    [all...]
  /frameworks/base/core/java/android/accounts/
AccountAuthenticatorActivity.java 28 * intent.putExtra({@link AccountManager#KEY_ACCOUNT_AUTHENTICATOR_RESPONSE}, response);
33 * is never set or if it is set to null then error {@link AccountManager#ERROR_CODE_CANCELED}
59 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE);
75 mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED,
ChooseAccountActivity.java 48 private static final String TAG = "AccountManager";
62 mAccounts = getIntent().getParcelableArrayExtra(AccountManager.KEY_ACCOUNTS);
64 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_MANAGER_RESPONSE);
84 getIntent().getStringExtra(AccountManager.KEY_ANDROID_PACKAGE_NAME) != null) {
86 AccountManager.KEY_ANDROID_PACKAGE_NAME);
90 getIntent().getStringExtra(AccountManager.KEY_ANDROID_PACKAGE_NAME) != null) {
120 for(AuthenticatorDescription desc : AccountManager.get(this).getAuthenticatorTypes()) {
150 AccountManager am = AccountManager.get(this);
153 && oldVisibility == AccountManager.VISIBILITY_USER_MANAGED_NOT_VISIBLE)
    [all...]
  /cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
BatteryStatsAuthenticator.java 21 import android.accounts.AccountManager;
63 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
64 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
66 final AccountManager am = context.getSystemService(AccountManager.class);
77 final AccountManager am = context.getSystemService(AccountManager.class);
  /packages/apps/Contacts/src/com/android/contacts/model/
DeviceLocalAccountLocator.java 19 import android.accounts.AccountManager;
62 final AccountManager accountManager =
63 (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE);
65 for (Account account : accountManager.getAccounts()) {
72 return new NexusDeviceAccountLocator(accountManager);
86 private final AccountManager mAccountManager;
88 public NexusDeviceAccountLocator(AccountManager accountManager) {
89 mAccountManager = accountManager;
    [all...]
  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
AccountAuthenticator.java 22 import android.accounts.AccountManager;
48 result.putString(AccountManager.KEY_ACCOUNT_NAME, ACCOUNT_NAME);
49 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE);
50 result.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN);
57 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
65 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, value);
93 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
113 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true);
132 AccountManager.get(mContext).addAccountExplicitly(TEST_ACCOUNT, null, null);
  /packages/apps/Email/provider_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())) {
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/
TestAuthenticator.java 22 import android.accounts.AccountManager;
72 AccountManager.get(mContext).addAccountExplicitly(account, PASSWORD, null);
75 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
76 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
90 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
91 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
92 bundle.putString(AccountManager.KEY_AUTHTOKEN, account.name);
133 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/accounts/
AccountsChangedReceiverTests.java 19 import android.accounts.AccountManager;
69 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION));
82 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION));
95 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION));
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/syncadapter/
SyncUtils.java 20 import android.accounts.AccountManager;
37 AccountManager accountManager =
38 (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE);
39 if (!accountManager.addAccountExplicitly(account, null, null)) {
  /developers/build/prebuilts/gradle/BasicSyncAdapter/Application/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/Application/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)) {

Completed in 530 milliseconds

1 2 3 4 5 6 7 8