Lines Matching refs:mimetype
71 * Returns the precedence (1 being the highest) of a type in the context of it's mimetype.
73 * @param mimetype The mimetype of the data with which the type is associated.
78 public static int getTypePrecedence(String mimetype, int type) {
79 int[] typePrecedence = getTypePrecedenceList(mimetype);
93 private static int[] getTypePrecedenceList(String mimetype) {
94 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) {
96 } else if (mimetype.equals(Constants.MIME_SMS_ADDRESS)) {
98 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) {
100 } else if (mimetype.equals(StructuredPostal.CONTENT_ITEM_TYPE)) {
102 } else if (mimetype.equals(Im.CONTENT_ITEM_TYPE)) {
104 } else if (mimetype.equals(Organization.CONTENT_ITEM_TYPE)) {