Home
last modified time | relevance | path

Searched refs:ctypes (Results 1 – 25 of 47) sorted by relevance

12

/external/chromium_org/tools/telemetry/third_party/pyserial/serial/tools/
Dlist_ports_osx.py24 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 …]
Dlist_ports_windows.py1 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/chromium_org/tools/telemetry/telemetry/core/platform/
Dmac_platform_backend.py5 import ctypes
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.c_int32),
[all …]
Dwin_platform_backend.py8 import ctypes
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.c_size_t),
[all …]
Dmsr_server_win.py19 import ctypes
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))
/external/chromium_org/build/toolchain/
Dget_concurrent_links.py19 import ctypes
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.c_ulonglong),
[all …]
/external/chromium_org/v8/tools/
Dgrokdump.py35 import ctypes
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.c_uint32),
[all …]
Dll_prof.py32 import ctypes
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.sizeof(event)
[all …]
/external/llvm/bindings/python/llvm/
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 import c_void_p
[all …]
Dbit_reader.py9 from ctypes import POINTER
10 from ctypes import byref
11 from ctypes import c_char_p
12 from ctypes import cast
Dcommon.py10 from ctypes import POINTER
11 from ctypes import c_void_p
12 from ctypes import cdll
14 import ctypes.util
123 t = ctypes.util.find_library(i)
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
Dcore.py16 from ctypes import POINTER
17 from ctypes import byref
18 from ctypes import c_char_p
19 from ctypes import c_uint
/external/chromium_org/tools/telemetry/third_party/pyserial/serial/
Dserialwin32.py11 import 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 …lueError("Cannot configure port, some setting was wrong. Original message: %r" % ctypes.WinError())
238 if not win32.ClearCommError(self.hComPort, ctypes.byref(flags), ctypes.byref(comstat)):
251 if not win32.ClearCommError(self.hComPort, ctypes.byref(flags), ctypes.byref(comstat)):
256 buf = ctypes.create_string_buffer(n)
[all …]
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/jinja2/
Ddebug.py273 import ctypes
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.POINTER(_PyObject))
[all …]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
Dexecutive.py219 import ctypes
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.c_ulong),
228 ("th32ParentProcessID", ctypes.c_ulong),
229 ("pcPriClassBase", ctypes.c_ulong),
[all …]
/external/chromium_org/chrome/tools/build/win/
Dresedit.py10 import ctypes
11 import ctypes.wintypes
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.c_short
/external/chromium_org/tools/win/split_link/
Dsplit_link.py11 import ctypes
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.byref(output_string), buffer_size, 0):
[all …]
/external/lldb/examples/summaries/cocoa/
DNSNumber.py11 import ctypes
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.c_long(data_vo.GetValueAsUnsigned(0)).value)
/external/mesa3d/src/gallium/tools/trace/
Dformat.py135 import ctypes
136 self.handle = ctypes.windll.kernel32.GetStdHandle(nStdHandle)
142 import ctypes
143 ctypes.windll.kernel32.SetConsoleTextAttribute(self.handle, attr)
/external/chromium_org/third_party/mesa/src/src/gallium/tools/trace/
Dformat.py135 import ctypes
136 self.handle = ctypes.windll.kernel32.GetStdHandle(nStdHandle)
142 import ctypes
143 ctypes.windll.kernel32.SetConsoleTextAttribute(self.handle, attr)
/external/pcre/dist/
Dpcre_exec.c2208 prev_is_word = c < 256 && (md->ctypes[c] & ctype_word) != 0; in match()
2232 cur_is_word = c < 256 && (md->ctypes[c] & ctype_word) != 0; in match()
2260 && ((md->ctypes[eptr[-1]] & ctype_word) != 0); in match()
2284 && ((md->ctypes[*eptr] & ctype_word) != 0); in match()
2351 (md->ctypes[c] & ctype_digit) != 0 in match()
2368 (md->ctypes[c] & ctype_digit) == 0 in match()
2385 (md->ctypes[c] & ctype_space) != 0 in match()
2402 (md->ctypes[c] & ctype_space) == 0 in match()
2419 (md->ctypes[c] & ctype_word) != 0 in match()
2436 (md->ctypes[c] & ctype_word) == 0 in match()
[all …]
/external/chromium_org/v8/tools/testrunner/local/
Dcommands.py58 import ctypes
60 ctypes.windll.kernel32.SetErrorMode(mode) #@UndefinedVariable
/external/chromium_org/tools/gyp/pylib/gyp/generator/
Dninja.py1597 import ctypes
1599 class MEMORYSTATUSEX(ctypes.Structure):
1601 ("dwLength", ctypes.c_ulong),
1602 ("dwMemoryLoad", ctypes.c_ulong),
1603 ("ullTotalPhys", ctypes.c_ulonglong),
1604 ("ullAvailPhys", ctypes.c_ulonglong),
1605 ("ullTotalPageFile", ctypes.c_ulonglong),
1606 ("ullAvailPageFile", ctypes.c_ulonglong),
1607 ("ullTotalVirtual", ctypes.c_ulonglong),
1608 ("ullAvailVirtual", ctypes.c_ulonglong),
[all …]

12