Home
last modified time | relevance | path

Searched refs:EditType (Results 1 – 12 of 12) sorted by relevance

/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactModifier.java57 import com.android.contacts.common.model.account.AccountType.EditType;
139 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind) { in getValidTypes()
152 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind, in getValidTypes()
153 EditType forceInclude) { in getValidTypes()
171 private static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind, in getValidTypes()
172 EditType forceInclude, boolean includeSecondary, SparseIntArray typeCount) { in getValidTypes()
173 final ArrayList<EditType> validTypes = new ArrayList<EditType>(); in getValidTypes()
185 for (EditType type : kind.typeList) { in getValidTypes()
222 final EditType type = getCurrentType(entry, kind); in getTypeFrequencies()
245 public static EditType getCurrentType(ValuesDelta entry, DataKind kind) { in getCurrentType()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactModifierTests.java48 import com.android.contacts.common.model.account.AccountType.EditType;
106 phoneKind.typeList.add(new EditType(Phone.TYPE_HOME, -1).setSpecificMax(2)); in MockContactsSource()
107 phoneKind.typeList.add(new EditType(Phone.TYPE_WORK, -1).setSpecificMax(1)); in MockContactsSource()
108 phoneKind.typeList.add(new EditType(Phone.TYPE_FAX_WORK, -1).setSecondary(true)); in MockContactsSource()
109 phoneKind.typeList.add(new EditType(Phone.TYPE_OTHER, -1)); in MockContactsSource()
209 final EditType typeHome = RawContactModifier.getType(kindPhone, Phone.TYPE_HOME); in testValidTypes()
210 final EditType typeWork = RawContactModifier.getType(kindPhone, Phone.TYPE_WORK); in testValidTypes()
211 final EditType typeOther = RawContactModifier.getType(kindPhone, Phone.TYPE_OTHER); in testValidTypes()
213 List<EditType> validTypes; in testValidTypes()
254 final EditType typeHome = RawContactModifier.getType(kindPhone, Phone.TYPE_HOME); in testCanInsert()
[all …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DContactsSource.java219 public List<EditType> typeList;
244 public static class EditType { class in ContactsSource
253 public EditType(int rawValue, int labelRes) { in EditType() method in ContactsSource.EditType
259 public EditType setSecondary(boolean secondary) { in setSecondary()
264 public EditType setSpecificMax(int specificMax) { in setSpecificMax()
269 public EditType setCustomColumn(String customColumn) { in setCustomColumn()
276 if (object instanceof EditType) { in equals()
277 final EditType other = (EditType)object; in equals()
DFallbackSource.java85 protected EditType buildPhoneType(int type) { in buildPhoneType()
86 return new EditType(type, Phone.getTypeLabelResource(type)); in buildPhoneType()
89 protected EditType buildEmailType(int type) { in buildEmailType()
90 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType()
93 protected EditType buildPostalType(int type) { in buildPostalType()
94 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); in buildPostalType()
97 protected EditType buildImType(int type) { in buildImType()
98 return new EditType(type, Im.getProtocolLabelResource(type)); in buildImType()
101 protected EditType buildOrgType(int type) { in buildOrgType()
102 return new EditType(type, Organization.getTypeLabelResource(type)); in buildOrgType()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
DAccountType.java347 public static class EditType { class in AccountType
358 public EditType(int rawValue, int labelRes) { in EditType() method in AccountType.EditType
364 public EditType setSecondary(boolean secondary) { in setSecondary()
369 public EditType setSpecificMax(int specificMax) { in setSpecificMax()
374 public EditType setCustomColumn(String customColumn) { in setCustomColumn()
381 if (object instanceof EditType) { in equals()
382 final EditType other = (EditType)object; in equals()
404 public static class EventEditType extends EditType {
DBaseAccountType.java125 protected static EditType buildPhoneType(int type) { in buildPhoneType()
126 return new EditType(type, Phone.getTypeLabelResource(type)); in buildPhoneType()
129 protected static EditType buildEmailType(int type) { in buildEmailType()
130 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType()
133 protected static EditType buildPostalType(int type) { in buildPostalType()
134 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); in buildPostalType()
137 protected static EditType buildImType(int type) { in buildImType()
138 return new EditType(type, Im.getProtocolLabelResource(type)); in buildImType()
141 protected static EditType buildEventType(int type, boolean yearOptional) { in buildEventType()
145 protected static EditType buildRelationType(int type) { in buildRelationType()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DLabeledEditorView.java51 import com.android.contacts.common.model.account.AccountType.EditType;
83 private EditType mType;
93 public static final EditType CUSTOM_SELECTION = new EditType(0, 0);
275 protected EditType getType() { in getType()
416 final List<EditType> allTypes = in createCustomDialog()
419 for (EditType editType : allTypes) { in createCustomDialog()
477 EditType selected = mEditTypeAdapter.getItem(position); in onTypeSelectionChange()
533 private class EditTypeAdapter extends ArrayAdapter<EditType> {
605 EditType type = getItem(position); in createViewFromResource()
DBaseRawContactEditorView.java38 import com.android.contacts.common.model.account.AccountType.EditType;
DRawContactEditorView.java39 import com.android.contacts.common.model.account.AccountType.EditType;
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
DDataKind.java24 import com.android.contacts.common.model.account.AccountType.EditType;
62 public List<EditType> typeList;
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/dataitem/
DDataItemTests.java36 import com.android.contacts.common.model.account.AccountType.EditType;
96 kind.typeList.add(new EditType(1, -1)); in testDataItemCollapsing_genericDataItemFields()
97 kind.typeList.add(new EditType(2, -1)); in testDataItemCollapsing_genericDataItemFields()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DDataAction.java37 import com.android.contacts.common.model.account.AccountType.EditType;
91 for (EditType type : kind.typeList) { in DataAction()