Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DTestAccountType1Authenticator.java21 import android.accounts.AccountManager;
49 result.putString(AccountManager.KEY_ACCOUNT_NAME, in editProperties()
51 result.putString(AccountManager.KEY_ACCOUNT_TYPE, in editProperties()
54 AccountManager.KEY_AUTHTOKEN, in editProperties()
78 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
79 result.putString(AccountManager.KEY_ACCOUNT_TYPE, mAccountType); in addAccount()
80 result.putString(AccountManager.KEY_AUTHTOKEN, in addAccount()
87 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
88 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_TYPE, accountType); in addAccount()
94 result.putParcelable(AccountManager.KEY_INTENT, intent); in addAccount()
[all …]
DAccountManagerServiceTest.java33 import android.accounts.AccountManager;
443 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString()); in testStartAddAccountSessionUserCannotModifyAccountNoDPM()
450 AccountManager.ERROR_CODE_USER_RESTRICTED); in testStartAddAccountSessionUserCannotModifyAccountNoDPM()
476 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString()); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
498 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString()); in testStartAddAccountSessionUserCannotModifyAccountForTypeNoDPM()
505 AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE); in testStartAddAccountSessionUserCannotModifyAccountForTypeNoDPM()
533 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString()); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
559 Bundle sessionBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE); in testStartAddAccountSessionSuccessWithoutPasswordForwarding()
564 assertNull(result.getString(AccountManager.KEY_PASSWORD)); in testStartAddAccountSessionSuccessWithoutPasswordForwarding()
565 assertNull(result.getString(AccountManager.KEY_AUTHTOKEN, null)); in testStartAddAccountSessionSuccessWithoutPasswordForwarding()
[all …]
DTestAccountType2Authenticator.java21 import android.accounts.AccountManager;
/frameworks/base/core/java/android/accounts/
DAbstractAccountAuthenticator.java174 Log.v(TAG, "addAccount: result " + AccountManager.sanitizeResult(result)); in addAccount()
199 + AccountManager.sanitizeResult(result)); in confirmCredentials()
219 result.putString(AccountManager.KEY_AUTH_TOKEN_LABEL, in getAuthTokenLabel()
226 + AccountManager.sanitizeResult(result)); in getAuthTokenLabel()
251 Log.v(TAG, "getAuthToken: result " + AccountManager.sanitizeResult(result)); in getAuthToken()
280 + AccountManager.sanitizeResult(result)); in updateCredentials()
390 + AccountManager.sanitizeResult(result)); in startAddAccountSession()
426 + AccountManager.sanitizeResult(result)); in startUpdateCredentialsSession()
455 Log.v(TAG, "finishSession: result " + AccountManager.sanitizeResult(result)); in finishSession()
491 response.onError(AccountManager.ERROR_CODE_NETWORK_ERROR, e.getMessage()); in handleException()
[all …]
DChooseTypeAndAccountActivity.java199 mAccounts = getAcceptableAccountChoices(AccountManager.get(this)); in onCreate()
208 if (AccountManager.VISIBILITY_NOT_VISIBLE != entry.getValue()) { in onCreate()
333 String accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult()
346 accountName = data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME); in onActivityResult()
347 accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult()
352 Account[] currentAccounts = AccountManager.get(this).getAccountsForPackage( in onActivityResult()
393 AccountManager.get(this).addAccount(type, authTokenType, requiredFeatures, in runAddAccountForAuthenticator()
402 AccountManager.KEY_INTENT); in run()
405 mExistingAccounts = AccountManager.get(this).getAccountsForPackage(mCallingPackage, in run()
419 bundle.putString(AccountManager.KEY_ERROR_MESSAGE, "error communicating with server"); in run()
[all …]
DGrantCredentialsPermissionActivity.java111 if (!AccountManager.ACCOUNT_ACCESS_TOKEN_TYPE.equals(mAuthTokenType)) { in onCreate()
112 AccountManager.get(this).getAuthTokenLabel(mAccount.type, in onCreate()
137 AccountManager.get(this).getAuthenticatorTypes(); in getAccountLabel()
162 AccountManager.get(this).updateAppPermission(mAccount, mAuthTokenType, mUid, true); in onClick()
170 AccountManager.get(this).updateAppPermission(mAccount, mAuthTokenType, mUid, false); in onClick()
193 response.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); in finish()
DChooseAccountActivity.java58 mAccounts = getIntent().getParcelableArrayExtra(AccountManager.KEY_ACCOUNTS); in onCreate()
60 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_MANAGER_RESPONSE); in onCreate()
94 for(AuthenticatorDescription desc : AccountManager.get(this).getAuthenticatorTypes()) { in getAuthDescriptions()
125 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in onListItemClick()
126 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in onListItemClick()
136 mAccountManagerResponse.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.java166 public class AccountManager { class
404 public AccountManager(Context context, IAccountManager service) { in AccountManager() method in AccountManager
413 public AccountManager(Context context, IAccountManager service, Handler handler) { in AccountManager() method in AccountManager
448 public static AccountManager get(Context context) { in get()
450 return (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE); in get()
2560 accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
2561 accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE);
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java24 import android.accounts.AccountManager;
191 ACCOUNTS_CHANGED_INTENT = new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION);
425 AccountManager.ACCOUNT_ACCESS_TOKEN_TYPE, uid), packageName, in cancelAccountAccessRequestNotificationIfNeeded()
582 if (AccountManager.PACKAGE_NAME_KEY_LEGACY_VISIBLE.equals(packageName)) { in getAccountVisibility()
584 if (AccountManager.VISIBILITY_UNDEFINED != visibility) { in getAccountVisibility()
587 return AccountManager.VISIBILITY_USER_MANAGED_VISIBLE; in getAccountVisibility()
590 if (AccountManager.PACKAGE_NAME_KEY_LEGACY_NOT_VISIBLE.equals(packageName)) { in getAccountVisibility()
592 if (AccountManager.VISIBILITY_UNDEFINED != visibility) { in getAccountVisibility()
595 return AccountManager.VISIBILITY_USER_MANAGED_NOT_VISIBLE; in getAccountVisibility()
620 return visibility != null ? visibility : AccountManager.VISIBILITY_UNDEFINED; in getAccountVisibilityFromCache()
[all …]
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()
DAccountManagerBackupHelper.java20 import android.accounts.AccountManager;
137 AccountManager.ACCOUNT_ACCESS_TOKEN_TYPE, uid); in apply()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/
DAuthenticatorHelper.java20 import android.accounts.AccountManager;
176 AuthenticatorDescription[] authDescs = AccountManager.get(context) in updateAuthDescriptions()
204 accounts = AccountManager.get(mContext).getAccountsAsUser(mUserHandle.getIdentifier()); in onAccountsUpdated()
223 final Account[] accounts = AccountManager.get(mContext) in onReceive()
231 intentFilter.addAction(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION); in listenToAccountUpdates()
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java20 import android.accounts.AccountManager;
106 && (AccountManager.get(this).someUserHasAccount(account) in checkUserCreationRequirements()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java21 import android.accounts.AccountManager;
127 private class MockAccountManager extends AccountManager {
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportProgressServiceTest.java28 import android.accounts.AccountManager;
62 public AccountManager accountManager;
85 if (AccountManager.class.equals(serviceClass)) { in getSystemServiceName()
/frameworks/base/core/java/com/android/server/backup/
DAccountSyncSettingsBackupHelper.java20 import android.accounts.AccountManager;
83 private AccountManager mAccountManager;
87 mAccountManager = AccountManager.get(mContext); in AccountSyncSettingsBackupHelper()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DSuggestionParser.java20 import android.accounts.AccountManager;
254 AccountManager accountManager = AccountManager.get(mContext); in satisfiesRequiredAccount()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java19 import android.accounts.AccountManager;
497 final AccountManager am = in checkAccountSignIn()
498 (AccountManager) getInstrumentation().getTargetContext().getSystemService( in checkAccountSignIn()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java19 import android.accounts.AccountManager;
184 registerService(Context.ACCOUNT_SERVICE, AccountManager.class, in registerService()
185 new CachedServiceFetcher<AccountManager>() { in registerService()
187 public AccountManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
190 return new AccountManager(ctx, service); in registerService()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java20 import android.accounts.AccountManager;
306 public final AccountManager accountManager;
408 accountManager = mock(AccountManager.class); in DpmMockContext()
/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()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java19 import android.accounts.AccountManager;

12