Searched refs:ctypes (Results 1 - 25 of 56) sorted by relevance

123

/external/chromium-trace/catapult/third_party/Paste/paste/util/
H A Dkillthread.py6 import ctypes namespace
9 "You cannot use paste.util.killthread without ctypes installed")
10 if not hasattr(ctypes, 'pythonapi'):
12 "You cannot use paste.util.killthread without ctypes.pythonapi")
23 res = ctypes.pythonapi.PyThreadState_SetAsyncExc(ctypes.c_long(tid), ctypes.py_object(exctype))
29 ctypes.pythonapi.PyThreadState_SetAsyncExc(ctypes.c_long(tid), 0)
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/tools/
H A Dlist_ports_osx.py24 import ctypes namespace
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
[all...]
H A Dlist_ports_windows.py1 import ctypes namespace
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
[all...]
/external/v8/build/toolchain/
H A Dget_concurrent_links.py21 import ctypes namespace
23 class MEMORYSTATUSEX(ctypes.Structure):
25 ("dwLength", ctypes.c_ulong),
26 ("dwMemoryLoad", ctypes.c_ulong),
27 ("ullTotalPhys", ctypes.c_ulonglong),
28 ("ullAvailPhys", ctypes.c_ulonglong),
29 ("ullTotalPageFile", ctypes.c_ulonglong),
30 ("ullAvailPageFile", ctypes.c_ulonglong),
31 ("ullTotalVirtual", ctypes.c_ulonglong),
32 ("ullAvailVirtual", ctypes
[all...]
/external/autotest/client/site_tests/kernel_CryptoAPI/
H A Dkernel_CryptoAPI.py13 import ctypes namespace
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),
84 Use ctypes to run a digest through one of the available kernel ifalg
94 libc = ctypes.CDLL("libc.so.6", use_errno=True)
96 # If you don't specify the function parameters this way, ctypes ma
[all...]
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/
H A Dtrace_time.py5 import ctypes namespace
6 import ctypes.util namespace
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
[all...]
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
H A Dmac_platform_backend.py5 import ctypes namespace
56 class ProcTaskInfo(ctypes.Structure):
58 _fields_ = [("pti_virtual_size", ctypes.c_uint64),
59 ("pti_resident_size", ctypes.c_uint64),
60 ("pti_total_user", ctypes.c_uint64),
61 ("pti_total_system", ctypes.c_uint64),
62 ("pti_threads_user", ctypes.c_uint64),
63 ("pti_threads_system", ctypes.c_uint64),
64 ("pti_policy", ctypes.c_int32),
65 ("pti_faults", ctypes
[all...]
H A Dmsr_server_win.py19 import ctypes namespace
60 winring0 = ctypes.WinDLL(_WinRing0Path())
77 low = ctypes.c_uint()
78 high = ctypes.c_uint()
79 _winring0.Rdmsr(ctypes.c_uint(msr_number),
80 ctypes.byref(low), ctypes.byref(high))
H A Dwin_platform_backend.py8 import ctypes namespace
291 class PerformanceInfo(ctypes.Structure):
295 _fields_ = [('size', ctypes.c_ulong),
296 ('CommitTotal', ctypes.c_size_t),
297 ('CommitLimit', ctypes.c_size_t),
298 ('CommitPeak', ctypes.c_size_t),
299 ('PhysicalTotal', ctypes.c_size_t),
300 ('PhysicalAvailable', ctypes.c_size_t),
301 ('SystemCache', ctypes.c_size_t),
302 ('KernelTotal', ctypes
[all...]
/external/llvm/bindings/ocaml/executionengine/
H A DMakefile18 FindlibPackages := ctypes
/external/llvm/bindings/python/llvm/
H A Dbit_reader.py9 from ctypes import POINTER
10 from ctypes import byref
11 from ctypes import c_char_p
12 from ctypes import cast
H A Ddisassembler.py10 from ctypes import CFUNCTYPE
11 from ctypes import POINTER
12 from ctypes import addressof
13 from ctypes import c_byte
14 from ctypes import c_char_p
15 from ctypes import c_int
16 from ctypes import c_size_t
17 from ctypes import c_ubyte
18 from ctypes import c_uint64
19 from ctypes impor
[all...]
H A Dcommon.py10 from ctypes import POINTER
11 from ctypes import c_void_p
12 from ctypes import cdll
14 import ctypes.util namespace
61 """ctypes function that converts this object to a function parameter."""
97 # On Linux, ctypes.cdll.LoadLibrary() respects LD_LIBRARY_PATH
98 # while ctypes.util.find_library() doesn't.
99 # See http://docs.python.org/2/library/ctypes.html#finding-shared-libraries
102 # library into a default linker search path. Always Try ctypes.cdll.LoadLibrary()
103 # with all possible library names first, then try ctypes
[all...]
/external/autotest/client/deps/pyxinput/src/
H A Dxi2reader.py6 import ctypes namespace
35 mask.mask = ctypes.cast((ctypes.c_ubyte * mask.mask_len)(),
36 ctypes.POINTER(ctypes.c_ubyte))
44 xi2.XISelectEvents(self._display, self._window, ctypes.pointer(mask), 1)
45 xlib.XSelectInput(self._display, self._window, ctypes.c_long(0))
67 num_devices = ctypes.c_int()
69 ctypes.pointer(num_devices)).contents
74 valuator_class_info = ctypes
[all...]
/external/opencv3/3rdparty/jinja2/
H A Ddebug.py273 import ctypes namespace
277 if hasattr(ctypes.pythonapi, 'Py_InitModule4_64'):
278 _Py_ssize_t = ctypes.c_int64
280 _Py_ssize_t = ctypes.c_int
283 class _PyObject(ctypes.Structure):
287 ('ob_type', ctypes.POINTER(_PyObject))
292 class _PyObject(ctypes.Structure):
295 ('_ob_next', ctypes.POINTER(_PyObject)),
296 ('_ob_prev', ctypes.POINTER(_PyObject)),
298 ('ob_type', ctypes
[all...]
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/
H A Dserialwin32.py9 # Initial patch to use ctypes by Giovanni Bajo <rasky@develer.com>
11 import ctypes namespace
23 """Serial port implementation for Win32 based on ctypes."""
66 raise SerialException("could not open port %r: %r" % (self.portstr, ctypes.WinError()))
80 win32.GetCommTimeouts(self.hComPort, ctypes.byref(self._orgTimeouts))
127 win32.SetCommTimeouts(self.hComPort, ctypes.byref(win32.COMMTIMEOUTS(*timeouts)))
134 win32.GetCommState(self.hComPort, ctypes.byref(comDCB))
201 if not win32.SetCommState(self.hComPort, ctypes.byref(comDCB)):
202 raise ValueError("Cannot configure port, some setting was wrong. Original message: %r" % ctypes.WinError())
238 if not win32.ClearCommError(self.hComPort, ctypes
[all...]
H A Dwin32.py1 from ctypes import *
2 from ctypes.wintypes import HANDLE
3 from ctypes.wintypes import BOOL
4 from ctypes.wintypes import LPCWSTR
7 from ctypes.wintypes import DWORD
8 from ctypes.wintypes import WORD
9 from ctypes.wintypes import BYTE
38 from ctypes.wintypes import LPCSTR
/external/v8/tools/
H A Dgrokdump.py35 import ctypes namespace
85 self.size = ctypes.sizeof(self.ctype)
108 class Raw(ctypes.Structure):
144 byte = ctypes.c_uint8.from_buffer(reader.minidump, slot + i).value
184 ("signature", ctypes.c_uint32),
185 ("version", ctypes.c_uint32),
186 ("stream_count", ctypes.c_uint32),
187 ("stream_directories_rva", ctypes.c_uint32),
188 ("checksum", ctypes.c_uint32),
189 ("time_date_stampt", ctypes
[all...]
H A Dll_prof.py32 import ctypes namespace
335 "ia32": ctypes.c_uint32,
336 "arm": ctypes.c_uint32,
337 "mips": ctypes.c_uint32,
338 "x64": ctypes.c_uint64,
339 "arm64": ctypes.c_uint64
359 ("name_size", ctypes.c_int32),
361 ("code_size", ctypes.c_int32)])
380 self.log_pos += ctypes.sizeof(event)
406 self.log_pos += ctypes
[all...]
/external/autotest/client/common_lib/
H A Di2c_slave.py11 import ctypes, logging namespace
34 lib_obj: ctypes library object to interface with SMOGCHECK_C_LIB.
66 return ctypes.cdll.LoadLibrary(self.load_lib)
179 if self.lib_obj.WriteWord(self.fd, reg, ctypes.c_uint16(word)) < 0:
/external/autotest/site_utils/
H A Dlog_socket_server.py13 import ctypes namespace
125 server_started = multiprocessing.Value(ctypes.c_bool, False)
126 port = multiprocessing.Value(ctypes.c_int, 0)
H A Drpc_logserver.py9 import ctypes namespace
47 server_started = multiprocessing.Value(ctypes.c_bool, False)
/external/mesa3d/src/gallium/tools/trace/
H A Dformat.py135 import ctypes namespace
136 self.handle = ctypes.windll.kernel32.GetStdHandle(nStdHandle)
142 import ctypes namespace
143 ctypes.windll.kernel32.SetConsoleTextAttribute(self.handle, attr)
/external/v8/tools/testrunner/local/
H A Dcommands.py44 import ctypes namespace
46 ctypes.windll.kernel32.SetErrorMode(mode) #@UndefinedVariable
/external/webrtc/tools/network_emulator/
H A Dnetwork_emulator.py12 import ctypes namespace
98 if ctypes.windll.shell32.IsUserAnAdmin() == 0:

Completed in 1880 milliseconds

123