/external/chromium_org/build/toolchain/ |
get_concurrent_links.py | 19 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.c_ulonglong) [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/platform/ |
msr_server_win.py | 19 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))
|
mac_platform_backend.py | 5 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.c_int32) [all...] |
/external/chromium_org/tools/telemetry/third_party/pyserial/serial/tools/ |
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.c_void_p, ctypes.c_void_p, ctypes.c_void_p [all...] |
/external/chromium_org/v8/tools/testrunner/local/ |
commands.py | 58 import ctypes namespace 60 ctypes.windll.kernel32.SetErrorMode(mode) #@UndefinedVariable
|
/external/lldb/examples/summaries/cocoa/ |
CFBag.py | 11 import ctypes namespace
|
CFBinaryHeap.py | 11 import ctypes namespace
|
NSBundle.py | 11 import ctypes namespace
|
NSData.py | 11 import ctypes namespace
|
NSIndexSet.py | 11 import ctypes namespace
|
NSMachPort.py | 11 import ctypes namespace
|
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.c_long(data_vo.GetValueAsUnsigned(0)).value [all...] |
CFArray.py | 11 import ctypes namespace
|
CFBitVector.py | 10 import ctypes namespace
|
CFDictionary.py | 11 import ctypes namespace
|
NSSet.py | 10 import ctypes namespace
|
NSURL.py | 10 import ctypes namespace
|
NSDate.py | 11 import ctypes namespace
|
/external/llvm/bindings/python/llvm/ |
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.util.find_library() [all...] |
/external/chromium_org/chrome/tools/build/win/ |
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.c_shor [all...] |
/external/chromium_org/third_party/jinja2/ |
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.POINTER(_PyObject) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/tools/trace/ |
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/telemetry/third_party/pyserial/serial/ |
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.byref(flags), ctypes.byref(comstat)) [all...] |
/external/chromium_org/tools/win/split_link/ |
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.byref(output_string), buffer_size, 0) [all...] |
/external/mesa3d/src/gallium/tools/trace/ |
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)
|