/external/webkit/Source/WebKit/win/ |
WebResource.cpp | 38 WebResource::WebResource(IStream* data, const WebCore::KURL& url, const WTF::String& mimeType, const WTF::String& textEncodingName, const WTF::String& frameName) 42 , m_mimeType(mimeType) 60 WebResource* instance = new WebResource(memoryStream.get(), response.url(), response.mimeType(), response.textEncodingName(), String()); 100 /* [in] */ BSTR mimeType, 106 m_mimeType = String(mimeType); 132 HRESULT STDMETHODCALLTYPE WebResource::MIMEType(
|
WebURLResponse.cpp | 293 /* [in] */ BSTR mimeType, 297 m_response = ResourceResponse(MarshallingHelpers::BSTRToKURL(url), String(mimeType), expectedContentLength, String(textEncodingName), String()); 301 HRESULT STDMETHODCALLTYPE WebURLResponse::MIMEType( 304 BString mimeType(m_response.mimeType()); 305 *result = mimeType.release(); 306 if (!m_response.mimeType().isNull() && !*result) 429 if (m_response.mimeType().isEmpty()) 432 BString mimeType(m_response.mimeType()); [all...] |
/frameworks/base/drm/common/ |
DrmSupportInfo.cpp | 45 bool DrmSupportInfo::isSupportedMimeType(const String8& mimeType) const { 46 if (String8("") == mimeType) { 53 if (!strcasecmp(item.string(), mimeType.string())) { 86 status_t DrmSupportInfo::addMimeType(const String8& mimeType) { 87 mMimeTypeVector.push(mimeType);
|
/frameworks/base/media/java/android/drm/mobile1/ |
DrmRawContent.java | 132 int mimeType; 139 mimeType = DRM_MIMETYPE_MESSAGE; 141 mimeType = DRM_MIMETYPE_CONTENT; 143 throw new IllegalArgumentException("mimeType must be DRM_MIMETYPE_MESSAGE or DRM_MIMETYPE_CONTENT"); 149 id = nativeConstructDrmContent(inData, inDataLen, mimeType); 387 * @param mimeType the mime type of this DRM content. the value of this field includes: 394 private native int nativeConstructDrmContent(InputStream data, int len, int mimeType);
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
DataKind.java | 33 * {@link Data#MIMETYPE}. Includes details about how to view and edit 44 public String mimeType; 90 public DataKind(String mimeType, int titleRes, int weight, boolean editable, 92 this.mimeType = mimeType; 105 sb.append(" mimeType=").append(mimeType);
|
/external/webkit/Source/WebKit2/UIProcess/Plugins/ |
PluginInfoStore.cpp | 133 PluginInfoStore::Plugin PluginInfoStore::findPluginForMIMEType(const String& mimeType) 135 ASSERT(!mimeType.isNull()); 142 if (mimeClassInfo.type == mimeType) 150 PluginInfoStore::Plugin PluginInfoStore::findPluginForExtension(const String& extension, String& mimeType) 164 mimeType = mimeClassInfo.type; 193 PluginInfoStore::Plugin PluginInfoStore::findPlugin(String& mimeType, const KURL& url) 198 if (!mimeType.isNull()) { 199 Plugin plugin = findPluginForMIMEType(mimeType); 206 if (!extension.isNull() && mimeType.isEmpty()) { 207 Plugin plugin = findPluginForExtension(extension, mimeType); [all...] |
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/ |
BodyDescriptor.java | 35 private String mimeType = "text/plain";
58 mimeType = "message/rfc822";
60 mimeType = "text/plain";
126 mimeType = main;
321 public boolean isMimeType(String mimeType) {
322 return this.mimeType.equals(mimeType.toLowerCase());
329 return mimeType.equals("message/rfc822");
336 return mimeType.startsWith("multipart/");
340 * Return the MimeType
[all...] |
/external/webkit/Source/WebCore/loader/ |
SubframeLoader.cpp | 92 bool SubframeLoader::resourceWillUsePlugin(const String& url, const String& mimeType, bool shouldPreferPlugInsForImages) 99 return shouldUsePlugin(completedURL, mimeType, shouldPreferPlugInsForImages, false, useFallback); 102 bool SubframeLoader::requestPlugin(HTMLPlugInImageElement* ownerElement, const KURL& url, const String& mimeType, const Vector<String>& paramNames, const Vector<String>& paramValues, bool useFallback) 109 && !MIMETypeRegistry::isApplicationPluginMIMEType(mimeType)) 110 || (!settings->isJavaEnabled() && MIMETypeRegistry::isJavaAppletMIMEType(mimeType))) 121 return loadPlugin(ownerElement, url, mimeType, paramNames, paramValues, useFallback); 124 bool SubframeLoader::requestObject(HTMLPlugInImageElement* ownerElement, const String& url, const AtomicString& frameName, const String& mimeType, const Vector<String>& paramNames, const Vector<String>& paramValues) 126 if (url.isEmpty() && mimeType.isEmpty()) 140 if (shouldUsePlugin(completedURL, mimeType, ownerElement->shouldPreferPlugInsForImages(), renderer->hasFallbackContent(), useFallback)) 141 return requestPlugin(ownerElement, completedURL, mimeType, paramNames, paramValues, useFallback) [all...] |
SubframeLoader.h | 80 bool resourceWillUsePlugin(const String& url, const String& mimeType, bool shouldPreferPlugInsForImages); 86 bool loadPlugin(HTMLPlugInImageElement*, const KURL&, const String& mimeType, 89 bool shouldUsePlugin(const KURL&, const String& mimeType, bool shouldPreferPlugInsForImages, bool hasFallback, bool& useFallback);
|
MainResourceLoader.cpp | 245 const String& mimeType = r.mimeType(); 250 bool isRemoteWebArchive = equalIgnoringCase("application/x-webarchive", mimeType) && !m_substituteData.isValid() && !url.isLocalFile(); 251 if (!frameLoader()->canShowMIMEType(mimeType) || isRemoteWebArchive) { 343 String mimeType = PluginDatabase::installedPlugins()->MIMETypeForExtension(extension); 344 if (!mimeType.isEmpty()) { 346 response->setMimeType(mimeType); 378 if (r.mimeType() == "application/octet-stream") 383 frameLoader()->setupForReplaceByMIMEType(r.mimeType()); 413 if (settings && settings->forceFTPDirectoryListings() && m_response.mimeType() == "application/x-ftp-directory") [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
Helpers.java | 77 String mimeType, 81 checkCanHandleDownload(context, mimeType, destination, isPublicApi); 87 base = storageManager.locateDestinationDirectory(mimeType, destination, 93 path = getFullPath(path, mimeType, destination, base); 94 if (DownloadDrmHelper.isDrmConvertNeeded(mimeType)) { 100 static String getFullPath(String filename, String mimeType, int destination, File base) 117 extension = chooseExtensionFromMimeType(mimeType, true); 119 extension = chooseExtensionFromFilename(mimeType, destination, filename, dotIndex); 136 private static void checkCanHandleDownload(Context context, String mimeType, int destination, 144 if (mimeType == null) [all...] |
/external/webkit/Source/WebKit/android/WebCoreSupport/ |
CacheResult.cpp | 86 String CacheResult::mimeType() const 88 string mimeType; 90 responseHeaders()->GetMimeType(&mimeType); 91 if (!mimeType.length() && m_url.length()) 92 mimeType = WebResponse::resolveMimeType(std::string(m_url.utf8().data(), m_url.length()), ""); 93 return String(mimeType.c_str());
|
/frameworks/base/core/java/android/provider/ |
DrmStore.java | 145 String mimeType = content.getContentType(); 153 if (mimeType.startsWith("audio/")) { 155 } else if (mimeType.startsWith("image/")) { 158 Log.w(TAG, "unsupported mime type " + mimeType); 165 values.put(DrmStore.Columns.MIME_TYPE, mimeType); 178 result.setDataAndType(uri, mimeType);
|
/external/webkit/Source/WebCore/dom/ |
DOMImplementation.cpp | 290 bool DOMImplementation::isXMLMIMEType(const String& mimeType) 292 if (mimeType == "text/xml" || mimeType == "application/xml" || mimeType == "text/xsl") 296 return xmlTypeRegExp.match(mimeType) > -1; 299 bool DOMImplementation::isTextMIMEType(const String& mimeType) 301 if (MIMETypeRegistry::isSupportedJavaScriptMIMEType(mimeType) 302 || mimeType == "application/json" // Render JSON as text/plain. 303 || (mimeType.startsWith("text/") && mimeType != "text/html [all...] |
/external/webkit/Source/WebKit2/WebProcess/Plugins/ |
Plugin.h | 61 String mimeType; 106 uint32_t lastModifiedTime, const String& mimeType, const String& headers) = 0; 119 uint32_t lastModifiedTime, const String& mimeType, const String& headers) = 0;
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
BitmapUtils.java | 282 public static boolean isSupportedByRegionDecoder(String mimeType) { 283 if (mimeType == null) return false; 284 mimeType = mimeType.toLowerCase(); 285 return mimeType.startsWith("image/") && 286 (!mimeType.equals("image/gif") && !mimeType.endsWith("bmp")); 289 public static boolean isRotationSupported(String mimeType) { 290 if (mimeType == null) return false; 291 mimeType = mimeType.toLowerCase() [all...] |
/external/webkit/Source/WebCore/platform/network/ |
FormDataBuilder.h | 42 static void addContentTypeToMultiPartHeader(Vector<char>&, const CString& mimeType);
|
ResourceResponseBase.h | 62 const String& mimeType() const; 63 void setMimeType(const String& mimeType); 86 bool isMultipart() const { return mimeType() == "multipart/x-mixed-replace"; } 139 ResourceResponseBase(const KURL& url, const String& mimeType, long long expectedLength, const String& textEncodingName, const String& filename);
|
/frameworks/base/core/java/android/content/ |
ClipDescription.java | 111 * @param mimeType The desired MIME type. May be a pattern. 115 public boolean hasMimeType(String mimeType) { 117 if (compareMimeTypes(mMimeTypes[i], mimeType)) { 128 * @param mimeType The desired MIME type. May be a pattern. 132 public String[] filterMimeTypes(String mimeType) { 135 if (compareMimeTypes(mMimeTypes[i], mimeType)) {
|
/external/webkit/Source/WebKit/gtk/webkit/ |
webkitwebresource.cpp | 68 g_free(priv->mimeType); 69 priv->mimeType = NULL; 263 const gchar* mimeType, 269 g_return_val_if_fail(mimeType, NULL); 275 WebKitWebResource* webResource = webkit_web_resource_new_with_core_resource(ArchiveResource::create(buffer, KURL(KURL(), String::fromUTF8(uri)), String::fromUTF8(mimeType), String::fromUTF8(encoding), String::fromUTF8(frameName))); 351 if (!priv->mimeType) 352 priv->mimeType = g_strdup(priv->resource->mimeType().utf8().data()); 354 return priv->mimeType;
|
/frameworks/base/core/java/android/webkit/ |
URLUtil.java | 291 * is added based on the mimetype 294 * @param mimeType Mime-type of the content or null 301 String mimeType) { 343 if (mimeType != null) { 344 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); 350 if (mimeType != null && mimeType.toLowerCase().startsWith("text/")) { 351 if (mimeType.equalsIgnoreCase("text/html")) { 361 if (mimeType != null) { 367 if (typeFromExt != null && !typeFromExt.equalsIgnoreCase(mimeType)) { [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
ImportTestProvider.java | 45 final String mimeType = expectedContentValues.getAsString(Data.MIMETYPE); 48 if (mMimeTypeToExpectedContentValues.containsKey(mimeType)) { 49 contentValuesCollection = mMimeTypeToExpectedContentValues.get(mimeType); 52 mMimeTypeToExpectedContentValues.put(mimeType, contentValuesCollection); 86 final String mimeType = actualContentValues.getAsString(Data.MIMETYPE); 87 if (!mMimeTypeToExpectedContentValues.containsKey(mimeType)) { 88 TestCase.fail("Unregistered MimeType " + mimeType); [all...] |
/frameworks/base/drm/java/android/drm/ |
DrmManagerClient.java | 419 * @param mimeType MIME type of the object to be handled. 423 public boolean canHandle(String path, String mimeType) { 424 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { 425 throw new IllegalArgumentException("Path or the mimetype should be non null"); 427 return _canHandle(mUniqueId, path, mimeType); 434 * @param mimeType MIME type of the object to be handled 438 public boolean canHandle(Uri uri, String mimeType) { 439 if ((null == uri || Uri.EMPTY == uri) && (null == mimeType || mimeType.equals(""))) [all...] |
/development/samples/NotePad/tests/src/com/example/android/notepad/ |
NotePadProviderTest.java | 165 String mimeType = mMockResolver.getType(NotePad.Notes.CONTENT_URI); 166 assertEquals(NotePad.Notes.CONTENT_TYPE, mimeType); 169 mimeType = mMockResolver.getType(NotePad.Notes.LIVE_FOLDER_URI); 170 assertEquals(NotePad.Notes.CONTENT_TYPE, mimeType); 176 mimeType = mMockResolver.getType(noteIdUri); 177 assertEquals(NotePad.Notes.CONTENT_ITEM_TYPE, mimeType); 180 mimeType = mMockResolver.getType(INVALID_URI); 207 String mimeType[] = mMockResolver.getStreamTypes(testUri, MIME_TYPES_ALL); 211 assertNotNull(mimeType); 212 assertEquals(mimeType[0],"text/plain") [all...] |
/external/chromium/android/jni/ |
mime_utils.cc | 47 bool MimeUtils::GuessExtensionFromMimeType(const std::string& mimeType, 50 jstring jMimeType = env->NewStringUTF(mimeType.c_str());
|