Home | History | Annotate | Download | only in contacts

Lines Matching refs:mimetype

77      * Returns the precedence (1 being the highest) of a type in the context of it's mimetype.
79 * @param mimetype The mimetype of the data with which the type is associated.
84 public static int getTypePrecedence(String mimetype, int type) {
85 int[] typePrecedence = getTypePrecedenceList(mimetype);
99 private static int[] getTypePrecedenceList(String mimetype) {
100 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) {
102 } else if (mimetype.equals(Constants.MIME_SMS_ADDRESS)) {
104 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) {
106 } else if (mimetype.equals(StructuredPostal.CONTENT_ITEM_TYPE)) {
108 } else if (mimetype.equals(Im.CONTENT_ITEM_TYPE)) {
110 } else if (mimetype.equals(Organization.CONTENT_ITEM_TYPE)) {