Home
last modified time | relevance | path

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

/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java52 import com.android.contacts.model.account.AccountType.EditType;
147 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind, in getValidTypes()
148 EditType forceInclude, boolean includeSecondary, SparseIntArray typeCount, in getValidTypes()
150 final ArrayList<EditType> validTypes = new ArrayList<EditType>(); in getValidTypes()
168 for (EditType type : kind.typeList) { in getValidTypes()
203 final EditType type = getCurrentType(entry, kind); in getTypeFrequencies()
226 public static EditType getCurrentType(ValuesDelta entry, DataKind kind) { in getCurrentType()
236 public static EditType getCurrentType(ContentValues entry, DataKind kind) { in getCurrentType()
247 public static EditType getCurrentType(Cursor cursor, DataKind kind) { in getCurrentType()
258 public static EditType getType(DataKind kind, int rawValue) { in getType()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java38 import com.android.contacts.model.account.AccountType.EditType;
99 phoneKind.typeList.add(new EditType(Phone.TYPE_HOME, -1).setSpecificMax(2)); in MockContactsSource()
100 phoneKind.typeList.add(new EditType(Phone.TYPE_WORK, -1).setSpecificMax(1)); in MockContactsSource()
101 phoneKind.typeList.add(new EditType(Phone.TYPE_FAX_WORK, -1).setSecondary(true)); in MockContactsSource()
102 phoneKind.typeList.add(new EditType(Phone.TYPE_OTHER, -1)); in MockContactsSource()
202 final EditType typeHome = RawContactModifier.getType(kindPhone, Phone.TYPE_HOME); in testValidTypes()
203 final EditType typeWork = RawContactModifier.getType(kindPhone, Phone.TYPE_WORK); in testValidTypes()
204 final EditType typeOther = RawContactModifier.getType(kindPhone, Phone.TYPE_OTHER); in testValidTypes()
206 List<EditType> validTypes; in testValidTypes()
247 final EditType typeHome = RawContactModifier.getType(kindPhone, Phone.TYPE_HOME); in testValidTypesWhenUpdating()
[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/Dialer/java/com/android/contacts/common/model/account/
DAccountType.java321 public static class EditType { class in AccountType
335 public EditType(int rawValue, int labelRes) { in EditType() method in AccountType.EditType
341 public EditType setSecondary(boolean secondary) { in setSecondary()
346 public EditType setSpecificMax(int specificMax) { in setSpecificMax()
351 public EditType setCustomColumn(String customColumn) { in setCustomColumn()
358 if (object instanceof EditType) { in equals()
359 final EditType other = (EditType) object; in equals()
386 public static class EventEditType extends EditType {
DBaseAccountType.java122 protected static EditType buildPhoneType(int type) { in buildPhoneType()
123 return new EditType(type, Phone.getTypeLabelResource(type)); in buildPhoneType()
126 protected static EditType buildEmailType(int type) { in buildEmailType()
127 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType()
130 protected static EditType buildPostalType(int type) { in buildPostalType()
131 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); in buildPostalType()
134 protected static EditType buildImType(int type) { in buildImType()
135 return new EditType(type, Im.getProtocolLabelResource(type)); in buildImType()
138 protected static EditType buildEventType(int type, boolean yearOptional) { in buildEventType()
142 protected static EditType buildRelationType(int type) { in buildRelationType()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountType.java355 public static class EditType { class in AccountType
366 public EditType(int rawValue, int labelRes) { in EditType() method in AccountType.EditType
372 public EditType setSecondary(boolean secondary) { in setSecondary()
377 public EditType setSpecificMax(int specificMax) { in setSpecificMax()
382 public EditType setCustomColumn(String customColumn) { in setCustomColumn()
389 if (object instanceof EditType) { in equals()
390 final EditType other = (EditType)object; in equals()
412 public static class EventEditType extends EditType {
DBaseAccountType.java127 protected static EditType buildPhoneType(int type) { in buildPhoneType()
128 return new EditType(type, Phone.getTypeLabelResource(type)); in buildPhoneType()
131 protected static EditType buildEmailType(int type) { in buildEmailType()
132 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType()
135 protected static EditType buildPostalType(int type) { in buildPostalType()
136 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); in buildPostalType()
139 protected static EditType buildImType(int type) { in buildImType()
140 return new EditType(type, Im.getProtocolLabelResource(type)); in buildImType()
143 protected static EditType buildEventType(int type, boolean yearOptional) { in buildEventType()
147 protected static EditType buildRelationType(int type) { in buildRelationType()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DLabeledEditorView.java52 import com.android.contacts.model.account.AccountType.EditType;
84 private EditType mType;
95 public static final EditType CUSTOM_SELECTION = new EditType(0, 0);
287 protected EditType getType() { in getType()
448 final List<EditType> allTypes = in createCustomDialog()
451 for (EditType editType : allTypes) { in createCustomDialog()
509 EditType selected = mEditTypeAdapter.getItem(position); in onTypeSelectionChange()
566 private class EditTypeAdapter extends ArrayAdapter<EditType> {
638 EditType type = getItem(position); in createViewFromResource()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataKind.java24 import com.android.contacts.model.account.AccountType.EditType;
62 public List<EditType> typeList;
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataKind.java23 import com.android.contacts.common.model.account.AccountType.EditType;
57 public List<EditType> typeList;
DDataItem.java40 import com.android.contacts.common.model.account.AccountType.EditType;
251 final EditType type = kind.typeList.get(i); in getTypePrecedence()
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java37 import com.android.contacts.model.account.AccountType.EditType;
95 kind.typeList.add(new EditType(1, -1)); in testDataItemCollapsing_genericDataItemFields()
96 kind.typeList.add(new EditType(2, -1)); in testDataItemCollapsing_genericDataItemFields()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DDataAction.java36 import com.android.contacts.model.account.AccountType.EditType;
91 for (EditType type : kind.typeList) { in DataAction()