Home
last modified time | relevance | path

Searched refs:AccountType (Results 1 – 25 of 61) sorted by relevance

123

/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DAccountTypeManager.java46 import com.android.contacts.common.model.account.AccountType;
123 public abstract AccountType getAccountType(AccountTypeWithDataSet accountTypeWithDataSet); in getAccountType()
125 public final AccountType getAccountType(String accountType, String dataSet) { in getAccountType()
129 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) { in getAccountTypeForAccount()
149 public abstract Map<AccountTypeWithDataSet, AccountType> getUsableInvitableAccountTypes(); in getUsableInvitableAccountTypes()
156 public DataKind getKindOrFallback(AccountType type, String mimeType) { in getKindOrFallback()
165 public abstract List<AccountType> getAccountTypes(boolean contactWritableOnly); in getAccountTypes()
184 private static final Map<AccountTypeWithDataSet, AccountType>
186 Collections.unmodifiableMap(new HashMap<AccountTypeWithDataSet, AccountType>());
200 private AccountType mFallbackAccountType;
[all …]
DRawContactModifier.java55 import com.android.contacts.common.model.account.AccountType;
56 import com.android.contacts.common.model.account.AccountType.EditField;
57 import com.android.contacts.common.model.account.AccountType.EditType;
58 import com.android.contacts.common.model.account.AccountType.EventEditType;
114 RawContactDelta state, AccountType accountType, String mimeType) { in ensureKindExists()
382 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in trimEmpty()
401 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in hasChanges()
415 public static void trimEmpty(RawContactDelta state, AccountType accountType) { in trimEmpty()
454 private static boolean hasChanges(RawContactDelta state, AccountType accountType, in hasChanges()
519 public static void parseExtras(Context context, AccountType accountType, RawContactDelta state, in parseExtras()
[all …]
DContact.java28 import com.android.contacts.common.model.account.AccountType;
77 private ImmutableList<AccountType> mInvitableAccountTypes;
357 public ImmutableList<AccountType> getInvitableAccountTypes() { in getInvitableAccountTypes()
396 AccountType accountType = rawContact.getAccountType(context); in getFirstWritableRawContactId()
489 /* package */ void setInvitableAccountTypes(ImmutableList<AccountType> accountTypes) { in setInvitableAccountTypes()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
DAccountTypeManagerTest.java23 import com.android.contacts.common.model.account.AccountType;
46 final AccountType typeA = new MockAccountType("type1", null, null); in testFindAllInvitableAccountTypes()
47 final AccountType typeB = new MockAccountType("type1", "minus", null); in testFindAllInvitableAccountTypes()
48 final AccountType typeC = new MockAccountType("type2", null, "c"); in testFindAllInvitableAccountTypes()
49 final AccountType typeD = new MockAccountType("type2", "minus", "d"); in testFindAllInvitableAccountTypes()
58 Map<AccountTypeWithDataSet, AccountType> types = in testFindAllInvitableAccountTypes()
129 private static AccountWithDataSet createAccountWithDataSet(String name, AccountType type) { in createAccountWithDataSet()
136 … private static Map<AccountTypeWithDataSet, AccountType> buildAccountTypes(AccountType... types) { in buildAccountTypes()
137 final HashMap<AccountTypeWithDataSet, AccountType> result = Maps.newHashMap(); in buildAccountTypes()
138 for (AccountType type : types) { in buildAccountTypes()
[all …]
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockAccountTypeManager.java19 import com.android.contacts.common.model.account.AccountType;
36 public AccountType[] mTypes;
39 public MockAccountTypeManager(AccountType[] types, AccountWithDataSet[] accounts) { in MockAccountTypeManager()
45 public AccountType getAccountType(AccountTypeWithDataSet accountTypeWithDataSet) { in getAccountType()
47 AccountType mFallbackAccountType = new BaseAccountType() { in getAccountType()
54 for (AccountType type : mTypes) { in getAccountType()
74 public Map<AccountTypeWithDataSet, AccountType> getUsableInvitableAccountTypes() { in getUsableInvitableAccountTypes()
79 public List<AccountType> getAccountTypes(boolean writableOnly) { in getAccountTypes()
80 final List<AccountType> ret = Lists.newArrayList(); in getAccountTypes()
82 for (AccountType type : mTypes) { in getAccountTypes()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/
DAccountTypeTest.java41 assertEquals(DEFAULT, AccountType.getResourceText(c, null, -1, DEFAULT)); in testGetResourceText()
44 assertEquals(DEFAULT, AccountType.getResourceText(c, packageName, -1, DEFAULT)); in testGetResourceText()
49 AccountType.getResourceText(c, packageName, externalResID, DEFAULT)); in testGetResourceText()
54 AccountType.getResourceText(c, null, internalResId, DEFAULT)); in testGetResourceText()
67 AccountType accountType = new AccountType() { in testGetInviteContactActionLabel()
106 private int compareDisplayLabel(AccountType lhs, AccountType rhs) {
107 return new AccountType.DisplayLabelComparator(
111 private class AccountTypeForDisplayLabelTest extends AccountType {
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactModifierTests.java45 import com.android.contacts.common.model.account.AccountType;
46 import com.android.contacts.common.model.account.AccountType.EditType;
88 public static class MockContactsSource extends AccountType {
159 protected AccountType getAccountType() { in getAccountType()
166 protected AccountTypeManager getAccountTypes(AccountType... types) { in getAccountTypes()
208 final AccountType source = getAccountType(); in testValidTypes()
253 final AccountType source = getAccountType(); in testValidTypesWhenUpdating()
290 final AccountType source = getAccountType(); in testCanInsert()
319 final AccountType source = getAccountType(); in testBestValidType()
355 final AccountType source = getAccountType(); in testIsEmptyEmpty()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DKindSectionData.java21 import com.android.contacts.common.model.account.AccountType;
22 import com.android.contacts.common.model.account.AccountType.EditField;
35 private final AccountType mAccountType;
39 public KindSectionData(AccountType accountType, DataKind dataKind, in KindSectionData()
46 public AccountType getAccountType() { in getAccountType()
DRawContactDeltaComparator.java21 import com.android.contacts.common.model.account.AccountType;
50 final AccountType type1 = accountTypes.getAccountType(accountType1, dataSet1); in compare()
53 final AccountType type2 = accountTypes.getAccountType(accountType2, dataSet2); in compare()
DBaseRawContactEditorView.java37 import com.android.contacts.common.model.account.AccountType;
38 import com.android.contacts.common.model.account.AccountType.EditType;
215 public abstract void setState(RawContactDelta state, AccountType source, ViewIdGenerator vig, in setState()
DContactEditorBaseFragment.java37 import com.android.contacts.common.model.account.AccountType;
1132 final AccountType accountType = accountTypes.getAccountTypeForAccount(account); in createContact()
1160 AccountType accountType = rawContact.getAccountType(mContext); in setState()
1197 private void setStateForNewContact(AccountWithDataSet account, AccountType accountType, in setStateForNewContact()
1207 protected void setStateForNewContact(AccountWithDataSet account, AccountType accountType, in setStateForNewContact()
1208 RawContactDelta oldState, AccountType oldAccountType, boolean isUserProfile) { in setStateForNewContact()
1224 AccountType accountType, RawContactDelta oldState, AccountType oldAccountType) { in createNewRawContactDelta()
1362 AccountType oldAccountType = accountTypes.getAccountTypeForAccount(oldAccount); in rebindEditorsForNewContact()
1363 AccountType newAccountType = accountTypes.getAccountTypeForAccount(newAccount); in rebindEditorsForNewContact()
1430 final AccountType type = state.getAccountType(accountTypes); in setIntentExtras()
DAggregationSuggestionView.java34 import com.android.contacts.common.model.account.AccountType;
126 AccountType type = accountTypes.getAccountType(accountType, dataSet); in canEditSuggestedContact()
DEditorUiUtils.java52 import com.android.contacts.common.model.account.AccountType;
121 String accountName, AccountType accountType) { in getLocalAccountInfo()
138 AccountType accountType) { in getAccountInfo()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DContactDeletionInteractionTest.java34 import com.android.contacts.common.model.account.AccountType;
79 AccountType readOnlyAccountType = new BaseAccountType() { in setUp()
87 AccountType writableAccountType = new BaseAccountType() { in setUp()
97 new AccountType[] { writableAccountType, readOnlyAccountType }, null); in setUp()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
DAccountType.java50 public abstract class AccountType { class
507 public static class DisplayLabelComparator implements Comparator<AccountType> {
516 private String getDisplayLabel(AccountType type) { in getDisplayLabel()
522 public int compare(AccountType lhs, AccountType rhs) { in compare()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
DDataKind.java23 import com.android.contacts.common.model.account.AccountType.EditField;
24 import com.android.contacts.common.model.account.AccountType.EditType;
25 import com.android.contacts.common.model.account.AccountType.StringInflater;
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
DContactEditorUtilsTest.java23 import com.android.contacts.common.model.account.AccountType;
65 mAccountTypes = new MockAccountTypeManager(new AccountType[] {}, in setUp()
73 private void setAccountTypes(AccountType... types) { in setAccountTypes()
309 private static class MockAccountType extends AccountType {
DEditorUiUtilsTest.java20 import com.android.contacts.common.model.account.AccountType;
46 private static final class MockAccountType extends AccountType {
102 final AccountType accountType = new MockAccountType(GOOGLE_DISPLAY_LABEL); in testGetAccountInfo_AccountName_DisplayLabel_GoogleAccountType()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DInvisibleContactUtil.java15 import com.android.contacts.common.model.account.AccountType;
53 final AccountType type = rawContact.getAccountType(context); in isInvisibleAndAddable()
84 final AccountType type = rawContactEntityDelta.getAccountType(accountTypes); in addToDefaultGroup()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupDetailDisplayUtils.java27 import com.android.contacts.common.model.account.AccountType;
44 AccountType accountType = accountTypeManager.getAccountType(accountTypeString, dataSet); in bindGroupSourceView()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DPeopleActivityTest.java44 import com.android.contacts.common.model.account.AccountType;
94 AccountType accountType = new BaseAccountType() { in setUp()
106 new AccountType[] { accountType }, new AccountWithDataSet[] { account }); in setUp()
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorBaseActivity.java23 import com.android.contacts.common.model.account.AccountType;
333 final AccountType accountType = accountTypes.getAccountType(
358 final AccountType accountType = accountTypes.getAccountType(
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DAccountsListAdapter.java30 import com.android.contacts.common.model.account.AccountType;
100 final AccountType accountType = mAccountTypes.getAccountType(account.type, account.dataSet); in getView()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DMoreContactUtils.java32 import com.android.contacts.common.model.account.AccountType;
228 public static Intent getInvitableIntent(AccountType accountType, Uri lookupUri) { in getInvitableIntent()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListFilterView.java31 import com.android.contacts.common.model.account.AccountType;
129 final AccountType accountType = in bindView()

123