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

12

/external/chromium_org/tools/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/chromium_org/build/toolchain/
H A Dget_concurrent_links.py19 import ctypes namespace
21 class MEMORYSTATUSEX(ctypes.Structure):
23 ("dwLength", ctypes.c_ulong),
24 ("dwMemoryLoad", ctypes.c_ulong),
25 ("ullTotalPhys", ctypes.c_ulonglong),
26 ("ullAvailPhys", ctypes.c_ulonglong),
27 ("ullTotalPageFile", ctypes.c_ulonglong),
28 ("ullAvailPageFile", ctypes.c_ulonglong),
29 ("ullTotalVirtual", ctypes.c_ulonglong),
30 ("ullAvailVirtual", ctypes
[all...]
/external/chromium_org/tools/telemetry/telemetry/core/platform/
H A Dmac_platform_backend.py5 import ctypes namespace
58 class ProcTaskInfo(ctypes.Structure):
60 _fields_ = [("pti_virtual_size", ctypes.c_uint64),
61 ("pti_resident_size", ctypes.c_uint64),
62 ("pti_total_user", ctypes.c_uint64),
63 ("pti_total_system", ctypes.c_uint64),
64 ("pti_threads_user", ctypes.c_uint64),
65 ("pti_threads_system", ctypes.c_uint64),
66 ("pti_policy", ctypes.c_int32),
67 ("pti_faults", ctypes
[all...]
H A Dmsr_server_win.py19 import ctypes namespace
54 winring0 = ctypes.WinDLL(_WinRing0Path())
71 low = ctypes.c_uint()
72 high = ctypes.c_uint()
73 _winring0.Rdmsr(ctypes.c_uint(msr_number),
74 ctypes.byref(low), ctypes.byref(high))
H A Dwin_platform_backend.py8 import ctypes namespace
252 class PerformanceInfo(ctypes.Structure):
256 _fields_ = [('size', ctypes.c_ulong),
257 ('CommitTotal', ctypes.c_size_t),
258 ('CommitLimit', ctypes.c_size_t),
259 ('CommitPeak', ctypes.c_size_t),
260 ('PhysicalTotal', ctypes.c_size_t),
261 ('PhysicalAvailable', ctypes.c_size_t),
262 ('SystemCache', ctypes.c_size_t),
263 ('KernelTotal', ctypes
[all...]
/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...]
H A Dobject.py80 from ctypes import c_char_p
81 from ctypes import c_char
82 from ctypes import POINTER
83 from ctypes import c_uint64
84 from ctypes import string_at
/external/chromium_org/third_party/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_org/tools/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/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
H A Dexecutive.py216 # importing ctypes at the top-level seems to cause weird crashes at
219 import ctypes namespace
221 class PROCESSENTRY32(ctypes.Structure):
222 _fields_ = [("dwSize", ctypes.c_ulong),
223 ("cntUsage", ctypes.c_ulong),
224 ("th32ProcessID", ctypes.c_ulong),
225 ("th32DefaultHeapID", ctypes.POINTER(ctypes.c_ulong)),
226 ("th32ModuleID", ctypes.c_ulong),
227 ("cntThreads", ctypes
[all...]
H A Dplatforminfo.py102 from ctypes import windll, create_string_buffer
/external/chromium_org/v8/tools/
H A Dgrokdump.py35 import ctypes namespace
85 self.size = ctypes.sizeof(self.ctype)
108 class Raw(ctypes.Structure):
143 byte = ctypes.c_uint8.from_buffer(reader.minidump, slot + i).value
183 ("signature", ctypes.c_uint32),
184 ("version", ctypes.c_uint32),
185 ("stream_count", ctypes.c_uint32),
186 ("stream_directories_rva", ctypes.c_uint32),
187 ("checksum", ctypes.c_uint32),
188 ("time_date_stampt", ctypes
[all...]
H A Dll_prof.py32 import ctypes namespace
351 "ia32": ctypes.c_uint32,
352 "arm": ctypes.c_uint32,
353 "mips": ctypes.c_uint32,
354 "x64": ctypes.c_uint64,
355 "arm64": ctypes.c_uint64
379 ("name_size", ctypes.c_int32),
381 ("code_size", ctypes.c_int32)])
392 ("position", ctypes.c_int32)])
405 self.log_pos += ctypes
[all...]
/external/chromium_org/chrome/tools/build/win/
H A Dresedit.py10 import ctypes namespace
11 import ctypes.wintypes namespace
28 UpdateResource = ctypes.windll.kernel32.UpdateResourceW
30 ctypes.wintypes.HANDLE, # HANDLE hUpdate
31 ctypes.c_wchar_p, # LPCTSTR lpType
32 ctypes.c_wchar_p, # LPCTSTR lpName
33 ctypes.c_short, # WORD wLanguage
34 ctypes.c_void_p, # LPVOID lpData
35 ctypes.c_ulong, # DWORD cbData
37 UpdateResource.restype = ctypes
[all...]
/external/lldb/examples/summaries/cocoa/
H A DNSNumber.py11 import ctypes namespace
49 return '(char)' + str(ord(ctypes.c_char(chr(self.data % 256)).value))
51 return '(short)' + str(ctypes.c_short(self.data % (256*256)).value)
53 return '(int)' + str(ctypes.c_int(self.data % (256*256*256*256)).value)
55 return '(long)' + str(ctypes.c_long(self.data).value)
110 return '(char)' + str(ord(ctypes.c_char(chr(data_vo.GetValueAsUnsigned(0))).value))
116 return '(short)' + str(ctypes.c_short(data_vo.GetValueAsUnsigned(0) % (256*256)).value)
125 return '(int)' + str(ctypes.c_int(data_vo.GetValueAsUnsigned(0)% (256*256*256*256)).value)
134 return '(long)' + str(ctypes.c_long(data_vo.GetValueAsUnsigned(0)).value)
142 return '(long)' + str(ctypes
[all...]
H A DCFBag.py11 import ctypes namespace
/external/chromium_org/third_party/mesa/src/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/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/chromium_org/tools/win/split_link/
H A Dsplit_link.py11 import ctypes namespace
46 size = ctypes.c_int()
47 ptr = ctypes.windll.shell32.CommandLineToArgvW(
48 ctypes.create_unicode_buffer(' '.join(rsp_expanded)),
49 ctypes.byref(size))
50 ref = ctypes.c_wchar_p * size.value
54 ctypes.windll.kernel32.LocalFree(ptr)
223 UnDecorateSymbolName = ctypes.windll.dbghelp.UnDecorateSymbolName
225 output_string = ctypes.create_string_buffer(buffer_size)
227 export, ctypes
[all...]
/external/chromium_org/v8/tools/testrunner/local/
H A Dcommands.py58 import ctypes namespace
60 ctypes.windll.kernel32.SetErrorMode(mode) #@UndefinedVariable
/external/pcre/dist/
H A Dpcre_exec.c2208 prev_is_word = c < 256 && (md->ctypes[c] & ctype_word) != 0;
2232 cur_is_word = c < 256 && (md->ctypes[c] & ctype_word) != 0;
2260 && ((md->ctypes[eptr[-1]] & ctype_word) != 0);
2284 && ((md->ctypes[*eptr] & ctype_word) != 0);
2351 (md->ctypes[c] & ctype_digit) != 0
2368 (md->ctypes[c] & ctype_digit) == 0
2385 (md->ctypes[c] & ctype_space) != 0
2402 (md->ctypes[c] & ctype_space) == 0
2419 (md->ctypes[c] & ctype_word) != 0
2436 (md->ctypes[
[all...]

Completed in 3677 milliseconds

12