HomeSort by relevance Sort by last modified time
    Searched refs:AccountWithDataSet (Results 1 - 25 of 52) sorted by null

1 2 3

  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
AccountWithDataSetTest.java 24 import com.android.contacts.common.model.account.AccountWithDataSet;
30 * Test case for {@link AccountWithDataSet}.
38 AccountWithDataSet a1 = new AccountWithDataSet("name1", "typeA", null);
39 AccountWithDataSet a2 = new AccountWithDataSet("name2", "typeB", null);
40 AccountWithDataSet a3 = new AccountWithDataSet("name3", "typeB", "dataset");
43 AccountWithDataSet a1r = AccountWithDataSet.unstringify(a1.stringify())
    [all...]
AccountTypeManagerTest.java 25 import com.android.contacts.common.model.account.AccountWithDataSet;
52 final AccountWithDataSet accountA1 = createAccountWithDataSet("a1", typeA);
53 final AccountWithDataSet accountC1 = createAccountWithDataSet("c1", typeC);
54 final AccountWithDataSet accountC2 = createAccountWithDataSet("c2", typeC);
55 final AccountWithDataSet accountD1 = createAccountWithDataSet("d1", typeD);
129 private static AccountWithDataSet createAccountWithDataSet(String name, AccountType type) {
130 return new AccountWithDataSet(name, type.accountType, type.dataSet);
145 * Array of {@link AccountWithDataSet} -> {@link Collection}
147 private static Collection<AccountWithDataSet> buildAccounts(AccountWithDataSet... accounts)
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
AccountWithDataSet.java 27 public class AccountWithDataSet {
28 public static final AccountWithDataSet LOCAL = new AccountWithDataSet(null, null, null);
34 public AccountWithDataSet(String accountName, String accountType, String dataSet) {
44 public static AccountWithDataSet get(String accountName, String accountType, String dataSet) {
45 return new AccountWithDataSet(accountName, accountType, dataSet);
48 public static AccountWithDataSet get(Account account, String dataSet) {
49 return new AccountWithDataSet(account.name, account.type, null);
70 if (obj instanceof AccountWithDataSet) {
71 AccountWithDataSet other = (AccountWithDataSet) obj
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
AccountWithDataSet.java 40 public class AccountWithDataSet implements Parcelable {
59 public AccountWithDataSet(String name, String type, String dataSet) {
70 public AccountWithDataSet(Parcel in) {
99 public static final Creator<AccountWithDataSet> CREATOR = new Creator<AccountWithDataSet>() {
100 public AccountWithDataSet createFromParcel(Parcel source) {
101 return new AccountWithDataSet(source);
104 public AccountWithDataSet[] newArray(int size) {
105 return new AccountWithDataSet[size];
141 if (obj instanceof AccountWithDataSet) {
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/editor/
ContactEditorUtilsTest.java 24 import com.android.contacts.common.model.account.AccountWithDataSet;
49 private static final AccountWithDataSet ACCOUNT_1_A = new AccountWithDataSet(
51 private static final AccountWithDataSet ACCOUNT_1_B = new AccountWithDataSet(
54 private static final AccountWithDataSet ACCOUNT_2_A = new AccountWithDataSet(
56 private static final AccountWithDataSet ACCOUNT_2EX_A = new AccountWithDataSet(
59 private static final AccountWithDataSet ACCOUNT_3_C = new AccountWithDataSet
    [all...]
  /packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
MockAccountTypeManager.java 21 import com.android.contacts.common.model.account.AccountWithDataSet;
37 public AccountWithDataSet[] mAccounts;
39 public MockAccountTypeManager(AccountType[] types, AccountWithDataSet[] accounts) {
64 public List<AccountWithDataSet> getAccounts(boolean writableOnly) {
69 public List<AccountWithDataSet> getGroupWritableAccounts() {
  /packages/apps/Contacts/src/com/android/contacts/editor/
ContactEditorUtils.java 32 import com.android.contacts.common.model.account.AccountWithDataSet;
50 private static final List<AccountWithDataSet> EMPTY_ACCOUNTS = ImmutableList.of();
102 private List<AccountWithDataSet> getWritableAccounts() {
124 public void saveDefaultAndAllAccounts(AccountWithDataSet defaultAccount) {
137 AccountWithDataSet.stringifyList(getWritableAccounts()));
152 public AccountWithDataSet getDefaultAccount() {
153 final List<AccountWithDataSet> currentWritableAccounts = getWritableAccounts();
163 return AccountWithDataSet.unstringify(saved);
178 boolean isValidAccount(AccountWithDataSet account) {
189 List<AccountWithDataSet> getSavedAccounts()
    [all...]
KindSectionDataList.java 20 import com.android.contacts.common.model.account.AccountWithDataSet;
59 AccountWithDataSet primaryAccount, boolean isUserProfile) {
123 private static boolean matchesAccount(AccountWithDataSet accountWithDataSet,
125 return Objects.equals(accountWithDataSet.name, rawContactDelta.getAccountName())
126 && Objects.equals(accountWithDataSet.type, rawContactDelta.getAccountType())
127 && Objects.equals(accountWithDataSet.dataSet, rawContactDelta.getDataSet());
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
AccountsListAdapter.java 31 import com.android.contacts.common.model.account.AccountWithDataSet;
41 private final List<AccountWithDataSet> mAccounts;
64 AccountWithDataSet currentAccount) {
77 private List<AccountWithDataSet> getAccounts(AccountListFilter accountListFilter) {
79 return new ArrayList<AccountWithDataSet>(mAccountTypes.getGroupWritableAccounts());
81 return new ArrayList<AccountWithDataSet>(mAccountTypes.getAccounts(
99 final AccountWithDataSet account = mAccounts.get(position);
120 public AccountWithDataSet getItem(int position) {
AccountSelectionUtil.java 37 import com.android.contacts.common.model.account.AccountWithDataSet;
60 final protected List<AccountWithDataSet> mAccountList;
62 public AccountSelectedListener(Context context, List<AccountWithDataSet> accountList,
73 public AccountSelectedListener(Context context, List<AccountWithDataSet> accountList,
103 final List<AccountWithDataSet> writableAccountList = accountTypes.getAccounts(true);
114 final ArrayAdapter<AccountWithDataSet> accountAdapter =
115 new ArrayAdapter<AccountWithDataSet>(
129 final AccountWithDataSet account = this.getItem(position);
161 public static void doImport(Context context, int resId, AccountWithDataSet account,
170 public static void doImportFromSim(Context context, AccountWithDataSet account
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
ImportRequest.java 21 import com.android.contacts.common.model.account.AccountWithDataSet;
99 public ImportRequest(AccountWithDataSet account,
SelectAccountActivity.java 27 import com.android.contacts.common.model.account.AccountWithDataSet;
61 final List<AccountWithDataSet> accountList = accountTypes.getAccounts(true);
67 final AccountWithDataSet account = accountList.get(0);
86 final AccountWithDataSet account = mAccountList.get(which);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/preference/
DefaultAccountPreference.java 27 import com.android.contacts.common.model.account.AccountWithDataSet;
36 private Map<String, AccountWithDataSet> mAccountMap;
52 List<AccountWithDataSet> accounts = accountTypeManager.getAccounts(true);
53 for (AccountWithDataSet account : accounts) {
ContactsPreferences.java 35 import com.android.contacts.common.model.account.AccountWithDataSet;
180 final AccountWithDataSet accountWithDataSet = AccountWithDataSet.unstringify(
182 mDefaultAccount = accountWithDataSet.name;
188 public void setDefaultAccount(AccountWithDataSet accountWithDataSet) {
189 mDefaultAccount = accountWithDataSet == null ? null : accountWithDataSet.name;
194 editor.putString(mDefaultAccountKey, accountWithDataSet.stringify())
    [all...]
DisplayOptionsPreferenceFragment.java 27 import com.android.contacts.common.model.account.AccountWithDataSet;
71 final List<AccountWithDataSet> accounts = accountTypeManager.getAccounts(
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
ContactsDatabaseHelperTest.java 49 final AccountWithDataSet a1 = null;
50 final AccountWithDataSet a2 = new AccountWithDataSet("a", null, null);
51 final AccountWithDataSet a3 = new AccountWithDataSet(null, "b", null);
52 final AccountWithDataSet a4 = new AccountWithDataSet(null, null, "c");
53 final AccountWithDataSet a5 = new AccountWithDataSet("a", "b", "c");
98 // null and AccountWithDataSet.NULL should be treated as the same thing
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/
AccountTypeManager.java 48 import com.android.contacts.common.model.account.AccountWithDataSet;
116 public abstract List<AccountWithDataSet> getAccounts(boolean contactWritableOnly);
121 public abstract List<AccountWithDataSet> getGroupWritableAccounts();
129 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) {
171 public boolean contains(AccountWithDataSet account, boolean contactWritableOnly) {
172 for (AccountWithDataSet account_2 : getAccounts(false)) {
202 private List<AccountWithDataSet> mAccounts = Lists.newArrayList();
203 private List<AccountWithDataSet> mContactWritableAccounts = Lists.newArrayList();
204 private List<AccountWithDataSet> mGroupWritableAccounts = Lists.newArrayList();
250 private static final Comparator<AccountWithDataSet> ACCOUNT_COMPARATOR
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/quickcontact/
DirectoryContactUtil.java 22 import com.android.contacts.common.model.account.AccountWithDataSet;
49 ArrayList<ContentValues> values, AccountWithDataSet account,
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
TestUtil.java 23 import com.android.providers.contacts.AccountWithDataSet;
56 AccountWithDataSet account) {
  /packages/apps/ContactsCommon/src/com/android/contacts/common/editor/
SelectAccountDialogFragment.java 28 import com.android.contacts.common.model.account.AccountWithDataSet;
117 private void onAccountSelected(AccountWithDataSet account) {
126 void onAccountChosen(AccountWithDataSet account, Bundle extraArgs);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ContactListFilterController.java 23 import com.android.contacts.common.model.account.AccountWithDataSet;
169 final AccountWithDataSet filterAccount = new AccountWithDataSet(
  /packages/apps/Contacts/src/com/android/contacts/interactions/
GroupCreationDialogFragment.java 27 import com.android.contacts.common.model.account.AccountWithDataSet;
96 new AccountWithDataSet(accountName, accountType, dataSet), groupLabel,
  /packages/apps/Contacts/src/com/android/contacts/activities/
ContactEditorAccountsChangedActivity.java 36 import com.android.contacts.common.model.account.AccountWithDataSet;
47 * {@link #Intents.Insert.ACCOUNT} that contains the {@link AccountWithDataSet} to create
83 final List<AccountWithDataSet> accounts = AccountTypeManager.getInstance(this).
119 final AccountWithDataSet account = accounts.get(0);
190 AccountWithDataSet account = mEditorUtils.getCreatedAccount(resultCode, data);
200 private void saveAccountAndReturnResult(AccountWithDataSet account) {
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/preference/
ContactsPreferencesTest.java 26 import com.android.contacts.common.model.account.AccountWithDataSet;
142 .thenReturn(new AccountWithDataSet("name1", "type1", "dataset1").stringify(),
143 new AccountWithDataSet("name2", "type2", "dataset2").stringify());
  /packages/apps/Contacts/tests/src/com/android/contacts/activities/
PeopleActivityTest.java 45 import com.android.contacts.common.model.account.AccountWithDataSet;
102 AccountWithDataSet account = new AccountWithDataSet(TEST_ACCOUNT, TEST_ACCOUNT_TYPE, null);
106 new AccountType[] { accountType }, new AccountWithDataSet[] { account });

Completed in 672 milliseconds

1 2 3