Home
last modified time | relevance | path

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

/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.java128 protected static EditType buildPhoneType(int type) { in buildPhoneType()
129 return new EditType(type, Phone.getTypeLabelResource(type)); in buildPhoneType()
132 protected static EditType buildEmailType(int type) { in buildEmailType()
133 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType()
136 protected static EditType buildPostalType(int type) { in buildPostalType()
137 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); in buildPostalType()
140 protected static EditType buildImType(int type) { in buildImType()
141 return new EditType(type, Im.getProtocolLabelResource(type)); in buildImType()
144 protected static EditType buildEventType(int type, boolean yearOptional) { in buildEventType()
148 protected static EditType buildRelationType(int type) { in buildRelationType()
[all …]
/packages/providers/MediaProvider/pdf/framework/java/android/graphics/pdf/models/
DFormEditRecord.java71 private final @EditType int mType;
86 @EditType int type, in FormEditRecord()
128 @EditType
210 public @interface EditType { annotation in FormEditRecord
215 private final @EditType int mType;
238 @EditType int type, in Builder()
/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.java39 import com.android.contacts.model.account.AccountType.EditType;
100 phoneKind.typeList.add(new EditType(Phone.TYPE_HOME, -1).setSpecificMax(2)); in MockContactsSource()
101 phoneKind.typeList.add(new EditType(Phone.TYPE_WORK, -1).setSpecificMax(1)); in MockContactsSource()
102 phoneKind.typeList.add(new EditType(Phone.TYPE_FAX_WORK, -1).setSecondary(true)); in MockContactsSource()
103 phoneKind.typeList.add(new EditType(Phone.TYPE_OTHER, -1)); in MockContactsSource()
203 final EditType typeHome = RawContactModifier.getType(kindPhone, Phone.TYPE_HOME); in testValidTypes()
204 final EditType typeWork = RawContactModifier.getType(kindPhone, Phone.TYPE_WORK); in testValidTypes()
205 final EditType typeOther = RawContactModifier.getType(kindPhone, Phone.TYPE_OTHER); in testValidTypes()
207 List<EditType> validTypes; in testValidTypes()
248 final EditType typeHome = RawContactModifier.getType(kindPhone, Phone.TYPE_HOME); in testValidTypesWhenUpdating()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DLabeledEditorView.java52 import com.android.contacts.model.account.AccountType.EditType;
86 private EditType mType;
97 public static final EditType CUSTOM_SELECTION = new EditType(0, 0);
289 protected EditType getType() { in getType()
465 final List<EditType> allTypes = in createCustomDialog()
468 for (EditType editType : allTypes) { in createCustomDialog()
526 EditType selected = mEditTypeAdapter.getItem(position); in onTypeSelectionChange()
583 private class EditTypeAdapter extends ArrayAdapter<EditType> {
655 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/src/com/android/contacts/quickcontact/
DDataAction.java35 import com.android.contacts.model.account.AccountType.EditType;
86 for (EditType type : kind.typeList) { in DataAction()
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java37 import com.android.contacts.model.account.AccountType.EditType;
89 kind.typeList.add(new EditType(1, -1)); in testDataItemCollapsing_genericDataItemFields()
90 kind.typeList.add(new EditType(2, -1)); in testDataItemCollapsing_genericDataItemFields()