/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | TestAccountType1Authenticator.java | 21 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 …]
|
D | AccountManagerServiceTest.java | 33 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 …]
|
D | TestAccountType2Authenticator.java | 21 import android.accounts.AccountManager;
|
/frameworks/base/core/java/android/accounts/ |
D | AbstractAccountAuthenticator.java | 174 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 …]
|
D | ChooseTypeAndAccountActivity.java | 199 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 …]
|
D | GrantCredentialsPermissionActivity.java | 111 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()
|
D | ChooseAccountActivity.java | 58 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()
|
D | AccountAuthenticatorActivity.java | 59 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE); in onCreate() 75 mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, in finish()
|
D | ChooseAccountTypeActivity.java | 89 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()
|
D | AccountAuthenticatorResponse.java | 49 + AccountManager.sanitizeResult(result)); in onResult()
|
D | AccountManager.java | 166 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/ |
D | AccountManagerService.java | 24 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 …]
|
D | AccountAuthenticatorCache.java | 19 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()
|
D | AccountManagerBackupHelper.java | 20 import android.accounts.AccountManager; 137 AccountManager.ACCOUNT_ACCESS_TOKEN_TYPE, uid); in apply()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
D | AuthenticatorHelper.java | 20 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/ |
D | ConfirmUserCreationActivity.java | 20 import android.accounts.AccountManager; 106 && (AccountManager.get(this).someUserHasAccount(account) in checkUserCreationRequirements()
|
/frameworks/base/test-runner/src/android/test/ |
D | IsolatedContext.java | 21 import android.accounts.AccountManager; 127 private class MockAccountManager extends AccountManager {
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportProgressServiceTest.java | 28 import android.accounts.AccountManager; 62 public AccountManager accountManager; 85 if (AccountManager.class.equals(serviceClass)) { in getSystemServiceName()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | AccountSyncSettingsBackupHelper.java | 20 import android.accounts.AccountManager; 83 private AccountManager mAccountManager; 87 mAccountManager = AccountManager.get(mContext); in AccountSyncSettingsBackupHelper()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | SuggestionParser.java | 20 import android.accounts.AccountManager; 254 AccountManager accountManager = AccountManager.get(mContext); in satisfiesRequiredAccount()
|
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 19 import android.accounts.AccountManager; 497 final AccountManager am = in checkAccountSignIn() 498 (AccountManager) getInstrumentation().getTargetContext().getSystemService( in checkAccountSignIn()
|
/frameworks/base/core/java/android/app/ |
D | SystemServiceRegistry.java | 19 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/ |
D | DpmMockContext.java | 20 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/ |
D | SipHelper.java | 20 import gov.nist.javax.sip.clientauthutils.AccountManager; 256 AccountManager accountManager) throws SipException { in handleChallenge()
|
/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminReceiver.java | 19 import android.accounts.AccountManager;
|