/external/python/cpython2/Lib/test/ |
D | test_sunau.py | 22 frames = audiotests.fromhex("""\ 39 frames = audiotests.fromhex("""\ 58 frames = audiotests.fromhex("""\ 83 frames = audiotests.fromhex("""\
|
D | test_wave.py | 25 frames = audiotests.fromhex("""\ 42 frames = audiotests.fromhex("""\ 69 frames = audiotests.fromhex("""\ 96 frames = audiotests.fromhex("""\
|
D | test_aifc.py | 28 frames = audiotests.fromhex("""\ 45 frames = audiotests.fromhex("""\ 64 frames = audiotests.fromhex("""\ 89 frames = audiotests.fromhex("""\ 114 frames = audiotests.fromhex("""\
|
D | test_bytes.py | 254 self.assertRaises(TypeError, self.type2test.fromhex) 255 self.assertRaises(TypeError, self.type2test.fromhex, 1) 256 self.assertEqual(self.type2test.fromhex(u''), self.type2test()) 258 self.assertEqual(self.type2test.fromhex(u'1a2B30'), b) 259 self.assertEqual(self.type2test.fromhex(u' 1A 2B 30 '), b) 260 self.assertEqual(self.type2test.fromhex(u'0000'), b'\0\0') 261 self.assertRaises(ValueError, self.type2test.fromhex, u'a') 262 self.assertRaises(ValueError, self.type2test.fromhex, u'rt') 263 self.assertRaises(ValueError, self.type2test.fromhex, u'1a b cd') 264 self.assertRaises(ValueError, self.type2test.fromhex, u'\x00') [all …]
|
D | audiotests.py | 16 def fromhex(s): function
|
D | test_math.py | 512 float.fromhex('0x1.df11f45f4e61ap+2')), 514 float.fromhex('-0x1.62a2af1bd3624p-1')), 521 float.fromhex('0x1.5555555555555p+970')),
|
/external/python/cpython3/Lib/test/ |
D | test_sunau.py | 24 frames = bytes.fromhex("""\ 41 frames = bytes.fromhex("""\ 60 frames = bytes.fromhex("""\ 85 frames = bytes.fromhex("""\ 110 frames = bytes.fromhex("""\
|
D | test_hashlib.py | 67 parts[0] = bytes.fromhex(parts[0]) 305 digest = bytes.fromhex(hexdigest) 668 key = bytes.fromhex(key) 711 key = bytes.fromhex(key) 862 (bytes.fromhex('0c60c80f961f0e71f3a9b524af6012062fe037a6'), None), 863 (bytes.fromhex('ea6c014dc72d6f8ccd1ed92ace1d41f0d8de8957'), None), 864 (bytes.fromhex('4b007901b765489abead49d926f721d065a429c1'), None), 866 (bytes.fromhex('3d2eec4fe41c849b80c8d83662c0e44a8b291a964c' 868 (bytes.fromhex('56fa6aa75548099dcc37d7f03425e0c3'), None),], 870 (bytes.fromhex('120fb6cffcf8b32c43e7225256c4f837' [all …]
|
D | test_wave.py | 25 frames = bytes.fromhex("""\ 42 frames = bytes.fromhex("""\ 63 frames = bytes.fromhex("""\ 90 frames = bytes.fromhex("""\
|
D | test_aifc.py | 29 frames = bytes.fromhex("""\ 46 frames = bytes.fromhex("""\ 65 frames = bytes.fromhex("""\ 90 frames = bytes.fromhex("""\ 115 frames = bytes.fromhex("""\ 136 frames = bytes.fromhex("""\
|
D | test_bytes.py | 374 self.assertRaises(TypeError, self.type2test.fromhex) 375 self.assertRaises(TypeError, self.type2test.fromhex, 1) 376 self.assertEqual(self.type2test.fromhex(''), self.type2test()) 378 self.assertEqual(self.type2test.fromhex('1a2B30'), b) 379 self.assertEqual(self.type2test.fromhex(' 1A 2B 30 '), b) 382 self.assertEqual(self.type2test.fromhex(' 1A\n2B\t30\v'), b) 384 self.assertEqual(self.type2test.fromhex(c), self.type2test()) 386 self.assertRaises(ValueError, self.type2test.fromhex, c) 388 self.assertEqual(self.type2test.fromhex('0000'), b'\0\0') 389 self.assertRaises(TypeError, self.type2test.fromhex, b'1B') [all …]
|
D | test_math.py | 643 float.fromhex('0x1.df11f45f4e61ap+2')), 645 float.fromhex('-0x1.62a2af1bd3624p-1')), 652 float.fromhex('0x1.5555555555555p+970')), 1085 x = float.fromhex(x_hex) 1086 y = float.fromhex(y_hex) 1087 expected = float.fromhex(expected_hex) 1097 tiny = float.fromhex('1p-1074') # min +ve subnormal
|
D | test_ipaddress.py | 106 self.assertInstancesEqual(bytes.fromhex("00000000"), "0.0.0.0") 107 self.assertInstancesEqual(bytes.fromhex("c0a80001"), "192.168.0.1") 141 addr = b'\0'*12 + bytes.fromhex("00000000") 143 addr = b'\0'*12 + bytes.fromhex("c0a80001") 145 addr = bytes.fromhex("c0a80001") + b'\0'*12
|
D | multibytecodec_support.py | 346 codech = bytes.fromhex(coded)
|
D | test_float.py | 1008 fromHex = float.fromhex 1433 f = F.fromhex((1.5).hex()) 1441 f = F2.fromhex((1.5).hex())
|
D | test_socket.py | 5787 expected = bytes.fromhex("ba7816bf8f01cfea414140de5dae2223b00361a396" 5804 expected = bytes.fromhex("effcdf6ae5eb2fa2d27416d5f184df9c259a7c79") 5816 key = bytes.fromhex('06a9214036b8a15b512e03d534120006') 5817 iv = bytes.fromhex('3dafba429d9eb430b422da802c9fac41') 5819 ciphertext = bytes.fromhex('e353779c1079aeb82708942dbe77181a') 5857 key = bytes.fromhex('c939cc13397c1d37de6ae0e1cb7c423c') 5858 iv = bytes.fromhex('b3d8cc017cbb89b39e0f67e2') 5859 plain = bytes.fromhex('c3b3c41f113a31b73d9a5cd432103069') 5860 assoc = bytes.fromhex('24825602bd12a984e0092d3e448eda5f') 5861 expected_ct = bytes.fromhex('93fe7d9e9bfd10348a5606e5cafa7354') [all …]
|
/external/u-boot/tools/gdb/ |
D | remote.c | 340 fromhex (int a) in fromhex() function 781 pktcsum = fromhex (readchar (remote_timeout)) << 4; in read_frame() 782 pktcsum |= fromhex (readchar (remote_timeout)); in read_frame()
|
/external/python/cpython3/Lib/ |
D | antigravity.py | 16 p, q = [('%f' % float.fromhex('0.' + x)) for x in (h[:16], h[16:32])]
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | bfloat16_test.py | 39 epsilon = float.fromhex("1.0p-7") 63 self.assertEqual("0.0078125", str(bfloat16(float.fromhex("1.0p-7")))) 73 repr(bfloat16(float.fromhex("1.0p-7"))))
|
/external/avb/tools/ |
D | at_write_persistent_digest.py | 79 digest_bytes = bytearray.fromhex(digest)
|
/external/python/cpython3/Lib/email/ |
D | _encoded_words.py | 65 lambda m: bytes.fromhex(m.group(1).decode()))
|
/external/tensorflow/tensorflow/python/framework/ |
D | dtypes.py | 200 return _np_bfloat16(float.fromhex("-0x1.FEp127")) 224 return _np_bfloat16(float.fromhex("0x1.FEp127"))
|
D | dtypes_test.py | 280 self.assertEquals(dtype.min, float.fromhex("-0x1.FEp127")) 281 self.assertEquals(dtype.max, float.fromhex("0x1.FEp127"))
|
/external/python/cpython3/Doc/library/ |
D | binascii.rst | 168 :meth:`bytes.fromhex` class method.
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6b2.rst | 39 'float.fromhex' to convert floating-point numbers to and from hexadecimal
|