/third_party/pulseaudio/src/pulsecore/ |
D | mime-type.c | 29 bool pa_sample_spec_is_mime(const pa_sample_spec *ss, const pa_channel_map *cm) { in pa_sample_spec_is_mime() argument 31 pa_assert(pa_channel_map_compatible(cm, ss)); in pa_sample_spec_is_mime() 52 if ((cm->channels == 1 && cm->map[0] != PA_CHANNEL_POSITION_MONO) || in pa_sample_spec_is_mime() 53 …(cm->channels == 2 && (cm->map[0] != PA_CHANNEL_POSITION_LEFT || cm->map[1] != PA_CHANNEL_POSITION… in pa_sample_spec_is_mime() 66 if (cm->map[0] != PA_CHANNEL_POSITION_MONO) in pa_sample_spec_is_mime() 76 void pa_sample_spec_mimefy(pa_sample_spec *ss, pa_channel_map *cm) { in pa_sample_spec_mimefy() argument 78 pa_assert(pa_channel_map_compatible(cm, ss)); in pa_sample_spec_mimefy() 139 pa_channel_map_init_auto(cm, ss->channels, PA_CHANNEL_MAP_DEFAULT); in pa_sample_spec_mimefy() 141 pa_assert(pa_sample_spec_is_mime(ss, cm)); in pa_sample_spec_mimefy() 144 char *pa_sample_spec_to_mime_type(const pa_sample_spec *ss, const pa_channel_map *cm) { in pa_sample_spec_to_mime_type() argument [all …]
|
D | sndfile-util.c | 151 int pa_sndfile_read_channel_map(SNDFILE *sf, pa_channel_map *cm) { in pa_sndfile_read_channel_map() argument 184 pa_assert(cm); in pa_sndfile_read_channel_map() 198 cm->channels = (uint8_t) sfi.channels; in pa_sndfile_read_channel_map() 199 for (c = 0; c < cm->channels; c++) { in pa_sndfile_read_channel_map() 206 cm->map[c] = table[channels[c]]; in pa_sndfile_read_channel_map() 211 if (!pa_channel_map_valid(cm)) in pa_sndfile_read_channel_map() 217 int pa_sndfile_write_channel_map(SNDFILE *sf, pa_channel_map *cm) { in pa_sndfile_write_channel_map() argument 285 pa_assert(cm); in pa_sndfile_write_channel_map() 288 if (cm->channels == 1 && cm->map[0] == PA_CHANNEL_POSITION_MONO) in pa_sndfile_write_channel_map() 291 if (cm->channels == 2 && in pa_sndfile_write_channel_map() [all …]
|
/third_party/python/Lib/test/ |
D | test_flufl.py | 12 with self.assertRaises(SyntaxError) as cm: 15 self.assertRegex(str(cm.exception), 17 self.assertIn('2 != 3', cm.exception.text) 18 self.assertEqual(cm.exception.filename, '<FLUFL test>') 20 self.assertTrue(cm.exception.lineno, 2) 23 self.assertEqual(cm.exception.offset, 3) 28 with self.assertRaises(SyntaxError) as cm: 30 self.assertRegex(str(cm.exception), "invalid syntax") 31 self.assertIn('2 <> 3', cm.exception.text) 32 self.assertEqual(cm.exception.filename, '<FLUFL test>') [all …]
|
D | test_future.py | 42 with self.assertRaises(SyntaxError) as cm: 44 self.check_syntax_error(cm.exception, "badsyntax_future3", 3) 47 with self.assertRaises(SyntaxError) as cm: 49 self.check_syntax_error(cm.exception, "badsyntax_future4", 3) 52 with self.assertRaises(SyntaxError) as cm: 54 self.check_syntax_error(cm.exception, "badsyntax_future5", 4) 57 with self.assertRaises(SyntaxError) as cm: 59 self.check_syntax_error(cm.exception, "badsyntax_future6", 3) 62 with self.assertRaises(SyntaxError) as cm: 64 self.check_syntax_error(cm.exception, "badsyntax_future7", 3, 53) [all …]
|
D | test_super.py | 10 def cm(cls): member in A 17 def cm(cls): member in B 18 return (cls, super().cm(), 'B') 24 def cm(cls): member in C 25 return (cls, super().cm(), 'C') 30 def cm(cls): member in D 31 return (cls, super().cm(), 'D') 65 self.assertEqual(A.cm(), (A, 'A')) 66 self.assertEqual(A().cm(), (A, 'A')) 67 self.assertEqual(G.cm(), (G, 'A')) [all …]
|
D | _test_atexit.py | 18 with support.catch_unraisable_exception() as cm: 22 self.assertEqual(cm.unraisable.object, func) 23 self.assertEqual(cm.unraisable.exc_type, exc_type) 24 self.assertEqual(type(cm.unraisable.exc_value), exc_type) 126 with support.catch_unraisable_exception() as cm: 128 self.assertEqual(cm.unraisable.object, func) 129 self.assertEqual(cm.unraisable.exc_type, ZeroDivisionError) 130 self.assertEqual(type(cm.unraisable.exc_value), ZeroDivisionError)
|
D | test_pyclbr.py | 217 cm = self.checkModule 220 cm('random', ignore=('Random',)) # from _random import Random as CoreGenerator 221 cm('cgi', ignore=('log',)) # set with = in module 222 cm('pickle', ignore=('partial', 'PickleBuffer')) 223 cm('aifc', ignore=('_aifc_params',)) # set with = in module 224 cm('sre_parse', ignore=('dump', 'groups', 'pos')) # from sre_constants import *; property 225 cm('pdb') 226 cm('pydoc', ignore=('input', 'output',)) # properties 229 cm('email.parser') 230 cm('test.test_pyclbr')
|
D | test_with.py | 357 cm = mock_contextmanager_generator() 359 with cm as self.resource: 360 self.assertInWithManagerInvariants(cm) 364 self.assertAfterWithManagerInvariantsWithError(cm) 368 cm = mock_contextmanager_generator() 370 with cm as self.resource: 375 self.assertAfterWithManagerInvariantsWithError(cm, ZeroDivisionError) 454 def cm(): function 458 with cm(): 466 class cm(object): class [all …]
|
/third_party/pulseaudio/src/tests/ |
D | volume-ui.py | 133 def get_balance(this, cm): argument 134 return this._get_balance(byref(this), byref(cm)) 136 def get_fade(this, cm): argument 137 return this._get_fade(byref(this), byref(cm)) 139 def set_balance(this, cm, f): argument 140 return this._set_balance(byref(this), byref(cm), f) 142 def set_fade(this, cm, f): argument 143 return this._set_fade(byref(this), byref(cm), f) 151 cm = ChannelMap() variable 154 cm.parse(sys.argv[1]) [all …]
|
D | channelmap-test.c | 14 char cm[PA_CHANNEL_MAP_SNPRINT_MAX]; in START_TEST() local 19 fprintf(stderr, "map: <%s>\n", pa_channel_map_snprint(cm, sizeof(cm), &map)); in START_TEST() 23 fprintf(stderr, "map: <%s>\n", pa_channel_map_snprint(cm, sizeof(cm), &map)); in START_TEST() 27 fprintf(stderr, "map: <%s>\n", pa_channel_map_snprint(cm, sizeof(cm), &map)); in START_TEST() 31 fprintf(stderr, "map: <%s>\n", pa_channel_map_snprint(cm, sizeof(cm), &map)); in START_TEST() 33 pa_channel_map_parse(&map2, cm); in START_TEST()
|
/third_party/FreeBSD/contrib/tcp_wrappers/ |
D | strcasecmp.c | 73 register u_char *cm = charmap, local 77 while (cm[*us1] == cm[*us2++]) 80 return(cm[*us1] - cm[*--us2]); 87 register u_char *cm = charmap, local 91 while (--n >= 0 && cm[*us1] == cm[*us2++]) 94 return(n < 0 ? 0 : cm[*us1] - cm[*--us2]);
|
/third_party/python/Lib/test/test_email/ |
D | test_message.py | 509 cm = self._TestContentManager() 510 self.assertEqual(m.get_content(content_manager=cm), (m, (), {})) 511 msg, args, kw = m.get_content('foo', content_manager=cm, bar=1, k=2) 527 cm = self._TestContentManager() 528 m.set_content(content_manager=cm) 529 self.assertEqual(cm.msg, m) 530 self.assertEqual(cm.args, ()) 531 self.assertEqual(cm.kw, {}) 532 m.set_content('foo', content_manager=cm, bar=1, k=2) 533 self.assertEqual(cm.msg, m) [all …]
|
D | test_contentmanager.py | 25 cm = ContentManager() 26 cm.add_get_handler(key, foo_getter) 30 self.assertEqual(cm.get_content(m, foo='bar'), ('bar', 'foo')) 37 cm = ContentManager() 38 cm.add_get_handler(key, foo_getter) 41 cm.add_get_handler(key, bar_getter) 46 self.assertEqual(cm.get_content(m), ('foo')) 49 cm = ContentManager() 53 cm.get_content(m) 81 cm = ContentManager() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | wmv2dsp.c | 145 const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP; in wmv2_mspel8_h_lowpass() local 149 dst[0] = cm[(9 * (src[0] + src[1]) - (src[-1] + src[2]) + 8) >> 4]; in wmv2_mspel8_h_lowpass() 150 dst[1] = cm[(9 * (src[1] + src[2]) - (src[0] + src[3]) + 8) >> 4]; in wmv2_mspel8_h_lowpass() 151 dst[2] = cm[(9 * (src[2] + src[3]) - (src[1] + src[4]) + 8) >> 4]; in wmv2_mspel8_h_lowpass() 152 dst[3] = cm[(9 * (src[3] + src[4]) - (src[2] + src[5]) + 8) >> 4]; in wmv2_mspel8_h_lowpass() 153 dst[4] = cm[(9 * (src[4] + src[5]) - (src[3] + src[6]) + 8) >> 4]; in wmv2_mspel8_h_lowpass() 154 dst[5] = cm[(9 * (src[5] + src[6]) - (src[4] + src[7]) + 8) >> 4]; in wmv2_mspel8_h_lowpass() 155 dst[6] = cm[(9 * (src[6] + src[7]) - (src[5] + src[8]) + 8) >> 4]; in wmv2_mspel8_h_lowpass() 156 dst[7] = cm[(9 * (src[7] + src[8]) - (src[6] + src[9]) + 8) >> 4]; in wmv2_mspel8_h_lowpass() 165 const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP; in wmv2_mspel8_v_lowpass() local [all …]
|
/third_party/python/Objects/ |
D | funcobject.c | 800 cm_dealloc(classmethod *cm) in cm_dealloc() argument 802 _PyObject_GC_UNTRACK((PyObject *)cm); in cm_dealloc() 803 Py_XDECREF(cm->cm_callable); in cm_dealloc() 804 Py_XDECREF(cm->cm_dict); in cm_dealloc() 805 Py_TYPE(cm)->tp_free((PyObject *)cm); in cm_dealloc() 809 cm_traverse(classmethod *cm, visitproc visit, void *arg) in cm_traverse() argument 811 Py_VISIT(cm->cm_callable); in cm_traverse() 812 Py_VISIT(cm->cm_dict); in cm_traverse() 817 cm_clear(classmethod *cm) in cm_clear() argument 819 Py_CLEAR(cm->cm_callable); in cm_clear() [all …]
|
/third_party/pulseaudio/src/pulsecore/filter/ |
D | lfe-filter.c | 52 pa_channel_map cm; member 65 pa_lfe_filter_t * pa_lfe_filter_new(const pa_sample_spec* ss, const pa_channel_map* cm, float cross… in pa_lfe_filter_new() argument 69 f->cm = *cm; in pa_lfe_filter_new() 95 for (i = 0; i < f->cm.channels; i++) in process_block() 96 … lr4_process_float32(&f->lr4[i], samples, f->cm.channels, &data[i], garbage ? garbage : &data[i]); in process_block() 102 for (i = 0; i < f->cm.channels; i++) in process_block() 103 … lr4_process_s16(&f->lr4[i], samples, f->cm.channels, &data[i], garbage ? garbage : &data[i]); in process_block() 141 memcpy(s->lr4, f->lr4, sizeof(struct lr4) * f->cm.channels); in pa_lfe_filter_process() 163 for (i = 0; i < f->cm.channels; i++) in pa_lfe_filter_update_rate() 164 …lr4_set(&f->lr4[i], f->cm.map[i] == PA_CHANNEL_POSITION_LFE ? BQ_LOWPASS : BQ_HIGHPASS, biquad_fre… in pa_lfe_filter_update_rate() [all …]
|
/third_party/nghttp2/src/ |
D | shrpx_quic.cc | 82 auto cm = CMSG_FIRSTHDR(&msg); in quic_send_packet() local 87 cm->cmsg_level = IPPROTO_IP; in quic_send_packet() 88 cm->cmsg_type = IP_PKTINFO; in quic_send_packet() 89 cm->cmsg_len = CMSG_LEN(sizeof(in_pktinfo)); in quic_send_packet() 90 auto pktinfo = reinterpret_cast<in_pktinfo *>(CMSG_DATA(cm)); in quic_send_packet() 99 cm->cmsg_level = IPPROTO_IPV6; in quic_send_packet() 100 cm->cmsg_type = IPV6_PKTINFO; in quic_send_packet() 101 cm->cmsg_len = CMSG_LEN(sizeof(in6_pktinfo)); in quic_send_packet() 102 auto pktinfo = reinterpret_cast<in6_pktinfo *>(CMSG_DATA(cm)); in quic_send_packet() 116 cm = CMSG_NXTHDR(&msg, cm); in quic_send_packet() [all …]
|
/third_party/skia/gm/ |
D | color4f.cpp | 35 SkColorMatrix cm; in make_cf0() local 36 cm.setSaturation(0.75f); in make_cf0() 37 return SkColorFilters::Matrix(cm); in make_cf0() 41 SkColorMatrix cm; in make_cf1() local 42 cm.setSaturation(0.75f); in make_cf1() 43 auto a = SkColorFilters::Matrix(cm); in make_cf1() 48 cm.setScale(1.1f, 0.9f, 1); in make_cf1() 49 return a->makeComposed(SkColorFilters::Matrix(cm)); in make_cf1()
|
/third_party/flutter/skia/gm/ |
D | color4f.cpp | 35 SkColorMatrix cm; in make_cf0() local 36 cm.setSaturation(0.75f); in make_cf0() 37 return SkColorFilters::Matrix(cm); in make_cf0() 41 SkColorMatrix cm; in make_cf1() local 42 cm.setSaturation(0.75f); in make_cf1() 43 auto a = SkColorFilters::Matrix(cm); in make_cf1() 48 cm.setScale(1.1f, 0.9f, 1); in make_cf1() 49 return a->makeComposed(SkColorFilters::Matrix(cm)); in make_cf1()
|
/third_party/python/Lib/test/test_json/ |
D | test_fail.py | 129 with self.assertRaises(self.JSONDecodeError) as cm: 131 err = cm.exception 165 with self.assertRaises(self.JSONDecodeError) as cm: 167 err = cm.exception 188 with self.assertRaises(self.JSONDecodeError) as cm: 190 err = cm.exception 207 with self.assertRaises(self.JSONDecodeError) as cm: 209 err = cm.exception
|
/third_party/python/Lib/ |
D | contextlib.py | 443 def _create_exit_wrapper(cm, cm_exit): argument 444 return MethodType(cm_exit, cm) 482 def enter_context(self, cm): argument 490 _cm_type = type(cm) 492 result = _cm_type.__enter__(cm) 493 self._push_cm_exit(cm, _exit) 509 def _push_cm_exit(self, cm, cm_exit): argument 511 _exit_wrapper = self._create_exit_wrapper(cm, cm_exit) 602 def _create_async_exit_wrapper(cm, cm_exit): argument 603 return MethodType(cm_exit, cm) [all …]
|
/third_party/openGLES/extensions/HP/ |
D | HP_texture_lighting.txt | 57 cm 60 cm cs 64 i=0 i i cm cli 67 pli cm cli 71 i i cm cli 81 ead cm 84 cm cs 88 i=0 i i cm cli 91 pli cm cli 98 s i=0 i i i i cm cli
|
/third_party/skia/third_party/externals/opengl-registry/extensions/HP/ |
D | HP_texture_lighting.txt | 57 cm 60 cm cs 64 i=0 i i cm cli 67 pli cm cli 71 i i cm cli 81 ead cm 84 cm cs 88 i=0 i i cm cli 91 pli cm cli 98 s i=0 i i i i cm cli
|
/third_party/ffmpeg/libavutil/ |
D | colorspace.h | 58 r = cm[(y + r_add) >> SCALEBITS];\ 59 g = cm[(y + g_add) >> SCALEBITS];\ 60 b = cm[(y + b_add) >> SCALEBITS];\ 75 r = cm[(y + r_add) >> SCALEBITS];\ 76 g = cm[(y + g_add) >> SCALEBITS];\ 77 b = cm[(y + b_add) >> SCALEBITS];\ 81 cm[((y) * FIX(255.0/219.0) + (ONE_HALF - 16 * FIX(255.0/219.0))) >> SCALEBITS] 87 cm[(((y) - 128) * FIX(127.0/112.0) + (ONE_HALF + (128 << SCALEBITS))) >> SCALEBITS]
|
/third_party/rust/crates/proc-macro2/src/ |
D | fallback.rs | 166 SOURCE_MAP.with(|cm| { in get_cursor() 167 let mut cm = cm.borrow_mut(); in get_cursor() localVariable 168 let name = format!("<parsed string {}>", cm.files.len()); in get_cursor() 169 let span = cm.add_file(&name, src); in get_cursor() 499 SOURCE_MAP.with(|cm| { in source_file() 500 let cm = cm.borrow(); in source_file() localVariable 501 let fi = cm.fileinfo(*self); in source_file() 510 SOURCE_MAP.with(|cm| { in start() 511 let cm = cm.borrow(); in start() localVariable 512 let fi = cm.fileinfo(*self); in start() [all …]
|