/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | EditorUiUtils.java | 38 // Generally there should be a layout mapped to each existing DataKind mimetype but lots of 67 * Fetches a layout for a given mimetype. 69 * @param mimetype The mime type (e.g. StructuredName.CONTENT_ITEM_TYPE) 72 public static int getLayoutResourceId(String mimetype) { argument 73 final Integer id = mimetypeLayoutMap.get(mimetype);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | DataRowHandlerForCustomMimetype.java | 25 ContactsDatabaseHelper dbHelper, ContactAggregator aggregator, String mimetype) { 26 super(context, dbHelper, aggregator, mimetype); 24 DataRowHandlerForCustomMimetype(Context context, ContactsDatabaseHelper dbHelper, ContactAggregator aggregator, String mimetype) argument
|
H A D | DataRowHandlerForCommonDataKind.java | 37 ContactAggregator aggregator, String mimetype, String typeColumn, String labelColumn) { 38 super(context, dbHelper, aggregator, mimetype); 36 DataRowHandlerForCommonDataKind(Context context, ContactsDatabaseHelper dbHelper, ContactAggregator aggregator, String mimetype, String typeColumn, String labelColumn) argument
|
H A D | DataRowHandler.java | 84 ContactAggregator aggregator, String mimetype) { 88 mMimetype = mimetype; 83 DataRowHandler(Context context, ContactsDatabaseHelper dbHelper, ContactAggregator aggregator, String mimetype) argument
|
H A D | ContactsDatabaseHelper.java | 251 + " ON (mimetypes.mimetype='" + GroupMembership.CONTENT_ITEM_TYPE + "' " 290 + "mimetypes.mimetype = '" + GroupMembership.CONTENT_ITEM_TYPE + "')" 545 public static final String MIMETYPE = "mimetype"; 1110 DataColumns.MIMETYPE_ID + " INTEGER REFERENCES mimetype(_id) NOT NULL," + 3564 final long mimetype = lookupMimeTypeId(db, GroupMembership.CONTENT_ITEM_TYPE); 3572 " WHERE mimetype_id=" + mimetype + 3918 " WHERE mimetype='vnd.android.cursor.item/phone_v2')" + 4389 * Convert a mimetype into an integer, using {@link Tables#MIMETYPES} for 4392 public long getMimeTypeId(String mimetype) { argument 4394 if (mMimetypeCache.containsKey(mimetype)) retur 4399 lookupMimeTypeId(String mimetype, SQLiteDatabase db) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | TypePrecedence.java | 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) { argument 87 int[] typePrecedence = getTypePrecedenceList(mimetype); 101 private static int[] getTypePrecedenceList(String mimetype) { argument 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 [all...] |
/packages/apps/Mms/src/com/android/mms/drm/ |
H A D | DrmUtils.java | 36 public static String getConvertExtension(String mimetype) { argument
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | TypePrecedence.java | 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) { argument 79 int[] typePrecedence = getTypePrecedenceList(mimetype); 93 private static int[] getTypePrecedenceList(String mimetype) { argument 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 [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadDrmHelper.java | 38 * @param mimetype Media type of the content 41 public static boolean isDrmConvertNeeded(String mimetype) { argument 42 return MIMETYPE_DRM_MESSAGE.equals(mimetype);
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | DownloadHandler.java | 54 * @param mimetype The mimetype of the content reported by the server 59 String userAgent, String contentDisposition, String mimetype, 69 intent.setDataAndType(Uri.parse(url), mimetype); 87 Log.d(LOGTAG, "activity not found for " + mimetype 98 mimetype, referer, privateBrowsing); 138 * @param mimetype The mimetype of the content reported by the server 144 String mimetype, String referer, boolean privateBrowsing) { 147 contentDisposition, mimetype); 58 onDownloadStart(Activity activity, String url, String userAgent, String contentDisposition, String mimetype, String referer, boolean privateBrowsing) argument 142 onDownloadStartNoStream(Activity activity, String url, String userAgent, String contentDisposition, String mimetype, String referer, boolean privateBrowsing) argument [all...] |
H A D | Controller.java | 1030 String contentDisposition, String mimetype, String referer, 1034 contentDisposition, mimetype, referer, w.isPrivateBrowsingEnabled()); 1029 onDownloadStart(Tab tab, String url, String userAgent, String contentDisposition, String mimetype, String referer, long contentLength) argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppShareInfo.java | 71 public BluetoothOppShareInfo(int id, Uri uri, String hint, String filename, String mimetype, argument 78 mMimetype = mimetype;
|
H A D | BluetoothOppUtility.java | 167 public static void openReceivedFile(Context context, String fileName, String mimetype, argument 169 if (fileName == null || mimetype == null) { 170 Log.e(TAG, "ERROR: Para fileName ==null, or mimetype == null"); 195 if (isRecognizedFileType(context, path, mimetype)) { 197 activityIntent.setDataAndTypeAndNormalize(path, mimetype); 201 if (V) Log.d(TAG, "ACTION_VIEW intent sent out: " + path + " / " + mimetype); 204 if (V) Log.d(TAG, "no activity for handling ACTION_VIEW intent: " + mimetype, ex); 219 public static boolean isRecognizedFileType(Context context, Uri fileUri, String mimetype) { argument 222 if (D) Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype); [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
H A D | ContactEntryAdapter.java | 48 public String mimetype; field in class:ContactEntryAdapter.Entry 60 p.writeString(mimetype); 74 mimetype = p.readString();
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
H A D | ContactsUtils.java | 52 // Try finding the type and label for this mimetype 58 // Reset to phone mimetype so we generate a label for SMS case 81 public static final CharSequence getDisplayLabel(Context context, String mimetype, int type, argument 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.
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
H A D | ContactLoader.java | 408 final String mimetype = (String) keys.next(); 411 final JSONObject obj = items.optJSONObject(mimetype); 413 final JSONArray array = items.getJSONArray(mimetype); 416 processOneRecord(rawContact, item, mimetype); 419 processOneRecord(rawContact, obj, mimetype); 429 private void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) argument 432 itemValues.put(Data.MIMETYPE, mimetype);
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
H A D | ContactDetailFragment.java | 719 entry.intent.setDataAndType(entry.uri, entry.mimetype); 751 entry.mimetype = GroupMembership.MIMETYPE; 787 * done manually because phonetic name doesn't have a mimetype or action intent. 809 * attribution does not have a mimetype and the third-party entries don't have actually belong 1213 public String mimetype; field in class:ContactDetailFragment.DetailViewEntry 1238 .add("mimetype", mimetype) 1271 entry.mimetype = item.getMimeType(); 1315 if (TypePrecedence.getTypePrecedence(mimetype, type) 1316 > TypePrecedence.getTypePrecedence(entry.mimetype, entr [all...] |