Home
last modified time | relevance | path

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

123456

/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/curl/tests/libtest/
Dlib643.c78 curl_mime *mime = NULL; in once() local
97 mime = curl_mime_init(curl); in once()
98 if(!mime) { in once()
105 part = curl_mime_addpart(mime); in once()
108 curl_mime_free(mime); in once()
145 part = curl_mime_addpart(mime); in once()
148 curl_mime_free(mime); in once()
162 part = curl_mime_addpart(mime); in once()
165 curl_mime_free(mime); in once()
188 part = curl_mime_addpart(mime); in once()
[all …]
Dlib654.c74 curl_mime *mime = NULL; in test() local
108 mime = curl_mime_init(easy); in test()
109 part = curl_mime_addpart(mime); in test()
116 part = curl_mime_addpart(mime); in test()
118 part = curl_mime_addpart(mime); in test()
123 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
135 curl_mime_free(mime); in test()
136 mime = NULL; /* Already cleaned up. */ in test()
171 curl_mime_free(mime); in test()
Dlib652.c32 curl_mime *mime = NULL; in test() local
56 mime = curl_mime_init(curl); in test()
57 if(!mime) { in test()
62 part = curl_mime_addpart(mime); in test()
106 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
120 curl_mime_free(mime); in test()
Dlib653.c34 curl_mime *mime = NULL; in test() local
39 mime = curl_mime_init(curls); in test()
40 field = curl_mime_addpart(mime); in test()
47 easy_setopt(curls, CURLOPT_MIMEPOST, mime); in test()
59 curl_mime_free(mime); in test()
Dlib1553.c51 curl_mime *mime = NULL; in test() local
62 mime = curl_mime_init(curls); in test()
63 field = curl_mime_addpart(mime); in test()
70 easy_setopt(curls, CURLOPT_MIMEPOST, mime); in test()
99 curl_mime_free(mime); in test()
/external/curl/lib/
Dmime.c914 curl_mime *mime = (curl_mime *) instream; in mime_subparts_read() local
924 curl_mimepart *part = mime->state.ptr; in mime_subparts_read()
925 switch(mime->state.state) { in mime_subparts_read()
931 mimesetstate(&mime->state, MIMESTATE_BOUNDARY1, mime->firstpart); in mime_subparts_read()
935 mime->state.offset += 2; in mime_subparts_read()
938 sz = readback_bytes(&mime->state, buffer, nitems, "\r\n--", 4, ""); in mime_subparts_read()
940 mimesetstate(&mime->state, MIMESTATE_BOUNDARY2, part); in mime_subparts_read()
943 sz = readback_bytes(&mime->state, buffer, nitems, mime->boundary, in mime_subparts_read()
944 strlen(mime->boundary), part? "\r\n": "--\r\n"); in mime_subparts_read()
947 if(mime->easy && convbuf < buffer) { in mime_subparts_read()
[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()
/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 …]
/external/python/cpython3/Doc/library/
Demail.mime.rst1 :mod:`email.mime`: Creating email and MIME objects from scratch
4 .. module:: email.mime
7 **Source code:** :source:`Lib/email/mime/`
31 .. currentmodule:: email.mime.base
35 Module: :mod:`email.mime.base`
61 .. currentmodule:: email.mime.nonmultipart
65 Module: :mod:`email.mime.nonmultipart`
67 A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate base
75 .. currentmodule:: email.mime.multipart
80 Module: :mod:`email.mime.multipart`
[all …]
/external/curl/src/
Dtool_formparse.c162 void tool_mime_free(tool_mime *mime) in tool_mime_free() argument
164 if(mime) { in tool_mime_free()
165 if(mime->subparts) in tool_mime_free()
166 tool_mime_free(mime->subparts); in tool_mime_free()
167 if(mime->prev) in tool_mime_free()
168 tool_mime_free(mime->prev); in tool_mime_free()
169 CONST_SAFEFREE(mime->name); in tool_mime_free()
170 CONST_SAFEFREE(mime->filename); in tool_mime_free()
171 CONST_SAFEFREE(mime->type); in tool_mime_free()
172 CONST_SAFEFREE(mime->encoder); in tool_mime_free()
[all …]
/external/curl/docs/examples/
Dsmtp-mime.c76 curl_mime *mime; in main() local
108 mime = curl_mime_init(curl); in main()
124 part = curl_mime_addpart(mime); in main()
131 part = curl_mime_addpart(mime); in main()
133 curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime); in main()
158 curl_mime_free(mime); in main()
/external/dynamic_depth/internal/dynamic_depth/
Dimage.cc61 const string& data, const string& mime, const string& item_uri, in FromData() argument
63 if (data.empty() || mime.empty()) { in FromData()
78 ItemParams item_params(mime, data.size(), item_uri); in FromData()
89 const string& mime, std::vector<std::unique_ptr<Item>>* items) { in FromDataForPrimaryImage() argument
90 if (mime.empty()) { in FromDataForPrimaryImage()
100 ItemParams item_params(mime, 0, kPrimaryImagePlaceholderItemUri); in FromDataForPrimaryImage()
110 const uint8_t* data, size_t data_size, const string& mime, in FromData() argument
112 if ((data == nullptr || data_size == 0) || mime.empty()) { in FromData()
127 ItemParams item_params(mime, data_size, item_uri); in FromData()
Ditem.cc33 if (params.mime.empty()) { in FromDataInternal()
78 string mime; in FromDeserializer() local
83 if (!deserializer->ParseString(DynamicDepthConst::Item(), kMime, &mime) || in FromDeserializer()
91 ItemParams params(mime, length); in FromDeserializer()
103 const string& Item::GetMime() const { return params_.mime; } in GetMime()
120 params_.mime) && in Serialize()
/external/cldr/tools/scripts/
DfixSVNProps.sh21 svn propset -q svn:mime-type text/xml ${filename}
26 svn propset -q svn:mime-type "text/plain;charset=utf-8" ${filename}
31 svn propset -q svn:mime-type "text/plain" ${filename}
36 svn propset -q svn:mime-type "text/css" ${filename}
41 svn propset -q svn:mime-type "text/html" ${filename}
/external/dynamic_depth/includes/dynamic_depth/
Ditem.h17 string mime; // Must not be empty. member
30 : mime(in_mime), in ItemParams()
36 : mime(in_mime), in ItemParams()
43 return mime == other.mime && length == other.length &&
/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/ImageMagick/MagickCore/
Dmime.c804 *mime, in LoadMimeCache() local
855 mime=GetXMLTreeChild(mime_map,"mime"); in LoadMimeCache()
856 while (mime != (XMLTreeInfo *) NULL) in LoadMimeCache()
865 attribute=GetXMLTreeAttribute(mime,"data-type"); in LoadMimeCache()
869 attribute=GetXMLTreeAttribute(mime,"description"); in LoadMimeCache()
872 attribute=GetXMLTreeAttribute(mime,"endian"); in LoadMimeCache()
876 attribute=GetXMLTreeAttribute(mime,"magic"); in LoadMimeCache()
934 attribute=GetXMLTreeAttribute(mime,"mask"); in LoadMimeCache()
937 attribute=GetXMLTreeAttribute(mime,"offset"); in LoadMimeCache()
947 attribute=GetXMLTreeAttribute(mime,"pattern"); in LoadMimeCache()
[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
/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 …]

123456