Home
last modified time | relevance | path

Searched refs:AccountWithDataSet (Results 1 – 25 of 52) sorted by relevance

123

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
DAccountWithDataSetTest.java24 import com.android.contacts.common.model.account.AccountWithDataSet;
38 AccountWithDataSet a1 = new AccountWithDataSet("name1", "typeA", null); in testStringifyAndUnstringify()
39 AccountWithDataSet a2 = new AccountWithDataSet("name2", "typeB", null); in testStringifyAndUnstringify()
40 AccountWithDataSet a3 = new AccountWithDataSet("name3", "typeB", "dataset"); in testStringifyAndUnstringify()
43 AccountWithDataSet a1r = AccountWithDataSet.unstringify(a1.stringify()); in testStringifyAndUnstringify()
44 AccountWithDataSet a2r = AccountWithDataSet.unstringify(a2.stringify()); in testStringifyAndUnstringify()
45 AccountWithDataSet a3r = AccountWithDataSet.unstringify(a3.stringify()); in testStringifyAndUnstringify()
62 AccountWithDataSet a1 = new AccountWithDataSet("name1", "typeA", null); in testStringifyListAndUnstringify()
63 AccountWithDataSet a2 = new AccountWithDataSet("name2", "typeB", null); in testStringifyListAndUnstringify()
64 AccountWithDataSet a3 = new AccountWithDataSet("name3", "typeB", "dataset"); in testStringifyListAndUnstringify()
[all …]
DAccountTypeManagerTest.java25 import com.android.contacts.common.model.account.AccountWithDataSet;
52 final AccountWithDataSet accountA1 = createAccountWithDataSet("a1", typeA); in testFindAllInvitableAccountTypes()
53 final AccountWithDataSet accountC1 = createAccountWithDataSet("c1", typeC); in testFindAllInvitableAccountTypes()
54 final AccountWithDataSet accountC2 = createAccountWithDataSet("c2", typeC); in testFindAllInvitableAccountTypes()
55 final AccountWithDataSet accountD1 = createAccountWithDataSet("d1", typeD); in testFindAllInvitableAccountTypes()
129 private static AccountWithDataSet createAccountWithDataSet(String name, AccountType type) { in createAccountWithDataSet()
130 return new AccountWithDataSet(name, type.accountType, type.dataSet); in createAccountWithDataSet()
147 private static Collection<AccountWithDataSet> buildAccounts(AccountWithDataSet... accounts) { in buildAccounts()
148 final List<AccountWithDataSet> result = Lists.newArrayList(); in buildAccounts()
149 for (AccountWithDataSet account : accounts) { in buildAccounts()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
DAccountWithDataSet.java40 public class AccountWithDataSet implements Parcelable { class
59 public AccountWithDataSet(String name, String type, String dataSet) { in AccountWithDataSet() method in AccountWithDataSet
70 public AccountWithDataSet(Parcel in) { in AccountWithDataSet() method in AccountWithDataSet
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) { in equals()
142 AccountWithDataSet other = (AccountWithDataSet) obj; in equals()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
DContactEditorUtilsTest.java24 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(
66 new AccountWithDataSet[] {}); in setUp()
77 private void setAccounts(AccountWithDataSet... accounts) { in setAccounts()
126 mAccountTypes.mAccounts = new AccountWithDataSet[]{}; in testSaveDefaultAndAllAccounts()
134 mAccountTypes.mAccounts = new AccountWithDataSet[]{ACCOUNT_1_A}; in testSaveDefaultAndAllAccounts()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAccountWithDataSet.java27 public class AccountWithDataSet { class
28 public static final AccountWithDataSet LOCAL = new AccountWithDataSet(null, null, null);
34 public AccountWithDataSet(String accountName, String accountType, String dataSet) { in AccountWithDataSet() method in AccountWithDataSet
44 public static AccountWithDataSet get(String accountName, String accountType, String dataSet) { in get()
45 return new AccountWithDataSet(accountName, accountType, dataSet); in get()
48 public static AccountWithDataSet get(Account account, String dataSet) { in get()
49 return new AccountWithDataSet(account.name, account.type, null); in get()
70 if (obj instanceof AccountWithDataSet) { in equals()
71 AccountWithDataSet other = (AccountWithDataSet) obj; in equals()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorUtils.java32 import com.android.contacts.common.model.account.AccountWithDataSet;
50 private static final List<AccountWithDataSet> EMPTY_ACCOUNTS = ImmutableList.of();
102 private List<AccountWithDataSet> getWritableAccounts() { in getWritableAccounts()
124 public void saveDefaultAndAllAccounts(AccountWithDataSet defaultAccount) { in saveDefaultAndAllAccounts()
137 AccountWithDataSet.stringifyList(getWritableAccounts())); in saveDefaultAndAllAccounts()
152 public AccountWithDataSet getDefaultAccount() { in getDefaultAccount()
153 final List<AccountWithDataSet> currentWritableAccounts = getWritableAccounts(); in getDefaultAccount()
163 return AccountWithDataSet.unstringify(saved); in getDefaultAccount()
178 boolean isValidAccount(AccountWithDataSet account) { in isValidAccount()
189 List<AccountWithDataSet> getSavedAccounts() { in getSavedAccounts()
[all …]
DContactEditorBaseFragment.java38 import com.android.contacts.common.model.account.AccountWithDataSet;
258 void onCustomCreateContactActivityRequested(AccountWithDataSet account, in onCustomCreateContactActivityRequested()
268 void onCustomEditContactActivityRequested(AccountWithDataSet account, Uri rawContactUri, in onCustomEditContactActivityRequested()
371 protected AccountWithDataSet mAccountWithDataSet;
572 mAccountWithDataSet = new AccountWithDataSet(account.name, account.type, dataSet); in onActivityCreated()
699 AccountWithDataSet account = data.getParcelableExtra( in onActivityResult()
1102 AccountWithDataSet defaultAccount = mEditorUtils.getDefaultAccount(); in selectAccountAndCreateContact()
1112 final List<AccountWithDataSet> accounts = in createContact()
1130 protected void createContact(AccountWithDataSet account) { in createContact()
1167 new AccountWithDataSet(name, type, dataSet), in setState()
[all …]
DKindSectionDataList.java20 import com.android.contacts.common.model.account.AccountWithDataSet;
59 AccountWithDataSet primaryAccount, boolean isUserProfile) { in getEntryToWrite()
123 private static boolean matchesAccount(AccountWithDataSet accountWithDataSet, in matchesAccount()
DContactEditorFragment.java45 import com.android.contacts.common.model.account.AccountWithDataSet;
137 public void onExternalEditorRequest(AccountWithDataSet account, Uri uri) { in onExternalEditorRequest()
215 final List<AccountWithDataSet> accounts = AccountTypeManager.getInstance(mContext) in bindEditors()
385 final AccountWithDataSet currentAccount = new AccountWithDataSet( in addAccountSwitcher()
412 AccountWithDataSet newAccount = adapter.getItem(position); in addAccountSwitcher()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DAccountTypeManager.java48 import com.android.contacts.common.model.account.AccountWithDataSet;
116 public abstract List<AccountWithDataSet> getAccounts(boolean contactWritableOnly); in getAccounts()
121 public abstract List<AccountWithDataSet> getGroupWritableAccounts(); in getGroupWritableAccounts()
129 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) { in getAccountTypeForAccount()
171 public boolean contains(AccountWithDataSet account, boolean contactWritableOnly) { in contains()
172 for (AccountWithDataSet account_2 : getAccounts(false)) { in contains()
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/ContactsCommon/src/com/android/contacts/common/util/
DAccountSelectionUtil.java37 import com.android.contacts.common.model.account.AccountWithDataSet;
60 final protected List<AccountWithDataSet> mAccountList;
62 public AccountSelectedListener(Context context, List<AccountWithDataSet> accountList, in AccountSelectedListener()
73 public AccountSelectedListener(Context context, List<AccountWithDataSet> accountList, in AccountSelectedListener()
103 final List<AccountWithDataSet> writableAccountList = accountTypes.getAccounts(true); in getSelectAccountDialog()
114 final ArrayAdapter<AccountWithDataSet> accountAdapter = in getSelectAccountDialog()
115 new ArrayAdapter<AccountWithDataSet>( in getSelectAccountDialog()
129 final AccountWithDataSet account = this.getItem(position); in getSelectAccountDialog()
161 public static void doImport(Context context, int resId, AccountWithDataSet account, in doImport()
170 public static void doImportFromSim(Context context, AccountWithDataSet account, in doImportFromSim()
[all …]
DAccountsListAdapter.java31 import com.android.contacts.common.model.account.AccountWithDataSet;
41 private final List<AccountWithDataSet> mAccounts;
64 AccountWithDataSet currentAccount) { in AccountsListAdapter()
77 private List<AccountWithDataSet> getAccounts(AccountListFilter accountListFilter) { in getAccounts()
79 return new ArrayList<AccountWithDataSet>(mAccountTypes.getGroupWritableAccounts()); in getAccounts()
81 return new ArrayList<AccountWithDataSet>(mAccountTypes.getAccounts( in getAccounts()
99 final AccountWithDataSet account = mAccounts.get(position); in getView()
120 public AccountWithDataSet getItem(int position) { in getItem()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperTest.java49 final AccountWithDataSet a1 = null; in testGetOrCreateAccountId()
50 final AccountWithDataSet a2 = new AccountWithDataSet("a", null, null); in testGetOrCreateAccountId()
51 final AccountWithDataSet a3 = new AccountWithDataSet(null, "b", null); in testGetOrCreateAccountId()
52 final AccountWithDataSet a4 = new AccountWithDataSet(null, null, "c"); in testGetOrCreateAccountId()
53 final AccountWithDataSet a5 = new AccountWithDataSet("a", "b", "c"); in testGetOrCreateAccountId()
99 assertEquals(a1id, mDbHelper.getOrCreateAccountIdInTransaction(AccountWithDataSet.LOCAL)); in testGetOrCreateAccountId()
100 assertEquals((Long) a1id, mDbHelper.getAccountIdOrNull(AccountWithDataSet.LOCAL)); in testGetOrCreateAccountId()
105 assertNull(mDbHelper.getAccountIdOrNull(AccountWithDataSet.LOCAL)); in testGetOrCreateAccountId()
113 final AccountWithDataSet a5b = new AccountWithDataSet("a", "b", "c"); in testGetOrCreateAccountId()
262 AccountWithDataSet.LOCAL); in testUpgradeHashId()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/
DContactsPreferences.java35 import com.android.contacts.common.model.account.AccountWithDataSet;
180 final AccountWithDataSet accountWithDataSet = AccountWithDataSet.unstringify( in getDefaultAccount()
188 public void setDefaultAccount(AccountWithDataSet accountWithDataSet) { in setDefaultAccount()
205 public void setContactMetadataSyncAccount(AccountWithDataSet accountWithDataSet) { in setContactMetadataSyncAccount()
259 List<AccountWithDataSet> accounts = accountTypeManager.getAccounts(true); in getFocusGoogleAccounts()
260 for (AccountWithDataSet account : accounts) { in getFocusGoogleAccounts()
359 final AccountWithDataSet accountWithDataSet = AccountWithDataSet.unstringify( in maybeMigrateSystemSettings()
DDefaultAccountPreference.java27 import com.android.contacts.common.model.account.AccountWithDataSet;
36 private Map<String, AccountWithDataSet> mAccountMap;
52 List<AccountWithDataSet> accounts = accountTypeManager.getAccounts(true); in prepare()
53 for (AccountWithDataSet account : accounts) { in prepare()
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockAccountTypeManager.java21 import com.android.contacts.common.model.account.AccountWithDataSet;
37 public AccountWithDataSet[] mAccounts;
39 public MockAccountTypeManager(AccountType[] types, AccountWithDataSet[] accounts) { in MockAccountTypeManager()
64 public List<AccountWithDataSet> getAccounts(boolean writableOnly) { in getAccounts()
69 public List<AccountWithDataSet> getGroupWritableAccounts() { in getGroupWritableAccounts()
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DSelectAccountActivity.java27 import com.android.contacts.common.model.account.AccountWithDataSet;
61 final List<AccountWithDataSet> accountList = accountTypes.getAccounts(true); in onCreate()
67 final AccountWithDataSet account = accountList.get(0); in onCreate()
86 final AccountWithDataSet account = mAccountList.get(which); in onCreate()
DNfcImportVCardActivity.java37 import com.android.contacts.common.model.account.AccountWithDataSet;
61 private AccountWithDataSet mAccount;
178 final List<AccountWithDataSet> accountList = accountTypes.getAccounts(true); in onCreate()
195 mAccount = new AccountWithDataSet( in onActivityResult()
DImportRequest.java21 import com.android.contacts.common.model.account.AccountWithDataSet;
99 public ImportRequest(AccountWithDataSet account, in ImportRequest()
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorAccountsChangedActivity.java36 import com.android.contacts.common.model.account.AccountWithDataSet;
83 final List<AccountWithDataSet> accounts = AccountTypeManager.getInstance(this). in onCreate()
119 final AccountWithDataSet account = accounts.get(0); in onCreate()
190 AccountWithDataSet account = mEditorUtils.getCreatedAccount(resultCode, data); in onActivityResult()
200 private void saveAccountAndReturnResult(AccountWithDataSet account) { in saveAccountAndReturnResult()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListFilterController.java23 import com.android.contacts.common.model.account.AccountWithDataSet;
169 final AccountWithDataSet filterAccount = new AccountWithDataSet( in filterAccountExists()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DPeopleActivityTest.java45 import com.android.contacts.common.model.account.AccountWithDataSet;
102 AccountWithDataSet account = new AccountWithDataSet(TEST_ACCOUNT, TEST_ACCOUNT_TYPE, null); in setUp()
106 new AccountType[] { accountType }, new AccountWithDataSet[] { account }); in setUp()
/packages/apps/ContactsCommon/src/com/android/contacts/common/editor/
DSelectAccountDialogFragment.java28 import com.android.contacts.common.model.account.AccountWithDataSet;
117 private void onAccountSelected(AccountWithDataSet account) { in onAccountSelected()
126 void onAccountChosen(AccountWithDataSet account, Bundle extraArgs); in onAccountChosen()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/preference/
DContactsPreferencesTest.java26 import com.android.contacts.common.model.account.AccountWithDataSet;
142 .thenReturn(new AccountWithDataSet("name1", "type1", "dataset1").stringify(), in testRefreshDefaultAccount()
143 new AccountWithDataSet("name2", "type2", "dataset2").stringify()); in testRefreshDefaultAccount()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DDirectoryContactUtil.java22 import com.android.contacts.common.model.account.AccountWithDataSet;
49 ArrayList<ContentValues> values, AccountWithDataSet account, in createCopy()

123