/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
D | ExchangeAccountType.java | 35 import com.android.contacts.common.model.dataitem.DataKind; 81 protected DataKind addDataKindStructuredName(Context context) throws DefinitionException { in addDataKindStructuredName() 82 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in addDataKindStructuredName() 110 protected DataKind addDataKindDisplayName(Context context) throws DefinitionException { in addDataKindDisplayName() 111 DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME, in addDataKindDisplayName() 143 protected DataKind addDataKindPhoneticName(Context context) throws DefinitionException { in addDataKindPhoneticName() 144 DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME, in addDataKindPhoneticName() 161 protected DataKind addDataKindNickname(Context context) throws DefinitionException { in addDataKindNickname() 162 final DataKind kind = super.addDataKindNickname(context); in addDataKindNickname() 174 protected DataKind addDataKindPhone(Context context) throws DefinitionException { in addDataKindPhone() [all …]
|
D | BaseAccountType.java | 42 import com.android.contacts.common.model.dataitem.DataKind; 149 protected DataKind addDataKindStructuredName(Context context) throws DefinitionException { in addDataKindStructuredName() 150 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in addDataKindStructuredName() 179 protected DataKind addDataKindDisplayName(Context context) throws DefinitionException { in addDataKindDisplayName() 180 DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME, in addDataKindDisplayName() 220 protected DataKind addDataKindPhoneticName(Context context) throws DefinitionException { in addDataKindPhoneticName() 221 DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME, in addDataKindPhoneticName() 228 kind.fieldList.add(new EditField(DataKind.PSEUDO_COLUMN_PHONETIC_NAME, in addDataKindPhoneticName() 240 protected DataKind addDataKindNickname(Context context) throws DefinitionException { in addDataKindNickname() 241 DataKind kind = addKind(new DataKind(Nickname.CONTENT_ITEM_TYPE, in addDataKindNickname() [all …]
|
D | SamsungAccountType.java | 22 import com.android.contacts.common.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 …]
|
D | AccountType.java | 31 import com.android.contacts.common.model.dataitem.DataKind; 90 private ArrayList<DataKind> mKinds = Lists.newArrayList(); 95 private HashMap<String, DataKind> mMimeKinds = Maps.newHashMap(); 303 private static Comparator<DataKind> sWeightComparator = new Comparator<DataKind>() { 305 public int compare(DataKind object1, DataKind object2) { 314 public ArrayList<DataKind> getSortedDataKinds() { in getSortedDataKinds() 324 public DataKind getKindForMimetype(String mimeType) { in getKindForMimetype() 331 public DataKind addKind(DataKind kind) throws DefinitionException { in addKind()
|
D | GoogleAccountType.java | 28 import com.android.contacts.common.model.dataitem.DataKind; 84 protected DataKind addDataKindPhone(Context context) throws DefinitionException { in addDataKindPhone() 85 final DataKind kind = super.addDataKindPhone(context); in addDataKindPhone() 107 protected DataKind addDataKindEmail(Context context) throws DefinitionException { in addDataKindEmail() 108 final DataKind kind = super.addDataKindEmail(context); in addDataKindEmail() 124 private DataKind addDataKindRelation(Context context) throws DefinitionException { in addDataKindRelation() 125 DataKind kind = addKind(new DataKind(Relation.CONTENT_ITEM_TYPE, in addDataKindRelation() 159 private DataKind addDataKindEvent(Context context) throws DefinitionException { in addDataKindEvent() 160 DataKind kind = addKind(new DataKind(Event.CONTENT_ITEM_TYPE, in addDataKindEvent()
|
D | ExternalAccountType.java | 36 import com.android.contacts.common.model.dataitem.DataKind; 137 checkKindExists(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME); in ExternalAccountType() 138 checkKindExists(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME); in ExternalAccountType() 376 final DataKind kind = new DataKind(); in inflate()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | ContactsSource.java | 69 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
|
D | ExchangeSource.java | 65 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 …]
|
D | FallbackSource.java | 105 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 …]
|
D | GoogleSource.java | 73 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/ContactsCommon/src/com/android/contacts/common/model/ |
D | RawContactModifier.java | 60 import com.android.contacts.common.model.dataitem.DataKind; 90 public static boolean canInsert(RawContactDelta state, DataKind kind) { in canInsert() 99 public static boolean hasValidTypes(RawContactDelta state, DataKind kind) { in hasValidTypes() 115 final DataKind kind = accountType.getKindForMimetype(mimeType); in ensureKindExists() 149 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind, in getValidTypes() 192 private static SparseIntArray getTypeFrequencies(RawContactDelta state, DataKind kind) { in getTypeFrequencies() 219 public static boolean hasEditTypes(DataKind kind) { in hasEditTypes() 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() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
D | DataItem.java | 49 protected DataKind mKind; 137 public boolean hasKindTypeColumn(DataKind kind) { in hasKindTypeColumn() 143 public int getKindTypeColumn(DataKind kind) { in getKindTypeColumn() 162 public String buildDataString(Context context, DataKind kind) { in buildDataString() 177 public String buildDataStringForDisplay(Context context, DataKind kind) { in buildDataStringForDisplay() 181 public void setDataKind(DataKind kind) { in setDataKind() 185 public DataKind getDataKind() { in getDataKind() 199 DataKind thisKind = getDataKind(); in collapseWith() 200 DataKind thatKind = that.getDataKind(); in collapseWith()
|
D | DataKind.java | 37 public final class DataKind { class 87 public DataKind() { in DataKind() method in DataKind 91 public DataKind(String mimeType, int titleRes, int weight, boolean editable) { in DataKind() method in DataKind
|
D | PhoneDataItem.java | 25 import com.android.contacts.common.model.dataitem.DataKind; 72 public String buildDataStringForDisplay(Context context, DataKind kind) { in buildDataStringForDisplay()
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
D | RawContactModifierTests.java | 49 import com.android.contacts.common.model.dataitem.DataKind; 94 final DataKind nameKind = new DataKind(StructuredName.CONTENT_ITEM_TYPE, in MockContactsSource() 101 final DataKind phoneKind = new DataKind( in MockContactsSource() 119 final DataKind emailKind = new DataKind(Email.CONTENT_ITEM_TYPE, -1, 10, true); in MockContactsSource() 126 final DataKind imKind = new DataKind(Im.CONTENT_ITEM_TYPE, -1, 10, true); in MockContactsSource() 133 final DataKind orgKind = new DataKind(Organization.CONTENT_ITEM_TYPE, -1, 10, true); in MockContactsSource() 209 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testValidTypes() 254 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testValidTypesWhenUpdating() 291 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testCanInsert() 320 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testBestValidType() [all …]
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
D | ExternalAccountTypeTest.java | 36 import com.android.contacts.common.model.dataitem.DataKind; 95 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME)); in testEditSchema() 96 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME)); in testEditSchema() 169 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME)); in testReadOnlyDefinition() 170 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME)); in testReadOnlyDefinition() 174 DataKind kind = type.getKindForMimetype("vnd.android.cursor.item/a.b.c"); in testReadOnlyDefinition() 197 private static void assertsDataKindEquals(List<DataKind> expectedKinds, in assertsDataKindEquals() 198 List<DataKind> actualKinds) { in assertsDataKindEquals()
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/dataitem/ |
D | DataItemTests.java | 40 import com.android.contacts.common.model.dataitem.DataKind; 72 private List<DataItem> createDataItemsAndCollapse(DataKind kind, ContentValues... values) { in createDataItemsAndCollapse() 93 final DataKind kind = new DataKind("test.mimetype", 0, 0, false); in testDataItemCollapsing_genericDataItemFields() 129 final DataKind kind = mGoogleAccountType.getKindForMimetype(Email.CONTENT_ITEM_TYPE); in testDataItemCollapsing_email() 166 final DataKind kind = mGoogleAccountType.getKindForMimetype(Event.CONTENT_ITEM_TYPE); in testDataItemCollapsing_event() 202 final DataKind kind = mGoogleAccountType.getKindForMimetype(Im.CONTENT_ITEM_TYPE); in testDataItemCollapsing_im() 229 final DataKind kind = mGoogleAccountType.getKindForMimetype(Nickname.CONTENT_ITEM_TYPE); in testDataItemCollapsing_nickname() 251 DataKind kind = mGoogleAccountType.getKindForMimetype(Note.CONTENT_ITEM_TYPE); in testDataItemCollapsing_note() 282 final DataKind kind = in testDataItemCollapsing_organization() 314 final DataKind kind = mGoogleAccountType.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testDataItemCollapsing_phone() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | PhoneticNameEditorView.java | 25 import com.android.contacts.common.model.dataitem.DataKind; 45 if (key.equals(DataKind.PSEUDO_COLUMN_PHONETIC_NAME)) { in put() 56 if (key.equals(DataKind.PSEUDO_COLUMN_PHONETIC_NAME)) { in getAsString() 89 return DataKind.PSEUDO_COLUMN_PHONETIC_NAME.equals(column); in isUnstructuredPhoneticNameColumn() 105 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
|
D | RawContactEditorView.java | 42 import com.android.contacts.common.model.dataitem.DataKind; 87 private DataKind mGroupMembershipKind; 254 for (DataKind kind : type.getSortedDataKinds()) { in setState() 263 type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME), in setState() 266 type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME), in setState() 271 final DataKind nickNameKind = type.getKindForMimetype(Nickname.CONTENT_ITEM_TYPE); in setState() 293 } else if (DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME.equals(mimeType) in setState() 294 || DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME.equals(mimeType) in setState()
|
D | KindSectionData.java | 23 import com.android.contacts.common.model.dataitem.DataKind; 36 private final DataKind mDataKind; 39 public KindSectionData(AccountType accountType, DataKind dataKind, in KindSectionData() 114 public DataKind getDataKind() { in getDataKind()
|
D | ViewIdGenerator.java | 25 import com.android.contacts.common.model.dataitem.DataKind; 71 public int getId(RawContactDelta entity, DataKind kind, ValuesDelta values, in getId() 84 private static String getMapKey(RawContactDelta entity, DataKind kind, ValuesDelta values, in getMapKey()
|
D | CompactKindSectionView.java | 24 import com.android.contacts.common.model.dataitem.DataKind; 298 final DataKind dataKind = mKindSectionDataList.getDataKind(); in setState() 377 accountType.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME), in addNameEditorViews() 390 accountType.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME), in addNameEditorViews() 401 private void addGroupEditorView(RawContactDelta rawContactDelta, DataKind dataKind) { in addGroupEditorView() 414 private View addNonNameEditorView(RawContactDelta rawContactDelta, DataKind dataKind, in addNonNameEditorView() 544 final DataKind dataKind = mKindSectionDataList.get(0).getDataKind(); in updateEmptyNonNameEditors()
|
D | KindSectionView.java | 33 import com.android.contacts.common.model.dataitem.DataKind; 57 private DataKind mKind; 135 public void setState(DataKind kind, RawContactDelta state, boolean readOnly, in setState() 286 public DataKind getKind() { in getKind()
|
D | Editor.java | 23 import com.android.contacts.common.model.dataitem.DataKind; 67 … public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly, in setValues()
|
D | EventFieldEditorView.java | 38 import com.android.contacts.common.model.dataitem.DataKind; 110 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues() 166 final DataKind kind = getKind(); in onLabelRebuilt() 197 final DataKind kind = getKind(); in createDatePickerDialog()
|