Searched refs:c_void_p (Results 1 - 25 of 46) sorted by relevance

12

/external/chromium-trace/catapult/third_party/pyserial/serial/tools/
H A Dlist_ports_osx.py31 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]
39 iokit.IOServiceGetMatchingServices.restype = ctypes.c_void_p
41 iokit.IORegistryEntryGetParentEntry.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p]
[all...]
/external/python/cpython3/Lib/ctypes/test/
H A Dtest_pointers.py25 if sizeof(c_longlong) == sizeof(c_void_p):
170 if sizeof(c_void_p) == 4:
171 self.assertEqual(c_void_p(0xFFFFFFFF).value,
172 c_void_p(-1).value)
173 self.assertEqual(c_void_p(0xFFFFFFFFFFFFFFFF).value,
174 c_void_p(-1).value)
175 elif sizeof(c_void_p) == 8:
176 self.assertEqual(c_void_p(0xFFFFFFFF).value,
178 self.assertEqual(c_void_p(0xFFFFFFFFFFFFFFFF).value,
179 c_void_p(
[all...]
H A Dtest_sizes.py26 self.assertEqual(sizeof(c_void_p), sizeof(c_size_t))
29 self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t))
H A Dtest_random_things.py15 windll.kernel32.LoadLibraryA.restype = c_void_p
16 windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p
17 windll.kernel32.GetProcAddress.restype = c_void_p
H A Dtest_loading.py77 f_ord_addr = c_void_p.from_address(a_ord).value
78 f_name_addr = c_void_p.from_address(a_name).value
105 windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p
106 windll.kernel32.GetProcAddress.restype = c_void_p
H A Dtest_prototypes.py53 # function returns c_void_p result,
55 prototype = CFUNCTYPE(c_void_p, c_void_p)
72 if sizeof(c_longlong) == sizeof(c_void_p):
126 func.argtypes = c_void_p,
146 func.argtypes = c_void_p,
153 func.restype = c_void_p
158 func.argtypes = c_void_p,
H A Dtest_win32.py11 @unittest.skipUnless(sizeof(c_void_p) == sizeof(c_int),
12 "sizeof c_void_p and c_int differ")
57 self.assertEqual(sizeof(wintypes.HWND), sizeof(c_void_p))
62 sizeof(c_void_p))
64 sizeof(c_void_p))
H A Dtest_parameters.py24 from ctypes import c_void_p, c_char_p namespace
26 class CVOIDP(c_void_p):
140 from ctypes import CDLL, c_void_p, ArgumentError namespace
143 func.restype = c_void_p
162 self.assertEqual(func(c_void_p(42)), 42)
/external/python/cpython2/Lib/ctypes/test/
H A Dtest_pointers.py167 if sizeof(c_void_p) == 4:
168 self.assertEqual(c_void_p(0xFFFFFFFFL).value,
169 c_void_p(-1).value)
170 self.assertEqual(c_void_p(0xFFFFFFFFFFFFFFFFL).value,
171 c_void_p(-1).value)
172 elif sizeof(c_void_p) == 8:
173 self.assertEqual(c_void_p(0xFFFFFFFFL).value,
175 self.assertEqual(c_void_p(0xFFFFFFFFFFFFFFFFL).value,
176 c_void_p(-1).value)
177 self.assertEqual(c_void_p(
[all...]
H A Dtest_sizes.py27 self.assertEqual(sizeof(c_void_p), sizeof(c_size_t))
30 self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t))
H A Dtest_random_things.py15 windll.kernel32.LoadLibraryA.restype = c_void_p
16 windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p
17 windll.kernel32.GetProcAddress.restype = c_void_p
H A Dtest_loading.py77 f_ord_addr = c_void_p.from_address(a_ord).value
78 f_name_addr = c_void_p.from_address(a_name).value
105 windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p
106 windll.kernel32.GetProcAddress.restype = c_void_p
H A Dtest_cast.py28 ptr = cast(c_void_p(address), POINTER(c_int))
76 self.assertEqual(cast(cast(s, c_void_p), c_char_p).value,
82 self.assertEqual(cast(cast(s, c_void_p), c_wchar_p).value,
H A Dtest_libc.py18 lib.my_qsort.argtypes = c_void_p, c_size_t, c_size_t, comparefunc
H A Dtest_win32.py12 @unittest.skipUnless(sizeof(c_void_p) == sizeof(c_int),
13 "sizeof c_void_p and c_int differ")
59 self.assertEqual(sizeof(wintypes.HWND), sizeof(c_void_p))
64 sizeof(c_void_p))
66 sizeof(c_void_p))
H A Dtest_prototypes.py53 # function returns c_void_p result,
55 prototype = CFUNCTYPE(c_void_p, c_void_p)
123 func.argtypes = c_void_p,
143 func.argtypes = c_void_p,
150 func.restype = c_void_p
155 func.argtypes = c_void_p,
H A Dtest_parameters.py25 from ctypes import c_void_p, c_char_p namespace
27 class CVOIDP(c_void_p):
145 from ctypes import CDLL, c_void_p, ArgumentError namespace
148 func.restype = c_void_p
167 self.assertEqual(func(c_void_p(42)), 42)
/external/python/cpython2/Lib/ctypes/
H A D__init__.py246 return "%s(%s)" % (self.__class__.__name__, cast(self, c_void_p).value)
249 return "%s(%s)" % (self.__class__.__name__, cast(self, c_void_p).value)
252 class c_void_p(_SimpleCData): class in inherits:_SimpleCData
254 c_voidp = c_void_p # backwards compatibility (to a bug)
255 _check_size(c_void_p)
271 _pointer_type_cache[None] = c_void_p
470 if sizeof(c_uint) == sizeof(c_void_p):
473 elif sizeof(c_ulong) == sizeof(c_void_p):
476 elif sizeof(c_ulonglong) == sizeof(c_void_p):
485 memmove = CFUNCTYPE(c_void_p, c_void_
[all...]
H A Dwintypes.py37 LPCVOID = LPVOID = c_void_p
41 if sizeof(c_long) == sizeof(c_void_p):
44 elif sizeof(c_longlong) == sizeof(c_void_p):
59 HANDLE = c_void_p # in the header files: void *
/external/python/cpython3/Lib/ctypes/
H A D__init__.py238 return "%s(%s)" % (self.__class__.__name__, c_void_p.from_buffer(self).value)
241 class c_void_p(_SimpleCData): class in inherits:_SimpleCData
243 c_voidp = c_void_p # backwards compatibility (to a bug)
244 _check_size(c_void_p)
254 return "%s(%s)" % (self.__class__.__name__, c_void_p.from_buffer(self).value)
268 _pointer_type_cache[None] = c_void_p
456 if sizeof(c_uint) == sizeof(c_void_p):
459 elif sizeof(c_ulong) == sizeof(c_void_p):
462 elif sizeof(c_ulonglong) == sizeof(c_void_p):
471 memmove = CFUNCTYPE(c_void_p, c_void_
[all...]
/external/llvm/bindings/python/llvm/
H A Ddisassembler.py19 from ctypes import c_void_p namespace
76 ptr = lib.LLVMCreateDisasm(c_char_p(triple), c_void_p(None), c_int(0),
150 library.LLVMCreateDisasm.argtypes = [c_char_p, c_void_p, c_int,
164 callbacks['op_info'] = CFUNCTYPE(c_int, c_void_p, c_uint64, c_uint64, c_uint64,
165 c_int, c_void_p)
166 callbacks['symbol_lookup'] = CFUNCTYPE(c_char_p, c_void_p, c_uint64,
H A Dcommon.py11 from ctypes import c_void_p namespace
26 c_object_p = POINTER(c_void_p)
/external/autotest/client/cros/graphics/
H A Dgbm.py79 l.gbm_bo_import.argtypes = [POINTER(gbm_device), c_uint, c_void_p, c_uint]
85 POINTER(c_void_p), c_size_t
87 l.gbm_bo_map.restype = c_void_p
89 l.gbm_bo_unmap.argtypes = [POINTER(gbm_bo), c_void_p]
139 self._map_p = c_void_p(0)
215 buffer_from_memory.argtypes = [c_void_p, c_ssize_t]
/external/python/cpython2/Lib/lib2to3/tests/data/
H A Dinfinite_recursion.py282 ('ctrl', CFUNCTYPE(c_long, POINTER(BIO), c_int, c_long, c_void_p)),
311 ('ptr', c_void_p),
463 CRYPTO_EX_new = CFUNCTYPE(c_int, c_void_p, c_void_p, POINTER(CRYPTO_EX_DATA), c_int, c_long, c_void_p)
464 CRYPTO_EX_free = CFUNCTYPE(None, c_void_p, c_void_p, POINTER(CRYPTO_EX_DATA), c_int, c_long, c_void_p)
465 CRYPTO_EX_dup = CFUNCTYPE(c_int, POINTER(CRYPTO_EX_DATA), POINTER(CRYPTO_EX_DATA), c_void_p, c_int, c_long, c_void_p)
[all...]
/external/python/cpython3/Lib/lib2to3/tests/data/
H A Dinfinite_recursion.py282 ('ctrl', CFUNCTYPE(c_long, POINTER(BIO), c_int, c_long, c_void_p)),
311 ('ptr', c_void_p),
463 CRYPTO_EX_new = CFUNCTYPE(c_int, c_void_p, c_void_p, POINTER(CRYPTO_EX_DATA), c_int, c_long, c_void_p)
464 CRYPTO_EX_free = CFUNCTYPE(None, c_void_p, c_void_p, POINTER(CRYPTO_EX_DATA), c_int, c_long, c_void_p)
465 CRYPTO_EX_dup = CFUNCTYPE(c_int, POINTER(CRYPTO_EX_DATA), POINTER(CRYPTO_EX_DATA), c_void_p, c_int, c_long, c_void_p)
[all...]

Completed in 298 milliseconds

12