Home
last modified time | relevance | path

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

1234

/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 …]
/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()
174 .WillOnce(Return(mime::text::kHtml)); in TEST_F()
175 EXPECT_EQ(mime::text::kHtml, resp->GetContentType()); in TEST_F()
Dhttp_transport_fake.cc180 if (brillo::mime::RemoveParameters( in GetDataAsJson()
182 brillo::mime::application::kJson) { in GetDataAsJson()
223 std::string mime_type = brillo::mime::RemoveParameters( in GetFormField()
225 if (mime_type == brillo::mime::application::kWwwFormUrlEncoded && in GetFormField()
259 brillo::mime::AppendParameter(brillo::mime::application::kJson, in ReplyJson()
260 brillo::mime::parameters::kCharset, in ReplyJson()
/external/python/cpython2/Doc/library/
Demail.mime.rst1 :mod:`email.mime`: Creating email and MIME objects from scratch
4 .. module:: email.mime
23 .. currentmodule:: email.mime.base
27 Module: :mod:`email.mime.base`
46 .. currentmodule:: email.mime.nonmultipart
50 Module: :mod:`email.mime.nonmultipart`
52 A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate base
62 .. currentmodule:: email.mime.multipart
66 Module: :mod:`email.mime.multipart`
68 A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate base
[all …]
Demail.rst59 email.mime.rst
107 * A new subpackage :mod:`email.mime` was added and all the version 3
108 :mod:`email.MIME\*` modules were renamed and situated into the :mod:`email.mime`
110 to :mod:`email.mime.text`.
114 * The :mod:`email.mime.application` module was added, which contains the
115 :class:`~email.mime.application.MIMEApplication` class.
141 :class:`~email.mime.text.MIMEText` constructor, the
205 :class:`~email.mime.nonmultipart.MIMENonMultipart` and
206 :class:`~email.mime.multipart.MIMEMultipart` have been added, and interposed
209 * The *_encoder* argument to the :class:`~email.mime.text.MIMEText` constructor
[all …]
/external/libmojo/base/android/
Dcontent_uri_utils_unittest.cc28 std::string mime = GetContentUriMimeType(path); in TEST() local
29 EXPECT_EQ(mime, std::string("image/png")); in TEST()
32 mime = GetContentUriMimeType(invalid_path); in TEST()
33 EXPECT_TRUE(mime.empty()); in TEST()
/external/libmtp/logs/
Dmtp-detect-sonyericsson-c902.txt496 <mime-type>image/jpeg</mime-type>
500 <mime-type>image/bmp</mime-type>
504 <mime-type>image/gif</mime-type>
508 <mime-type>image/png</mime-type>
510mime-type>image/svg</mime-type> </format> <format id="Flash" preferred="false"> <extension…
515 <mime-type>audio/3gpp</mime-type>
519 <mime-type>audio/aac</mime-type>
523 <mime-type>audio/amr</mime-type>
527 <mime-type>audio/amr-wb</mime-type>
531 <mime-type>audio/m4b</mime-type>
[all …]
/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/python/cpython2/Doc/includes/
Demail-dir.py15 from email.mime.audio import MIMEAudio
16 from email.mime.base import MIMEBase
17 from email.mime.image import MIMEImage
18 from email.mime.multipart import MIMEMultipart
19 from email.mime.text import MIMEText
Demail-alternative.py5 from email.mime.multipart import MIMEMultipart
6 from email.mime.text import MIMEText
Demail-mime.py5 from email.mime.image import MIMEImage
6 from email.mime.multipart import MIMEMultipart
/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/toolchain-utils/cros_utils/
Demail_sender.py9 from email.mime.base import MIMEBase
10 from email.mime.multipart import MIMEMultipart
11 from email.mime.text import MIMEText
/external/ImageMagick/config/
DMakefile.am40 config/mime.xml \
64 config/mime.xml \
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/
DInterpreterConfiguration.java74 private void discoverForType(final String mime) { in discoverForType() argument
80 intent.setType(mime); in discoverForType()
232 public void startDiscovering(String mime) { in startDiscovering() argument
233 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;

1234