/external/autotest/client/common_lib/ |
H A D | i2c_slave.py | 11 import ctypes, logging namespace 34 lib_obj: ctypes library object to interface with SMOGCHECK_C_LIB. 66 return ctypes.cdll.LoadLibrary(self.load_lib) 179 if self.lib_obj.WriteWord(self.fd, reg, ctypes.c_uint16(word)) < 0:
|
/external/autotest/client/deps/pyxinput/src/ |
H A D | xi2reader.py | 6 import ctypes namespace 35 mask.mask = ctypes.cast((ctypes.c_ubyte * mask.mask_len)(), 36 ctypes.POINTER(ctypes.c_ubyte)) 44 xi2.XISelectEvents(self._display, self._window, ctypes.pointer(mask), 1) 45 xlib.XSelectInput(self._display, self._window, ctypes.c_long(0)) 67 num_devices = ctypes.c_int() 69 ctypes.pointer(num_devices)).contents 74 valuator_class_info = ctypes [all...] |
/external/chromium-trace/catapult/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/v8/tools/testrunner/local/ |
H A D | commands.py | 44 import ctypes namespace 46 ctypes.windll.kernel32.SetErrorMode(mode) #@UndefinedVariable
|
/external/webrtc/tools/network_emulator/ |
H A D | network_emulator.py | 12 import ctypes namespace 98 if ctypes.windll.shell32.IsUserAnAdmin() == 0:
|
/external/llvm/bindings/python/llvm/ |
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...] |
/external/autotest/client/site_tests/kernel_CryptoAPI/ |
H A D | kernel_CryptoAPI.py | 13 import ctypes namespace 22 class sockaddr_alg(ctypes.Structure): 35 ('salg_family', ctypes.c_uint16), 36 ('salg_type', ctypes.c_char * 14), 37 ('salg_feat', ctypes.c_uint32), 38 ('salg_mask', ctypes.c_uint32), 39 ('salg_name', ctypes.c_char * 64), 84 Use ctypes to run a digest through one of the available kernel ifalg 94 libc = ctypes.CDLL("libc.so.6", use_errno=True) 96 # If you don't specify the function parameters this way, ctypes ma [all...] |
/external/autotest/site_utils/ |
H A D | log_socket_server.py | 13 import ctypes namespace 125 server_started = multiprocessing.Value(ctypes.c_bool, False) 126 port = multiprocessing.Value(ctypes.c_int, 0)
|
H A D | rpc_logserver.py | 9 import ctypes namespace 47 server_started = multiprocessing.Value(ctypes.c_bool, False)
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/ |
H A D | msr_server_win.py | 19 import ctypes namespace 60 winring0 = ctypes.WinDLL(_WinRing0Path()) 77 low = ctypes.c_uint() 78 high = ctypes.c_uint() 79 _winring0.Rdmsr(ctypes.c_uint(msr_number), 80 ctypes.byref(low), ctypes.byref(high))
|
H A D | mac_platform_backend.py | 5 import ctypes namespace 61 class ProcTaskInfo(ctypes.Structure): 63 _fields_ = [("pti_virtual_size", ctypes.c_uint64), 64 ("pti_resident_size", ctypes.c_uint64), 65 ("pti_total_user", ctypes.c_uint64), 66 ("pti_total_system", ctypes.c_uint64), 67 ("pti_threads_user", ctypes.c_uint64), 68 ("pti_threads_system", ctypes.c_uint64), 69 ("pti_policy", ctypes.c_int32), 70 ("pti_faults", ctypes [all...] |
H A D | win_platform_backend.py | 8 import ctypes namespace 291 class PerformanceInfo(ctypes.Structure): 295 _fields_ = [('size', ctypes.c_ulong), 296 ('CommitTotal', ctypes.c_size_t), 297 ('CommitLimit', ctypes.c_size_t), 298 ('CommitPeak', ctypes.c_size_t), 299 ('PhysicalTotal', ctypes.c_size_t), 300 ('PhysicalAvailable', ctypes.c_size_t), 301 ('SystemCache', ctypes.c_size_t), 302 ('KernelTotal', ctypes [all...] |
/external/selinux/libsemanage/utils/ |
H A D | semanage_migrate_store | 11 import ctypes namespace 13 sepol = ctypes.cdll.LoadLibrary('libsepol.so.1')
|
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/ |
H A D | trace_time.py | 5 import ctypes namespace 6 import ctypes.util namespace 56 libc = ctypes.CDLL('/usr/lib/libc.dylib', use_errno=True) 57 class MachTimebaseInfoData(ctypes.Structure): 59 _fields_ = (('numer', ctypes.c_uint32), 60 ('denom', ctypes.c_uint32)) 63 mach_absolute_time.restype = ctypes.c_uint64 66 libc.mach_timebase_info(ctypes.byref(timebase)) 92 clock_gettime = ctypes.CDLL(ctypes [all...] |
/external/chromium-trace/catapult/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...] |
/external/libmojo/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/libyuv/files/ |
H A D | setup_links.py | 22 import ctypes namespace 241 if not ctypes.windll.kernel32.CreateSymbolicLinkW( 468 return ctypes.windll.shell32.IsUserAnAdmin() != 0
|
/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/webrtc/ |
H A D | setup_links.py | 22 import ctypes namespace 262 if not ctypes.windll.kernel32.CreateSymbolicLinkW( 489 return ctypes.windll.shell32.IsUserAnAdmin() != 0
|
/external/clang/bindings/python/tests/cindex/ |
H A D | test_cursor.py | 1 import ctypes namespace
|
/external/skia/gm/ |
H A D | showmiplevels.cpp | 286 const SkColorType ctypes[] = { local 292 for (auto ctype : ctypes) {
|
/external/vulkan-validation-layers/ |
H A D | vk-layer-introspect.py | 18 import ctypes namespace 26 VKAPI_DLL = ctypes.windll 27 VKAPI_FUNCTYPE = ctypes.WINFUNCTYPE 29 VKAPI_DLL = ctypes.cdll 30 VKAPI_FUNCTYPE = ctypes.CFUNCTYPE 34 VkInstance = ctypes.c_void_p 35 VkPhysicalDevice = ctypes.c_void_p 36 VkDevice = ctypes.c_void_p 37 VkResult = ctypes.c_int 40 class VkLayerProperties(ctypes [all...] |
/external/chromium-trace/catapult/telemetry/third_party/tsproxy/ |
H A D | tsproxy.py | 708 import ctypes namespace 709 winmm = ctypes.WinDLL('winmm')
|
/external/pcre/dist2/src/ |
H A D | pcre2_substitute.c | 482 const uint8_t *ctypes = code->tables + ctypes_offset; local 483 while (MAX_255(next) && (ctypes[next] & ctype_word) != 0)
|