Lines Matching defs:accounts

19 import android.accounts.Account;
20 import android.accounts.AccountAndUser;
21 import android.accounts.AccountManager;
22 import android.accounts.AccountManagerService;
233 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) {
235 for (int i = 0; i < accounts.length; i++) {
236 if (accounts[i].userId == userId
237 && accounts[i].account.equals(account)) {
263 // the accounts are not set yet
497 * @param requestedAccount the account to sync, may be null to signify all accounts
498 * @param userId the id of the user whose accounts are to be synced. If userId is USER_ALL,
499 * then all users' accounts are considered.
521 AccountAndUser[] accounts;
523 accounts = new AccountAndUser[] { new AccountAndUser(requestedAccount, userId) };
525 // if the accounts aren't configured yet then we can't support an account-less
527 accounts = mRunningAccounts;
528 if (accounts.length == 0) {
530 Log.v(TAG, "scheduleSync: no accounts configured, dropping");
558 for (AccountAndUser account : accounts) {
900 // Make sure that accounts we're about to use are valid
911 // Schedule sync for any accounts under started user
912 final Account[] accounts = AccountManagerService.getSingleton().getAccounts(userId);
913 for (Account account : accounts) {
1092 final AccountAndUser[] accounts = AccountManagerService.getSingleton().getAllAccounts();
1094 pw.print("accounts: ");
1095 if (accounts != INITIAL_ACCOUNTS_ARRAY) {
1096 pw.println(accounts.length);
1145 // join the installed sync adapter with the accounts list and emit for everything
1148 for (AccountAndUser account : accounts) {
1826 AccountAndUser[] accounts = mRunningAccounts;
1835 if (!containsAccountAndUser(accounts, info.account, info.userId)) {
1938 // If the accounts aren't known yet then we aren't ready to run. We will be kicked
1940 AccountAndUser[] accounts = mRunningAccounts;
1941 if (accounts == INITIAL_ACCOUNTS_ARRAY) {
1943 Log.v(TAG, "maybeStartNextSync: accounts not known, skipping");
1976 if (!containsAccountAndUser(accounts, op.account, op.userId)) {