Home
last modified time | relevance | path

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

/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.java352 public static class EditType { class in AccountType
363 public EditType(int rawValue, int labelRes) { in EditType() method in AccountType.EditType
369 public EditType setSecondary(boolean secondary) { in setSecondary()
374 public EditType setSpecificMax(int specificMax) { in setSpecificMax()
379 public EditType setCustomColumn(String customColumn) { in setCustomColumn()
386 if (object instanceof EditType) { in equals()
387 final EditType other = (EditType)object; in equals()
409 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/ContactsCommon/src/com/android/contacts/common/model/
DRawContactModifier.java57 import com.android.contacts.common.model.account.AccountType.EditType;
149 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind, in getValidTypes()
150 EditType forceInclude, boolean includeSecondary, SparseIntArray typeCount, in getValidTypes()
152 final ArrayList<EditType> validTypes = new ArrayList<EditType>(); in getValidTypes()
170 for (EditType type : kind.typeList) { in getValidTypes()
205 final EditType type = getCurrentType(entry, kind); in getTypeFrequencies()
228 public static EditType getCurrentType(ValuesDelta entry, DataKind kind) { in getCurrentType()
238 public static EditType getCurrentType(ContentValues entry, DataKind kind) { in getCurrentType()
249 public static EditType getCurrentType(Cursor cursor, DataKind kind) { in getCurrentType()
260 public static EditType getType(DataKind kind, int rawValue) { in getType()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactModifierTests.java46 import com.android.contacts.common.model.account.AccountType.EditType;
107 phoneKind.typeList.add(new EditType(Phone.TYPE_HOME, -1).setSpecificMax(2)); in MockContactsSource()
108 phoneKind.typeList.add(new EditType(Phone.TYPE_WORK, -1).setSpecificMax(1)); in MockContactsSource()
109 phoneKind.typeList.add(new EditType(Phone.TYPE_FAX_WORK, -1).setSecondary(true)); in MockContactsSource()
110 phoneKind.typeList.add(new EditType(Phone.TYPE_OTHER, -1)); in MockContactsSource()
210 final EditType typeHome = RawContactModifier.getType(kindPhone, Phone.TYPE_HOME); in testValidTypes()
211 final EditType typeWork = RawContactModifier.getType(kindPhone, Phone.TYPE_WORK); in testValidTypes()
212 final EditType typeOther = RawContactModifier.getType(kindPhone, Phone.TYPE_OTHER); in testValidTypes()
214 List<EditType> validTypes; in testValidTypes()
255 final EditType typeHome = RawContactModifier.getType(kindPhone, Phone.TYPE_HOME); in testValidTypesWhenUpdating()
[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);
285 protected EditType getType() { in getType()
446 final List<EditType> allTypes = in createCustomDialog()
449 for (EditType editType : allTypes) { in createCustomDialog()
507 EditType selected = mEditTypeAdapter.getItem(position); in onTypeSelectionChange()
563 private class EditTypeAdapter extends ArrayAdapter<EditType> {
631 EditType type = getItem(position); in createViewFromResource()
DBaseRawContactEditorView.java38 import com.android.contacts.common.model.account.AccountType.EditType;
DRawContactEditorView.java41 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/Contacts/src/com/android/contacts/quickcontact/
DDataAction.java36 import com.android.contacts.common.model.account.AccountType.EditType;
91 for (EditType type : kind.typeList) { in DataAction()
/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()