/external/chromium_org/third_party/WebKit/Source/platform/ |
MIMETypeRegistry.cpp | 59 String mimeType = getMIMETypeForExtension(extension); 60 if (mimeType.isEmpty()) { 61 // If there's no mimetype registered for the extension, check to see 63 mimeType = getPluginMimeTypeFromExtension(extension); 65 if (mimeType.isEmpty()) 67 return mimeType; 70 bool MIMETypeRegistry::isSupportedImageMIMEType(const String& mimeType) 72 return blink::Platform::current()->mimeRegistry()->supportsImageMIMEType(mimeType) 76 bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType) 78 return isSupportedImageMIMEType(mimeType); [all...] |
MIMETypeRegistry.h | 46 static bool isSupportedImageMIMEType(const String& mimeType); 50 static bool isSupportedImageResourceMIMEType(const String& mimeType); 53 static bool isSupportedImageMIMETypeForEncoding(const String& mimeType); 57 static bool isSupportedJavaScriptMIMEType(const String& mimeType); 61 static bool isSupportedNonImageMIMEType(const String& mimeType); 64 static bool isSupportedMediaSourceMIMEType(const String& mimeType, const String& codecs); 67 static bool isJavaAppletMIMEType(const String& mimeType);
|
SerializedResource.h | 42 String mimeType; 45 SerializedResource(const KURL& url, const String& mimeType, PassRefPtr<SharedBuffer> data) 47 , mimeType(mimeType)
|
/frameworks/base/drm/java/android/drm/ |
DrmInfoStatus.java | 55 public final String mimeType; 72 * @param mimeType The MIME type. 74 public DrmInfoStatus(int statusCode, int infoType, ProcessedData data, String mimeType) { 83 if (mimeType == null || mimeType == "") { 84 throw new IllegalArgumentException("mimeType is null or an empty string"); 90 this.mimeType = mimeType;
|
DrmRights.java | 50 * @param mimeType MIME type. Must not be null or an empty string. 52 public DrmRights(String rightsFilePath, String mimeType) { 54 instantiate(file, mimeType); 61 * @param mimeType MIME type. Must not be null or an empty string. 64 public DrmRights(String rightsFilePath, String mimeType, String accountId) { 65 this(rightsFilePath, mimeType); 74 * @param mimeType MIME type. Must not be null or an empty string. 79 String rightsFilePath, String mimeType, String accountId, String subscriptionId) { 80 this(rightsFilePath, mimeType); 90 * @param mimeType MIME type. Must not be null or an empty string [all...] |
DrmSupportInfo.java | 38 * @param mimeType MIME type that can be handles by this DRM plug-in. 41 public void addMimeType(String mimeType) { 42 if (mimeType == null) { 43 throw new IllegalArgumentException("mimeType is null"); 45 if (mimeType == "") { 46 throw new IllegalArgumentException("mimeType is an empty string"); 49 mMimeTypeList.add(mimeType); 157 * @param mimeType MIME type. 159 * Null or empty string is not a supported mimeType. 161 /* package */ boolean isSupportedMimeType(String mimeType) { [all...] |
/frameworks/base/media/java/android/media/ |
IMediaScannerService.aidl | 29 * @param mimeType an optional mimeType for the file. 30 * If mimeType is null, then the mimeType will be inferred from the file extension. 34 void requestScanFile(String path, String mimeType, in IMediaScannerListener listener); 40 * @param mimeType an optional mimeType for the file. 41 * If mimeType is null, then the mimeType will be inferred from the file extension. 43 void scanFile(String path, String mimeType); [all...] |
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
ActionMultiMap.java | 27 public void put(String mimeType, Action info) { 28 put(mimeType, info, false); 32 * Puts the (mimeType,Action) tuple into the multimap at the front if 35 public void put(String mimeType, Action info, boolean front) { 37 ArrayList<Action> collectList = get(mimeType); 42 put(mimeType, collectList);
|
/frameworks/base/core/java/android/webkit/ |
MimeTypeMap.java | 75 * @param mimeType A MIME type (i.e. text/plain) 76 * @return True iff there is a mimeType entry in the map. 78 public boolean hasMimeType(String mimeType) { 79 return MimeUtils.hasMimeType(mimeType); 109 * @param mimeType A MIME type (i.e. text/plain) 112 public String getExtensionFromMimeType(String mimeType) { 113 return MimeUtils.guessExtensionFromMimeType(mimeType); 121 * @param mimeType MIME type provided by the server. 126 /* package */ String remapGenericMimeType(String mimeType, String url, 130 if ("text/plain".equals(mimeType) || [all...] |
WebResourceResponse.java | 40 * @param mimeType the resource response's MIME type, for example text/html 44 public WebResourceResponse(String mimeType, String encoding, 46 mMimeType = mimeType; 54 * @param mimeType the resource response's MIME type 56 public void setMimeType(String mimeType) { 57 mMimeType = mimeType;
|
/external/chromium_org/third_party/WebKit/public/platform/ |
WebMimeRegistry.h | 43 virtual SupportsType supportsMIMEType(const blink::WebString& mimeType) = 0; 44 virtual SupportsType supportsImageMIMEType(const blink::WebString& mimeType) = 0; 45 virtual SupportsType supportsJavaScriptMIMEType(const blink::WebString& mimeType) = 0; 46 virtual SupportsType supportsMediaMIMEType(const blink::WebString& mimeType, const blink::WebString& codecs, const blink::WebString& keySystem) = 0; 48 virtual bool supportsMediaSourceMIMEType(const blink::WebString& mimeType, const blink::WebString& codecs) = 0; 50 virtual SupportsType supportsNonImageMIMEType(const blink::WebString& mimeType) = 0;
|
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
MimeTypeUtil.h | 33 * May convert the mimetype if there is a well known 34 * replacement mimetype otherwise the original mimetype 37 * @param mimeType - mimetype in lower case to convert. 39 * @return mimetype or null. 41 static String8 convertMimeType(String8& mimeType);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMimeTypeMap.java | 14 * Shadow for {@code MimeTypeMap} that allows custom extension <-> mimetype mapping to be set up by tests. 51 public String getExtensionFromMimeType(String mimeType) { 52 if (mimeTypeToExtensionMap.containsKey(mimeType)) 53 return mimeTypeToExtensionMap.get(mimeType); 58 public void addExtensionMimeTypMapping(String extension, String mimeType) { 59 extensionToMimeTypeMap.put(extension, mimeType); 60 mimeTypeToExtensionMap.put(mimeType, extension); 74 public boolean hasMimeType(String mimeType) { 75 return mimeTypeToExtensionMap.containsKey(mimeType);
|
/frameworks/av/include/media/stagefright/ |
StagefrightMediaScanner.h | 30 const char *path, const char *mimeType, 40 const char *path, const char *mimeType,
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
DataItem.java | 52 * Factory for creating subclasses of DataItem objects based on the mimetype in the 56 final String mimeType = values.getAsString(Data.MIMETYPE); 57 if (GroupMembership.CONTENT_ITEM_TYPE.equals(mimeType)) { 59 } else if (StructuredName.CONTENT_ITEM_TYPE.equals(mimeType)) { 61 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)) { 63 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) { 65 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) { 67 } else if (Im.CONTENT_ITEM_TYPE.equals(mimeType)) { 69 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) { [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/mhtml/ |
ArchiveResource.cpp | 34 inline ArchiveResource::ArchiveResource(PassRefPtr<SharedBuffer> data, const KURL& url, const AtomicString& mimeType, const AtomicString& textEncoding, const String& frameName, const ResourceResponse& response) 38 , m_mimeType(mimeType) 45 PassRefPtr<ArchiveResource> ArchiveResource::create(PassRefPtr<SharedBuffer> data, const KURL& url, const AtomicString& mimeType, const AtomicString& textEncoding, const String& frameName, const ResourceResponse& response) 51 return adoptRef(new ArchiveResource(data, url, mimeType, textEncoding, frameName, 52 ResourceResponse(url, mimeType, dataSize, textEncoding, String()))); 54 return adoptRef(new ArchiveResource(data, url, mimeType, textEncoding, frameName, response)); 59 return create(data, url, response.mimeType(), response.textEncodingName(), String(), response);
|
/external/chromium_org/third_party/WebKit/Source/core/html/parser/ |
HTMLViewSourceParser.h | 39 static PassRefPtr<HTMLViewSourceParser> create(HTMLViewSourceDocument* document, const String& mimeType) 41 return adoptRef(new HTMLViewSourceParser(document, mimeType)); 46 HTMLViewSourceParser(HTMLViewSourceDocument*, const String& mimeType);
|
/external/chromium_org/third_party/WebKit/Source/core/loader/ |
SubstituteData.h | 40 SubstituteData(PassRefPtr<SharedBuffer> content, const AtomicString& mimeType, const AtomicString& textEncoding, const KURL& failingURL) 42 , m_mimeType(mimeType) 51 const AtomicString& mimeType() const { return m_mimeType; }
|
DocumentWriter.h | 48 static PassRefPtr<DocumentWriter> create(Document*, const AtomicString& mimeType = emptyAtom, const AtomicString& encoding = emptyAtom, bool encodingUserChoosen = false); 60 const AtomicString& mimeType() const { return m_decoderBuilder.mimeType(); } 72 DocumentWriter(Document*, const AtomicString& mimeType, const AtomicString& encoding, bool encodingUserChoosen);
|
/external/chromium_org/third_party/WebKit/Source/web/tests/ |
URLTestHelpers.h | 49 // Helper functions for mock URLs. These functions set up the desired URL and mimeType, with a 200 OK return status. 54 void registerMockedURLFromBaseURL(const WebString& baseURL, const WebString& fileName, const WebString& mimeType = WebString::fromUTF8("text/html")); 55 void registerMockedURLLoad(const WebURL& fullURL, const WebString& fileName, const WebString& mimeType = WebString::fromUTF8("text/html")); 56 void registerMockedURLLoad(const WebURL& fullURL, const WebString& fileName, const WebString& relativeBaseDirectory, const WebString& mimeType);
|
/external/chromium/android/jni/ |
mime_utils.h | 17 static bool GuessExtensionFromMimeType(const std::string& mimeType,
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ContentViewDownloadDelegate.java | 21 * @param mimeType Mime of the downloaded item. 23 void onDownloadStarted(String filename, String mimeType);
|
/external/chromium_org/third_party/WebKit/public/web/ |
WebPluginParams.h | 42 WebString mimeType;
|
/frameworks/av/drm/common/ |
DrmInfoStatus.cpp | 26 mimeType(_mimeType) {
|
DrmRights.cpp | 22 DrmRights::DrmRights(const String8& rightsFilePath, const String8& mimeType, 24 mMimeType(mimeType), 35 DrmRights::DrmRights(const DrmBuffer& rightsData, const String8& mimeType, 38 mMimeType(mimeType),
|