Lines Matching refs:accounts

19 import android.accounts.Account;
20 import android.accounts.AccountAndUser;
21 import android.accounts.AccountManager;
91 import com.android.server.accounts.AccountManagerService;
317 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) {
319 for (int i = 0; i < accounts.length; i++) {
320 if (accounts[i].userId == userId
321 && accounts[i].account.equals(account)) {
332 // Update accounts in handler thread.
718 * @param requestedAccount the account to sync, may be null to signify all accounts
719 * @param userId the id of the user whose accounts are to be synced. If userId is USER_ALL,
720 * then all users' accounts are considered.
752 AccountAndUser[] accounts;
754 accounts = new AccountAndUser[] { new AccountAndUser(requestedAccount, userId) };
756 accounts = mRunningAccounts;
757 if (accounts.length == 0) {
759 Slog.v(TAG, "scheduleSync: no accounts configured, dropping");
787 for (AccountAndUser account : accounts) {
788 // If userId is specified, do not sync accounts of other users
1172 * have null account/provider info to specify all accounts/providers.
1310 * have null account/provider info to specify all accounts/providers.
1411 // Make sure that accounts we're about to use are valid.
1419 // Schedule sync for any accounts under started user.
1420 final Account[] accounts = AccountManagerService.getSingleton().getAccounts(userId,
1422 for (Account account : accounts) {
1655 final AccountAndUser[] accounts = AccountManagerService.getSingleton().getAllAccounts();
1657 pw.print("accounts: ");
1658 if (accounts != INITIAL_ACCOUNTS_ARRAY) {
1659 pw.println(accounts.length);
1688 // Join the installed sync adapter with the accounts list and emit for everything.
1691 for (AccountAndUser account : accounts) {
2566 AccountAndUser[] accounts = mRunningAccounts;
2568 if (!containsAccountAndUser(accounts,
2588 // Cancel all jobs from non-existent accounts.
2734 AccountAndUser[] accounts = mRunningAccounts;
2735 if (!containsAccountAndUser(accounts, target.account, target.userId)) {