HomeSort by relevance Sort by last modified time
    Searched refs:bytearray (Results 51 - 75 of 325) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/boringssl/src/third_party/fiat/
make_curve25519_tables.py 87 ret = bytearray(32)
131 small_precomp = bytearray()
  /external/chromium-trace/catapult/third_party/pyserial/serial/urlhandler/
protocol_loop.py 45 self.loop_buffer = bytearray()
126 data = bytearray()
  /external/python/cpython3/Lib/encodings/
idna.py 170 result = bytearray()
239 result = bytearray()
  /external/python/cpython3/Lib/
hashlib.py 185 if not isinstance(password, (bytes, bytearray)):
187 if not isinstance(salt, (bytes, bytearray)):
hmac.py 38 Note: key and msg must be a bytes or bytearray objects.
41 if not isinstance(key, (bytes, bytearray)):
42 raise TypeError("key: expected bytes or bytearray, but got %r" % type(key).__name__)
copy.py 125 d[bytearray] = bytearray.copy
  /external/autotest/client/cros/i2c/
usb_to_i2c.py 125 '''Converts data to bytearray and writes to the serial port.'''
126 self.serial.write(bytearray(data))
  /external/python/cpython3/Lib/test/test_asyncio/
test_transports.py 29 bytearray(b'line2'),
  /external/python/cpython3/Lib/test/
test_binascii.py 86 fillers = bytearray()
94 res = bytearray()
102 res = bytearray()
365 type2test = bytearray
test_winsound.py 110 audio_data = bytearray(audio_data)
test_memoryio.py 449 b = bytearray(b"hello")
456 b = bytearray(b"hello world")
460 b = bytearray(b"")
473 b = bytearray()
705 bytearray(state[0]) # Check if state[0] supports the buffer interface.
716 memio.__setstate__((bytearray(b"no error"), 0, None))
776 # arbitrary buffer-exporting objects like bytearray() aren't guaranteed
778 ba = bytearray(1024)
test_base64.py 43 eq(base64.encodebytes(bytearray(b'abc')), b'YWJj\n')
62 eq(base64.decodebytes(bytearray(b'YWJj\n')), b'abc')
109 b = bytearray(bytes_data)
111 # The bytearray wasn't mutated
150 eq(base64.b64encode(b'\xd3V\xbeo\xf7\x1d', altchars=bytearray(b'*$')),
377 eq(base64.b16decode(bytearray(b"0102abcdef"), True),
test_fileio.py 80 ba = bytearray(b'abcdefgh')
90 m = memoryview(bytearray(b'abcdefgh'))
96 m = memoryview(bytearray(b'abcdefgh')).cast('H', shape=[2, 2])
207 self.assertRaises(ValueError, self.f.readinto, bytearray(1))
483 f.write(bytes(bytearray(range(10))))
test_genericpath.py 313 for path in (None, True, 0, 2.5, [], bytearray(b''), {'o','o'}):
467 with self.assertRaisesRegex(TypeError, 'bytearray'):
468 self.pathmodule.join(bytearray(b'foo'), bytearray(b'bar'))
483 with self.assertRaisesRegex(TypeError, 'bytearray'):
484 self.pathmodule.relpath(bytearray(b'foo'), bytearray(b'bar'))
  /device/linaro/bootloader/edk2/IntelFspPkg/Tools/
GenCfgOpt.py 438 bytearray = []
442 bytearray.append("0x%02X" % (value & 0xFF))
444 newvalue = '{' + ','.join(bytearray) + '}'
695 bytearray = []
704 bytearray.append(value)
712 bytearray.append(value & 0xFF)
717 valuelist = [b for b in bytearray[SubItem['offset']:SubItem['offset']+SubItem['length']]]
722 valuestr = ",".join('0x%02X' % b for b in bytearray[SubItem['offset']:SubItem['offset']+SubItem['length']])
    [all...]
PatchFv.py 34 bytearray = [ord(b) for b in fd.read(len)]
38 value = value << 8 | bytearray[idx]
88 bytearray = []
91 bytearray.append(value & 0xFF)
95 fd.write("".join(chr(b) for b in bytearray))
  /external/chromium-trace/catapult/third_party/pyserial/serial/
serialcli.py 159 data = bytearray()
172 if not isinstance(data, (bytes, bytearray)):
173 raise TypeError('expected %s or bytearray, got %s' % (bytes, type(data)))
serialjava.py 157 read = bytearray()
171 if not isinstance(data, (bytes, bytearray)):
172 raise TypeError('expected %s or bytearray, got %s' % (bytes, type(data)))
  /external/python/cpython3/Lib/dbm/
dumb.py 194 elif not isinstance(key, (bytes, bytearray)):
198 elif not isinstance(val, (bytes, bytearray)):
  /device/linaro/bootloader/edk2/IntelFsp2Pkg/Tools/
SplitFspBin.py 331 rep = "0x%X ('%s')" % (Bytes2Val(bytearray(val)), val)
338 rep = str(uuid.UUID(bytes = str(bytearray(val)))).upper()
340 res = ['0x%02X'%i for i in bytearray(val)]
447 self.FdData = bytearray(hfsp.read())
619 name = str(bytearray(name))
648 hfsp.write("#define FSP_IMAGE_ID 0x%016X /* '%s' */\n" % (Bytes2Val(bytearray(fih.ImageId)), fih.ImageId))
PatchFv.py 34 bytearray = [ord(b) for b in fd.read(len)]
38 value = value << 8 | bytearray[idx]
88 bytearray = []
91 bytearray.append(value & 0xFF)
95 fd.write("".join(chr(b) for b in bytearray))
  /external/python/cpython2/Lib/test/
string_tests.py 420 if self.type2test is not bytearray:
523 if self.type2test is not bytearray:
563 if self.type2test is not bytearray and test_support.have_unicode:
583 if self.type2test is bytearray:
584 # Special case because bytearray argument is not accepted
585 self.assertEqual(b'abc*******', bytearray(b'abc').ljust(10, '*'))
595 if self.type2test is bytearray:
596 # Special case because bytearray argument is not accepted
597 self.assertEqual(b'*******abc', bytearray(b'abc').rjust(10, '*'))
607 if self.type2test is bytearray
    [all...]
  /external/avb/
avbtool 232 """Encodes a long to a bytearray() using a given amount of bits.
244 A bytearray() with the encoded long.
246 ret = bytearray()
254 """Decodes a long from a bytearray() using a given amount of bits.
262 value: A bytearray() with the encoded long.
268 for b in bytearray(blob):
404 A bytearray() with the |AvbRSAPublicKeyHeader|.
409 ret = bytearray()
452 raw_data_to_sign: Data to sign (bytearray or str expected).
455 A bytearray containing the signature
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
sre_compile.py 260 charmap = bytearray(256)
374 mapping = bytearray(256)
376 data = bytearray()
  /external/python/cpython2/Lib/
sre_compile.py 260 charmap = bytearray(256)
374 mapping = bytearray(256)
376 data = bytearray()

Completed in 1430 milliseconds

1 23 4 5 6 7 8 91011>>