/packages/apps/Email/src/com/android/email/mail/internet/ |
MimeBodyPart.java | 52 public MimeBodyPart(Body body, String mimeType) throws MessagingException { 53 if (mimeType != null) { 54 setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType); 133 public boolean isMimeType(String mimeType) throws MessagingException { 134 return getMimeType().equals(mimeType);
|
MimeUtility.java | 215 public static Part findFirstPartByMimeType(Part part, String mimeType) 221 Part ret = findFirstPartByMimeType(bodyPart, mimeType); 227 else if (part.getMimeType().equalsIgnoreCase(mimeType)) { 262 String mimeType = part.getMimeType(); 263 if (mimeType != null && MimeUtility.mimeTypeMatches(mimeType, "text/*")) { 317 * Returns true if the given mimeType matches the matchAgainst specification. The comparison 320 * @param mimeType A MIME type to check. 322 * @return true if the mimeType matches 324 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
Image.java | 47 String mimeType, long dateTaken, String title, 50 mimeType, dateTaken, title); 71 String mimeType = getMimeType(); 72 return !"image/jpeg".equals(mimeType) && !"image/png".equals(mimeType);
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
EntityDelta.java | 71 * we store here sorted into {@link Data#MIMETYPE} bins. 152 public ValuesDelta getPrimaryEntry(String mimeType) { 153 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false); 170 public ValuesDelta getSuperPrimaryEntry(String mimeType) { 171 return getSuperPrimaryEntry(mimeType, true); 180 public ValuesDelta getSuperPrimaryEntry(String mimeType, boolean forceSelection) { 181 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false); 208 private ArrayList<ValuesDelta> getMimeEntries(String mimeType, boolean lazyCreate) { 209 ArrayList<ValuesDelta> mimeEntries = mEntries.get(mimeType); 212 mEntries.put(mimeType, mimeEntries) [all...] |
ContactsSource.java | 72 * Lookup map of {@link #mKinds} on {@link DataKind#mimeType}. 169 public DataKind getKindForMimetype(String mimeType) { 170 return this.mMimeKinds.get(mimeType); 179 this.mMimeKinds.put(kind.mimeType, kind); 185 * {@link Data#MIMETYPE}. Includes details about how to view and edit 191 public String mimeType; 227 public DataKind(String mimeType, int titleRes, int iconRes, int weight, boolean editable) { 228 this.mimeType = mimeType;
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerService.java | 191 private Uri scanFile(String path, String mimeType) { 200 return scanner.scanSingleFile(path, volumeName, mimeType); 211 public void requestScanFile(String path, String mimeType, IMediaScannerListener listener) 214 Log.d(TAG, "IMediaScannerService.scanFile: " + path + " mimeType: " + mimeType); 218 args.putString("mimetype", mimeType); 226 public void scanFile(String path, String mimeType) { 227 requestScanFile(path, mimeType, null); 244 Uri uri = scanFile(filePath, arguments.getString("mimetype")); [all...] |
/external/webkit/WebCore/platform/graphics/cg/ |
ImageBufferCG.cpp | 251 static RetainPtr<CFStringRef> utiFromMIMEType(const String& mimeType) 254 RetainPtr<CFStringRef> mimeTypeCFString(AdoptCF, mimeType.createCFString()); 257 // FIXME: Add Windows support for all the supported UTIs when a way to convert from MIMEType to UTI reliably is found. 263 if (equalIgnoringCase(mimeType, "image/png")) 265 if (equalIgnoringCase(mimeType, "image/jpeg")) 267 if (equalIgnoringCase(mimeType, "image/gif")) 275 String ImageBuffer::toDataURL(const String& mimeType) const 277 ASSERT(MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(mimeType)); 287 RetainPtr<CGImageDestinationRef> destination(AdoptCF, CGImageDestinationCreateWithData(data.get(), utiFromMIMEType(mimeType).get(), 1, 0)); 298 return String::format("data:%s;base64,%s", mimeType.utf8().data(), out.data()) [all...] |
/external/webkit/WebKitTools/Scripts/ |
svn-create-patch | 152 my $mimeType = <PROPGET>; 155 if ($mimeType) { 156 $mimeType =~ s/[\r\n]+$//g; 158 return $mimeType; 258 my $mimeType = findMimeType($file); 259 return 0 if (!$mimeType || substr($mimeType, 0, 5) eq "text/"); 275 my $mimeType = findMimeType($file, $sourceRevision); 276 print "svn:mime-type = ${mimeType}\n\n";
|
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/ |
ImportTestProvider.java | 80 final String mimeType = expectedContentValues.getAsString(Data.MIMETYPE); 81 if (!sKnownMimeTypeSet.contains(mimeType)) { 83 "Unknow MimeType %s in the test code. Test code should be broken.", 84 mimeType)); 88 mMimeTypeToExpectedContentValues.get(mimeType); 120 final String mimeType = actualContentValues.getAsString(Data.MIMETYPE); 121 if (!sKnownMimeTypeSet.contains(mimeType)) { 123 "Unknown MimeType %s. Probably added after developing this test" [all...] |
/frameworks/base/core/java/android/webkit/ |
MimeTypeMap.java | 85 private void loadEntry(String mimeType, String extension) { 94 if (!mMimeTypeToExtensionMap.containsKey(mimeType)) { 95 mMimeTypeToExtensionMap.put(mimeType, extension); 98 mExtensionToMimeTypeMap.put(extension, mimeType); 103 * @param mimeType A MIME type (i.e. text/plain) 104 * @return True iff there is a mimeType entry in the map. 106 public boolean hasMimeType(String mimeType) { 107 if (mimeType != null && mimeType.length() > 0) { 108 return mMimeTypeToExtensionMap.containsKey(mimeType); [all...] |
/frameworks/base/media/libstagefright/ |
DataSource.cpp | 61 String8 *mimeType, float *confidence, sp<AMessage> *meta) { 62 *mimeType = ""; 74 *mimeType = newMimeType;
|
/packages/apps/Email/src/com/android/email/provider/ |
AttachmentProvider.java | 168 String mimeType = c.getString(MIME_TYPE_COLUMN_MIME_TYPE); 170 mimeType = inferMimeType(fileName, mimeType); 171 return mimeType; 194 * @param mimeType The given mime type 197 public static String inferMimeType(String fileName, String mimeType) { 199 if (!TextUtils.isEmpty(mimeType) && 200 !"application/octet-stream".equalsIgnoreCase(mimeType)) { 201 return mimeType; 213 mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension) [all...] |
/external/webkit/WebCore/inspector/front-end/ |
TextEditorHighlighter.js | 63 this.mimeType = "text/html"; 68 set mimeType(mimeType) 70 var tokenizer = WebInspector.SourceTokenizer.Registry.getInstance().getTokenizer(mimeType);
|
/external/webkit/WebCore/platform/chromium/ |
ChromiumBridge.h | 150 // MimeType ----------------------------------------------------------- 151 static bool isSupportedImageMIMEType(const String& mimeType); 152 static bool isSupportedJavaScriptMIMEType(const String& mimeType); 153 static bool isSupportedNonImageMIMEType(const String& mimeType); 156 static String preferredExtensionForMIMEType(const String& mimeType);
|
/external/webkit/WebKit/mac/Plugins/Hosted/ |
NetscapePluginHostManager.h | 46 PassRefPtr<NetscapePluginInstanceProxy> instantiatePlugin(WebNetscapePluginPackage *, WebHostedNetscapePluginView *, NSString *mimeType, NSArray *attributeKeys, NSArray *attributeValues, NSString *userAgent, NSURL *sourceURL, bool fullFrame, bool isPrivateBrowsingEnabled, bool isAcceleratedCompositingEnabled);
|
/external/webkit/WebKit/mac/Plugins/ |
WebPluginDatabase.h | 48 - (WebBasePluginPackage *)pluginForMIMEType:(NSString *)mimeType; 51 - (BOOL)isMIMETypeRegistered:(NSString *)MIMEType;
|
/external/webkit/WebKit/qt/Api/ |
qwebpluginfactory.h | 37 struct QWEBKIT_EXPORT MimeType { 41 bool operator==(const MimeType& other) const; 42 inline bool operator!=(const MimeType& other) const { return !operator==(other); } 48 QList<MimeType> mimeTypes; 57 virtual QObject *create(const QString& mimeType,
|
/frameworks/base/media/java/android/media/ |
MediaScannerConnection.java | 158 * @param mimeType an optional mimeType for the file. 159 * If mimeType is null, then the mimeType will be inferred from the file extension. 161 public void scanFile(String path, String mimeType) { 170 mService.requestScanFile(path, mimeType, mListener); 208 String mimeType = mMimeTypes != null ? mMimeTypes[mNextPath] : null; 209 mConnection.scanFile(mPaths[mNextPath], mimeType); 217 * <var>path</var> and <var>mimeType</var> when the connection is 225 * If mimeType is null, then the mimeType will be inferred from the file extension [all...] |
/frameworks/base/media/libstagefright/include/ |
AMRExtractor.h | 53 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
MP3Extractor.h | 55 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
OggExtractor.h | 57 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
WAVExtractor.h | 62 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
/frameworks/base/media/libstagefright/matroska/ |
MatroskaExtractor.h | 73 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
Constants.java | 209 public static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { 211 if (mimeTypeMatches(mimeType, matchType)) { 218 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { 221 return p.matcher(mimeType).matches();
|
/packages/apps/Email/src/com/android/email/mail/ |
Part.java | 45 public boolean isMimeType(String mimeType) throws MessagingException;
|