Home
last modified time | relevance | path

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

123

/external/libbrillo/brillo/
Dmime_utils.cc16 const char mime::types::kApplication[] = "application";
17 const char mime::types::kAudio[] = "audio";
18 const char mime::types::kImage[] = "image";
19 const char mime::types::kMessage[] = "message";
20 const char mime::types::kMultipart[] = "multipart";
21 const char mime::types::kText[] = "text";
22 const char mime::types::kVideo[] = "video";
24 const char mime::parameters::kCharset[] = "charset";
26 const char mime::image::kJpeg[] = "image/jpeg";
27 const char mime::image::kPng[] = "image/png";
[all …]
Dmime_utils_unittest.cc12 std::string mime_string = mime::Combine(mime::types::kText, "xml"); in TEST()
13 EXPECT_EQ(mime::text::kXml, mime_string); in TEST()
16 mime::Combine(mime::types::kApplication, "json", {{"charset", "utf-8"}})); in TEST()
21 EXPECT_TRUE(mime::Split(mime::image::kJpeg, &s1, &s2)); in TEST()
22 EXPECT_EQ(mime::types::kImage, s1); in TEST()
25 mime::Parameters parameters; in TEST()
27 mime::Split("application/json;charset=utf-8", &s1, &s2, &parameters)); in TEST()
28 EXPECT_EQ(mime::types::kApplication, s1); in TEST()
30 EXPECT_EQ(mime::application::kJson, mime::Combine(s1, s2)); in TEST()
32 EXPECT_EQ(mime::parameters::kCharset, parameters.front().first); in TEST()
[all …]
/external/libmicrohttpd/src/examples/
Dspdy_fileserver.c45 #define GET_MIME_TYPE(fname, mime) do {\ argument
49 (mime) = strdup("application/octet-stream");\
54 if(0 == strcmp(__ext, "jpg")) (mime) = strdup("image/jpeg");\
55 else if(0 == strcmp(__ext, "png")) (mime) = strdup("image/png");\
56 else if(0 == strcmp(__ext, "css")) (mime) = strdup("text/css");\
57 else if(0 == strcmp(__ext, "gif")) (mime) = strdup("image/gif");\
58 else if(0 == strcmp(__ext, "htm")) (mime) = strdup("text/html");\
61 (mime) = strdup("application/octet-stream");\
65 if(NULL == (mime))\
167 char *mime=NULL; in standard_request_handler() local
[all …]
Dpost_example.c205 const char *mime,
223 const char *mime; member
275 const char *mime, in serve_simple_form() argument
292 mime); in serve_simple_form()
311 const char *mime, in fill_v1_form() argument
335 mime); in fill_v1_form()
354 const char *mime, in fill_v1_v2_form() argument
379 mime); in fill_v1_v2_form()
398 const char *mime, in not_found_page() argument
416 mime); in not_found_page()
[all …]
Ddemo_https.c692 const char *mime; in generate_page() local
709 mime = magic_buffer (magic, file_data, got); in generate_page()
711 mime = NULL; in generate_page()
723 if (NULL != mime) in generate_page()
726 mime); in generate_page()
Ddemo.c691 const char *mime; in generate_page() local
708 mime = magic_buffer (magic, file_data, got); in generate_page()
710 mime = NULL; in generate_page()
722 if (NULL != mime) in generate_page()
725 mime); in generate_page()
/external/libbrillo/brillo/http/
Dhttp_utils_unittest.cc38 status_code::Ok, request.GetMethod(), brillo::mime::text::kPlain); in EchoMethodHandler()
54 brillo::mime::application::kOctet_stream, in TEST()
59 EXPECT_EQ(brillo::mime::application::kOctet_stream, in TEST()
75 EXPECT_EQ(brillo::mime::application::kOctet_stream, in TEST()
86 brillo::mime::application::kOctet_stream, in TEST()
106 brillo::mime::application::kOctet_stream, in TEST()
111 EXPECT_EQ(brillo::mime::text::kPlain, response->GetContentType()); in TEST()
128 EXPECT_EQ(brillo::mime::text::kPlain, response->GetContentType()); in TEST()
145 EXPECT_EQ(brillo::mime::text::kPlain, response->GetContentType()); in TEST()
195 brillo::mime::application::kOctet_stream, { in TEST()
[all …]
Dhttp_utils.cc18 using brillo::mime::AppendParameter;
19 using brillo::mime::RemoveParameters;
246 brillo::mime::application::kWwwFormUrlEncoded, in PostFormDataAndBlock()
275 brillo::mime::application::kWwwFormUrlEncoded, in PostFormData()
307 std::string mime_type = AppendParameter(brillo::mime::application::kJson, in PostJsonAndBlock()
308 brillo::mime::parameters::kCharset, in PostJsonAndBlock()
323 std::string mime_type = AppendParameter(brillo::mime::application::kJson, in PostJson()
324 brillo::mime::parameters::kCharset, in PostJson()
345 std::string mime_type = AppendParameter(brillo::mime::application::kJson, in PatchJsonAndBlock()
346 brillo::mime::parameters::kCharset, in PatchJsonAndBlock()
[all …]
Dhttp_form_data_unittest.cc31 TextFormField form_field{"field1", "abcdefg", mime::text::kPlain, "7bit"}; in TEST()
58 mime::text::kPlain, in TEST()
83 MultiPartFormField form_field{"foo", mime::multipart::kFormData, "Delimiter"}; in TEST()
88 mime::text::kPlain, in TEST()
93 mime::application::kOctet_stream, in TEST()
163 "", filename1, content_disposition::kFile, mime::text::kPlain, nullptr)); in TEST()
167 mime::application::kOctet_stream, in TEST()
Dhttp_request_unittest.cc84 request.SetContentType(mime::image::kJpeg); in TEST_F()
85 EXPECT_EQ(mime::image::kJpeg, request.GetContentType()); in TEST_F()
120 request.AddHeader(request_header::kContentType, mime::text::kPlain); in TEST_F()
129 {request_header::kContentType, mime::text::kPlain}, in TEST_F()
171 .WillOnce(Return(mime::text::kHtml)); in TEST_F()
172 EXPECT_EQ(mime::text::kHtml, resp->GetContentType()); in TEST_F()
Dhttp_transport_fake.cc175 if (brillo::mime::RemoveParameters( in GetDataAsJson()
177 brillo::mime::application::kJson) { in GetDataAsJson()
225 std::string mime_type = brillo::mime::RemoveParameters( in GetFormField()
227 if (mime_type == brillo::mime::application::kWwwFormUrlEncoded && in GetFormField()
261 brillo::mime::AppendParameter(brillo::mime::application::kJson, in ReplyJson()
262 brillo::mime::parameters::kCharset, in ReplyJson()
/external/libmicrohttpd/doc/examples/
Dsessions.c227 const char *mime,
245 const char *mime; member
297 const char *mime, in serve_simple_form() argument
312 mime); in serve_simple_form()
331 const char *mime, in fill_v1_form() argument
354 mime); in fill_v1_form()
373 const char *mime, in fill_v1_v2_form() argument
397 mime); in fill_v1_v2_form()
416 const char *mime, in not_found_page() argument
432 mime); in not_found_page()
[all …]
/external/ImageMagick/MagickCore/
Dmime.c805 *mime, in LoadMimeCache() local
856 mime=GetXMLTreeChild(mime_map,"mime"); in LoadMimeCache()
857 while (mime != (XMLTreeInfo *) NULL) in LoadMimeCache()
868 attribute=GetXMLTreeAttribute(mime,"data-type"); in LoadMimeCache()
872 attribute=GetXMLTreeAttribute(mime,"description"); in LoadMimeCache()
875 attribute=GetXMLTreeAttribute(mime,"endian"); in LoadMimeCache()
879 attribute=GetXMLTreeAttribute(mime,"magic"); in LoadMimeCache()
937 attribute=GetXMLTreeAttribute(mime,"mask"); in LoadMimeCache()
940 attribute=GetXMLTreeAttribute(mime,"offset"); in LoadMimeCache()
950 attribute=GetXMLTreeAttribute(mime,"pattern"); in LoadMimeCache()
[all …]
/external/webrtc/talk/app/webrtc/java/src/org/webrtc/
DMediaCodecVideoDecoder.java143 String mime, String[] supportedCodecPrefixes) { in findDecoder() argument
147 Logging.d(TAG, "Trying to find HW decoder for mime " + mime); in findDecoder()
155 if (mimeType.equals(mime)) { in findDecoder()
179 info.getCapabilitiesForType(mime); in findDecoder()
194 Logging.d(TAG, "No HW decoder found for mime " + mime); in findDecoder()
237 String mime = null; in initDecode() local
240 mime = VP8_MIME_TYPE; in initDecode()
243 mime = VP9_MIME_TYPE; in initDecode()
246 mime = H264_MIME_TYPE; in initDecode()
251 DecoderProperties properties = findDecoder(mime, supportedCodecPrefixes); in initDecode()
[all …]
DMediaCodecVideoEncoder.java152 String mime, String[] supportedHwCodecPrefixes, int[] colorList) { in findHwEncoder() argument
160 if (mime.equals(H264_MIME_TYPE)) { in findHwEncoder()
175 if (mimeType.equals(mime)) { in findHwEncoder()
197 CodecCapabilities capabilities = info.getCapabilitiesForType(mime); in findHwEncoder()
206 Logging.d(TAG, "Found target encoder for mime " + mime + " : " + name + in findHwEncoder()
285 String mime = null; in initEncode() local
288 mime = VP8_MIME_TYPE; in initEncode()
293 mime = VP9_MIME_TYPE; in initEncode()
298 mime = H264_MIME_TYPE; in initEncode()
312 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); in initEncode()
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
DSimpleWebServer.java156 for (String mime : mimeTypes) { in main()
157 String[] indexFiles = info.getIndexFilesForMimeType(mime); in main()
159 System.out.print("# Found plugin for Mime type: \"" + mime + "\""); in main()
168 registerPluginForMimeType(indexFiles, mime, info.getWebServerPlugin(mime), options); in main()
471 Response serveFile(String uri, Map<String, String> header, File file, String mime) { in serveFile() argument
515 res = newFixedLengthResponse(Response.Status.NOT_MODIFIED, mime, ""); in serveFile()
529 … res = newFixedLengthResponse(Response.Status.PARTIAL_CONTENT, mime, fis, newLen); in serveFile()
547 res = newFixedLengthResponse(Response.Status.NOT_MODIFIED, mime, ""); in serveFile()
554 res = newFixedLengthResponse(Response.Status.NOT_MODIFIED, mime, ""); in serveFile()
558 res = newFixedFileResponse(file, mime); in serveFile()
[all …]
/external/jetty/src/java/org/eclipse/jetty/client/
DContentExchange.java86 String mime = StringUtil.asciiToLowerCase(value.toString()); in onResponseHeader() local
87 int i = mime.indexOf("charset="); in onResponseHeader()
90 _encoding = mime.substring(i + 8); in onResponseHeader()
/external/jetty/src/java/org/eclipse/jetty/server/handler/
DResourceHandler.java466 Buffer mime=_mimeTypes.getMimeByExtension(resource.toString()); in handle() local
467 if (mime==null) in handle()
468 mime=_mimeTypes.getMimeByExtension(request.getPathInfo()); in handle()
471 doResponseHeaders(response,resource,mime!=null?mime.toString():null); in handle()
/external/ImageMagick/config/
DMakefile.am40 config/mime.xml \
64 config/mime.xml \
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/
DInterpreterConfiguration.java76 private void discoverForType(final String mime) { in discoverForType() argument
82 intent.setType(mime); in discoverForType()
234 public void startDiscovering(String mime) { in startDiscovering() argument
235 mListener.discoverForType(mime); in startDiscovering()
/external/nanohttpd/fileupload/src/test/java/fi/iki/elonen/
DTestNanoFileUpLoad.java59 import org.apache.http.entity.mime.HttpMultipartMode;
60 import org.apache.http.entity.mime.MultipartEntityBuilder;
61 import org.apache.http.entity.mime.content.FileBody;
62 import org.apache.http.entity.mime.content.StringBody;
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DGetAndPostIntegrationTest.java51 import org.apache.http.entity.mime.HttpMultipartMode;
52 import org.apache.http.entity.mime.MultipartEntity;
53 import org.apache.http.entity.mime.content.StringBody;
/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-trace/catapult/third_party/gsutil/third_party/boto/boto/
Dutils.py52 import email.mime.multipart
53 import email.mime.base
54 import email.mime.text
809 msg = email.mime.multipart.MIMEMultipart()
817 msg.attach(email.mime.text.MIMEText(body))
820 part = email.mime.base.MIMEBase('text', 'html')
911 wrapper = email.mime.multipart.MIMEMultipart()
916 mime_con = email.mime.text.MIMEText(con, _subtype=subtype)
918 mime_con = email.mime.base.MIMEBase(maintype, subtype)
/external/clang/tools/scan-view/share/
DReporter.py29 from email.mime.base import MIMEBase
30 from email.mime.multipart import MIMEMultipart
31 from email.mime.text import MIMEText

123