Home
last modified time | relevance | path

Searched refs:AccountType (Results 1 – 25 of 56) 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()
399 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in trimEmpty()
413 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in hasChanges()
427 public static void trimEmpty(RawContactDelta state, AccountType accountType) { in trimEmpty()
466 private static boolean hasChanges(RawContactDelta state, AccountType accountType) { in hasChanges()
529 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()
DContactLoader.java43 import com.android.contacts.common.model.account.AccountType;
592 final ImmutableList.Builder<AccountType> resultListBuilder = in loadInvitableAccountTypes()
593 new ImmutableList.Builder<AccountType>(); in loadInvitableAccountTypes()
595 Map<AccountTypeWithDataSet, AccountType> invitables = in loadInvitableAccountTypes()
598 final Map<AccountTypeWithDataSet, AccountType> resultMap = in loadInvitableAccountTypes()
937 final AccountType accountType = rawContact.getAccountType(context); in postViewNotificationToSyncAdapter()
DRawContactDelta.java34 import com.android.contacts.common.model.account.AccountType;
211 public AccountType getRawContactAccountType(Context context) { in getRawContactAccountType()
234 public AccountType getAccountType(AccountTypeManager manager) { in getAccountType()
/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 …]
DContactLoaderTest.java35 import com.android.contacts.common.model.account.AccountType;
65 AccountType accountType = new BaseAccountType() { in setUp()
78 new AccountType[]{accountType}, new AccountWithDataSet[]{account})); in setUp()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactModifierTests.java47 import com.android.contacts.common.model.account.AccountType;
48 import com.android.contacts.common.model.account.AccountType.EditType;
87 public static class MockContactsSource extends AccountType {
158 protected AccountType getAccountType() { in getAccountType()
165 protected AccountTypeManager getAccountTypes(AccountType... types) { in getAccountTypes()
207 final AccountType source = getAccountType(); in testValidTypes()
252 final AccountType source = getAccountType(); in testCanInsert()
281 final AccountType source = getAccountType(); in testBestValidType()
317 final AccountType source = getAccountType(); in testIsEmptyEmpty()
328 final AccountType source = getAccountType(); in testIsEmptyDirectFields()
[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(getContext()).compare(lhs, rhs);
110 private class AccountTypeForDisplayLabelTest extends AccountType {
/packages/apps/Contacts/src/com/android/contacts/editor/
DCompactRawContactsEditorView.java25 import com.android.contacts.common.model.account.AccountType;
26 import com.android.contacts.common.model.account.AccountType.EditField;
337 AccountType accountType = null; in addAccountInfo()
389 final AccountType accountType = rawContactDelta.getAccountType(mAccountTypeManager); in addPhotoView()
415 final AccountType accountType = rawContactDelta.getAccountType(mAccountTypeManager); in addPhotoView()
444 final AccountType accountType = rawContactDelta.getAccountType(mAccountTypeManager); in addPhotoView()
465 final AccountType accountType = rawContactDelta.getAccountType(mAccountTypeManager); in addPhotoView()
486 final AccountType accountType = rawContactDelta.getAccountType(mAccountTypeManager); in addPhotoView()
518 final AccountType accountType = rawContactDelta.getAccountType(mAccountTypeManager); in addStructuredNameView()
548 final AccountType accountType = rawContactDelta.getAccountType(mAccountTypeManager); in addStructuredNameView()
[all …]
DContactEditorBaseFragment.java36 import com.android.contacts.common.model.account.AccountType;
1113 final AccountType accountType = accountTypes.getAccountTypeForAccount(account); in createContact()
1162 AccountType accountType = rawContact.getAccountType(mContext); in setState()
1197 private void setStateForNewContact(AccountWithDataSet account, AccountType accountType) { in setStateForNewContact()
1206 protected void setStateForNewContact(AccountWithDataSet account, AccountType accountType, in setStateForNewContact()
1207 RawContactDelta oldState, AccountType oldAccountType) { in setStateForNewContact()
1222 AccountType accountType, RawContactDelta oldState, AccountType oldAccountType) { in createNewRawContactDelta()
1392 final AccountType type = state.getAccountType(accountTypes); in setIntentExtras()
DContactEditorFragment.java43 import com.android.contacts.common.model.account.AccountType;
157 AccountType oldAccountType = accountTypes.getAccountTypeForAccount(oldAccount); in rebindEditorsForNewContact()
158 AccountType newAccountType = accountTypes.getAccountTypeForAccount(newAccount); in rebindEditorsForNewContact()
219 final AccountType type = rawContactDelta.getAccountType(accountTypes); in bindEditors()
416 private void bindPhotoHandler(BaseRawContactEditorView editor, AccountType type, in bindPhotoHandler()
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()
DRawContactEditorView.java39 import com.android.contacts.common.model.account.AccountType;
40 import com.android.contacts.common.model.account.AccountType.EditType;
174 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig, in setState()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
DAccountType.java50 public abstract class AccountType { class
502 public static class DisplayLabelComparator implements Comparator<AccountType> {
511 private String getDisplayLabel(AccountType type) { in getDisplayLabel()
517 public int compare(AccountType lhs, AccountType rhs) { in compare()
/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/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()
299 private static class MockAccountType extends AccountType {
/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/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/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;
334 final AccountType accountType = accountTypes.getAccountType(
359 final AccountType accountType = accountTypes.getAccountType(
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupDetailFragment.java60 import com.android.contacts.common.model.account.AccountType;
333 AccountType accountType = mAccountTypeManager.getAccountType(mAccountTypeString, in updateSize()
364 final AccountType accountType = in updateAccountType()
DGroupDetailDisplayUtils.java27 import com.android.contacts.common.model.account.AccountType;
44 AccountType accountType = accountTypeManager.getAccountType(accountTypeString, dataSet); in bindGroupSourceView()

123