Searched defs:ctypes (Results 1 - 25 of 31) sorted by relevance

12

/external/chromium_org/chrome/test/mini_installer/
H A Dchrome_helper.py7 import ctypes namespace
24 process_handle = ctypes.windll.kernel32.OpenProcess(
/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...]
/external/chromium_org/v8/tools/testrunner/local/
H A Dcommands.py58 import ctypes namespace
60 ctypes.windll.kernel32.SetErrorMode(mode) #@UndefinedVariable
/external/lldb/examples/summaries/cocoa/
H A DCFBag.py11 import ctypes namespace
H A DCFBinaryHeap.py11 import ctypes namespace
H A DNSBundle.py11 import ctypes namespace
H A DNSData.py11 import ctypes namespace
H A DNSIndexSet.py11 import ctypes namespace
H A DNSMachPort.py11 import ctypes namespace
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 DCFArray.py11 import ctypes namespace
H A DCFBitVector.py10 import ctypes namespace
H A DCFDictionary.py11 import ctypes namespace
H A DNSSet.py10 import ctypes namespace
H A DNSURL.py10 import ctypes namespace
H A DNSDate.py11 import ctypes namespace
/external/llvm/bindings/python/llvm/
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/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/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/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/chromium_org/tools/telemetry/telemetry/core/platform/
H A Dmac_platform_backend.py5 import ctypes namespace
54 class ProcTaskInfo(ctypes.Structure):
56 _fields_ = [("pti_virtual_size", ctypes.c_uint64),
57 ("pti_resident_size", ctypes.c_uint64),
58 ("pti_total_user", ctypes.c_uint64),
59 ("pti_total_system", ctypes.c_uint64),
60 ("pti_threads_user", ctypes.c_uint64),
61 ("pti_threads_system", ctypes.c_uint64),
62 ("pti_policy", ctypes.c_int32),
63 ("pti_faults", 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...]
/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/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/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...]

Completed in 429 milliseconds

12