Home
last modified time | relevance | path

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

123

/external/python/google-api-python-client/googleapiclient/
Dmimeparse.py35 def parse_mime_type(mime_type): argument
45 parts = mime_type.split(";")
86 def fitness_and_quality_parsed(mime_type, parsed_ranges): argument
97 (target_type, target_subtype, target_params) = parse_media_range(mime_type)
123 def quality_parsed(mime_type, parsed_ranges): argument
133 return fitness_and_quality_parsed(mime_type, parsed_ranges)[1]
136 def quality(mime_type, ranges): argument
149 return quality_parsed(mime_type, parsed_ranges)
170 for mime_type in supported:
172 (fitness_and_quality_parsed(mime_type, parsed_header), pos, mime_type)
/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.h61 const std::string& mime_type);
216 const std::string& mime_type);
220 const std::string& mime_type);
233 const std::string& mime_type) { in Reply() argument
236 Reply(status_code, data.data(), data.size() * sizeof(T), mime_type); in Reply()
242 void Reply(int status_code, const T& data, const std::string& mime_type) { in Reply() argument
245 Reply(status_code, &data, sizeof(T), mime_type); in Reply()
Dhttp_utils.h62 const std::string& mime_type,
85 const std::string& mime_type,
101 const std::string& mime_type,
161 const std::string& mime_type,
172 const std::string& mime_type,
187 const std::string& mime_type,
199 const std::string& mime_type,
210 const std::string& mime_type,
/external/flac/src/share/grabbag/
Dpicture.c135 if(0 == strcmp(picture->mime_type, "image/png")) { in local__extract_resolution_color_info_()
184 else if(0 == strcmp(picture->mime_type, "image/jpeg")) { in local__extract_resolution_color_info_()
239 else if(0 == strcmp(picture->mime_type, "image/gif")) { in local__extract_resolution_color_info_()
311 else if (*obj->data.picture.mime_type == '\0' && !local__extract_mime_type_(obj)) in read_file()
401 if(0 == strcmp(obj->data.picture.mime_type, "-->")) { /* magic MIME type means URL */ in grabbag__picture_parse_specification()
417 …(strcmp(obj->data.picture.mime_type, "image/png") && strcmp(obj->data.picture.mime_type, "-->")) || in grabbag__picture_parse_specification()
438 char mime_type [64] ; in grabbag__picture_from_specification() local
443 safe_strncpy(mime_type, mime_type_in, sizeof (mime_type)); in grabbag__picture_from_specification()
456 if (mime_type_in && ! FLAC__metadata_object_picture_set_mime_type(obj, mime_type, /*copy=*/true)) { in grabbag__picture_from_specification()
480 if (strcmp(obj->data.picture.mime_type, "-->") == 0) { /* magic MIME type means URL */ in grabbag__picture_from_specification()
[all …]
/external/flac/src/test_grabbag/picture/
Dmain.c30 const char *mime_type; member
76 …flac_snprintf(s, sizeof(s), "%u|%s|%s||pictures/%s", (uint32_t)pf->type, pf->mime_type, pf->descri… in test_one_picture()
78 …flac_snprintf(s, sizeof(s), "%u|%s|%s|%dx%dx%d/%d|pictures/%s", (uint32_t)pf->type, pf->mime_type,… in test_one_picture()
83 …fn_only? FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER : pf->type, pf->mime_type, pf->description… in test_one_picture()
90 obj->data.picture.mime_type, in test_one_picture()
101 if(strcmp(obj->data.picture.mime_type, pf->mime_type)) in test_one_picture()
/external/python/apitools/apitools/base/py/
Dutil.py166 def AcceptableMimeType(accept_patterns, mime_type): argument
181 if '/' not in mime_type:
183 'Invalid MIME type: "%s"' % mime_type)
190 def MimeTypeMatches(pattern, mime_type): argument
196 in zip(pattern.split('/'), mime_type.split('/')))
198 return any(MimeTypeMatches(pattern, mime_type)
Dtransfer.py583 def __init__(self, stream, mime_type, total_size=None, http=None, argument
592 self.__mime_type = mime_type
608 def FromFile(cls, filename, mime_type=None, auto_transfer=True, argument
614 if not mime_type:
615 mime_type, _ = mimetypes.guess_type(path)
616 if mime_type is None:
620 return cls(open(path, 'rb'), mime_type, total_size=size,
625 def FromStream(cls, stream, mime_type, total_size=None, auto_transfer=True, argument
628 if mime_type is None:
631 return cls(stream, mime_type, total_size=total_size,
[all …]
Dutil_test.py154 for accept, mime_type in valid_pairs:
155 self.assertTrue(util.AcceptableMimeType([accept], mime_type))
162 for accept, mime_type in invalid_pairs:
163 self.assertFalse(util.AcceptableMimeType([accept], mime_type))
Dtransfer_test.py345 mime_type='text/plain',
381 mime_type='text/plain',
409 mime_type='text/plain',
438 mime_type='text/plain',
469 mime_type='text/plain',
513 mime_type='text/plain',
557 mime_type='text/plain',
/external/libcups/ppdc/
Dppdc-filter.cxx28 mime_type = new ppdcString(t); in ppdcFilter()
42 mime_type->release(); in ~ppdcFilter()
/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/flac/src/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 …]
/external/wayland/tests/data/
Dexample-server.h1569 const char *mime_type);
1593 const char *mime_type,
1710 wl_data_offer_send_offer(struct wl_resource *resource_, const char *mime_type) in wl_data_offer_send_offer() argument
1712 wl_resource_post_event(resource_, WL_DATA_OFFER_OFFER, mime_type); in wl_data_offer_send_offer()
1768 const char *mime_type);
1852 wl_data_source_send_target(struct wl_resource *resource_, const char *mime_type) in wl_data_source_send_target() argument
1854 wl_resource_post_event(resource_, WL_DATA_SOURCE_TARGET, mime_type); in wl_data_source_send_target()
1865 wl_data_source_send_send(struct wl_resource *resource_, const char *mime_type, int32_t fd) in wl_data_source_send_send() argument
1867 wl_resource_post_event(resource_, WL_DATA_SOURCE_SEND, mime_type, fd); in wl_data_source_send_send()
Dexample-client.h1864 const char *mime_type);
2016 wl_data_offer_accept(struct wl_data_offer *wl_data_offer, uint32_t serial, const char *mime_type) in wl_data_offer_accept() argument
2019 WL_DATA_OFFER_ACCEPT, serial, mime_type); in wl_data_offer_accept()
2042 wl_data_offer_receive(struct wl_data_offer *wl_data_offer, const char *mime_type, int32_t fd) in wl_data_offer_receive() argument
2045 WL_DATA_OFFER_RECEIVE, mime_type, fd); in wl_data_offer_receive()
2156 const char *mime_type);
2168 const char *mime_type,
2345 wl_data_source_offer(struct wl_data_source *wl_data_source, const char *mime_type) in wl_data_source_offer() argument
2348 WL_DATA_SOURCE_OFFER, mime_type); in wl_data_source_offer()
/external/flac/src/test_libs_common/
Dmetadata_utils.c301 len = strlen(block->mime_type); in mutils__compare_block_data_picture()
302 lencopy = strlen(blockcopy->mime_type); in mutils__compare_block_data_picture()
307 if(strcmp(blockcopy->mime_type, block->mime_type)) { in mutils__compare_block_data_picture()
308 …rintf("FAILED, mime_type mismatch, expected %s, got %s\n", block->mime_type, blockcopy->mime_type); in mutils__compare_block_data_picture()
591 picture->data.picture.mime_type = strdup_or_die_("image/jpeg"); in mutils__init_metadata_blocks()
592 picture->length += strlen(picture->data.picture.mime_type); in mutils__init_metadata_blocks()
631 free(picture->data.picture.mime_type); in mutils__free_metadata_blocks()
/external/ImageMagick/Magick++/lib/
DCoderInfo.cpp76 _mimeType=std::string(magickInfo->mime_type != (char *) NULL ? in CoderInfo()
77 magickInfo->mime_type : ""); in CoderInfo()
/external/perfetto/infra/ci/worker/
Dartifacts_uploader.py58 mime_type = mimetypes.guess_type(fpath)[0] or 'application/octet-stream'
60 hdr = {'Content-Length': fsize, 'Content-type': mime_type}
/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.d8 the mime_type attribute. If the file system does not support extended
/external/ImageMagick/coders/
Djp2.c590 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
603 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
616 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
629 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
642 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
655 entry->mime_type=ConstantString("image/jp2"); in RegisterJP2Image()
/external/ImageMagick/MagickCore/
Dmagick.h73 *mime_type, member
Dmagick.c862 return(magick_info->mime_type); in GetMagickMimeType()
1078 if (p->mime_type != (char *) NULL) in DestroyMagickNode()
1079 p->mime_type=DestroyString(p->mime_type); in DestroyMagickNode()

123