Home | History | Annotate | Download | only in list

Lines Matching refs:account

59 import com.android.contacts.common.model.account.AccountType;
60 import com.android.contacts.common.model.account.AccountWithDataSet;
61 import com.android.contacts.common.model.account.GoogleAccountType;
131 for (AccountWithDataSet account : accountTypes.getAccounts(false)) {
132 final AccountType accountType = accountTypes.getAccountTypeForAccount(account);
133 if (accountType.isExtension() && !account.hasData(context)) {
139 new AccountDisplay(resolver, account.name, account.type, account.dataSet);
142 .appendQueryParameter(Groups.ACCOUNT_NAME, account.name)
143 .appendQueryParameter(Groups.ACCOUNT_TYPE, account.type);
144 if (account.dataSet != null) {
145 groupsUri.appendQueryParameter(Groups.DATA_SET, account.dataSet).build();
162 GroupDelta.fromSettings(resolver, account.name, account.type,
163 account.dataSet, hasGroups);
440 for (AccountDisplay account : this) {
441 account.buildDiff(diff);
580 final AccountDisplay account = (AccountDisplay)this.getGroup(groupPosition);
583 account.mType, account.mDataSet);
585 text1.setText(account.mName);
586 text1.setVisibility(account.mName == null ? View.GONE : View.VISIBLE);
604 final AccountDisplay account = mAccounts.get(groupPosition);
627 final AccountDisplay account = mAccounts.get(groupPosition);
629 && childPosition < account.mSyncedGroups.size();
631 return account.mSyncedGroups.get(childPosition);
651 final AccountDisplay account = mAccounts.get(groupPosition);
652 final boolean anyHidden = account.mUnsyncedGroups.size() > 0;
653 return account.mSyncedGroups.size() + (anyHidden ? 1 : 0);
708 final AccountDisplay account = (AccountDisplay)mAdapter.getGroup(groupPosition);
726 protected int getSyncMode(AccountDisplay account) {
728 if (GoogleAccountType.ACCOUNT_TYPE.equals(account.mType) && account.mDataSet == null) {
750 final AccountDisplay account = (AccountDisplay)mAdapter.getGroup(groupPosition);
754 final int syncMode = getSyncMode(account);
758 showRemoveSync(menu, account, child, syncMode);
760 showAddSync(menu, account, syncMode);
764 protected void showRemoveSync(ContextMenu menu, final AccountDisplay account,
772 handleRemoveSync(account, child, syncMode, title);
778 protected void handleRemoveSync(final AccountDisplay account, final GroupDelta child,
780 final boolean shouldSyncUngrouped = account.mUngrouped.getShouldSync();
782 && !child.equals(account.mUngrouped)) {
793 account.setShouldSync(account.mUngrouped, false);
794 account.setShouldSync(child, false);
801 account.setShouldSync(child, false);
806 protected void showAddSync(ContextMenu menu, final AccountDisplay account, final int syncMode) {
810 for (final GroupDelta child : account.mUnsyncedGroups) {
817 account.setShouldSync(true);
819 account.setShouldSync(child, true);