/packages/apps/Browser/src/com/android/browser/ |
BrowserDownloadListener.java | 33 * @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,
|
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); local 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); [all...] |
/frameworks/base/core/java/android/webkit/ |
DownloadListener.java | 27 * @param mimetype The mimetype of the content reported by the server 31 String contentDisposition, String mimetype, long contentLength);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForCustomMimetype.java | 24 AbstractContactAggregator aggregator, String mimetype) { 25 super(context, dbHelper, aggregator, mimetype);
|
DataRowHandlerForCommonDataKind.java | 36 AbstractContactAggregator aggregator, String mimetype, String typeColumn, 38 super(context, dbHelper, aggregator, mimetype);
|
/packages/apps/Contacts/src/com/android/contacts/ |
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) { 87 int[] typePrecedence = getTypePrecedenceList(mimetype); 101 private static int[] getTypePrecedenceList(String mimetype) { 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.equals(Im.CONTENT_ITEM_TYPE)) [all...] |
SplitAggregateView.java | 57 Data.MIMETYPE, RawContacts.ACCOUNT_TYPE, RawContacts.DATA_SET, Data.RAW_CONTACT_ID, 62 int MIMETYPE = 0; 174 String mimetype = cursor.getString(SplitQuery.MIMETYPE); local 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/ |
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) { 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)) [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
DownloadDrmHelper.java | 39 * @param mimetype Media Type to check 42 public static boolean isDrmMimeType(Context context, String mimetype) { 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) { 67 return MIMETYPE_DRM_MESSAGE.equals(mimetype);
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
DownloadDrmHelper.java | 39 * @param mimetype Media Type to check 42 public static boolean isDrmMimeType(Context context, String mimetype) { 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) { 67 return MIMETYPE_DRM_MESSAGE.equals(mimetype);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadDrmHelper.java | 38 * @param mimetype Media type of the content 41 public static boolean isDrmConvertNeeded(String mimetype) { 42 return MIMETYPE_DRM_MESSAGE.equals(mimetype);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppShareInfo.java | 71 public BluetoothOppShareInfo(int id, Uri uri, String hint, String filename, String mimetype, 78 mMimetype = mimetype;
|
BluetoothOppUtility.java | 108 .getColumnIndexOrThrow(BluetoothShare.MIMETYPE)); 167 public static void openReceivedFile(Context context, String fileName, String mimetype, 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) { 222 if (D) Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype) [all...] |
/external/chromium-trace/trace-viewer/third_party/Paste/paste/util/ |
mimeparse.py | 158 return [mimetype for mimetype in desired 159 if quality_parsed(mimetype, parsed_ranges)]
|
/packages/providers/MediaProvider/tools/genfiles/ |
genfiles.sh | 54 while read format mediatype mimetype data; 121 echo ignored: $format '|' $mediatype '|' $mimetype '|' $data
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
MediaFrameworkTest.java | 86 String mimetype = MediaFormat.MIMETYPE_AUDIO_MPEG; local 89 intent.setDataAndType(path, mimetype);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
EditorUiUtils.java | 40 // Maps DataKind.mimeType to editor view layouts. 43 // 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) { 78 final Integer id = mimetypeLayoutMap.get(mimetype);
|
AggregationSuggestionEngine.java | 260 Data.MIMETYPE + " IN ('" 275 Data.MIMETYPE, 290 public static final int MIMETYPE = 6; 404 String mimetype = mDataCursor.getString(DataQuery.MIMETYPE); local 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)) {
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
MediaFrameworkTest.java | 122 String mimetype = "audio/mpeg"; local 125 intent.setDataAndType(path, mimetype);
|
/packages/apps/Music/src/com/android/music/ |
QueryBrowserActivity.java | 324 MediaStore.Audio.Media.MIME_TYPE, // mimetype of audio file, or "artist" or "album" 391 String mimetype = cursor.getString(cursor.getColumnIndexOrThrow( local 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/ |
SuggestedMemberListAdapter.java | 67 Data.MIMETYPE, // 2 264 "(" + Data.MIMETYPE + "=? OR " + Data.MIMETYPE + "=? OR " + Data.MIMETYPE + 277 String mimetype = memberDataCursor.getString(MIMETYPE_COLUMN_INDEX); local 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/ |
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/ |
ContactsUtils.java | 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)) { [all...] |
/external/chromium-trace/trace-viewer/third_party/Paste/paste/ |
wsgiwrappers.py | 307 def __init__(self, content=b'', mimetype=None, code=200): 317 if not mimetype: 318 mimetype = defaults.get('content_type', 'text/html') 321 mimetype = '%s; charset=%s' % (mimetype, charset) 323 self.headers['Content-Type'] = mimetype
|
httpheaders.py | 769 # common mimetype constants 854 (result, mimetype) = self._compose(**kwargs) 860 mimetype = CONTENT_TYPE(collection) 861 if filename and (not mimetype or CONTENT_TYPE.UNKNOWN == mimetype): 862 mimetype, _ = mimetypes.guess_type(filename) 863 if mimetype and CONTENT_TYPE.UNKNOWN != mimetype: 864 CONTENT_TYPE.update(collection, mimetype) 866 return mimetype [all...] |