Home
last modified time | relevance | path

Searched refs:DataKind (Results 1 – 25 of 49) sorted by relevance

12

/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DBaseAccountType.java41 import com.android.contacts.common.model.dataitem.DataKind;
159 protected DataKind addDataKindStructuredName(Context context) throws DefinitionException { in addDataKindStructuredName()
160 DataKind kind = in addDataKindStructuredName()
162 new DataKind( in addDataKindStructuredName()
199 protected DataKind addDataKindDisplayName(Context context) throws DefinitionException { in addDataKindDisplayName()
200 DataKind kind = in addDataKindDisplayName()
202 new DataKind( in addDataKindDisplayName()
203 DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME, in addDataKindDisplayName()
256 protected DataKind addDataKindPhoneticName(Context context) throws DefinitionException { in addDataKindPhoneticName()
257 DataKind kind = in addDataKindPhoneticName()
[all …]
DExchangeAccountType.java34 import com.android.contacts.common.model.dataitem.DataKind;
81 protected DataKind addDataKindStructuredName(Context context) throws DefinitionException { in addDataKindStructuredName()
82 DataKind kind = in addDataKindStructuredName()
84 new DataKind( in addDataKindStructuredName()
115 protected DataKind addDataKindDisplayName(Context context) throws DefinitionException { in addDataKindDisplayName()
116 DataKind kind = in addDataKindDisplayName()
118 new DataKind( in addDataKindDisplayName()
119 DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME, in addDataKindDisplayName()
157 protected DataKind addDataKindPhoneticName(Context context) throws DefinitionException { in addDataKindPhoneticName()
158 DataKind kind = in addDataKindPhoneticName()
[all …]
DSamsungAccountType.java28 import com.android.contacts.common.model.dataitem.DataKind;
86 protected DataKind addDataKindStructuredPostal(Context context) throws DefinitionException { in addDataKindStructuredPostal()
87 final DataKind kind = super.addDataKindStructuredPostal(context); in addDataKindStructuredPostal()
126 protected DataKind addDataKindPhone(Context context) throws DefinitionException { in addDataKindPhone()
127 final DataKind kind = super.addDataKindPhone(context); in addDataKindPhone()
150 protected DataKind addDataKindEmail(Context context) throws DefinitionException { in addDataKindEmail()
151 final DataKind kind = super.addDataKindEmail(context); in addDataKindEmail()
167 private DataKind addDataKindRelation(Context context) throws DefinitionException { in addDataKindRelation()
168 DataKind kind = in addDataKindRelation()
169 addKind(new DataKind(Relation.CONTENT_ITEM_TYPE, R.string.relationLabelsGroup, 160, true)); in addDataKindRelation()
[all …]
DGoogleAccountType.java27 import com.android.contacts.common.model.dataitem.DataKind;
82 protected DataKind addDataKindPhone(Context context) throws DefinitionException { in addDataKindPhone()
83 final DataKind kind = super.addDataKindPhone(context); in addDataKindPhone()
105 protected DataKind addDataKindEmail(Context context) throws DefinitionException { in addDataKindEmail()
106 final DataKind kind = super.addDataKindEmail(context); in addDataKindEmail()
122 private DataKind addDataKindRelation(Context context) throws DefinitionException { in addDataKindRelation()
123 DataKind kind = in addDataKindRelation()
125 new DataKind( in addDataKindRelation()
161 private DataKind addDataKindEvent(Context context) throws DefinitionException { in addDataKindEvent()
162 DataKind kind = in addDataKindEvent()
[all …]
DAccountType.java33 import com.android.contacts.common.model.dataitem.DataKind;
52 private static Comparator<DataKind> sWeightComparator =
53 new Comparator<DataKind>() {
55 public int compare(DataKind object1, DataKind object2) {
87 private ArrayList<DataKind> mKinds = new ArrayList<>();
89 private Map<String, DataKind> mMimeKinds = new ArrayMap<>();
269 public ArrayList<DataKind> getSortedDataKinds() { in getSortedDataKinds()
276 public DataKind getKindForMimetype(String mimeType) { in getKindForMimetype()
281 public DataKind addKind(DataKind kind) throws DefinitionException { in addKind()
DExternalAccountType.java36 import com.android.contacts.common.model.dataitem.DataKind;
135 checkKindExists(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME); in ExternalAccountType()
136 checkKindExists(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME); in ExternalAccountType()
416 final DataKind kind = new DataKind(); in inflate()
/packages/apps/Contacts/src/com/android/contacts/model/account/
DBaseAccountType.java44 import com.android.contacts.model.dataitem.DataKind;
151 protected DataKind addDataKindStructuredName(Context context) throws DefinitionException { in addDataKindStructuredName()
152 final DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in addDataKindStructuredName()
179 protected DataKind addDataKindName(Context context) throws DefinitionException { in addDataKindName()
180 final DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_NAME, in addDataKindName()
213 protected DataKind addDataKindPhoneticName(Context context) throws DefinitionException { in addDataKindPhoneticName()
214 DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME, in addDataKindPhoneticName()
232 protected DataKind addDataKindNickname(Context context) throws DefinitionException { in addDataKindNickname()
233 DataKind kind = addKind(new DataKind(Nickname.CONTENT_ITEM_TYPE, in addDataKindNickname()
248 protected DataKind addDataKindPhone(Context context) throws DefinitionException { in addDataKindPhone()
[all …]
DExchangeAccountType.java34 import com.android.contacts.model.dataitem.DataKind;
83 protected DataKind addDataKindStructuredName(Context context) throws DefinitionException { in addDataKindStructuredName()
84 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in addDataKindStructuredName()
112 protected DataKind addDataKindPhoneticName(Context context) throws DefinitionException { in addDataKindPhoneticName()
113 DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME, in addDataKindPhoneticName()
130 protected DataKind addDataKindNickname(Context context) throws DefinitionException { in addDataKindNickname()
131 final DataKind kind = super.addDataKindNickname(context); in addDataKindNickname()
143 protected DataKind addDataKindPhone(Context context) throws DefinitionException { in addDataKindPhone()
144 final DataKind kind = super.addDataKindPhone(context); in addDataKindPhone()
173 protected DataKind addDataKindEmail(Context context) throws DefinitionException { in addDataKindEmail()
[all …]
DSamsungAccountType.java28 import com.android.contacts.model.dataitem.DataKind;
89 protected DataKind addDataKindStructuredPostal(Context context) throws DefinitionException { in addDataKindStructuredPostal()
90 final DataKind kind = super.addDataKindStructuredPostal(context); in addDataKindStructuredPostal()
129 protected DataKind addDataKindPhone(Context context) throws DefinitionException { in addDataKindPhone()
130 final DataKind kind = super.addDataKindPhone(context); in addDataKindPhone()
153 protected DataKind addDataKindEmail(Context context) throws DefinitionException { in addDataKindEmail()
154 final DataKind kind = super.addDataKindEmail(context); in addDataKindEmail()
170 private DataKind addDataKindRelation(Context context) throws DefinitionException { in addDataKindRelation()
171 DataKind kind = addKind(new DataKind(Relation.CONTENT_ITEM_TYPE, in addDataKindRelation()
205 private DataKind addDataKindEvent(Context context) throws DefinitionException { in addDataKindEvent()
[all …]
DSimAccountType.java24 import com.android.contacts.model.dataitem.DataKind;
42 final DataKind phoneKind = addDataKindPhone(context); in SimAccountType()
72 protected DataKind addDataKindStructuredName(Context context) throws DefinitionException { in addDataKindStructuredName()
73 final DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in addDataKindStructuredName()
90 protected DataKind addDataKindName(Context context) throws DefinitionException { in addDataKindName()
91 final DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_NAME, in addDataKindName()
DGoogleAccountType.java27 import com.android.contacts.model.dataitem.DataKind;
86 protected DataKind addDataKindPhone(Context context) throws DefinitionException { in addDataKindPhone()
87 final DataKind kind = super.addDataKindPhone(context); in addDataKindPhone()
109 protected DataKind addDataKindEmail(Context context) throws DefinitionException { in addDataKindEmail()
110 final DataKind kind = super.addDataKindEmail(context); in addDataKindEmail()
126 private DataKind addDataKindRelation(Context context) throws DefinitionException { in addDataKindRelation()
127 DataKind kind = addKind(new DataKind(Relation.CONTENT_ITEM_TYPE, in addDataKindRelation()
161 private DataKind addDataKindEvent(Context context) throws DefinitionException { in addDataKindEvent()
162 DataKind kind = addKind(new DataKind(Event.CONTENT_ITEM_TYPE, in addDataKindEvent()
DAccountType.java32 import com.android.contacts.model.dataitem.DataKind;
94 private ArrayList<DataKind> mKinds = Lists.newArrayList();
99 private HashMap<String, DataKind> mMimeKinds = Maps.newHashMap();
300 private static Comparator<DataKind> sWeightComparator = new Comparator<DataKind>() {
302 public int compare(DataKind object1, DataKind object2) {
311 public ArrayList<DataKind> getSortedDataKinds() { in getSortedDataKinds()
321 public DataKind getKindForMimetype(String mimeType) { in getKindForMimetype()
334 public DataKind addKind(DataKind kind) throws DefinitionException { in addKind()
DExternalAccountType.java37 import com.android.contacts.model.dataitem.DataKind;
137 checkKindExists(DataKind.PSEUDO_MIME_TYPE_NAME); in ExternalAccountType()
138 checkKindExists(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME); in ExternalAccountType()
179 final DataKind dataKind = getKindForMimetype(GroupMembership.CONTENT_ITEM_TYPE); in ExternalAccountType()
374 final DataKind kind = new DataKind(); in inflate()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DFallbackSource.java105 protected DataKind inflateStructuredName(Context context, int inflateLevel) { in inflateStructuredName()
106 DataKind kind = getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE); in inflateStructuredName()
108 kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in inflateStructuredName()
155 protected DataKind inflateNickname(Context context, int inflateLevel) { in inflateNickname()
156 DataKind kind = getKindForMimetype(Nickname.CONTENT_ITEM_TYPE); in inflateNickname()
158 kind = addKind(new DataKind(Nickname.CONTENT_ITEM_TYPE, in inflateNickname()
178 protected DataKind inflatePhone(Context context, int inflateLevel) { in inflatePhone()
179 DataKind kind = getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in inflatePhone()
181 kind = addKind(new DataKind(Phone.CONTENT_ITEM_TYPE, R.string.phoneLabelsGroup, in inflatePhone()
223 protected DataKind inflateEmail(Context context, int inflateLevel) { in inflateEmail()
[all …]
DExchangeSource.java65 protected DataKind inflateStructuredName(Context context, int inflateLevel) { in inflateStructuredName()
66 final DataKind kind = super.inflateStructuredName(context, ContactsSource.LEVEL_MIMETYPES); in inflateStructuredName()
109 protected DataKind inflateNickname(Context context, int inflateLevel) { in inflateNickname()
110 final DataKind kind = super.inflateNickname(context, ContactsSource.LEVEL_MIMETYPES); in inflateNickname()
124 protected DataKind inflatePhone(Context context, int inflateLevel) { in inflatePhone()
125 final DataKind kind = super.inflatePhone(context, ContactsSource.LEVEL_MIMETYPES); in inflatePhone()
156 protected DataKind inflateEmail(Context context, int inflateLevel) { in inflateEmail()
157 final DataKind kind = super.inflateEmail(context, ContactsSource.LEVEL_MIMETYPES); in inflateEmail()
170 protected DataKind inflateStructuredPostal(Context context, int inflateLevel) { in inflateStructuredPostal()
171 … final DataKind kind = super.inflateStructuredPostal(context, ContactsSource.LEVEL_MIMETYPES); in inflateStructuredPostal()
[all …]
DContactsSource.java69 private ArrayList<DataKind> mKinds = Lists.newArrayList();
74 private HashMap<String, DataKind> mMimeKinds = Maps.newHashMap();
148 private static Comparator<DataKind> sWeightComparator = new Comparator<DataKind>() {
149 public int compare(DataKind object1, DataKind object2) {
158 public ArrayList<DataKind> getSortedDataKinds() { in getSortedDataKinds()
169 public DataKind getKindForMimetype(String mimeType) { in getKindForMimetype()
176 public DataKind addKind(DataKind kind) { in addKind()
189 public static class DataKind { class in ContactsSource
224 public DataKind() { in DataKind() method in ContactsSource.DataKind
227 public DataKind(String mimeType, int titleRes, int iconRes, int weight, boolean editable) { in DataKind() method in ContactsSource.DataKind
DGoogleSource.java73 protected DataKind inflateStructuredName(Context context, int inflateLevel) { in inflateStructuredName()
78 protected DataKind inflateNickname(Context context, int inflateLevel) { in inflateNickname()
83 protected DataKind inflatePhone(Context context, int inflateLevel) { in inflatePhone()
84 final DataKind kind = super.inflatePhone(context, ContactsSource.LEVEL_MIMETYPES); in inflatePhone()
107 protected DataKind inflateEmail(Context context, int inflateLevel) { in inflateEmail()
108 final DataKind kind = super.inflateEmail(context, ContactsSource.LEVEL_MIMETYPES); in inflateEmail()
127 protected DataKind inflateStructuredPostal(Context context, int inflateLevel) { in inflateStructuredPostal()
132 protected DataKind inflateIm(Context context, int inflateLevel) { in inflateIm()
137 protected DataKind inflateOrganization(Context context, int inflateLevel) { in inflateOrganization()
142 protected DataKind inflatePhoto(Context context, int inflateLevel) { in inflatePhoto()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java55 import com.android.contacts.model.dataitem.DataKind;
88 public static boolean canInsert(RawContactDelta state, DataKind kind) { in canInsert()
97 public static boolean hasValidTypes(RawContactDelta state, DataKind kind) { in hasValidTypes()
113 final DataKind kind = accountType.getKindForMimetype(mimeType); in ensureKindExists()
147 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind, in getValidTypes()
190 private static SparseIntArray getTypeFrequencies(RawContactDelta state, DataKind kind) { in getTypeFrequencies()
217 public static boolean hasEditTypes(DataKind kind) { in hasEditTypes()
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()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java41 import com.android.contacts.model.dataitem.DataKind;
86 final DataKind nameKind = new DataKind(StructuredName.CONTENT_ITEM_TYPE, in MockContactsSource()
93 final DataKind phoneKind = new DataKind( in MockContactsSource()
111 final DataKind emailKind = new DataKind(Email.CONTENT_ITEM_TYPE, -1, 10, true); in MockContactsSource()
118 final DataKind imKind = new DataKind(Im.CONTENT_ITEM_TYPE, -1, 10, true); in MockContactsSource()
125 final DataKind orgKind = new DataKind(Organization.CONTENT_ITEM_TYPE, -1, 10, true); in MockContactsSource()
201 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testValidTypes()
246 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testValidTypesWhenUpdating()
283 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testCanInsert()
312 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testBestValidType()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataItem.java46 protected DataKind mKind;
130 public boolean hasKindTypeColumn(DataKind kind) { in hasKindTypeColumn()
137 public int getKindTypeColumn(DataKind kind) { in getKindTypeColumn()
156 public String buildDataString(Context context, DataKind kind) { in buildDataString()
171 public String buildDataStringForDisplay(Context context, DataKind kind) { in buildDataStringForDisplay()
175 public DataKind getDataKind() { in getDataKind()
179 public void setDataKind(DataKind kind) { in setDataKind()
193 DataKind thisKind = getDataKind(); in collapseWith()
194 DataKind thatKind = that.getDataKind(); in collapseWith()
249 private static int getTypePrecedence(DataKind kind, int rawValue) { in getTypePrecedence()
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java71 private List<DataItem> createDataItemsAndCollapse(DataKind kind, ContentValues... values) { in createDataItemsAndCollapse()
92 final DataKind kind = new DataKind("test.mimetype", 0, 0, false); in testDataItemCollapsing_genericDataItemFields()
128 final DataKind kind = mGoogleAccountType.getKindForMimetype(Email.CONTENT_ITEM_TYPE); in testDataItemCollapsing_email()
165 final DataKind kind = mGoogleAccountType.getKindForMimetype(Event.CONTENT_ITEM_TYPE); in testDataItemCollapsing_event()
201 final DataKind kind = mGoogleAccountType.getKindForMimetype(Im.CONTENT_ITEM_TYPE); in testDataItemCollapsing_im()
228 final DataKind kind = mGoogleAccountType.getKindForMimetype(Nickname.CONTENT_ITEM_TYPE); in testDataItemCollapsing_nickname()
250 DataKind kind = mGoogleAccountType.getKindForMimetype(Note.CONTENT_ITEM_TYPE); in testDataItemCollapsing_note()
281 final DataKind kind = in testDataItemCollapsing_organization()
313 final DataKind kind = mGoogleAccountType.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testDataItemCollapsing_phone()
349 final DataKind kind = mGoogleAccountType.getKindForMimetype(Relation.CONTENT_ITEM_TYPE); in testDataItemCollapsing_relation()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java49 protected DataKind mKind;
139 public boolean hasKindTypeColumn(DataKind kind) { in hasKindTypeColumn()
145 public int getKindTypeColumn(DataKind kind) { in getKindTypeColumn()
165 public String buildDataString(Context context, DataKind kind) { in buildDataString()
180 public String buildDataStringForDisplay(Context context, DataKind kind) { in buildDataStringForDisplay()
184 public void setDataKind(DataKind kind) { in setDataKind()
188 public DataKind getDataKind() { in getDataKind()
202 DataKind thisKind = getDataKind(); in collapseWith()
203 DataKind thatKind = that.getDataKind(); in collapseWith()
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/
DExternalAccountTypeTest.java36 import com.android.contacts.model.dataitem.DataKind;
54 DataKind.PSEUDO_MIME_TYPE_NAME,
55 DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME,
108 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_NAME)); in testEditSchema()
109 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME)); in testEditSchema()
185 DataKind kind = type.getKindForMimetype("vnd.android.cursor.item/a.b.c"); in testReadOnlyDefinition()
208 private static void assertsDataKindEquals(List<DataKind> expectedKinds, in assertsDataKindEquals()
209 List<DataKind> actualKinds) { in assertsDataKindEquals()
/packages/apps/Contacts/src/com/android/contacts/editor/
DKindSectionView.java38 import com.android.contacts.model.dataitem.DataKind;
274 final DataKind dataKind = mKindSectionData.getDataKind(); in setState()
352 nameView.setValues(accountType.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_NAME), in addNameEditorViews()
360 final DataKind phoneticNameKind = accountType in addNameEditorViews()
361 .getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME); in addNameEditorViews()
370 accountType.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME), in addNameEditorViews()
383 private void addGroupEditorView(RawContactDelta rawContactDelta, DataKind dataKind) { in addGroupEditorView()
396 private View addNonNameEditorView(RawContactDelta rawContactDelta, DataKind dataKind, in addNonNameEditorView()
527 final DataKind dataKind = mKindSectionData.getDataKind(); in updateEmptyNonNameEditors()
DKindSectionData.java25 import com.android.contacts.model.dataitem.DataKind;
36 private final DataKind mDataKind;
39 public KindSectionData(AccountType accountType, DataKind dataKind, in KindSectionData()
114 public DataKind getDataKind() { in getDataKind()

12