Searched defs:mimetype (Results 1 - 17 of 17) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/editor/
H A DEditorUiUtils.java38 // 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 DDataRowHandlerForCustomMimetype.java25 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 DDataRowHandlerForCommonDataKind.java37 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 DDataRowHandler.java84 ContactAggregator aggregator, String mimetype) {
88 mMimetype = mimetype;
83 DataRowHandler(Context context, ContactsDatabaseHelper dbHelper, ContactAggregator aggregator, String mimetype) argument
H A DContactsDatabaseHelper.java251 + " ON (mimetypes.mimetype='" + GroupMembership.CONTENT_ITEM_TYPE + "' "
290 + "mimetypes.mimetype = '" + GroupMembership.CONTENT_ITEM_TYPE + "')"
552 public static final String MIMETYPE = "mimetype";
1308 DataColumns.MIMETYPE_ID + " INTEGER REFERENCES mimetype(_id) NOT NULL," +
3669 final long mimetype = lookupMimeTypeId(db, GroupMembership.CONTENT_ITEM_TYPE);
3677 " WHERE mimetype_id=" + mimetype +
3998 " WHERE mimetype='vnd.android.cursor.item/phone_v2')" +
4622 * Convert a mimetype into an integer, using {@link Tables#MIMETYPES} for
4625 public long getMimeTypeId(String mimetype) { argument
4626 return lookupMimeTypeId(mimetype, getWritableDatabas
4629 lookupMimeTypeId(String mimetype, SQLiteDatabase db) argument
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DBrowserDownloadListener.java33 * @param mimetype The mimetype of the content reported by the server
38 String contentDisposition, String mimetype, String referer,
48 * @param mimetype The mimetype of the content reported by the server
53 String contentDisposition, String mimetype, long contentLength) {
55 onDownloadStart(url, userAgent, contentDisposition, mimetype, null,
37 onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, String referer, long contentLength) argument
52 onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) argument
H A DDownloadHandler.java54 * @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 DController.java1031 String contentDisposition, String mimetype, String referer,
1035 contentDisposition, mimetype, referer, w.isPrivateBrowsingEnabled());
1030 onDownloadStart(Tab tab, String url, String userAgent, String contentDisposition, String mimetype, String referer, long contentLength) argument
/packages/apps/Contacts/src/com/android/contacts/
H A DTypePrecedence.java79 * 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 DDrmUtils.java37 public static String getConvertExtension(String mimetype) { argument
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DTypePrecedence.java71 * 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 DDownloadDrmHelper.java38 * @param mimetype Media type of the content
41 public static boolean isDrmConvertNeeded(String mimetype) { argument
42 return MIMETYPE_DRM_MESSAGE.equals(mimetype);
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppShareInfo.java71 public BluetoothOppShareInfo(int id, Uri uri, String hint, String filename, String mimetype, argument
78 mMimetype = mimetype;
H A DBluetoothOppUtility.java167 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 DContactEntryAdapter.java48 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 DContactsUtils.java52 // 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 DContactLoader.java405 final String mimetype = (String) keys.next();
408 final JSONObject obj = items.optJSONObject(mimetype);
410 final JSONArray array = items.getJSONArray(mimetype);
413 processOneRecord(rawContact, item, mimetype);
416 processOneRecord(rawContact, obj, mimetype);
426 private void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) argument
429 itemValues.put(Data.MIMETYPE, mimetype);

Completed in 718 milliseconds