/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
H A D | TestAccountType1Authenticator.java | 21 import android.accounts.AccountManager; 47 result.putString(AccountManager.KEY_ACCOUNT_NAME, in editProperties() 49 result.putString(AccountManager.KEY_ACCOUNT_TYPE, in editProperties() 52 AccountManager.KEY_AUTHTOKEN, in editProperties() 78 result.putString(AccountManager.KEY_AUTHTOKEN, in addAccount() 96 AccountManager.ERROR_CODE_INVALID_RESPONSE, in addAccount() 135 AccountManager.ERROR_CODE_INVALID_RESPONSE, in confirmCredentials() 287 result.putString(AccountManager.KEY_AUTHTOKEN, in startAddAccountSession() 342 result.putString(AccountManager.KEY_PASSWORD, in startUpdateCredentialsSession() 344 result.putString(AccountManager.KEY_AUTHTOKEN, in startUpdateCredentialsSession() [all …]
|
H A D | AccountManagerServiceTest.java | 37 import android.accounts.AccountManager; 505 AccountManager.ERROR_CODE_USER_RESTRICTED); in testStartAddAccountSessionUserCannotModifyAccountNoDPM() 762 options.putInt(AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_INVALID_RESPONSE); in testStartAddAccountSessionError() 763 options.putString(AccountManager.KEY_ERROR_MESSAGE, in testStartAddAccountSessionError() 946 options.putInt(AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_INVALID_RESPONSE); in testStartUpdateCredentialsSessionError() 947 options.putString(AccountManager.KEY_ERROR_MESSAGE, in testStartUpdateCredentialsSessionError() 1022 AccountManager.ERROR_CODE_USER_RESTRICTED); in testFinishSessionAsUserUserCannotModifyAccountNoDPM() 1598 AccountManager.VISIBILITY_USER_MANAGED_VISIBLE); in testGetAccountsByTypeForPackageWhenTypeIsNull() 2000 AccountManager.ERROR_CODE_USER_RESTRICTED); in testAddAccountAsUserUserCannotModifyAccountNoDPM() 3029 AccountManager.VISIBILITY_USER_MANAGED_VISIBLE); in testRegisterAccountListenerWithAddingTwoAccounts() [all …]
|
H A D | TestAccountType2Authenticator.java | 21 import android.accounts.AccountManager;
|
/aosp14/frameworks/base/core/java/android/accounts/ |
H A D | AbstractAccountAuthenticator.java | 202 + AccountManager.sanitizeResult(result)); in confirmCredentials() 224 result.putString(AccountManager.KEY_AUTH_TOKEN_LABEL, in getAuthTokenLabel() 231 + AccountManager.sanitizeResult(result)); in getAuthTokenLabel() 289 + AccountManager.sanitizeResult(result)); in updateCredentials() 721 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true); in getAccountRemovalAllowed() 928 result.putInt(AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_BAD_ARGUMENTS); in finishSession() 929 result.putString(AccountManager.KEY_ERROR_MESSAGE, in finishSession() 937 result.putInt(AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_BAD_ARGUMENTS); in finishSession() 938 result.putString(AccountManager.KEY_ERROR_MESSAGE, in finishSession() 947 result.putInt(AccountManager.KEY_ERROR_CODE, in finishSession() [all …]
|
H A D | ChooseAccountActivity.java | 63 mAccounts = getIntent().getParcelableArrayExtra(AccountManager.KEY_ACCOUNTS); in onCreate() 78 getIntent().getStringExtra(AccountManager.KEY_ANDROID_PACKAGE_NAME) != null) { in onCreate() 80 AccountManager.KEY_ANDROID_PACKAGE_NAME); in onCreate() 84 getIntent().getStringExtra(AccountManager.KEY_ANDROID_PACKAGE_NAME) != null) { in onCreate() 114 for(AuthenticatorDescription desc : AccountManager.get(this).getAuthenticatorTypes()) { in getAuthDescriptions() 144 AccountManager am = AccountManager.get(this); in onListItemClick() 147 && oldVisibility == AccountManager.VISIBILITY_USER_MANAGED_NOT_VISIBLE) { in onListItemClick() 149 AccountManager.VISIBILITY_USER_MANAGED_VISIBLE); in onListItemClick() 153 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in onListItemClick() 154 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in onListItemClick() [all …]
|
H A D | ChooseTypeAndAccountActivity.java | 193 mAccounts = getAcceptableAccountChoices(AccountManager.get(this)); in onCreate() 198 if (AccountManager.VISIBILITY_NOT_VISIBLE != entry.getValue()) { in onCreate() 343 accountName = data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME); in onActivityResult() 344 accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() 390 AccountManager.get(this).addAccount(type, authTokenType, requiredFeatures, in runAddAccountForAuthenticator() 399 AccountManager.KEY_INTENT, android.content.Intent.class); in run() 441 AccountManager.get(this).getAccountVisibility(account, mCallingPackage); in setResultAndFinish() 444 AccountManager.get(this).setAccountVisibility(account, mCallingPackage, in setResultAndFinish() 445 AccountManager.VISIBILITY_USER_MANAGED_VISIBLE); in setResultAndFinish() 455 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in setResultAndFinish() [all …]
|
H A D | GrantCredentialsPermissionActivity.java | 126 if (!AccountManager.ACCOUNT_ACCESS_TOKEN_TYPE.equals(mAuthTokenType)) { in onCreate() 127 AccountManager.get(this).getAuthTokenLabel(mAccount.type, in onCreate() 152 AccountManager.get(this).getAuthenticatorTypes(); in getAccountLabel() 177 AccountManager.get(this).updateAppPermission(mAccount, mAuthTokenType, mUid, true); in onClick() 185 AccountManager.get(this).updateAppPermission(mAccount, mAuthTokenType, mUid, false); in onClick() 208 response.onError(AccountManager.ERROR_CODE_CANCELED, "canceled"); in finish()
|
H A D | AccountAuthenticatorActivity.java | 63 …getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, android.accounts… in onCreate() 79 mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, in finish()
|
H A D | ChooseAccountTypeActivity.java | 93 bundle.putString(AccountManager.KEY_ERROR_MESSAGE, "no allowable account types"); in onCreate() 121 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, type); in setResultAndFinish() 131 for(AuthenticatorDescription desc : AccountManager.get(this).getAuthenticatorTypes()) { in buildTypeToAuthDescriptionMap()
|
H A D | AccountAuthenticatorResponse.java | 51 + AccountManager.sanitizeResult(result)); in onResult()
|
H A D | AccountManager.java | 170 public class AccountManager { class 517 public AccountManager(Context context, IAccountManager service) { in AccountManager() method in AccountManager 527 public AccountManager(Context context, IAccountManager service, Handler handler) { in AccountManager() method in AccountManager 562 public static AccountManager get(Context context) { in get() 564 return (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE); in get() 2683 accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME); 2684 accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE);
|
/aosp14/frameworks/base/services/core/java/com/android/server/accounts/ |
H A D | AccountManagerService.java | 24 import android.accounts.AccountManager; 651 return AccountManager.VISIBILITY_NOT_VISIBLE; in getAccountVisibility() 702 return AccountManager.VISIBILITY_NOT_VISIBLE; in resolveAccountVisibility() 707 return AccountManager.VISIBILITY_VISIBLE; in resolveAccountVisibility() 730 return AccountManager.VISIBILITY_VISIBLE; in resolveAccountVisibility() 910 AccountManager.invalidateLocalAccountsDataCaches(); in updateAccountVisibilityLocked() 1057 if (visibility != AccountManager.VISIBILITY_VISIBLE in shouldNotifyPackageOnAccountRemoval() 1093 + AccountManager.ACTION_ACCOUNT_REMOVED); in sendAccountRemovedBroadcast() 3627 result.remove(AccountManager.KEY_AUTHTOKEN); in onResult() 3751 AccountManager.ERROR_CODE_BAD_REQUEST, in finishSessionAsUser() [all …]
|
H A D | AccountAuthenticatorCache.java | 19 import android.accounts.AccountManager; 52 super(context, AccountManager.ACTION_AUTHENTICATOR_INTENT, in AccountAuthenticatorCache() 53 AccountManager.AUTHENTICATOR_META_DATA_NAME, in AccountAuthenticatorCache() 54 AccountManager.AUTHENTICATOR_ATTRIBUTES_NAME, sSerializer); in AccountAuthenticatorCache()
|
H A D | AccountManagerBackupHelper.java | 20 import android.accounts.AccountManager; 144 AccountManager.ACCOUNT_ACCESS_TOKEN_TYPE, uid); in apply()
|
/aosp14/frameworks/base/test-mock/src/android/test/mock/ |
H A D | MockAccountManager.java | 19 import android.accounts.AccountManager; 49 public static AccountManager newMockAccountManager(Context context) { in newMockAccountManager() 56 private static class MockAccountManagerImpl extends AccountManager {
|
/aosp14/frameworks/base/core/api/ |
H A D | system-lint-baseline.txt | 74 SamShouldBeLast: android.accounts.AccountManager#addOnAccountsUpdatedListener(android.accounts.OnAc… 76 SamShouldBeLast: android.accounts.AccountManager#addOnAccountsUpdatedListener(android.accounts.OnAc… 80 SamShouldBeLast: android.accounts.AccountManager#editProperties(String, android.app.Activity, andro… 82 SamShouldBeLast: android.accounts.AccountManager#finishSession(android.os.Bundle, android.app.Activ… 84 SamShouldBeLast: android.accounts.AccountManager#getAccountsByTypeAndFeatures(String, String[], and… 90 SamShouldBeLast: android.accounts.AccountManager#getAuthToken(android.accounts.Account, String, boo… 94 SamShouldBeLast: android.accounts.AccountManager#hasFeatures(android.accounts.Account, String[], an… 96 SamShouldBeLast: android.accounts.AccountManager#isCredentialsUpdateSuggested(android.accounts.Acco… 98 SamShouldBeLast: android.accounts.AccountManager#removeAccount(android.accounts.Account, android.ac… 100 SamShouldBeLast: android.accounts.AccountManager#removeAccount(android.accounts.Account, android.ap… [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
H A D | AuthenticatorHelper.java | 20 import android.accounts.AccountManager; 178 AuthenticatorDescription[] authDescs = AccountManager.get(context) in updateAuthDescriptions() 206 accounts = AccountManager.get(mContext).getAccountsAsUser(mUserHandle.getIdentifier()); in onAccountsUpdated() 225 final Account[] accounts = AccountManager.get(mContext) in onReceive() 233 intentFilter.addAction(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION); in listenToAccountUpdates()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/accounts/ |
H A D | AccountManagerPerfTest.java | 50 AccountManager accountManager = AccountManager.get(context); in testGetAccounts()
|
/aosp14/frameworks/base/test-runner/src/android/test/ |
H A D | IsolatedContext.java | 19 import android.accounts.AccountManager; 50 private final AccountManager mMockAccountManager;
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | ConfirmUserCreationActivity.java | 22 import android.accounts.AccountManager; 112 && (AccountManager.get(this).someUserHasAccount(account) in checkUserCreationRequirements()
|
/aosp14/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
H A D | BugreportProgressServiceTest.java | 27 import android.accounts.AccountManager; 61 public AccountManager accountManager; 84 if (AccountManager.class.equals(serviceClass)) { in getSystemServiceName()
|
/aosp14/frameworks/base/core/java/com/android/server/backup/ |
H A D | AccountSyncSettingsBackupHelper.java | 20 import android.accounts.AccountManager; 84 private AccountManager mAccountManager; 89 mAccountManager = AccountManager.get(mContext); in AccountSyncSettingsBackupHelper()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | MockSystemServices.java | 27 import android.accounts.AccountManager; 133 public final AccountManager accountManager; 191 accountManager = mock(AccountManager.class); in MockSystemServices()
|
/aosp14/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
H A D | AppLaunch.java | 21 import android.accounts.AccountManager; 1093 final AccountManager am = in checkAccountSignIn() 1094 (AccountManager) getInstrumentation().getTargetContext().getSystemService( in checkAccountSignIn()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | SystemServiceRegistry.java | 19 import android.accounts.AccountManager; 303 registerService(Context.ACCOUNT_SERVICE, AccountManager.class, in registerService() 304 new CachedServiceFetcher<AccountManager>() { in registerService() 306 public AccountManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService() 309 return new AccountManager(ctx, service); in registerService()
|