Home
last modified time | relevance | path

Searched refs:AccountManager (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/volley/src/com/android/volley/toolbox/
DAndroidAuthenticator.java22 import android.accounts.AccountManager;
74 final AccountManager accountManager = AccountManager.get(mContext); in getAuthToken()
85 if (result.containsKey(AccountManager.KEY_INTENT)) { in getAuthToken()
86 Intent intent = result.getParcelable(AccountManager.KEY_INTENT); in getAuthToken()
89 authToken = result.getString(AccountManager.KEY_AUTHTOKEN); in getAuthToken()
100 AccountManager.get(mContext).invalidateAuthToken(mAccount.type, authToken); in invalidateAuthToken()
/frameworks/base/core/java/android/accounts/
DAbstractAccountAuthenticator.java133 Log.v(TAG, "addAccount: result " + AccountManager.sanitizeResult(result)); in addAccount()
155 + AccountManager.sanitizeResult(result)); in confirmCredentials()
174 result.putString(AccountManager.KEY_AUTH_TOKEN_LABEL, in getAuthTokenLabel()
179 + AccountManager.sanitizeResult(result)); in getAuthTokenLabel()
201 Log.v(TAG, "getAuthToken: result " + AccountManager.sanitizeResult(result)); in getAuthToken()
226 + AccountManager.sanitizeResult(result)); in updateCredentials()
318 response.onError(AccountManager.ERROR_CODE_NETWORK_ERROR, e.getMessage()); in handleException()
323 response.onError(AccountManager.ERROR_CODE_UNSUPPORTED_OPERATION, in handleException()
329 response.onError(AccountManager.ERROR_CODE_BAD_ARGUMENTS, in handleException()
333 response.onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION, in handleException()
[all …]
DChooseTypeAndAccountActivity.java196 mAccounts = getAcceptableAccountChoices(AccountManager.get(this)); in onCreate()
211 final AccountManager accountManager = AccountManager.get(this); in onResume()
323 String accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult()
336 accountName = data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME); in onActivityResult()
337 accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult()
341 Account[] currentAccounts = AccountManager.get(this).getAccountsForPackage( in onActivityResult()
381 AccountManager.get(this).addAccount(type, authTokenType, requiredFeatures, in runAddAccountForAuthenticator()
390 AccountManager.KEY_INTENT); in run()
393 mExistingAccounts = AccountManager.get(this).getAccountsForPackage(mCallingPackage, in run()
407 bundle.putString(AccountManager.KEY_ERROR_MESSAGE, "error communicating with server"); in run()
[all …]
DChooseAccountActivity.java56 mAccounts = getIntent().getParcelableArrayExtra(AccountManager.KEY_ACCOUNTS); in onCreate()
58 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_MANAGER_RESPONSE); in onCreate()
92 for(AuthenticatorDescription desc : AccountManager.get(this).getAuthenticatorTypes()) { in getAuthDescriptions()
123 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in onListItemClick()
124 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in onListItemClick()
134 mAccountManagerResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); in finish()
DGrantCredentialsPermissionActivity.java112 AccountManager.get(this).getAuthTokenLabel(mAccount.type, mAuthTokenType, callback, null); in onCreate()
135 AccountManager.get(this).getAuthenticatorTypes(); in getAccountLabel()
160 AccountManager.get(this).updateAppPermission(mAccount, mAuthTokenType, mUid, true); in onClick()
168 AccountManager.get(this).updateAppPermission(mAccount, mAuthTokenType, mUid, false); in onClick()
191 response.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); in finish()
DAccountAuthenticatorActivity.java59 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE); in onCreate()
75 mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, in finish()
DChooseAccountTypeActivity.java89 bundle.putString(AccountManager.KEY_ERROR_MESSAGE, "no allowable account types"); in onCreate()
117 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, type); in setResultAndFinish()
127 for(AuthenticatorDescription desc : AccountManager.get(this).getAuthenticatorTypes()) { in buildTypeToAuthDescriptionMap()
DAccountAuthenticatorResponse.java49 + AccountManager.sanitizeResult(result)); in onResult()
DAccountManager.java144 public class AccountManager { class
252 public AccountManager(Context context, IAccountManager service) { in AccountManager() method in AccountManager
261 public AccountManager(Context context, IAccountManager service, Handler handler) { in AccountManager() method in AccountManager
296 public static AccountManager get(Context context) { in get()
298 return (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE); in get()
/frameworks/base/docs/html/training/id-auth/
Dauthenticate.jd96 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't
151 <li>An error in the device or network caused {@link android.accounts.AccountManager} to fail.</li>
166 an {@link android.content.Intent} in the {@link android.accounts.AccountManager#KEY_INTENT} key,
[all …]
Didentify.jd16 <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 that
102 instance to call {@link android.accounts.AccountManager#getAccountsByType(java.lang.String)
[all …]
Dcustom_auth.jd55 <p>Because they need to interact with the {@link android.accounts.AccountManager} system,
75 <p>It's important to understand that {@link android.accounts.AccountManager} is not an encryption
84 password to {@link android.accounts.AccountManager#addAccountExplicitly
85 AccountManager.addAccountExplicitly()}. Instead, you should store a
101 <p>In order for the {@link android.accounts.AccountManager} to work with your custom account
103 need a class that implements the interfaces that {@link android.accounts.AccountManager} expects.
Dindex.jd54 <dd>Use {@link android.accounts.AccountManager} to learn the user's account name(s).</dd>
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountAuthenticatorCache.java19 import android.accounts.AccountManager;
51 super(context, AccountManager.ACTION_AUTHENTICATOR_INTENT, in AccountAuthenticatorCache()
52 AccountManager.AUTHENTICATOR_META_DATA_NAME, in AccountAuthenticatorCache()
53 AccountManager.AUTHENTICATOR_ATTRIBUTES_NAME, sSerializer); in AccountAuthenticatorCache()
DAccountManagerService.java23 import android.accounts.AccountManager;
230 ACCOUNTS_CHANGED_INTENT = new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION);
685 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false); in copyAccountToUser()
715 && result.getBoolean(AccountManager.KEY_BOOLEAN_RESULT, false)) { in copyAccountToUser()
898 onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION, "remote exception"); in run()
908 response.onError(AccountManager.ERROR_CODE_INVALID_RESPONSE, "null bundle"); in onResult()
916 newResult.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, in onResult()
917 result.getBoolean(AccountManager.KEY_BOOLEAN_RESULT, false)); in onResult()
951 result.putString(AccountManager.KEY_ACCOUNT_NAME, resultingAccount.name); in renameAccount()
952 result.putString(AccountManager.KEY_ACCOUNT_TYPE, resultingAccount.type); in renameAccount()
[all …]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardAccountView.java19 import android.accounts.AccountManager;
223 Account[] accounts = AccountManager.get(mContext).getAccountsByTypeAsUser("com.google", in findIntendedAccount()
270 options.putString(AccountManager.KEY_PASSWORD, password); in asyncCheckPassword()
271 AccountManager.get(mContext).confirmCredentialsAsUser(account, options, null /* activity */, in asyncCheckPassword()
277 final boolean verified = result.getBoolean(AccountManager.KEY_BOOLEAN_RESULT); in asyncCheckPassword()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportReceiver.java23 import android.accounts.AccountManager;
147 final AccountManager am = (AccountManager) context.getSystemService( in findSendToAccount()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java21 import android.accounts.AccountManager;
123 private class MockAccountManager extends AccountManager {
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java19 import android.accounts.AccountManager;
246 final AccountManager am = in checkAccountSignIn()
247 (AccountManager) getInstrumentation().getTargetContext().getSystemService( in checkAccountSignIn()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java19 import android.accounts.AccountManager;
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipHelper.java20 import gov.nist.javax.sip.clientauthutils.AccountManager;
256 AccountManager accountManager) throws SipException { in handleChallenge()
DSipSessionGroup.java19 import gov.nist.javax.sip.clientauthutils.AccountManager;
1011 private AccountManager getAccountManager() { in getAccountManager()
1012 return new AccountManager() { in getAccountManager()
/frameworks/base/docs/html/google/play-services/
Dauth.jd2 page.tags=AccountManager,oauth2
49 mAccountManager = AccountManager.get(this);
/frameworks/base/docs/html/training/sync-adapters/
Dcreating-sync-adapter.jd372 by calling {@link android.accounts.AccountManager#addAccountExplicitly addAccountExplicitly()}.
412 AccountManager accountManager =
413 (AccountManager) context.getSystemService(
/frameworks/base/docs/html/google/auth/
Dhttp-auth.jd180 {@link android.accounts.AccountManager#KEY_ACCOUNT_NAME}, specifying the account name
197 mEmail = data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);
533 mEmail = data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);

12