| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/logging/ |
| config.py | 27 import sys, logging, logging.handlers, socket, struct, os, traceback, re namespace 831 struct.pack(">L", n), followed by the config file. 839 slen = struct.unpack(">L", chunk)[0] [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
| string_tests.py | 5 import unittest, string, sys, struct namespace 328 if sys.maxint < (1 << 32) and struct.calcsize('P') == 4: [all...] |
| test_deque.py | 9 import struct namespace 527 blocksize = struct.calcsize('2P%dP' % BLOCKLEN)
|
| test_math.py | 10 import struct namespace 46 n = struct.unpack('<q', struct.pack('<d', x))[0] [all...] |
| test_parser.py | 4 import struct namespace 617 nodesize = struct.calcsize('hP3iP0h')
|
| test_zipimport.py | 5 import struct namespace 36 pyc = imp.get_magic() + struct.pack("<i", int(mtime)) + data 436 fp.write(struct.pack('=I', 0x06054B50))
|
| /system/extras/tests/net_test/ |
| net_test.py | 22 import struct namespace 99 sock.setsockopt(SOL_SOCKET, SO_RCVTIMEO, struct.pack("LL", s, us)) 157 sock.setsockopt(SOL_SOCKET, SO_LINGER, struct.pack("ii", 1, 0)) 176 ifr = struct.pack("%dsi" % IFNAMSIZ, ifname, 0) 178 return struct.unpack("%dsi" % IFNAMSIZ, ifr)[1] 187 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr) 193 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, 0) 195 _, flags = struct.unpack("%dsH" % IFNAMSIZ, ifr) 200 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, flags) 230 out += "%08X" % struct.unpack("=L", binary[i:i+4] [all...] |
| sock_diag.py | 23 import struct namespace 69 InetDiagSockId = cstruct.Struct( 71 InetDiagReqV2 = cstruct.Struct( 74 InetDiagMsg = cstruct.Struct( 78 InetDiagMeminfo = cstruct.Struct( 80 InetDiagBcOp = cstruct.Struct("InetDiagBcOp", "BBH", "code yes no") 81 InetDiagHostcond = cstruct.Struct("InetDiagHostcond", "=BBxxi", 84 SkMeminfo = cstruct.Struct( 87 TcpInfo = cstruct.Struct( 193 arg = "\x00\x00" + struct.pack("=H", arg [all...] |
| /external/autotest/client/bin/net/ |
| net_utils.py | 6 import commands, os, re, socket, sys, time, struct namespace 715 frame = struct.pack("!6s6sH", dst, src, protocol) + payload 740 struct.unpack("!6s6sH", raw_frame[:ethernet.HDR_LEN])
|
| /external/autotest/client/cros/ |
| power_status.py | 5 import collections, ctypes, fcntl, glob, logging, math, numpy, os, re, struct namespace [all...] |
| /external/chromium-trace/catapult/telemetry/third_party/web-page-replay/third_party/ipaddr/ |
| ipaddr.py | 27 import struct namespace 137 return Bytes(struct.pack('!I', address)) 149 return Bytes(struct.pack('!QQ', address >> 64, address & (2**64 - 1))) [all...] |
| /external/chromium-trace/catapult/telemetry/third_party/websocket-client/ |
| websocket.py | 39 import struct namespace 312 frame_header += struct.pack("!H", length) 315 frame_header += struct.pack("!Q", length) 651 self._frame_length = struct.unpack("!H", length_data)[0] 654 self._frame_length = struct.unpack("!Q", length_data)[0] 681 self.send(struct.pack('!H', status) + reason, ABNF.OPCODE_CLOSE) 696 self.send(struct.pack('!H', status) + reason, ABNF.OPCODE_CLOSE) 702 recv_status = struct.unpack("!H", frame.data)[0]
|
| /external/clang/test/Preprocessor/ |
| cxx_oper_keyword_ms_compat.cpp | 84 #define struct macro 169 struct
|
| /external/clang/test/SemaCXX/ |
| conversion-function.cpp | 63 struct Flip; 64 struct Flop { 68 struct Flip { 74 struct C { 126 struct A1 { 141 struct sneaky_int { 146 struct A { }; 149 struct A<T, T> : A<T, int> { }; 151 struct E { 164 struct E2 [all...] |
| /external/fonttools/Lib/fontTools/ |
| subset.py | 17 import struct namespace [all...] |
| /external/fonttools/Lib/fontTools/ttLib/tables/ |
| _g_l_y_f.py | 15 import struct namespace 359 numInstructions, = struct.unpack(">h", data[:2]) 375 instructionLength, = struct.unpack(">h", data[:2]) 424 # Warning: deep Python trickery going on. We use the struct module to unpack 426 # unpack the coordinates in one struct.unpack() call. 453 xDataLen = struct.calcsize(xFormat) 454 yDataLen = struct.calcsize(yFormat) 457 xCoordinates = struct.unpack(xFormat, data[:xDataLen]) 458 yCoordinates = struct.unpack(yFormat, data[xDataLen:xDataLen+yDataLen]) 474 data = data + struct.pack(">h", len(instructions)) + instruction [all...] |
| /external/nanopb-c/generator/google/protobuf/internal/ |
| python_message.py | 58 import struct namespace 801 except struct.error, e: [all...] |
| /external/protobuf/python/google/protobuf/internal/ |
| python_message.py | 67 import struct namespace 848 except struct.error, e: [all...] |
| /external/sonivox/jet_tools/JetCreator/ |
| JetFile.py | 27 import struct
namespace 385 jet_header = struct.pack(JET_HEADER_STRUCT, JET_HEADER_TAG, 0)
389 jet_info = struct.pack(JINF_STRUCT,
390 JET_INFO_CHUNK, struct.calcsize(JINF_STRUCT) - 8,
404 jet_copyright = struct.pack(JCOP_STRUCT, JCOP_CHUNK, size)
419 jet_app_data = struct.pack(JAPP_STRUCT, JAPP_CHUNK, size)
460 smf_header = struct.pack(JET_HEADER_STRUCT, JET_SMF_CHUNK, 0)
475 smf_header = struct.pack(JET_HEADER_STRUCT, JET_SMF_CHUNK, file_size)
491 dls_header = struct.pack(JET_HEADER_STRUCT, JET_DLS_CHUNK, file_size)
501 jet_header = struct.pack(JET_HEADER_STRUCT, JET_HEADER_TAG, file_size - struct.calcsize(JET_HEADER_STRUCT)) [all...] |
| /prebuilts/gdb/darwin-x86/lib/python2.7/logging/ |
| handlers.py | 26 import errno, logging, socket, os, cPickle, struct, time, re namespace 551 slen = struct.pack(">L", len(s)) [all...] |
| /prebuilts/gdb/darwin-x86/lib/python2.7/ |
| platform.py | 1101 import struct namespace [all...] |
| /prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
| regrtest.py | 1054 import struct, filecmp namespace [all...] |
| test_asyncore.py | 10 import struct namespace 721 struct.pack('ii', 1, 0))
|
| test_float.py | 2 import unittest, struct namespace 501 self.assertRaises(ValueError, struct.unpack, fmt, data) 508 self.assertRaises(ValueError, struct.unpack, fmt, data) 524 struct.unpack(fmt, data) 532 struct.unpack(fmt, data) [all...] |
| test_import.py | 8 import struct namespace 391 mtime2 = struct.unpack('<L', f.read(8)[4:])[0]
|