Lines Matching refs:mimetype
48 * provided cursor, assuming the given mimeType.
51 String mimeType, Cursor cursor) {
52 // Try finding the type and label for this mimetype
56 if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)
57 || Constants.MIME_SMS_ADDRESS.equals(mimeType)) {
58 // Reset to phone mimetype so we generate a label for SMS case
59 mimeType = Phone.CONTENT_ITEM_TYPE;
62 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) {
65 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) {
68 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) {
78 return getDisplayLabel(context, mimeType, type, label);
81 public static final CharSequence getDisplayLabel(Context context, String mimetype, int type,
88 if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) {
92 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) {
96 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimetype)) {
100 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimetype)) {
105 // Can't return display label for given mimetype.
235 final boolean isEmail = Email.CONTENT_ITEM_TYPE.equals(values.getAsString(Data.MIMETYPE));
300 Data.MIMETYPE + "=" + Phone.MIMETYPE +