/external/chromium_org/tools/telemetry/third_party/pyserial/serial/tools/ |
H A D | list_ports_osx.py | 24 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 D | list_ports_windows.py | 1 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/tools/telemetry/telemetry/core/platform/ |
H A D | mac_platform_backend.py | 5 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...] |
H A D | win_platform_backend.py | 6 import ctypes namespace 177 class PerformanceInfo(ctypes.Structure): 181 _fields_ = [('size', ctypes.c_ulong), 182 ('CommitTotal', ctypes.c_size_t), 183 ('CommitLimit', ctypes.c_size_t), 184 ('CommitPeak', ctypes.c_size_t), 185 ('PhysicalTotal', ctypes.c_size_t), 186 ('PhysicalAvailable', ctypes.c_size_t), 187 ('SystemCache', ctypes.c_size_t), 188 ('KernelTotal', ctypes [all...] |
/external/llvm/bindings/python/llvm/ |
H A D | bit_reader.py | 9 from ctypes import POINTER 10 from ctypes import byref 11 from ctypes import c_char_p 12 from ctypes import cast
|
H A D | disassembler.py | 10 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 D | common.py | 10 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 D | object.py | 80 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 D | debug.py | 273 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 D | serialwin32.py | 9 # 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 D | win32.py | 1 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/chrome/test/mini_installer/ |
H A D | chrome_helper.py | 7 import ctypes namespace 24 process_handle = ctypes.windll.kernel32.OpenProcess(
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/ |
H A D | executive.py | 216 # 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 D | platforminfo.py | 102 from ctypes import windll, create_string_buffer
|
/external/chromium_org/v8/tools/ |
H A D | grokdump.py | 35 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 D | ll_prof.py | 32 import ctypes namespace 351 "ia32": ctypes.c_uint32, 352 "arm": ctypes.c_uint32, 353 "mips": ctypes.c_uint32, 354 "x64": ctypes.c_uint64 378 ("name_size", ctypes.c_int32), 380 ("code_size", ctypes.c_int32)]) 391 ("position", ctypes.c_int32)]) 404 self.log_pos += ctypes.sizeof(event) 434 self.log_pos += ctypes [all...] |
/external/chromium_org/chrome/tools/build/win/ |
H A D | resedit.py | 10 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 D | NSNumber.py | 11 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 D | CFBag.py | 11 import ctypes namespace
|
H A D | CFBinaryHeap.py | 11 import ctypes namespace
|
H A D | NSBundle.py | 11 import ctypes namespace
|
/external/chromium_org/third_party/mesa/src/src/gallium/tools/trace/ |
H A D | format.py | 135 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 D | format.py | 135 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 D | split_link.py | 11 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 D | commands.py | 58 import ctypes namespace 60 ctypes.windll.kernel32.SetErrorMode(mode) #@UndefinedVariable
|