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

12

/external/chromium_org/tools/telemetry/telemetry/core/platform/
H A Dmac_platform_backend.py5 import ctypes namespace
14 from ctypes import util
39 class ProcTaskInfo(ctypes.Structure):
41 _fields_ = [("pti_virtual_size", ctypes.c_uint64),
42 ("pti_resident_size", ctypes.c_uint64),
43 ("pti_total_user", ctypes.c_uint64),
44 ("pti_total_system", ctypes.c_uint64),
45 ("pti_threads_user", ctypes.c_uint64),
46 ("pti_threads_system", ctypes.c_uint64),
47 ("pti_policy", ctypes
[all...]
H A Dwin_platform_backend.py6 import ctypes namespace
49 class PerformanceInfo(ctypes.Structure):
53 _fields_ = [('size', ctypes.c_ulong),
54 ('CommitTotal', ctypes.c_size_t),
55 ('CommitLimit', ctypes.c_size_t),
56 ('CommitPeak', ctypes.c_size_t),
57 ('PhysicalTotal', ctypes.c_size_t),
58 ('PhysicalAvailable', ctypes.c_size_t),
59 ('SystemCache', ctypes.c_size_t),
60 ('KernelTotal', ctypes
[all...]
/external/llvm/bindings/python/llvm/
H A Ddisassembler.py10 from ctypes import CFUNCTYPE
11 from ctypes import POINTER
12 from ctypes import addressof
13 from ctypes import byref
14 from ctypes import c_byte
15 from ctypes import c_char_p
16 from ctypes import c_int
17 from ctypes import c_size_t
18 from ctypes import c_ubyte
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 Dcore.py16 from ctypes import POINTER
17 from ctypes import byref
18 from ctypes import c_char_p
H A Dobject.py80 from ctypes import c_char_p
81 from ctypes import c_uint64
/external/v8/tools/
H A Dgrokdump.py30 import ctypes namespace
76 self.size = ctypes.sizeof(self.ctype)
99 class Raw(ctypes.Structure):
113 ("signature", ctypes.c_uint32),
114 ("version", ctypes.c_uint32),
115 ("stream_count", ctypes.c_uint32),
116 ("stream_directories_rva", ctypes.c_uint32),
117 ("checksum", ctypes.c_uint32),
118 ("time_date_stampt", ctypes.c_uint32),
119 ("flags", ctypes
[all...]
H A Dll_prof.py32 import ctypes namespace
335 "ia32": ctypes.c_uint32,
336 "arm": ctypes.c_uint32,
337 "mips": ctypes.c_uint32,
338 "x64": ctypes.c_uint64
362 ("name_size", ctypes.c_int32),
364 ("code_size", ctypes.c_int32)])
375 ("position", ctypes.c_int32)])
388 self.log_pos += ctypes.sizeof(event)
418 self.log_pos += ctypes
[all...]
/external/chromium_org/v8/tools/
H A Dgrokdump.py33 import ctypes namespace
78 self.size = ctypes.sizeof(self.ctype)
101 class Raw(ctypes.Structure):
136 byte = ctypes.c_uint8.from_buffer(reader.minidump, slot + i).value
176 ("signature", ctypes.c_uint32),
177 ("version", ctypes.c_uint32),
178 ("stream_count", ctypes.c_uint32),
179 ("stream_directories_rva", ctypes.c_uint32),
180 ("checksum", ctypes.c_uint32),
181 ("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
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/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/chrome/test/mini_installer/
H A Dchrome_helper.py7 import ctypes namespace
24 process_handle = ctypes.windll.kernel32.OpenProcess(
/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/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/chrome/test/functional/media/
H A Daudio_tools.py17 import ctypes namespace
67 ctypes.windll.kernel32.Wow64DisableWow64FsRedirection(
68 ctypes.byref(ctypes.c_long()))
/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/win/toolchain/
H A Dget_toolchain_if_necessary.py5 import ctypes.wintypes namespace
16 GetFileAttributes = ctypes.windll.kernel32.GetFileAttributesW
17 GetFileAttributes.argtypes = (ctypes.wintypes.LPWSTR,)
18 GetFileAttributes.restype = ctypes.wintypes.DWORD
H A Dtoolchain.py9 import ctypes namespace
24 buf = ctypes.create_unicode_buffer(260)
25 size = ctypes.windll.kernel32.GetLongPathNameW(unicode(path), buf, 260)
/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/chrome/test/functional/
H A Dtest_utils.py6 import ctypes namespace
180 free_bytes = ctypes.c_ulonglong(0)
181 ctypes.windll.kernel32.GetDiskFreeSpaceExW(
182 ctypes.c_wchar_p(os.path.dirname(path)), None, None,
183 ctypes.pointer(free_bytes))
H A Dnacl_sdk.py7 import ctypes namespace
/external/chromium_org/v8/tools/testrunner/local/
H A Dcommands.py58 import ctypes namespace
60 ctypes.windll.kernel32.SetErrorMode(mode) #@UndefinedVariable
/external/chromium_org/tools/gyp/pylib/gyp/generator/
H A Dninja.py1527 import ctypes namespace
1529 class MEMORYSTATUSEX(ctypes.Structure):
1531 ("dwLength", ctypes.c_ulong),
1532 ("dwMemoryLoad", ctypes.c_ulong),
1533 ("ullTotalPhys", ctypes.c_ulonglong),
1534 ("ullAvailPhys", ctypes.c_ulonglong),
1535 ("ullTotalPageFile", ctypes.c_ulonglong),
1536 ("ullAvailPageFile", ctypes.c_ulonglong),
1537 ("ullTotalVirtual", ctypes.c_ulonglong),
1538 ("ullAvailVirtual", ctypes
[all...]

Completed in 3397 milliseconds

12