/external/libbrillo/brillo/http/ |
D | http_utils.cc | 66 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 …]
|
D | http_transport_fake.cc | 123 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 …]
|
D | http_utils.h | 62 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,
|
D | http_transport_fake.h | 61 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()
|
/external/python/google-api-python-client/googleapiclient/ |
D | mimeparse.py | 35 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/python/apitools/apitools/base/py/ |
D | util.py | 166 def AcceptableMimeType(accept_patterns, mime_type): argument 167 """Return True iff mime_type is acceptable for one of accept_patterns. 176 mime_type: the mime type we would like to match. 179 Whether or not mime_type matches (at least) one of these patterns. 181 if '/' not in mime_type: 183 'Invalid MIME type: "%s"' % mime_type) 190 def MimeTypeMatches(pattern, mime_type): argument 191 """Return True iff mime_type is acceptable for pattern.""" 196 in zip(pattern.split('/'), mime_type.split('/'))) 198 return any(MimeTypeMatches(pattern, mime_type)
|
D | transfer.py | 573 mime_type: MIME type of the upload. 581 'auto_transfer', 'mime_type', 'total_size', 'url')) 583 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 [all …]
|
D | util_test.py | 154 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))
|
D | transfer_test.py | 345 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/adhd/scripts/mic_testing/frontend/ |
D | app.yaml | 9 mime_type: text/css 14 mime_type: text/html 19 mime_type: text/javascript 24 mime_type: text/plain
|
/external/adhd/scripts/audio_tuning/frontend/ |
D | app.yaml | 9 mime_type: text/css 14 mime_type: text/html 19 mime_type: text/javascript 24 mime_type: text/plain
|
/external/adhd/scripts/volume_tuning/ |
D | app.yaml | 9 mime_type: text/css 14 mime_type: text/html 19 mime_type: text/javascript 24 mime_type: text/plain
|
/external/flac/src/share/grabbag/ |
D | picture.c | 135 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/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowContentProviderClientTest.java | 38 private static final String MIME_TYPE = "application/octet-stream"; field in ShadowContentProviderClientTest 110 client.openTypedAssetFileDescriptor(URI, MIME_TYPE, opts); in shouldDelegateToContentProvider() 111 verify(provider).openTypedAssetFile(URI, MIME_TYPE, opts); in shouldDelegateToContentProvider() 113 client.getStreamTypes(URI, MIME_TYPE); in shouldDelegateToContentProvider() 114 verify(provider).getStreamTypes(URI, MIME_TYPE); in shouldDelegateToContentProvider()
|
/external/flac/src/test_grabbag/picture/ |
D | main.c | 30 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/image_io/includes/image_io/jpeg/ |
D | jpeg_xmp_info.h | 65 /// @param mime_type The mime type to assign to this instance. 66 void SetMimeType(const std::string& mime_type) { mime_type_ = mime_type; } in SetMimeType() argument
|
D | jpeg_info.h | 119 /// @param mime_type The mime type of the Xmp data. 120 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/ |
D | metadata_object.c | 477 FLAC__STREAM_METADATA_PICTURE_MIME_TYPE_LENGTH_LEN + /* empty mime_type string */ in FLAC__metadata_object_new() 487 object->data.picture.mime_type = 0; in FLAC__metadata_object_new() 497 …/* now initialize mime_type and description with empty strings to make things easier on the client… 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_() [all …]
|
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/Explorer/ |
D | Web_Browser_Suite.py | 129 'MIME_Type' : 'MIME', 139 Keyword argument MIME_Type: MIME type of data being posted 184 'MIME_Type' : 'MIME', 192 Keyword argument MIME_Type: MIME type
|
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/Netscape/ |
D | WorldWideWeb_suite.py | 52 'MIME_type' : 'MIME', 60 Keyword argument MIME_type: MIME type 241 'MIME_type' : 'MIME', 248 Keyword argument MIME_type: MIME type viewer is registering for 341 'MIME_type' : 'MIME', 347 Keyword argument MIME_type: MIME type to be unregistered
|
/external/python/google-api-python-client/docs/dyn/ |
D | books_v1.cloudloading.html | 78 …k">addBook(upload_client_token=None, name=None, drive_document_id=None, mime_type=None)</a></code>… 88 …ddBook">addBook(upload_client_token=None, name=None, drive_document_id=None, mime_type=None)</code> 95 mime_type: string, The document MIME type. It can be set only if the drive_document_id is set.
|
/external/libcups/ppdc/ |
D | ppdc-filter.cxx | 28 mime_type = new ppdcString(t); in ppdcFilter() 42 mime_type->release(); in ~ppdcFilter()
|
/external/wayland-protocols/freedesktop.org/unstable/primary-selection/ |
D | primary-selection-unstable-v1.xml | 166 <arg name="mime_type" type="string"/> 183 <arg name="mime_type" type="string"/> 199 <arg name="mime_type" type="string"/> 214 <arg name="mime_type" type="string"/>
|
/external/flac/src/test_libs_common/ |
D | metadata_utils.c | 301 len = strlen(block->mime_type); in mutils__compare_block_data_picture() 302 lencopy = strlen(blockcopy->mime_type); in mutils__compare_block_data_picture() 304 …printf("FAILED, mime_type length mismatch, expected %u, got %u\n", (uint32_t)len, (uint32_t)lencop… in mutils__compare_block_data_picture() 307 if(strcmp(blockcopy->mime_type, block->mime_type)) { in mutils__compare_block_data_picture() 308 …printf("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/flac/include/share/grabbag/ |
D | picture.h | 31 /* spec should be of the form "[TYPE]|MIME_TYPE|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE", … 47 FLAC__StreamMetadata *grabbag__picture_from_specification(int type, const char *mime_type, const ch…
|