HomeSort by relevance Sort by last modified time
    Searched defs:struct (Results 151 - 175 of 453) sorted by null

1 2 3 4 5 67 8 91011>>

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/
PixMapWrapper.py 14 import struct namespace
19 # PixMap data structure element format (as used with struct)
72 self._header = struct.pack("lhhhhhhhlllhhhhlll",
89 + struct.pack(fmt, bytes) \
90 + self._header[offset + struct.calcsize(fmt):]
96 return struct.unpack(fmt, self._header[offset:offset+struct.calcsize(fmt)])[0]
applesingle.py 7 import struct namespace
54 magic, version, ig, nentry = struct.unpack(AS_HEADER_FORMAT, header)
71 restype, offset, length = struct.unpack(AS_ENTRY_FORMAT, hdr)
cfmfile.py 13 import struct namespace
86 self.memberCount) = struct.unpack("8l", data[:32])
95 data = struct.pack("8l", 0, 0, self.version, 0, 0, 0, 0, self.memberCount)
123 self.memberSize,) = struct.unpack("4lhBB4lh", data[4:42])
129 data = data + struct.pack("4lhBB4l",
144 data = data + struct.pack("hb", self.memberSize, len(self.name))
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
posixfile.py 154 import struct, fcntl namespace
186 flock = struct.pack('lxxxxlxxxxlhh', \
189 flock = struct.pack('hhlllii', \
192 flock = struct.pack('hhllhh', \
203 struct.unpack('lxxxxlxxxxlhh', flock)
206 struct.unpack('hhlllii', flock)
209 struct.unpack('hhllhh', flock)
212 struct.unpack('hhllhh', flock)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
buffer_tests.py 4 import struct namespace
175 if sys.maxint < (1 << 32) and struct.calcsize('P') == 4:
test_fcntl.py 7 import struct namespace
33 if struct.calcsize('l') == 8:
39 lockdata = struct.pack(off_t + off_t + pid_t + 'hh', 0, 0, 0,
42 lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
46 lockdata = struct.pack('hh'+start_len+'hh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
49 print 'struct.pack: ', repr(lockdata)
test_ioctl.py 4 import os, struct namespace
17 rpgrp = struct.unpack("i", r)[0]
35 rpgrp = struct.unpack("i", r)[0]
78 set_winsz_opcode_maybe_neg, = struct.unpack("i",
79 struct.pack("I", termios.TIOCSWINSZ))
81 our_winsz = struct.pack("HHHH",80,25,0,0)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_byteswap.py 1 import sys, unittest, struct, math, ctypes namespace
32 self.assertEqual(bin(struct.pack(">h", 0x1234)), "1234")
37 self.assertEqual(bin(struct.pack("<h", 0x1234)), "3412")
42 self.assertEqual(bin(struct.pack(">h", 0x1234)), "1234")
47 self.assertEqual(bin(struct.pack("<h", 0x1234)), "3412")
60 self.assertEqual(bin(struct.pack(">i", 0x12345678)), "12345678")
65 self.assertEqual(bin(struct.pack("<i", 0x12345678)), "78563412")
70 self.assertEqual(bin(struct.pack(">I", 0x12345678)), "12345678")
75 self.assertEqual(bin(struct.pack("<I", 0x12345678)), "78563412")
88 self.assertEqual(bin(struct.pack(">q", 0x1234567890ABCDEF)), "1234567890ABCDEF"
    [all...]
test_prototypes.py 34 import struct namespace
35 num_bits = struct.calcsize("P") * 8 # num bits in native machine address
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/command/
bdist_wininst.py 255 import struct namespace
299 header = struct.pack("<iii",
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/
decoder.py 5 import struct namespace
21 nan, inf = struct.unpack('dd', _BYTES)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
posixfile.py 154 import struct, fcntl namespace
186 flock = struct.pack('lxxxxlxxxxlhh', \
189 flock = struct.pack('hhlllii', \
192 flock = struct.pack('hhllhh', \
203 struct.unpack('lxxxxlxxxxlhh', flock)
206 struct.unpack('hhlllii', flock)
209 struct.unpack('hhllhh', flock)
212 struct.unpack('hhllhh', flock)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
buffer_tests.py 4 import struct namespace
175 if sys.maxint < (1 << 32) and struct.calcsize('P') == 4:
test_fcntl.py 7 import struct namespace
33 if struct.calcsize('l') == 8:
39 lockdata = struct.pack(off_t + off_t + pid_t + 'hh', 0, 0, 0,
42 lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
46 lockdata = struct.pack('hh'+start_len+'hh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
49 print 'struct.pack: ', repr(lockdata)
test_ioctl.py 4 import os, struct namespace
17 rpgrp = struct.unpack("i", r)[0]
35 rpgrp = struct.unpack("i", r)[0]
78 set_winsz_opcode_maybe_neg, = struct.unpack("i",
79 struct.pack("I", termios.TIOCSWINSZ))
81 our_winsz = struct.pack("HHHH",80,25,0,0)
  /system/connectivity/shill/test-scripts/
routing.py 33 import struct namespace
36 return socket.inet_ntoa(struct.pack('@I', addr))
42 return struct.unpack('I', socket.inet_aton(i))[0]
  /system/extras/tests/net_test/
csocket.py 21 import struct namespace
28 CMsgHdr = cstruct.Struct("cmsghdr", "@Lii", "len level type")
29 Iovec = cstruct.Struct("iovec", "@LL", "base len")
30 MsgHdr = cstruct.Struct("msghdr", "@LLLLLLi",
32 SockaddrIn = cstruct.Struct("sockaddr_in", "=HH4sxxxxxxxx", "family port addr")
33 SockaddrIn6 = cstruct.Struct("sockaddr_in6", "=HHI16sI",
37 CMSG_ALIGNTO = struct.calcsize("@L") # The kernel defines this as sizeof(long).
97 data = struct.pack("=I", data)
129 to: An address tuple, or a SockaddrIn[6] struct. Becomes msg->msg_name.
144 # Convert the destination address into a struct sockaddr
    [all...]
  /system/extras/verity/
build_verity_metadata.py 5 import struct namespace
25 block = struct.pack("II256sI", MAGIC_NUMBER, VERSION, signature, table_len)
  /cts/suite/audio_quality/test_description/
processing_main.py 21 import struct namespace
159 i32 = struct.unpack("<i", raw)
164 i64 = struct.unpack("<q", raw)
169 val = struct.unpack("<d", raw)
178 raw = struct.pack("<i", i32)
182 raw = struct.pack("<q", i64)
186 raw = struct.pack("<d", val)
  /cts/tools/utils/
monsoon.py 43 import struct namespace
148 if len(bytes) != struct.calcsize(STATUS_FORMAT) or bytes[0] != "\x10":
153 status = dict(zip(STATUS_FIELDS, struct.unpack(STATUS_FORMAT, bytes)))
222 seq, type, x, y = struct.unpack("BBBB", bytes[:4])
223 data = [struct.unpack(">hhhh", bytes[x:x+8])
266 """ Pack a struct (without length or checksum) and send it. """
267 data = struct.pack(fmt, *args)
269 checksum = (data_len + sum(struct.unpack("B" * len(data), data))) % 256
270 out = struct.pack("B", data_len) + data + struct.pack("B", checksum
    [all...]
  /external/autotest/client/bin/input/
linux_ioctl.py 10 import struct namespace
41 # Return the byte size of a python struct format string
43 return struct.calcsize(t)
  /external/autotest/client/cros/cellular/mbim_compliance/
mbim_channel_unittest.py 9 import struct namespace
346 packet = self._create_buffer(struct.calcsize(packet_format))
347 struct.pack_into(packet_format,
351 struct.calcsize(packet_format),
360 fragment = self._create_buffer(struct.calcsize(fragment_header_format))
361 struct.pack_into(fragment_header_format,
365 struct.calcsize(fragment_header_format),
  /external/autotest/client/cros/
dhcp_test_base.py 15 import struct namespace
69 mask = struct.unpack('!I', socket.inet_aton(subnet_mask))[0]
70 subnet = mask & struct.unpack('!I', socket.inet_aton(ip_in_subnet))[0]
71 suffix = ~mask & struct.unpack('!I', socket.inet_aton(ip_suffix))[0]
72 return socket.inet_ntoa(struct.pack('!I', (subnet | suffix)))
memory_bandwidth_logger.py 10 import struct namespace
31 """Small struct-like class to keep track of the
100 fmt: string containing the struct type to extract from the
102 Returns: a Struct containing the bytes starting at offset
105 s = struct.Struct(fmt)
116 fmt: string containing the struct type to extract from the
118 Returns: a Struct containing the bytes starting at offset into
121 s = struct.Struct(fmt
    [all...]
  /external/autotest/client/deps/lansim/src/py/
tuntap.py 7 import struct namespace
29 "ifr_addr": "HH12s", # struct sockaddr_in ifr_addr
30 "ifr_hwaddr": "H14s", # struct sockaddr ifru_hwaddr
38 """Packs a binary string representing a struct ifreq.
40 The struct ifreq is used to call ioctl() on network devices. The argument
42 union of different types. This function packs the struct according to the
47 @param argname: The name of the member used for the union in struct ifreq.
53 return struct.pack(IFNAMSIZ_FMT + STRUCT_IFREQ_FMT[argname], if_name, *args)
57 """Returns a tuple with the interpreted contents of the a struct ifreq.
60 than the passed struct ifreq request. This function decodes this result int
    [all...]

Completed in 1294 milliseconds

1 2 3 4 5 67 8 91011>>