Home | History | Annotate | Download | only in accounts

Lines Matching defs:accountType

494             String accountType) {
500 if ((accountType != null && !managedTypes.contains(accountType))
501 || (accountType == null && !isSystemUid)) {
506 if (accountType != null) {
508 managedTypes.add(accountType);
532 for (String accountType : accountTypes) {
535 final Account[] accountsOfType = accounts.accountCache.get(accountType);
1237 final String accountType = cur.getKey();
1241 accountsForType[i] = new Account(accountNames.get(i), accountType,
1244 accounts.accountCache.put(accountType, accountsForType);
2371 public void invalidateAuthToken(String accountType, String authToken) {
2373 Preconditions.checkNotNull(accountType, "accountType cannot be null");
2376 Log.v(TAG, "invalidateAuthToken: accountType " + accountType
2388 deletedTokens = invalidateAuthTokenLocked(accounts, accountType, authToken);
2400 accounts.accountTokenCaches.remove(accountType, authToken);
2408 private List<Pair<Account, String>> invalidateAuthTokenLocked(UserAccounts accounts, String accountType,
2412 Cursor cursor = accounts.accountsDb.findAuthtokenForAllAccounts(accountType, authToken);
2420 results.add(Pair.create(new Account(accountName, accountType), authTokenType));
2726 public void getAuthTokenLabel(IAccountManagerResponse response, final String accountType,
2729 Preconditions.checkArgument(accountType != null, "accountType cannot be null");
2741 new Session(accounts, response, accountType, false /* expectActivityLaunch */,
2747 + ", " + accountType
3116 public void addAccount(final IAccountManagerResponse response, final String accountType,
3121 Log.v(TAG, "addAccount: accountType " + accountType
3130 if (accountType == null) throw new IllegalArgumentException("accountType is null");
3144 if (!canUserModifyAccountsForType(userId, accountType, uid)) {
3167 new Session(accounts, response, accountType, expectActivityLaunch,
3179 + ", accountType " + accountType
3189 public void addAccountAsUser(final IAccountManagerResponse response, final String accountType,
3195 Log.v(TAG, "addAccount: accountType " + accountType
3205 Preconditions.checkArgument(accountType != null, "accountType cannot be null");
3225 if (!canUserModifyAccountsForType(userId, accountType, callingUid)) {
3248 new Session(accounts, response, accountType, expectActivityLaunch,
3260 + ", accountType " + accountType
3275 final String accountType,
3283 "startAddAccountSession: accountType " + accountType
3292 Preconditions.checkArgument(accountType != null, "accountType cannot be null");
3305 if (!canUserModifyAccountsForType(userId, accountType, uid)) {
3333 accountType,
3348 return super.toDebugString(now) + ", startAddAccountSession" + ", accountType "
3349 + accountType + ", requiredFeatures "
3366 String accountType,
3372 super(accounts, response, accountType, expectActivityLaunch,
3440 String accountType = sessionBundle.getString(AccountManager.KEY_ACCOUNT_TYPE);
3441 if (TextUtils.isEmpty(accountType)
3442 || !mAccountType.equalsIgnoreCase(accountType)) {
3445 // Add accountType info to session bundle. This will
3511 final String accountType;
3523 accountType = decryptedBundle.getString(AccountManager.KEY_ACCOUNT_TYPE);
3526 if (TextUtils.isEmpty(accountType)) {
3530 "accountType is empty");
3556 if (!canUserModifyAccountsForType(userId, accountType, callingUid)) {
3577 accountType,
3592 + ", accountType " + accountType;
3870 public void editProperties(IAccountManagerResponse response, final String accountType,
3874 Log.v(TAG, "editProperties: accountType " + accountType
3881 if (accountType == null) throw new IllegalArgumentException("accountType is null");
3883 if (!isAccountManagedByCaller(accountType, callingUid, userId)
3888 accountType);
3894 new Session(accounts, response, accountType, expectActivityLaunch,
3904 + ", accountType " + accountType;
4291 Log.v(TAG, "getAccounts: accountType " + type
4516 String accountType,
4523 Log.v(TAG, "getAccount: accountType " + accountType
4530 if (accountType == null) throw new IllegalArgumentException("accountType is null");
4539 userAccounts, accountType, callingUid, opPackageName,
4569 accountType,
4588 Log.v(TAG, "getAccounts: accountType " + type
4595 if (type == null) throw new IllegalArgumentException("accountType is null");
4693 public Session(UserAccounts accounts, IAccountManagerResponse response, String accountType,
4696 this(accounts, response, accountType, expectActivityLaunch, stripAuthTokenFromResult,
4700 public Session(UserAccounts accounts, IAccountManagerResponse response, String accountType,
4705 if (accountType == null) throw new IllegalArgumentException("accountType is null");
4709 mAccountType = accountType;
4934 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE);
4935 if (!TextUtils.isEmpty(accountName) && !TextUtils.isEmpty(accountType)) {
4936 Account account = new Account(accountName, accountType);
5441 private boolean isAccountVisibleToCaller(String accountType, int callingUid, int userId,
5443 if (accountType == null) {
5447 opPackageName).contains(accountType);
5465 private boolean accountTypeManagesContacts(String accountType, int userId) {
5466 if (accountType == null) {
5479 if (accountType.equals(serviceInfo.type.type)) {
5488 * Method checks package uid and signature with Authenticator which manages accountType.
5493 private int checkPackageSignature(String accountType, int callingUid, int userId) {
5494 if (accountType == null) {
5509 if (accountType.equals(serviceInfo.type.type)) {
5524 private boolean isAccountManagedByCaller(String accountType, int callingUid, int userId) {
5525 if (accountType == null) {
5528 return getTypesManagedByCaller(callingUid, userId).contains(accountType);
5564 private boolean isAccountPresentForCaller(String accountName, String accountType) {
5565 if (getUserAccountsForCaller().accountCache.containsKey(accountType)) {
5566 for (Account account : getUserAccountsForCaller().accountCache.get(accountType)) {
5655 String accountType,
5658 if (!isAccountVisibleToCaller(accountType, callingUid, userId, opPackageName)) {
5662 accountType);
5680 private boolean canUserModifyAccountsForType(int userId, String accountType, int callingUid) {
5692 if (forbiddenType.equals(accountType)) {
5950 protected Account[] getAccountsFromCache(UserAccounts userAccounts, String accountType,
5954 if (accountType != null) {
5957 accounts = userAccounts.accountCache.get(accountType);