Home
last modified time | relevance | path

Searched refs:mime_type (Results 1 – 25 of 44) sorted by relevance

12

/external/python/google-api-python-client/googleapiclient/
Dmimeparse.py35 def parse_mime_type(mime_type): argument
45 parts = mime_type.split(';')
82 def fitness_and_quality_parsed(mime_type, parsed_ranges): argument
94 parse_media_range(mime_type)
116 def quality_parsed(mime_type, parsed_ranges): argument
126 return fitness_and_quality_parsed(mime_type, parsed_ranges)[1]
129 def quality(mime_type, ranges): argument
142 return quality_parsed(mime_type, parsed_ranges)
163 for mime_type in supported:
164 weighted_matches.append((fitness_and_quality_parsed(mime_type,
[all …]
/external/libbrillo/brillo/http/
Dhttp_utils.cc66 const std::string& mime_type, in PostTextAndBlock() argument
71 url, data.data(), data.size(), mime_type, headers, transport, error); in PostTextAndBlock()
76 const std::string& mime_type, in PostText() argument
84 mime_type, in PostText()
96 const std::string& mime_type, in SendRequestAndBlock() argument
103 CHECK(!mime_type.empty()) << "MIME type must be specified if request body " in SendRequestAndBlock()
105 request.SetContentType(mime_type); in SendRequestAndBlock()
125 const std::string& mime_type, in SendRequest() argument
133 CHECK(!mime_type.empty()) << "MIME type must be specified if request body " in SendRequest()
135 request.SetContentType(mime_type); in SendRequest()
[all …]
Dhttp_transport_fake.cc123 const std::string& mime_type) { in AddSimpleReplyHandler() argument
126 const std::string& mime_type, in AddSimpleReplyHandler()
129 response->ReplyText(status_code, reply_text, mime_type); in AddSimpleReplyHandler()
132 url, method, base::Bind(handler, status_code, reply_text, mime_type)); in AddSimpleReplyHandler()
223 std::string mime_type = brillo::mime::RemoveParameters( in GetFormField() local
225 if (mime_type == brillo::mime::application::kWwwFormUrlEncoded && in GetFormField()
239 const std::string& mime_type) { in Reply() argument
245 {response_header::kContentType, mime_type}}); in Reply()
250 const std::string& mime_type) { in ReplyText() argument
251 Reply(status_code, text.data(), text.size(), mime_type); in ReplyText()
[all …]
Dhttp_transport_fake.h58 const std::string& mime_type);
206 const std::string& mime_type);
210 const std::string& mime_type);
223 const std::string& mime_type) { in Reply() argument
226 Reply(status_code, data.data(), data.size() * sizeof(T), mime_type); in Reply()
232 void Reply(int status_code, const T& data, const std::string& mime_type) { in Reply() argument
235 Reply(status_code, &data, sizeof(T), mime_type); in Reply()
Dhttp_utils.h61 const std::string& mime_type,
84 const std::string& mime_type,
100 const std::string& mime_type,
160 const std::string& mime_type,
171 const std::string& mime_type,
186 const std::string& mime_type,
198 const std::string& mime_type,
209 const std::string& mime_type,
Dhttp_utils_unittest.cc376 auto mime_type = brillo::mime::RemoveParameters( in TEST() local
378 EXPECT_EQ(brillo::mime::application::kJson, mime_type); in TEST()
/external/python/apitools/apitools/base/py/
Dutil.py160 def AcceptableMimeType(accept_patterns, mime_type): argument
175 if '/' not in mime_type:
177 'Invalid MIME type: "%s"' % mime_type)
184 def MimeTypeMatches(pattern, mime_type): argument
190 in zip(pattern.split('/'), mime_type.split('/')))
192 return any(MimeTypeMatches(pattern, mime_type)
Dtransfer.py548 def __init__(self, stream, mime_type, total_size=None, http=None, argument
557 self.__mime_type = mime_type
572 def FromFile(cls, filename, mime_type=None, auto_transfer=True, **kwds): argument
577 if not mime_type:
578 mime_type, _ = mimetypes.guess_type(path)
579 if mime_type is None:
583 return cls(open(path, 'rb'), mime_type, total_size=size,
587 def FromStream(cls, stream, mime_type, total_size=None, auto_transfer=True, argument
590 if mime_type is None:
593 return cls(stream, mime_type, total_size=total_size,
[all …]
Dutil_test.py151 for accept, mime_type in valid_pairs:
152 self.assertTrue(util.AcceptableMimeType([accept], mime_type))
159 for accept, mime_type in invalid_pairs:
160 self.assertFalse(util.AcceptableMimeType([accept], mime_type))
/external/owasp/sanitizer/tools/
Dcut_release.py113 mime_type = mime_type_from_path(dest_path)
114 if mime_type is None or mime_type.startswith("text/"):
177 mime_type = mime_type_from_path(new_file_path) variable
178 if mime_type is not None:
179 print "svn propset svn:mime-type '%s' '%s'" % (mime_type, new_file_path)
Dupdate_tree_in_svn.py83 mime_type = MIME_TYPES_BY_EXTENSION.get(dst[dot+1:])
84 if mime_type is not None:
85 key = ('svn:mime-type', mime_type)
/external/flac/libFLAC/
Dmetadata_object.c487 object->data.picture.mime_type = 0; in FLAC__metadata_object_new()
498 if (!copy_cstring_(&object->data.picture.mime_type, "")) { in FLAC__metadata_object_new()
503 free(object->data.picture.mime_type); in FLAC__metadata_object_new()
596 if (!copy_cstring_(&to->data.picture.mime_type, object->data.picture.mime_type)) { in FLAC__metadata_object_clone()
667 if (object->data.picture.mime_type != NULL) { in FLAC__metadata_object_delete_data()
668 free(object->data.picture.mime_type); in FLAC__metadata_object_delete_data()
669 object->data.picture.mime_type = NULL; in FLAC__metadata_object_delete_data()
838 …f (block1->mime_type != block2->mime_type && (block1->mime_type == 0 || block2->mime_type == 0 || … in compare_block_data_picture_()
1726 …tadata_object_picture_set_mime_type(FLAC__StreamMetadata *object, char *mime_type, FLAC__bool copy) in FLAC__metadata_object_picture_set_mime_type() argument
1733 FLAC__ASSERT(mime_type != NULL); in FLAC__metadata_object_picture_set_mime_type()
[all …]
Dstream_encoder_framing.c186 len = strlen(metadata->data.picture.mime_type); in FLAC__add_metadata_block()
189 …if(!FLAC__bitwriter_write_byte_block(bw, (const FLAC__byte*)metadata->data.picture.mime_type, len)) in FLAC__add_metadata_block()
/external/image_io/includes/image_io/jpeg/
Djpeg_xmp_info.h66 void SetMimeType(const std::string& mime_type) { mime_type_ = mime_type; } in SetMimeType() argument
Djpeg_info.h120 void SetMimeType(JpegXmpInfo::Type type, const std::string& mime_type) { in SetMimeType() argument
121 xmp_info_vector_[type].SetMimeType(mime_type); in SetMimeType()
/external/ImageMagick/Magick++/lib/
DCoderInfo.cpp76 _mimeType=std::string(magickInfo->mime_type != (char *) NULL ? in CoderInfo()
77 magickInfo->mime_type : ""); in CoderInfo()
/external/ImageMagick/coders/
Djp2.c574 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
587 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
600 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
613 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
626 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
639 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
Dps.c1077 entry->mime_type=ConstantString("application/postscript"); in RegisterPSImage()
1086 entry->mime_type=ConstantString("application/postscript"); in RegisterPSImage()
1095 entry->mime_type=ConstantString("application/postscript"); in RegisterPSImage()
1105 entry->mime_type=ConstantString("application/postscript"); in RegisterPSImage()
1111 entry->mime_type=ConstantString("application/postscript"); in RegisterPSImage()
/external/flac/include/share/grabbag/
Dpicture.h47 FLAC__StreamMetadata *grabbag__picture_from_specification(int type, const char *mime_type, const ch…
/external/curl/docs/cmdline-opts/
Dxattr.d7 the mime_type attribute. If the file system does not support extended
/external/autotest/frontend/afe/feeds/
Dfeed.py34 response = HttpResponse(mimetype=feedgen.mime_type)
/external/perfetto/ui/
Ddeploy95 mime_type: application/wasm
/external/ImageMagick/MagickCore/
Dmagick.h67 *mime_type, member
Dmagick.c864 return(magick_info->mime_type); in GetMagickMimeType()
1022 if (p->mime_type != (char *) NULL) in DestroyMagickNode()
1023 p->mime_type=DestroyString(p->mime_type); in DestroyMagickNode()
/external/flac/include/FLAC/
Dmetadata.h237 …Metadata **picture, FLAC__StreamMetadata_Picture_Type type, const char *mime_type, const FLAC__byt…
2108 …tadata_object_picture_set_mime_type(FLAC__StreamMetadata *object, char *mime_type, FLAC__bool copy…

12