Lines Matching refs:mimetype
79 * Returns the precedence (1 being the highest) of a type in the context of it's mimetype.
81 * @param mimetype The mimetype of the data with which the type is associated.
86 public static int getTypePrecedence(String mimetype, int type) {
87 int[] typePrecedence = getTypePrecedenceList(mimetype);
101 private static int[] getTypePrecedenceList(String mimetype) {
102 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) {
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(MIME_TYPE_VIDEO_CHAT)) {
112 } else if (mimetype.equals(Organization.CONTENT_ITEM_TYPE)) {