/external/python/cpython3/Lib/ctypes/ |
D | wintypes.py | 2 import ctypes 4 BYTE = ctypes.c_byte 5 WORD = ctypes.c_ushort 6 DWORD = ctypes.c_ulong 9 CHAR = ctypes.c_char 10 WCHAR = ctypes.c_wchar 11 UINT = ctypes.c_uint 12 INT = ctypes.c_int 14 DOUBLE = ctypes.c_double 15 FLOAT = ctypes.c_float [all …]
|
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/ |
D | list_ports_osx.py | 24 import ctypes 25 from ctypes import util 28 iokit = ctypes.cdll.LoadLibrary(ctypes.util.find_library('IOKit')) 29 cf = ctypes.cdll.LoadLibrary(ctypes.util.find_library('CoreFoundation')) 31 kIOMasterPortDefault = ctypes.c_void_p.in_dll(iokit, "kIOMasterPortDefault") 32 kCFAllocatorDefault = ctypes.c_void_p.in_dll(cf, "kCFAllocatorDefault") 36 iokit.IOServiceMatching.restype = ctypes.c_void_p 38 iokit.IOServiceGetMatchingServices.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p] 39 iokit.IOServiceGetMatchingServices.restype = ctypes.c_void_p 41 iokit.IORegistryEntryGetParentEntry.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p] [all …]
|
D | list_ports_windows.py | 1 import ctypes 6 raise ctypes.WinError() 11 from ctypes.wintypes import HANDLE 12 from ctypes.wintypes import BOOL 13 from ctypes.wintypes import HWND 14 from ctypes.wintypes import DWORD 15 from ctypes.wintypes import WORD 16 from ctypes.wintypes import LONG 17 from ctypes.wintypes import ULONG 18 from ctypes.wintypes import LPCSTR [all …]
|
/external/capstone/bindings/python/capstone/ |
D | x86.py | 3 import ctypes 8 class X86OpMem(ctypes.Structure): 10 ('segment', ctypes.c_uint), 11 ('base', ctypes.c_uint), 12 ('index', ctypes.c_uint), 13 ('scale', ctypes.c_int), 14 ('disp', ctypes.c_int64), 17 class X86OpValue(ctypes.Union): 19 ('reg', ctypes.c_uint), 20 ('imm', ctypes.c_int64), [all …]
|
D | arm.py | 3 import ctypes 8 class ArmOpMem(ctypes.Structure): 10 ('base', ctypes.c_uint), 11 ('index', ctypes.c_uint), 12 ('scale', ctypes.c_int), 13 ('disp', ctypes.c_int), 16 class ArmOpShift(ctypes.Structure): 18 ('type', ctypes.c_uint), 19 ('value', ctypes.c_uint), 22 class ArmOpValue(ctypes.Union): [all …]
|
D | arm64.py | 3 import ctypes 8 class Arm64OpMem(ctypes.Structure): 10 ('base', ctypes.c_uint), 11 ('index', ctypes.c_uint), 12 ('disp', ctypes.c_int32), 15 class Arm64OpShift(ctypes.Structure): 17 ('type', ctypes.c_uint), 18 ('value', ctypes.c_uint), 21 class Arm64OpValue(ctypes.Union): 23 ('reg', ctypes.c_uint), [all …]
|
D | __init__.py | 198 import ctypes, ctypes.util 220 return ctypes.cdll.LoadLibrary(lib_file) 225 return ctypes.cdll.LoadLibrary(lib_file + '.3') 257 ctypes.memmove(ctypes.byref(dst), ctypes.byref(src), ctypes.sizeof(type(src))) 266 class _cs_arch(ctypes.Union): 278 class _cs_detail(ctypes.Structure): 280 ('regs_read', ctypes.c_ubyte * 12), 281 ('regs_read_count', ctypes.c_ubyte), 282 ('regs_write', ctypes.c_ubyte * 20), 283 ('regs_write_count', ctypes.c_ubyte), [all …]
|
D | ppc.py | 3 import ctypes 8 class PpcOpMem(ctypes.Structure): 10 ('base', ctypes.c_uint), 11 ('disp', ctypes.c_int32), 14 class PpcOpCrx(ctypes.Structure): 16 ('scale', ctypes.c_uint), 17 ('reg', ctypes.c_uint), 18 ('cond', ctypes.c_uint), 21 class PpcOpValue(ctypes.Union): 23 ('reg', ctypes.c_uint), [all …]
|
D | systemz.py | 3 import ctypes 8 class SyszOpMem(ctypes.Structure): 10 ('base', ctypes.c_uint8), 11 ('index', ctypes.c_uint8), 12 ('length', ctypes.c_uint64), 13 ('disp', ctypes.c_int64), 16 class SyszOpValue(ctypes.Union): 18 ('reg', ctypes.c_uint), 19 ('imm', ctypes.c_int64), 23 class SyszOp(ctypes.Structure): [all …]
|
D | sparc.py | 3 import ctypes 8 class SparcOpMem(ctypes.Structure): 10 ('base', ctypes.c_uint8), 11 ('index', ctypes.c_uint8), 12 ('disp', ctypes.c_int32), 15 class SparcOpValue(ctypes.Union): 17 ('reg', ctypes.c_uint), 18 ('imm', ctypes.c_int32), 22 class SparcOp(ctypes.Structure): 24 ('type', ctypes.c_uint), [all …]
|
D | xcore.py | 3 import ctypes 8 class XcoreOpMem(ctypes.Structure): 10 ('base', ctypes.c_uint8), 11 ('index', ctypes.c_uint8), 12 ('disp', ctypes.c_int32), 13 ('direct', ctypes.c_int), 16 class XcoreOpValue(ctypes.Union): 18 ('reg', ctypes.c_uint), 19 ('imm', ctypes.c_int32), 23 class XcoreOp(ctypes.Structure): [all …]
|
D | mips.py | 3 import ctypes 8 class MipsOpMem(ctypes.Structure): 10 ('base', ctypes.c_uint), 11 ('disp', ctypes.c_int64), 14 class MipsOpValue(ctypes.Union): 16 ('reg', ctypes.c_uint), 17 ('imm', ctypes.c_int64), 21 class MipsOp(ctypes.Structure): 23 ('type', ctypes.c_uint), 40 class CsMips(ctypes.Structure): [all …]
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_unicode.py | 3 import ctypes 4 from ctypes.test import need_symbol 11 dll = ctypes.CDLL(_ctypes_test.__file__) 13 cls.wcslen.argtypes = [ctypes.c_wchar_p] 15 self.prev_conv_mode = ctypes.set_conversion_mode("ascii", "strict") 18 ctypes.set_conversion_mode(*self.prev_conv_mode) 22 ctypes.set_conversion_mode("ascii", "strict") 28 self.assertRaises(ctypes.ArgumentError, wcslen, "ab�") 32 ctypes.set_conversion_mode("ascii", "replace") 40 ctypes.set_conversion_mode("ascii", "ignore") [all …]
|
D | test_refcounts.py | 2 import ctypes 5 MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int) 6 OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong) 9 dll = ctypes.CDLL(_ctypes_test.__file__) 17 f.restype = ctypes.c_int 18 f.argtypes = [ctypes.c_int, MyCallback] 56 class X(ctypes.Structure): 88 proto = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_int) 93 a = sys.getrefcount(ctypes.c_int) 95 self.assertEqual(sys.getrefcount(ctypes.c_int), a)
|
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/ |
D | trace_time.py | 5 import ctypes 6 import ctypes.util 56 libc = ctypes.CDLL('/usr/lib/libc.dylib', use_errno=True) 57 class MachTimebaseInfoData(ctypes.Structure): 59 _fields_ = (('numer', ctypes.c_uint32), 60 ('denom', ctypes.c_uint32)) 63 mach_absolute_time.restype = ctypes.c_uint64 66 libc.mach_timebase_info(ctypes.byref(timebase)) 92 clock_gettime = ctypes.CDLL(ctypes.util.find_library('c'), 96 clock_gettime = ctypes.CDLL(ctypes.util.find_library('rt'), [all …]
|
/external/autotest/client/site_tests/kernel_CryptoAPI/ |
D | kernel_CryptoAPI.py | 13 import ctypes 22 class sockaddr_alg(ctypes.Structure): 35 ('salg_family', ctypes.c_uint16), 36 ('salg_type', ctypes.c_char * 14), 37 ('salg_feat', ctypes.c_uint32), 38 ('salg_mask', ctypes.c_uint32), 39 ('salg_name', ctypes.c_char * 64), 94 libc = ctypes.CDLL("libc.so.6", use_errno=True) 98 libc.socket.argtypes = [ ctypes.c_int, ctypes.c_int, ctypes.c_int ] 99 libc.bind.argtypes = [ ctypes.c_int, ctypes.c_void_p, ctypes.c_int ] [all …]
|
/external/bcc/tools/ |
D | tcptracer.py | 21 import ctypes 499 class TCPIPV4Evt(ctypes.Structure): 501 ("ts_ns", ctypes.c_ulonglong), 502 ("type", ctypes.c_uint), 503 ("pid", ctypes.c_uint), 504 ("comm", ctypes.c_char * TASK_COMM_LEN), 505 ("ip", ctypes.c_ubyte), 506 ("saddr", ctypes.c_uint), 507 ("daddr", ctypes.c_uint), 508 ("sport", ctypes.c_ushort), [all …]
|
/external/python/cpython3/Lib/multiprocessing/ |
D | sharedctypes.py | 10 import ctypes 26 'c': ctypes.c_char, 'u': ctypes.c_wchar, 27 'b': ctypes.c_byte, 'B': ctypes.c_ubyte, 28 'h': ctypes.c_short, 'H': ctypes.c_ushort, 29 'i': ctypes.c_int, 'I': ctypes.c_uint, 30 'l': ctypes.c_long, 'L': ctypes.c_ulong, 31 'q': ctypes.c_longlong, 'Q': ctypes.c_ulonglong, 32 'f': ctypes.c_float, 'd': ctypes.c_double 40 size = ctypes.sizeof(type_) 50 ctypes.memset(ctypes.addressof(obj), 0, ctypes.sizeof(obj)) [all …]
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_refcounts.py | 3 import ctypes 6 MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int) 7 OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong) 10 dll = ctypes.CDLL(_ctypes_test.__file__) 19 f.restype = ctypes.c_int 20 f.argtypes = [ctypes.c_int, MyCallback] 59 class X(ctypes.Structure): 91 proto = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_int) 96 a = sys.getrefcount(ctypes.c_int) 98 self.assertEqual(sys.getrefcount(ctypes.c_int), a)
|
D | test_unicode.py | 2 import ctypes 3 from ctypes.test import need_symbol 10 dll = ctypes.CDLL(_ctypes_test.__file__) 12 wcslen.argtypes = [ctypes.c_wchar_p] 16 self.assertRaises(ctypes.ArgumentError, wcslen, b"ab\xe4") 19 buf = ctypes.create_unicode_buffer("abc") 22 buf = ctypes.create_unicode_buffer("ab\xe4\xf6\xfc") 29 func = ctypes.CDLL(_ctypes_test.__file__)._testfunc_p_p 33 func.argtypes = [ctypes.c_char_p] 34 func.restype = ctypes.c_char_p [all …]
|
/external/python/cpython2/Lib/multiprocessing/ |
D | sharedctypes.py | 36 import ctypes 49 'c': ctypes.c_char, 50 'b': ctypes.c_byte, 'B': ctypes.c_ubyte, 51 'h': ctypes.c_short, 'H': ctypes.c_ushort, 52 'i': ctypes.c_int, 'I': ctypes.c_uint, 53 'l': ctypes.c_long, 'L': ctypes.c_ulong, 54 'f': ctypes.c_float, 'd': ctypes.c_double 57 typecode_to_type['u'] = ctypes.c_wchar 67 size = ctypes.sizeof(type_) 77 ctypes.memset(ctypes.addressof(obj), 0, ctypes.sizeof(obj)) [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_code.py | 111 import ctypes 113 ctypes = None variable 266 if check_impl_detail(cpython=True) and ctypes is not None: 267 py = ctypes.pythonapi 268 freefunc = ctypes.CFUNCTYPE(None,ctypes.c_voidp) 272 RequestCodeExtraIndex.restype = ctypes.c_ssize_t 275 SetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t, ctypes.c_voidp) 276 SetExtra.restype = ctypes.c_int 279 GetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t, 280 ctypes.POINTER(ctypes.c_voidp)) [all …]
|
/external/v8/tools/ |
D | grokdump.py | 35 import ctypes 87 self.size = ctypes.sizeof(self.ctype) 110 class Raw(ctypes.Structure): 146 byte = ctypes.c_uint8.from_buffer(reader.minidump, slot + i).value 197 ("signature", ctypes.c_uint32), 198 ("version", ctypes.c_uint32), 199 ("stream_count", ctypes.c_uint32), 200 ("stream_directories_rva", ctypes.c_uint32), 201 ("checksum", ctypes.c_uint32), 202 ("time_date_stampt", ctypes.c_uint32), [all …]
|
/external/python/cpython2/Lib/test/ |
D | symlink_support.py | 34 import ctypes.wintypes 35 CreateSymbolicLink = ctypes.windll.kernel32.CreateSymbolicLinkW 37 ctypes.wintypes.LPWSTR, 38 ctypes.wintypes.LPWSTR, 39 ctypes.wintypes.DWORD, 41 CreateSymbolicLink.restype = ctypes.wintypes.BOOLEAN 62 result_buffer = ctypes.wintypes.LPWSTR() 65 bytes = ctypes.windll.kernel32.FormatMessageW( 70 ctypes.byref(result_buffer), 79 ctypes.windll.kernel32.LocalFree(result_buffer) [all …]
|
/external/python/cpython2/Tools/pybench/ |
D | systimes.py | 64 import ctypes 131 creationtime = ctypes.c_ulonglong() 132 exittime = ctypes.c_ulonglong() 133 kerneltime = ctypes.c_ulonglong() 134 usertime = ctypes.c_ulonglong() 135 rc = ctypes.windll.kernel32.GetProcessTimes( 136 ctypes.windll.kernel32.GetCurrentProcess(), 137 ctypes.byref(creationtime), 138 ctypes.byref(exittime), 139 ctypes.byref(kerneltime), [all …]
|