/hardware/bsp/intel/peripheral/libmraa/examples/python/ |
spi.py | 35 txbuf = bytearray(4)
|
bmp85.py | 46 x.write(bytearray(b'0xf40x2e'))
|
uart_sender.py | 37 msg_b = bytearray("Hello, mraa byte array!", "ascii")
|
/external/pdfium/xfa/src/fxbarcode/pdf417/ |
BC_PDF417BarcodeMatrix.cpp | 72 CFX_ByteArray bytearray;
local 73 bytearray.Copy(((CBC_BarcodeRow*)m_matrix[0])->getScaledRow(xScale));
74 int32_t xMax = bytearray.GetSize();
81 bytearray.Copy(
86 m_matrixOut[k + l] = bytearray.GetAt(l);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_base64.py | 23 eq(base64.encodestring(bytearray('abc')), 'YWJj\n') 39 eq(base64.decodestring(bytearray("YWJj\n")), "abc") 83 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==') 85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$')) 99 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==') 103 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd') 122 eq(base64.b64decode(bytearray("YWJj")), "abc") 136 eq(base64.standard_b64decode(bytearray("YWJj")), "abc") 140 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d') 155 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA=' [all...] |
test_bytes.py | 1 """Unit tests for the bytes and bytearray types. 225 # XXX Shouldn't bytes and bytearray agree on what to raise? 242 for f in bytes, bytearray: 259 b = bytearray([0x1a, 0x2b, 0x30]) 297 self.assertFalse(bytearray().endswith(b"anything")) 523 type2test = bytearray 526 self.assertRaises(TypeError, hash, bytearray()) 538 b = bytearray(20) 557 b = bytearray(b'hello') 560 b = bytearray(b'hello1') # test even number of item [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_base64.py | 23 eq(base64.encodestring(bytearray('abc')), 'YWJj\n') 39 eq(base64.decodestring(bytearray("YWJj\n")), "abc") 83 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==') 85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$')) 99 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==') 103 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd') 122 eq(base64.b64decode(bytearray("YWJj")), "abc") 136 eq(base64.standard_b64decode(bytearray("YWJj")), "abc") 140 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d') 155 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA=' [all...] |
test_bytes.py | 1 """Unit tests for the bytes and bytearray types. 225 # XXX Shouldn't bytes and bytearray agree on what to raise? 242 for f in bytes, bytearray: 259 b = bytearray([0x1a, 0x2b, 0x30]) 297 self.assertFalse(bytearray().endswith(b"anything")) 523 type2test = bytearray 526 self.assertRaises(TypeError, hash, bytearray()) 538 b = bytearray(20) 557 b = bytearray(b'hello') 560 b = bytearray(b'hello1') # test even number of item [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_base64.py | 23 eq(base64.encodestring(bytearray('abc')), 'YWJj\n') 39 eq(base64.decodestring(bytearray("YWJj\n")), "abc") 83 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==') 85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$')) 99 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==') 103 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd') 122 eq(base64.b64decode(bytearray("YWJj")), "abc") 136 eq(base64.standard_b64decode(bytearray("YWJj")), "abc") 140 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d') 155 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA=' [all...] |
test_bytes.py | 1 """Unit tests for the bytes and bytearray types. 225 # XXX Shouldn't bytes and bytearray agree on what to raise? 242 for f in bytes, bytearray: 259 b = bytearray([0x1a, 0x2b, 0x30]) 297 self.assertFalse(bytearray().endswith(b"anything")) 523 type2test = bytearray 526 self.assertRaises(TypeError, hash, bytearray()) 538 b = bytearray(20) 557 b = bytearray(b'hello') 560 b = bytearray(b'hello1') # test even number of item [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_base64.py | 23 eq(base64.encodestring(bytearray('abc')), 'YWJj\n') 39 eq(base64.decodestring(bytearray("YWJj\n")), "abc") 83 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==') 85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$')) 99 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==') 103 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd') 122 eq(base64.b64decode(bytearray("YWJj")), "abc") 136 eq(base64.standard_b64decode(bytearray("YWJj")), "abc") 140 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d') 155 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA=' [all...] |
test_bytes.py | 1 """Unit tests for the bytes and bytearray types. 225 # XXX Shouldn't bytes and bytearray agree on what to raise? 242 for f in bytes, bytearray: 259 b = bytearray([0x1a, 0x2b, 0x30]) 297 self.assertFalse(bytearray().endswith(b"anything")) 523 type2test = bytearray 526 self.assertRaises(TypeError, hash, bytearray()) 538 b = bytearray(20) 557 b = bytearray(b'hello') 560 b = bytearray(b'hello1') # test even number of item [all...] |
/external/pdfium/xfa/src/fxbarcode/qrcode/ |
BC_QRDataBlock.cpp | 69 CFX_ByteArray* bytearray = new CFX_ByteArray();
local 70 bytearray->SetSize(numBlockCodewords);
72 new CBC_QRDataBlock(numDataCodewords, bytearray);
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/ |
xsrfutil.py | 116 for x, y in zip(bytearray(token), bytearray(expected_token)):
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/ |
test_buffers.py | 24 self.assertEqual(len(bytearray(create_string_buffer(0))), 0) 25 self.assertEqual(len(bytearray(create_string_buffer(1))), 1)
|
/prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/ |
test_buffers.py | 24 self.assertEqual(len(bytearray(create_string_buffer(0))), 0) 25 self.assertEqual(len(bytearray(create_string_buffer(1))), 1)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_buffers.py | 24 self.assertEqual(len(bytearray(create_string_buffer(0))), 0) 25 self.assertEqual(len(bytearray(create_string_buffer(1))), 1)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_buffers.py | 24 self.assertEqual(len(bytearray(create_string_buffer(0))), 0) 25 self.assertEqual(len(bytearray(create_string_buffer(1))), 1)
|
/external/chromium-trace/catapult/telemetry/telemetry/core/ |
platform_unittest.py | 43 special_colored_pixel = bytearray([217, 115, 43])
|
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/ |
serialutil.py | 11 bytearray 17 # bytearray is a mutable type that is easily turned into an instance of 19 class bytearray(list): class in inherits:list 20 # for bytes(bytearray()) usage 22 def __repr__(self): return 'bytearray(%r)' % ''.join(self) 36 return bytearray(list.__getslice__(self, i, j)) 40 return bytearray(list.__getitem__(self, item)) 46 other = bytearray(other) 69 elif isinstance(seq, bytearray): 74 b = bytearray() [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/ |
_bitmap.py | 45 if type(pixels) is not bytearray: 46 pixels = bytearray(pixels) 128 if type(self._pixels) is not bytearray: 129 self._pixels = bytearray(self._pixels)
|
video.py | 159 frame_data = bytearray(frame_length)
|
/art/tools/ |
stream-trace-converter.py | 40 asbytearray = bytearray(bytes) 60 asbytearray = bytearray(bytes)
|
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/urlhandler/ |
protocol_loop.py | 45 self.loop_buffer = bytearray() 126 data = bytearray()
|
/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))
|