Searched refs:mimetype (Results 1 - 25 of 29) sorted by relevance

12

/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...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDataRowHandlerForCustomMimetype.java24 AbstractContactAggregator aggregator, String mimetype) {
25 super(context, dbHelper, aggregator, mimetype);
23 DataRowHandlerForCustomMimetype(Context context, ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator, String mimetype) argument
H A DDataRowHandlerForCommonDataKind.java36 AbstractContactAggregator aggregator, String mimetype, String typeColumn,
38 super(context, dbHelper, aggregator, mimetype);
35 DataRowHandlerForCommonDataKind(Context context, ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator, String mimetype, String typeColumn, String labelColumn) argument
H A DDataRowHandler.java83 AbstractContactAggregator aggregator, String mimetype) {
87 mMimetype = mimetype;
82 DataRowHandler(Context context, ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator, String mimetype) argument
H A DSearchIndexManager.java376 String mimetype = cursor.getString(ContactIndexQuery.MIMETYPE);
377 DataRowHandler dataRowHandler = mContactsProvider.getDataRowHandler(mimetype);
/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...]
H A DSplitAggregateView.java174 String mimetype = cursor.getString(SplitQuery.MIMETYPE);
175 if (StructuredName.CONTENT_ITEM_TYPE.equals(mimetype)) {
177 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) {
179 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) {
181 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimetype)) {
/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/apps/Messaging/src/com/android/messaging/mmslib/util/
H A DDownloadDrmHelper.java39 * @param mimetype Media Type to check
42 public static boolean isDrmMimeType(Context context, String mimetype) { argument
47 if (drmClient != null && mimetype != null && mimetype.length() > 0) {
48 result = drmClient.canHandle("", mimetype);
63 * @param mimetype Media type of the content
66 public static boolean isDrmConvertNeeded(String mimetype) { argument
67 return MIMETYPE_DRM_MESSAGE.equals(mimetype);
/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/providers/MediaProvider/tools/genfiles/
H A Dgenfiles.sh54 while read format mediatype mimetype data;
121 echo ignored: $format '|' $mediatype '|' $mimetype '|' $data
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DEditorUiUtils.java43 // Generally there should be a layout mapped to each existing DataKind mimetype but lots of
72 * Fetches a layout for a given mimetype.
74 * @param mimetype The mime type (e.g. StructuredName.CONTENT_ITEM_TYPE)
77 public static int getLayoutResourceId(String mimetype) { argument
78 final Integer id = mimetypeLayoutMap.get(mimetype);
H A DAggregationSuggestionEngine.java404 String mimetype = mDataCursor.getString(DataQuery.MIMETYPE);
405 if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) {
412 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) {
419 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimetype)) {
424 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
/packages/apps/Music/src/com/android/music/
H A DQueryBrowserActivity.java324 MediaStore.Audio.Media.MIME_TYPE, // mimetype of audio file, or "artist" or "album"
391 String mimetype = cursor.getString(cursor.getColumnIndexOrThrow(
394 if (mimetype == null) {
395 mimetype = "audio/";
397 if (mimetype.equals("artist")) {
417 } else if (mimetype.equals("album")) {
435 } else if(mimetype.startsWith("audio/") ||
436 mimetype.equals("application/ogg") ||
437 mimetype.equals("application/x-ogg")) {
/packages/apps/Contacts/src/com/android/contacts/group/
H A DSuggestedMemberListAdapter.java277 String mimetype = memberDataCursor.getString(MIMETYPE_COLUMN_INDEX);
278 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
282 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype) ||
283 Phone.CONTENT_ITEM_TYPE.equals(mimetype)) {
/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();
H A DContactFragment.java557 entry.mimetype = mimeType;
596 if (TypePrecedence.getTypePrecedence(mimetype, type)
597 > TypePrecedence.getTypePrecedence(entry.mimetype, entry.type)) {
628 if (!ContactsUtils.areDataEqual(context, mimetype, data, entry.mimetype, entry.data)) {
632 if (!TextUtils.equals(mimetype, entry.mimetype)
720 if (entry.mimetype.equals(Phone.CONTENT_ITEM_TYPE)
721 || entry.mimetype.equals(Constants.MIME_SMS_ADDRESS)) {
/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/Gallery2/src/com/android/gallery3d/ui/
H A DDetailsHelper.java123 return context.getString(R.string.mimetype);
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
H A DContactLoader.java422 final String mimetype = (String) keys.next();
425 final JSONObject obj = items.optJSONObject(mimetype);
427 final JSONArray array = items.getJSONArray(mimetype);
430 processOneRecord(rawContact, item, mimetype);
433 processOneRecord(rawContact, obj, mimetype);
443 private static void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) argument
446 itemValues.put(Data.MIMETYPE, mimetype);
/packages/apps/Camera2/src/com/android/camera/ui/
H A DDetailsDialog.java312 return context.getString(R.string.mimetype);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DBaseContactsProvider2Test.java1277 String mimetype = c.getString(0);
1278 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
1281 mimetype = mimetype.substring(mimetype.indexOf('/') + 1);
1282 Log.i("Data ", String.format(" %-10s %s,%s,%s", mimetype,

Completed in 814 milliseconds

12