Home
last modified time | relevance | path

Searched refs:mime (Results 1 – 25 of 71) sorted by relevance

123

/external/chromium_org/content/browser/media/
Dmedia_canplaytype_browsertest.cc65 void TestMPEGUnacceptableCombinations(std::string mime) { in TestMPEGUnacceptableCombinations() argument
67 EXPECT_EQ(kNot, CanPlay("'" + mime + "; codecs=\"avc1.unknown\"'")); in TestMPEGUnacceptableCombinations()
68 EXPECT_EQ(kNot, CanPlay("'" + mime + "; codecs=\"avc3.unknown\"'")); in TestMPEGUnacceptableCombinations()
69 EXPECT_EQ(kNot, CanPlay("'" + mime + "; codecs=\"mp4a.unknown\"'")); in TestMPEGUnacceptableCombinations()
72 EXPECT_EQ(kNot, CanPlay("'" + mime + "; codecs=\"avc1.\"'")); in TestMPEGUnacceptableCombinations()
73 EXPECT_EQ(kNot, CanPlay("'" + mime + "; codecs=\"avc3.\"'")); in TestMPEGUnacceptableCombinations()
74 EXPECT_EQ(kNot, CanPlay("'" + mime + "; codecs=\"mp4a\"'")); in TestMPEGUnacceptableCombinations()
75 EXPECT_EQ(kNot, CanPlay("'" + mime + "; codecs=\"mp4a.\"'")); in TestMPEGUnacceptableCombinations()
76 EXPECT_EQ(kNot, CanPlay("'" + mime + "; codecs=\"mp4a.40.\"'")); in TestMPEGUnacceptableCombinations()
79 EXPECT_EQ(kNot, CanPlay("'" + mime + "; codecs=\"vorbis\"'")); in TestMPEGUnacceptableCombinations()
[all …]
/external/chromium_org/media/base/android/java/src/org/chromium/media/
DMediaCodecBridge.java189 private static String getDefaultCodecName(String mime, int direction) { in getDefaultCodecName() argument
195 mediaCodec = MediaCodec.createEncoderByType(mime); in getDefaultCodecName()
197 mediaCodec = MediaCodec.createDecoderByType(mime); in getDefaultCodecName()
203 mime + ", direction: " + direction, e); in getDefaultCodecName()
210 private static String getDecoderNameForMime(String mime) { in getDecoderNameForMime() argument
220 if (supportedTypes[j].equalsIgnoreCase(mime)) { in getDecoderNameForMime()
230 MediaCodec mediaCodec, String mime, boolean adaptivePlaybackSupported) { in MediaCodecBridge() argument
233 mMime = mime; in MediaCodecBridge()
240 private static MediaCodecBridge create(String mime, boolean isSecure, int direction) { in create() argument
250 if (mime.startsWith("video") && isSecure && direction == MEDIA_CODEC_DECODER) { in create()
[all …]
DMediaDrmBridge.java412 private MediaDrm.KeyRequest getKeyRequest(ByteBuffer session, byte[] data, String mime) in getKeyRequest() argument
420 session.array(), data, mime, MediaDrm.KEY_TYPE_STREAMING, optionalParameters); in getKeyRequest()
430 private void savePendingCreateSessionData(int sessionId, byte[] initData, String mime) { in savePendingCreateSessionData() argument
433 new PendingCreateSessionData(sessionId, initData, mime)); in savePendingCreateSessionData()
451 String mime = pendingData.mimeType(); in processPendingCreateSessionData() local
452 createSession(sessionId, initData, mime); in processPendingCreateSessionData()
478 private void createSession(int sessionId, byte[] initData, String mime) { in createSession() argument
487 savePendingCreateSessionData(sessionId, initData, mime); in createSession()
505 !mSessionMimeTypes.get(session).equals(mime)) { in createSession()
522 request = getKeyRequest(session, initData, mime); in createSession()
[all …]
DWebAudioMediaCodecBridge.java72 String mime = format.getString(MediaFormat.KEY_MIME); in decodeAudioFile() local
97 codec = MediaCodec.createDecoderByType(mime); in decodeAudioFile()
99 Log.w(LOG_TAG, "Failed to create MediaCodec for mime type: " + mime); in decodeAudioFile()
161 " Mime: " + mime + in decodeAudioFile()
/external/chromium_org/media/base/android/
Dmedia_codec_bridge.cc79 static const std::string AndroidMimeTypeToCodecType(const std::string& mime) { in AndroidMimeTypeToCodecType() argument
80 if (mime == "video/mp4v-es") in AndroidMimeTypeToCodecType()
82 if (mime == "video/avc") in AndroidMimeTypeToCodecType()
84 if (mime == "video/x-vnd.on2.vp8") in AndroidMimeTypeToCodecType()
86 if (mime == "video/x-vnd.on2.vp9") in AndroidMimeTypeToCodecType()
88 if (mime == "audio/mp4a-latm") in AndroidMimeTypeToCodecType()
90 if (mime == "audio/mpeg") in AndroidMimeTypeToCodecType()
92 if (mime == "audio/vorbis") in AndroidMimeTypeToCodecType()
179 std::string mime = CodecTypeToAndroidMimeType(codec); in CanDecode() local
180 if (mime.empty()) in CanDecode()
[all …]
Dmedia_codec_bridge.h192 MediaCodecBridge(const std::string& mime,
240 explicit AudioCodecBridge(const std::string& mime);
288 VideoCodecBridge(const std::string& mime,
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
DSimpleWebServer.java173 for (String mime : mimeTypes) { in main()
174 String[] indexFiles = info.getIndexFilesForMimeType(mime); in main()
176 System.out.print("# Found plugin for Mime type: \"" + mime + "\""); in main()
185 registerPluginForMimeType(indexFiles, mime, info.getWebServerPlugin(mime), options); in main()
369 Response serveFile(String uri, Map<String, String> header, File file, String mime) { in serveFile() argument
418 res = createResponse(Response.Status.PARTIAL_CONTENT, mime, fis); in serveFile()
425 res = createResponse(Response.Status.NOT_MODIFIED, mime, ""); in serveFile()
427 res = createResponse(Response.Status.OK, mime, new FileInputStream(file)); in serveFile()
442 String mime = null; in getMimeTypeForFile() local
444 mime = MIME_TYPES.get(uri.substring(dot + 1).toLowerCase()); in getMimeTypeForFile()
[all …]
DWebServerPluginInfo.java10 String[] getIndexFilesForMimeType(String mime); in getIndexFilesForMimeType() argument
/external/lldb/utils/test/
Dras.py21 from email.mime.audio import MIMEAudio
22 from email.mime.base import MIMEBase
23 from email.mime.image import MIMEImage
24 from email.mime.multipart import MIMEMultipart
25 from email.mime.text import MIMEText
/external/chromium_org/third_party/WebKit/Source/platform/plugins/
DPluginData.cpp132 const MimeClassInfo& mime = plugins[i].mimes[j]; in getPluginMimeTypeFromExtension() local
133 const Vector<String>& extensions = mime.extensions; in getPluginMimeTypeFromExtension()
136 return mime.type; in getPluginMimeTypeFromExtension()
/external/chromium_org/third_party/WebKit/Source/web/tests/
DPageSerializerTest.cpp123 String mime(mimeType); in getResource() local
127 && (mime.isNull() || equalIgnoringCase(resource.mimeType, mime))) in getResource()
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DGetAndPostIntegrationTest.java10 import org.apache.http.entity.mime.HttpMultipartMode;
11 import org.apache.http.entity.mime.MultipartEntity;
12 import org.apache.http.entity.mime.content.StringBody;
/external/chromium_org/third_party/WebKit/Source/core/plugins/
DDOMPlugin.cpp68 const MimeClassInfo& mime = pluginInfo().mimes[index]; in item() local
72 if (mimes[i] == mime && m_pluginData->mimePluginIndices()[i] == m_index) in item()
/external/chromium_org/ui/file_manager/file_manager/foreground/js/
Dsuggest_apps_dialog.js195 function(extension, mime, onDialogClosed) { argument
198 this.showInternal_(null, extension, mime, onDialogClosed);
229 function(filename, extension, mime, onDialogClosed) { argument
236 this.mimeType_ = mime;
285 extension, mime, filename,
Dcws_container_client.js19 webView, ext, mime, searchQuery, width, height, url, target) { argument
22 this.mime_ = mime;
/external/wpa_supplicant_8/src/utils/
Dbrowser.c100 gchar *mime, WebKitWebPolicyDecision *policy, in view_cb_mime_type_policy_decision() argument
103 wpa_printf(MSG_DEBUG, "BROWSER:%s mime=%s", __func__, mime); in view_cb_mime_type_policy_decision()
105 if (!webkit_web_view_can_show_mime_type(view, mime)) { in view_cb_mime_type_policy_decision()
/external/chromium_org/chrome/common/extensions/docs/server2/test_data/rietveld_patcher/api/14096030/22002/
Djson1mime-type\n + text/html\nAdded: svn:eol-style\n + LF\n","num_added":1,"num_removed":0,"id":210…
/external/chromium_org/content/common/
Dplugin_list_mac.mm142 WebPluginMimeType mime;
143 mime.mime_type = base::SysNSStringToUTF8([mime_type lowercaseString]);
146 if (mime.mime_type == "application/pdf" &&
152 mime.description = base::SysNSStringToUTF16(mime_desc);
154 mime.file_extensions.push_back(
157 info->mime_types.push_back(mime);
/external/clang/tools/scan-view/
DReporter.py29 from email.mime.base import MIMEBase
30 from email.mime.multipart import MIMEMultipart
31 from email.mime.text import MIMEText
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/imageinfo/imageinfo/
Dimageinfo.js22 var mime = http.getResponseHeader("Content-Type");
24 tags["mimeType"] = mime;
/external/nanohttpd/webserver/markdown-plugin/src/main/java/fi/iki/elonen/
DMarkdownWebServerPluginInfo.java12 @Override public String[] getIndexFilesForMimeType(String mime) { in getIndexFilesForMimeType() argument
/external/chromium_org/mojo/services/public/interfaces/clipboard/
Dclipboard.mojom33 // Returns the available mime types. (Note: the chrome interface has a
46 // Writes a set of mime types to the clipboard. This will increment the
/external/libxml2/
Dnanohttp.c737 const xmlChar *charset, *last, *mime; in xmlNanoHTTPScanAnswer() local
743 mime = (const xmlChar *) cur; in xmlNanoHTTPScanAnswer()
744 last = mime; in xmlNanoHTTPScanAnswer()
750 ctxt->mimeType = (char *) xmlStrndup(mime, last - mime); in xmlNanoHTTPScanAnswer()
763 const xmlChar *charset, *last, *mime; in xmlNanoHTTPScanAnswer() local
768 mime = (const xmlChar *) cur; in xmlNanoHTTPScanAnswer()
769 last = mime; in xmlNanoHTTPScanAnswer()
775 ctxt->mimeType = (char *) xmlStrndup(mime, last - mime); in xmlNanoHTTPScanAnswer()
/external/chromium_org/third_party/libxml/src/
Dnanohttp.c732 const xmlChar *charset, *last, *mime; in xmlNanoHTTPScanAnswer() local
738 mime = (const xmlChar *) cur; in xmlNanoHTTPScanAnswer()
739 last = mime; in xmlNanoHTTPScanAnswer()
745 ctxt->mimeType = (char *) xmlStrndup(mime, last - mime); in xmlNanoHTTPScanAnswer()
758 const xmlChar *charset, *last, *mime; in xmlNanoHTTPScanAnswer() local
763 mime = (const xmlChar *) cur; in xmlNanoHTTPScanAnswer()
764 last = mime; in xmlNanoHTTPScanAnswer()
770 ctxt->mimeType = (char *) xmlStrndup(mime, last - mime); in xmlNanoHTTPScanAnswer()
/external/chromium_org/content/renderer/media/android/
Dwebmediaplayer_android.cc437 std::string mime; in hasVideo() local
438 if (!net::GetMimeTypeFromFile(base::FilePath(url_.path()), &mime)) in hasVideo()
440 return mime.find("audio/") == std::string::npos; in hasVideo()
447 std::string mime; in hasAudio() local
448 if (!net::GetMimeTypeFromFile(base::FilePath(url_.path()), &mime)) in hasAudio()
451 if (mime.find("audio/") != std::string::npos || in hasAudio()
452 mime.find("video/") != std::string::npos || in hasAudio()
453 mime.find("application/ogg") != std::string::npos) { in hasAudio()
1830 std::string mime; in IsHLSStream() local
1832 if (!net::GetMimeTypeFromFile(base::FilePath(url.path()), &mime)) in IsHLSStream()
[all …]

123