/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_multibytecodec.py | 116 decoder = codecs.getincrementaldecoder('cp949')() 117 self.assertEqual(decoder.decode('\xc6\xc4\xc0\xcc\xbd'), 119 self.assertEqual(decoder.decode('\xe3 \xb8\xb6\xc0\xbb'), 121 self.assertEqual(decoder.decode(''), u'') 124 decoder = codecs.getincrementaldecoder('cp949')() 125 self.assertEqual(decoder.decode('\xc6\xc4\xc0'), u'\ud30c') 126 self.assertRaises(UnicodeDecodeError, decoder.decode, '', True) 127 self.assertEqual(decoder.decode('\xcc'), u'\uc774') 129 self.assertEqual(decoder.decode('\xc6\xc4\xc0'), u'\ud30c') 130 self.assertRaises(UnicodeDecodeError, decoder.decode, '\xcc\xbd', True) [all …]
|
D | test_codecs.py | 849 decoder = codecs.getdecoder("unicode_internal") 851 ignored = decoder("%s\x22\x22\x22\x22%s" % (ab[:4], ab[4:]), 1074 decoder = codecs.getincrementaldecoder("idna")() 1075 self.assertEqual(decoder.decode("xn--xam", ), u"") 1076 self.assertEqual(decoder.decode("ple-9ta.o", ), u"\xe4xample.") 1077 self.assertEqual(decoder.decode(u"rg"), u"") 1078 self.assertEqual(decoder.decode(u"", True), u"org") 1080 decoder.reset() 1081 self.assertEqual(decoder.decode("xn--xam", ), u"") 1082 self.assertEqual(decoder.decode("ple-9ta.o", ), u"\xe4xample.") [all …]
|
D | test_io.py | 2289 def check_newline_decoding_utf8(self, decoder): argument 2293 state = decoder.getstate() 2294 self.assertEqual(decoder.decode(b, **kwargs), s) 2295 decoder.setstate(state) 2296 self.assertEqual(decoder.decode(b, **kwargs), s) 2309 self.assertRaises(UnicodeDecodeError, decoder.decode, b'', final=True) 2311 decoder.reset() 2331 def check_newline_decoding(self, decoder, encoding): argument 2338 result.append(decoder.decode(b)) 2344 result.append(decoder.decode(c)) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/ |
D | utf_32.py | 51 self.decoder = None 54 if self.decoder is None: 58 self.decoder = codecs.utf_32_le_decode 60 self.decoder = codecs.utf_32_be_decode 64 return self.decoder(input, self.errors, final) 68 self.decoder = None 78 if self.decoder is None: 81 (self.decoder is codecs.utf_32_be_decode)) 89 self.decoder = (codecs.utf_32_be_decode 93 self.decoder = (codecs.utf_32_le_decode [all …]
|
D | utf_16.py | 56 self.decoder = None 59 if self.decoder is None: 63 self.decoder = codecs.utf_16_le_decode 65 self.decoder = codecs.utf_16_be_decode 69 return self.decoder(input, self.errors, final) 73 self.decoder = None
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/ |
D | utf_32.py | 51 self.decoder = None 54 if self.decoder is None: 58 self.decoder = codecs.utf_32_le_decode 60 self.decoder = codecs.utf_32_be_decode 64 return self.decoder(input, self.errors, final) 68 self.decoder = None 78 if self.decoder is None: 81 (self.decoder is codecs.utf_32_be_decode)) 89 self.decoder = (codecs.utf_32_be_decode 93 self.decoder = (codecs.utf_32_le_decode [all …]
|
D | utf_16.py | 56 self.decoder = None 59 if self.decoder is None: 63 self.decoder = codecs.utf_16_le_decode 65 self.decoder = codecs.utf_16_be_decode 69 return self.decoder(input, self.errors, final) 73 self.decoder = None
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/ |
D | test_speedups.py | 6 self.assertEqual(self.json.decoder.scanstring.__module__, "_json") 7 self.assertIs(self.json.decoder.scanstring, self.json.decoder.c_scanstring)
|
D | test_scanstring.py | 7 scanstring = self.json.decoder.scanstring 98 self.assertRaises(ValueError, self.json.decoder.scanstring, b"xxx", 1, 105 self.json.decoder.scanstring(b"xxx", sys.maxsize+1)
|
D | __init__.py | 31 self.assertEqual(self.json.decoder.scanstring.__module__, 39 self.assertEqual(self.json.decoder.scanstring.__module__, '_json') 60 for mod in (json, json.encoder, json.decoder):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/ |
D | test_speedups.py | 6 self.assertEqual(self.json.decoder.scanstring.__module__, "_json") 7 self.assertIs(self.json.decoder.scanstring, self.json.decoder.c_scanstring)
|
D | test_scanstring.py | 7 scanstring = self.json.decoder.scanstring 94 scanstring = self.json.decoder.scanstring 115 scanstring = self.json.decoder.scanstring 146 self.assertRaises(ValueError, self.json.decoder.scanstring, b"xxx", 1, 153 self.json.decoder.scanstring(b"xxx", sys.maxsize+1)
|
D | __init__.py | 31 self.assertEqual(self.json.decoder.scanstring.__module__, 39 self.assertEqual(self.json.decoder.scanstring.__module__, '_json') 60 for mod in (json, json.encoder, json.decoder):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/ |
D | textio.c | 191 PyObject *decoder; member 202 PyObject *decoder; in incrementalnewlinedecoder_init() local 208 kwlist, &decoder, &translate, &errors)) in incrementalnewlinedecoder_init() 211 self->decoder = decoder; in incrementalnewlinedecoder_init() 212 Py_INCREF(decoder); in incrementalnewlinedecoder_init() 234 Py_CLEAR(self->decoder); in incrementalnewlinedecoder_dealloc() 252 if (self->decoder == NULL) { in _PyIncrementalNewlineDecoder_decode() 259 if (self->decoder != Py_None) { in _PyIncrementalNewlineDecoder_decode() 260 output = PyObject_CallMethodObjArgs(self->decoder, in _PyIncrementalNewlineDecoder_decode() 482 if (self->decoder != Py_None) { in incrementalnewlinedecoder_getstate() [all …]
|
D | stringio.c | 21 PyObject *decoder; member 117 if (self->decoder != NULL) { in write_str() 119 self->decoder, obj, 1 /* always final */); in write_str() 495 Py_CLEAR(self->decoder); in stringio_close() 524 Py_CLEAR(self->decoder); in stringio_dealloc() 583 Py_CLEAR(self->decoder); in stringio_init() 603 self->decoder = PyObject_CallFunction( in stringio_init() 606 if (self->decoder == NULL) in stringio_init() 805 if (self->decoder == NULL) in stringio_newlines() 807 return PyObject_GetAttr(self->decoder, _PyIO_str_newlines); in stringio_newlines()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/ |
D | textio.c | 191 PyObject *decoder; member 202 PyObject *decoder; in incrementalnewlinedecoder_init() local 208 kwlist, &decoder, &translate, &errors)) in incrementalnewlinedecoder_init() 211 self->decoder = decoder; in incrementalnewlinedecoder_init() 212 Py_INCREF(decoder); in incrementalnewlinedecoder_init() 234 Py_CLEAR(self->decoder); in incrementalnewlinedecoder_dealloc() 267 if (self->decoder == NULL) { in _PyIncrementalNewlineDecoder_decode() 274 if (self->decoder != Py_None) { in _PyIncrementalNewlineDecoder_decode() 275 output = PyObject_CallMethodObjArgs(self->decoder, in _PyIncrementalNewlineDecoder_decode() 491 if (self->decoder != Py_None) { in incrementalnewlinedecoder_getstate() [all …]
|
D | stringio.c | 21 PyObject *decoder; member 117 if (self->decoder != NULL) { in write_str() 119 self->decoder, obj, 1 /* always final */); in write_str() 495 Py_CLEAR(self->decoder); in stringio_close() 524 Py_CLEAR(self->decoder); in stringio_dealloc() 583 Py_CLEAR(self->decoder); in stringio_init() 603 self->decoder = PyObject_CallFunction( in stringio_init() 606 if (self->decoder == NULL) in stringio_init() 818 if (self->decoder == NULL) in stringio_newlines() 820 return PyObject_GetAttr(self->decoder, _PyIO_str_newlines); in stringio_newlines()
|
/device/google/marlin/camera/usbcamcore/src/ |
D | QCameraMjpegDecode.cpp | 104 jpegd_obj_t decoder; member 231 jpegd_obj_t decoder; in decoder_test() local 264 rc = jpegd_init(&decoder, in decoder_test() 273 p_thread_arg->decoder = decoder; in decoder_test() 325 rc = jpegd_set_source(decoder, &source); in decoder_test() 332 rc = jpegd_read_header(decoder, &header); in decoder_test() 436 rc = jpegd_start(decoder, &config, &dest, &p_output_buffers, output_buffers_count); in decoder_test() 457 rc = jpegd_abort(decoder); in decoder_test() 533 jpegd_destroy(&decoder); in decoder_test() 603 jpegd_enqueue_output_buf(p_thread_arg->decoder, p_output_buffer, 1); in decoder_output_handler()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | _pyio.py | 1362 def __init__(self, decoder, translate, errors='strict'): argument 1365 self.decoder = decoder 1371 if self.decoder is None: 1374 output = self.decoder.decode(input, final=final) 1401 if self.decoder is None: 1405 buf, flag = self.decoder.getstate() 1414 if self.decoder is not None: 1415 self.decoder.setstate((buf, flag >> 1)) 1420 if self.decoder is not None: 1421 self.decoder.reset() [all …]
|
D | codecs.py | 971 decoder = lookup(encoding).incrementaldecoder 972 if decoder is None: 974 return decoder 1023 decoder = getincrementaldecoder(encoding)(errors, **kwargs) 1025 output = decoder.decode(input) 1028 output = decoder.decode("", True)
|
D | fpformat.py | 22 decoder = re.compile(r'^([-+]?)0*(\d*)((?:\.\d*)?)(([eE][-+]?\d+)?)$') variable 41 res = decoder.match(s)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | codecs.c | 365 PyObject *decoder = NULL; in PyCodec_Decode() local 369 decoder = PyCodec_Decoder(encoding); in PyCodec_Decode() 370 if (decoder == NULL) in PyCodec_Decode() 377 result = PyEval_CallObject(decoder,args); in PyCodec_Decode() 391 Py_DECREF(decoder); in PyCodec_Decode() 397 Py_XDECREF(decoder); in PyCodec_Decode()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
D | codecs.c | 365 PyObject *decoder = NULL; in PyCodec_Decode() local 369 decoder = PyCodec_Decoder(encoding); in PyCodec_Decode() 370 if (decoder == NULL) in PyCodec_Decode() 377 result = PyEval_CallObject(decoder,args); in PyCodec_Decode() 391 Py_DECREF(decoder); in PyCodec_Decode() 397 Py_XDECREF(decoder); in PyCodec_Decode()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | codecs.py | 974 decoder = lookup(encoding).incrementaldecoder 975 if decoder is None: 977 return decoder 1026 decoder = getincrementaldecoder(encoding)(errors, **kwargs) 1028 output = decoder.decode(input) 1031 output = decoder.decode("", True)
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/Sdk/ |
D | history.txt | 17 If encoded stream was corrupted, decoder could access memory 83 If encoded stream was corrupted, decoder could access memory 167 decoder could access memory outside of allocated range.
|