/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; 446 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString()); in testStartAddAccountSessionUserCannotModifyAccountNoDPM() 453 AccountManager.ERROR_CODE_USER_RESTRICTED); in testStartAddAccountSessionUserCannotModifyAccountNoDPM() 479 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString()); in testStartAddAccountSessionUserCannotModifyAccountWithDPM() 501 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString()); in testStartAddAccountSessionUserCannotModifyAccountForTypeNoDPM() 508 AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE); in testStartAddAccountSessionUserCannotModifyAccountForTypeNoDPM() 536 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString()); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM() 562 Bundle sessionBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE); in testStartAddAccountSessionSuccessWithoutPasswordForwarding() 567 assertNull(result.getString(AccountManager.KEY_PASSWORD)); in testStartAddAccountSessionSuccessWithoutPasswordForwarding() 568 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 | 171 Log.v(TAG, "addAccount: result " + AccountManager.sanitizeResult(result)); in addAccount() 176 response.onError(AccountManager.ERROR_CODE_INVALID_RESPONSE, 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() [all …]
|
D | ChooseAccountActivity.java | 63 mAccounts = getIntent().getParcelableArrayExtra(AccountManager.KEY_ACCOUNTS); in onCreate() 65 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_MANAGER_RESPONSE); in onCreate() 85 getIntent().getStringExtra(AccountManager.KEY_ANDROID_PACKAGE_NAME) != null) { in onCreate() 87 AccountManager.KEY_ANDROID_PACKAGE_NAME); in onCreate() 91 getIntent().getStringExtra(AccountManager.KEY_ANDROID_PACKAGE_NAME) != null) { in onCreate() 121 for(AuthenticatorDescription desc : AccountManager.get(this).getAuthenticatorTypes()) { in getAuthDescriptions() 151 AccountManager am = AccountManager.get(this); in onListItemClick() 154 && oldVisibility == AccountManager.VISIBILITY_USER_MANAGED_NOT_VISIBLE) { in onListItemClick() 156 AccountManager.VISIBILITY_USER_MANAGED_VISIBLE); in onListItemClick() 160 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in onListItemClick() [all …]
|
D | ChooseTypeAndAccountActivity.java | 200 mAccounts = getAcceptableAccountChoices(AccountManager.get(this)); in onCreate() 209 if (AccountManager.VISIBILITY_NOT_VISIBLE != entry.getValue()) { in onCreate() 334 String accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() 347 accountName = data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME); in onActivityResult() 348 accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() 353 Account[] currentAccounts = AccountManager.get(this).getAccountsForPackage( in onActivityResult() 394 AccountManager.get(this).addAccount(type, authTokenType, requiredFeatures, in runAddAccountForAuthenticator() 403 AccountManager.KEY_INTENT); in run() 406 mExistingAccounts = AccountManager.get(this).getAccountsForPackage(mCallingPackage, in run() 420 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 | AccountAuthenticatorActivity.java | 63 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE); in onCreate() 79 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 | 51 + AccountManager.sanitizeResult(result)); in onResult()
|
D | AccountManager.java | 162 public class AccountManager { class 410 public AccountManager(Context context, IAccountManager service) { in AccountManager() method in AccountManager 420 public AccountManager(Context context, IAccountManager service, Handler handler) { in AccountManager() method in AccountManager 455 public static AccountManager get(Context context) { in get() 457 return (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE); in get() 2583 accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME); 2584 accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE);
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 24 import android.accounts.AccountManager; 196 ACCOUNTS_CHANGED_INTENT = new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION); 451 AccountManager.ACCOUNT_ACCESS_TOKEN_TYPE, uid), packageName, in cancelAccountAccessRequestNotificationIfNeeded() 608 if (AccountManager.PACKAGE_NAME_KEY_LEGACY_VISIBLE.equals(packageName)) { in getAccountVisibility() 610 if (AccountManager.VISIBILITY_UNDEFINED != visibility) { in getAccountVisibility() 613 return AccountManager.VISIBILITY_USER_MANAGED_VISIBLE; in getAccountVisibility() 616 if (AccountManager.PACKAGE_NAME_KEY_LEGACY_NOT_VISIBLE.equals(packageName)) { in getAccountVisibility() 618 if (AccountManager.VISIBILITY_UNDEFINED != visibility) { in getAccountVisibility() 621 return AccountManager.VISIBILITY_USER_MANAGED_NOT_VISIBLE; in getAccountVisibility() 646 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; 148 AccountManager.ACCOUNT_ACCESS_TOKEN_TYPE, uid); in apply()
|
/frameworks/base/non-updatable-api/ |
D | system-lint-baseline.txt | 88 SamShouldBeLast: android.accounts.AccountManager#addAccount(String, String, String[], android.os.Bu… 90 SamShouldBeLast: android.accounts.AccountManager#addOnAccountsUpdatedListener(android.accounts.OnAc… 92 SamShouldBeLast: android.accounts.AccountManager#addOnAccountsUpdatedListener(android.accounts.OnAc… 94 SamShouldBeLast: android.accounts.AccountManager#confirmCredentials(android.accounts.Account, andro… 96 SamShouldBeLast: android.accounts.AccountManager#editProperties(String, android.app.Activity, andro… 98 SamShouldBeLast: android.accounts.AccountManager#finishSession(android.os.Bundle, android.app.Activ… 100 SamShouldBeLast: android.accounts.AccountManager#getAccountsByTypeAndFeatures(String, String[], and… 102 SamShouldBeLast: android.accounts.AccountManager#getAuthToken(android.accounts.Account, String, and… 104 SamShouldBeLast: android.accounts.AccountManager#getAuthToken(android.accounts.Account, String, and… 106 SamShouldBeLast: android.accounts.AccountManager#getAuthToken(android.accounts.Account, String, boo… [all …]
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockAccountManager.java | 19 import android.accounts.AccountManager; 49 public static AccountManager newMockAccountManager(Context context) { in newMockAccountManager() 56 private static class MockAccountManagerImpl extends AccountManager {
|
/frameworks/base/api/ |
D | system-lint-baseline.txt | 175 SamShouldBeLast: android.accounts.AccountManager#addAccount(String, String, String[], android.os.Bu… 177 SamShouldBeLast: android.accounts.AccountManager#addOnAccountsUpdatedListener(android.accounts.OnAc… 179 SamShouldBeLast: android.accounts.AccountManager#addOnAccountsUpdatedListener(android.accounts.OnAc… 181 SamShouldBeLast: android.accounts.AccountManager#confirmCredentials(android.accounts.Account, andro… 183 SamShouldBeLast: android.accounts.AccountManager#editProperties(String, android.app.Activity, andro… 185 SamShouldBeLast: android.accounts.AccountManager#finishSession(android.os.Bundle, android.app.Activ… 187 SamShouldBeLast: android.accounts.AccountManager#getAccountsByTypeAndFeatures(String, String[], and… 189 SamShouldBeLast: android.accounts.AccountManager#getAuthToken(android.accounts.Account, String, and… 191 SamShouldBeLast: android.accounts.AccountManager#getAuthToken(android.accounts.Account, String, and… 193 SamShouldBeLast: android.accounts.AccountManager#getAuthToken(android.accounts.Account, String, boo… [all …]
|
/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/apct-tests/perftests/core/src/android/accounts/ |
D | AccountManagerPerfTest.java | 50 AccountManager accountManager = AccountManager.get(context); in testGetAccounts()
|
/frameworks/base/test-runner/src/android/test/ |
D | IsolatedContext.java | 19 import android.accounts.AccountManager; 48 private final AccountManager mMockAccountManager;
|
/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/packages/Shell/tests/src/com/android/shell/ |
D | BugreportProgressServiceTest.java | 27 import android.accounts.AccountManager; 61 public AccountManager accountManager; 84 if (AccountManager.class.equals(serviceClass)) { in getSystemServiceName()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | AccountSyncSettingsBackupHelper.java | 20 import android.accounts.AccountManager; 84 private AccountManager mAccountManager; 89 mAccountManager = AccountManager.get(mContext); in AccountSyncSettingsBackupHelper()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockSystemServices.java | 27 import android.accounts.AccountManager; 108 public final AccountManager accountManager; 147 accountManager = mock(AccountManager.class); in MockSystemServices()
|
/frameworks/base/tests/AppLaunchWear/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 19 import android.accounts.AccountManager; 582 final AccountManager am = in checkAccountSignIn() 583 (AccountManager) getInstrumentation().getTargetContext().getSystemService( in checkAccountSignIn()
|