/external/python/cpython2/Lib/ctypes/test/ |
H A D | runtests.py | 16 import ctypes.test namespace 19 sys.exit(ctypes.test.main(ctypes.test))
|
H A D | test_objects.py | 2 This tests the '_objects' attribute of ctypes instances. '_objects' 4 ctypes instance, to make sure that the memory buffer is valid. 6 WARNING: The '_objects' attribute is exposed ONLY for debugging ctypes itself, 14 >>> from ctypes import * 30 It gets more complicated when the ctypes instance itself is contained 45 <ctypes.test.test_objects.X object at 0x...> 59 import ctypes.test.test_objects namespace 63 failures, tests = doctest.testmod(ctypes.test.test_objects) 67 doctest.testmod(ctypes.test.test_objects)
|
H A D | test_refcounts.py | 2 import ctypes namespace 5 MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int) 6 OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong) 9 dll = ctypes.CDLL(_ctypes_test.__file__) 17 f.restype = ctypes [all...] |
H A D | test_unicode.py | 3 import ctypes namespace 4 from ctypes.test import need_symbol 11 dll = ctypes.CDLL(_ctypes_test.__file__) 13 cls.wcslen.argtypes = [ctypes.c_wchar_p] 15 self.prev_conv_mode = ctypes.set_conversion_mode("ascii", "strict") 18 ctypes.set_conversion_mode(*self.prev_conv_mode) 22 ctypes.set_conversion_mode("ascii", "strict") 28 self.assertRaises(ctypes.ArgumentError, wcslen, "ab�") 32 ctypes.set_conversion_mode("ascii", "replace") 40 ctypes [all...] |
H A D | test_incomplete.py | 2 from ctypes import * 36 from ctypes import _pointer_type_cache
|
H A D | test_checkretval.py | 3 from ctypes import * 4 from ctypes.test import need_symbol
|
/external/chromium-trace/catapult/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/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/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/python/cpython2/Lib/test/ |
H A D | test_ctypes.py | 9 import ctypes.test namespace 10 skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0)
|
H A D | symlink_support.py | 34 import ctypes.wintypes namespace 35 CreateSymbolicLink = ctypes.windll.kernel32.CreateSymbolicLinkW 37 ctypes.wintypes.LPWSTR, 38 ctypes.wintypes.LPWSTR, 39 ctypes.wintypes.DWORD, 41 CreateSymbolicLink.restype = ctypes.wintypes.BOOLEAN 62 result_buffer = ctypes.wintypes.LPWSTR() 65 bytes = ctypes.windll.kernel32.FormatMessageW( 70 ctypes.byref(result_buffer), 79 ctypes [all...] |
H A D | win_console_handler.py | 11 from ctypes import wintypes, WINFUNCTYPE 13 import ctypes namespace 33 SetConsoleCtrlHandler = ctypes.windll.kernel32.SetConsoleCtrlHandler
|
/external/python/cpython2/Tools/unicode/ |
H A D | genwincodec.py | 6 import ctypes namespace 7 from ctypes import wintypes 12 MultiByteToWideChar = ctypes.windll.kernel32.MultiByteToWideChar 14 wintypes.LPCSTR, ctypes.c_int, 15 wintypes.LPWSTR, ctypes.c_int] 16 MultiByteToWideChar.restype = ctypes.c_int 24 buf = ctypes.create_unicode_buffer(2)
|
/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/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...] |
/external/python/cpython2/Lib/multiprocessing/ |
H A D | sharedctypes.py | 2 # Module which supports allocation of ctypes objects from shared memory 36 import ctypes namespace 49 'c': ctypes.c_char, 50 'b': ctypes.c_byte, 'B': ctypes.c_ubyte, 51 'h': ctypes.c_short, 'H': ctypes.c_ushort, 52 'i': ctypes.c_int, 'I': ctypes.c_uint, 53 'l': ctypes [all...] |
/external/python/cpython2/Lib/test/leakers/ |
H A D | test_ctypes.py | 2 # Taken from Lib/ctypes/test/test_keeprefs.py, PointerToStructure.test(). 4 from ctypes import Structure, c_int, POINTER
|
/external/python/cpython2/Tools/pybench/ |
H A D | systimes.py | 11 package installed. Alternatively, the Thomas Heller ctypes 41 # * Add ctypes wrapper for new clock_gettime() real-time POSIX APIs; 51 USE_CTYPES_GETPROCESSTIMES = 'ctypes GetProcessTimes() wrapper' 64 import ctypes namespace 131 creationtime = ctypes.c_ulonglong() 132 exittime = ctypes.c_ulonglong() 133 kerneltime = ctypes.c_ulonglong() 134 usertime = ctypes.c_ulonglong() 135 rc = ctypes.windll.kernel32.GetProcessTimes( 136 ctypes [all...] |
/external/python/cpython2/Lib/lib-tk/ |
H A D | FixTk.py | 15 import ctypes namespace 16 ctypes.windll.kernel32.GetFinalPathNameByHandleW 24 hdir = ctypes.windll.kernel32.\ 33 buf = ctypes.create_unicode_buffer(u"", 32768) 34 res = ctypes.windll.kernel32.\ 37 ctypes.windll.kernel32.CloseHandle(hdir)
|
/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/chromium-trace/catapult/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/v8/tools/ |
H A D | grokdump.py | 35 import ctypes namespace 86 self.size = ctypes.sizeof(self.ctype) 109 class Raw(ctypes.Structure): 145 byte = ctypes.c_uint8.from_buffer(reader.minidump, slot + i).value 185 ("signature", ctypes.c_uint32), 186 ("version", ctypes.c_uint32), 187 ("stream_count", ctypes.c_uint32), 188 ("stream_directories_rva", ctypes.c_uint32), 189 ("checksum", ctypes.c_uint32), 190 ("time_date_stampt", ctypes [all...] |