/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
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.c_in [all...] |
test_unicode.py | 3 import ctypes namespace 6 ctypes.c_wchar 11 dll = ctypes.CDLL(_ctypes_test.__file__) 13 wcslen.argtypes = [ctypes.c_wchar_p] 18 self.prev_conv_mode = ctypes.set_conversion_mode("ascii", "strict") 21 ctypes.set_conversion_mode(*self.prev_conv_mode) 24 ctypes.set_conversion_mode("ascii", "strict") 30 self.assertRaises(ctypes.ArgumentError, wcslen, "ab?") 33 ctypes.set_conversion_mode("ascii", "replace") 40 ctypes.set_conversion_mode("ascii", "ignore" [all...] |
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 66 doctest.testmod(ctypes.test.test_objects) 70 doctest.testmod(ctypes.test.test_objects)
|
runtests.py | 16 import ctypes.test namespace 19 sys.exit(ctypes.test.main(ctypes.test))
|
test_delattr.py | 2 from ctypes import *
|
test_python_api.py | 1 from ctypes import * 3 from ctypes.test import is_resource_enabled 6 # This section should be moved into ctypes\__init__.py, when it's ready. 75 PyOS_snprintf(buf, sizeof(buf), "Hello from %s", "ctypes") 76 self.assertEqual(buf.value, "Hello from ctypes") 78 PyOS_snprintf(buf, sizeof(buf), "Hello from %s", "ctypes", 1, 2, 3) 79 self.assertEqual(buf.value, "Hello from ctypes")
|
test_incomplete.py | 2 from ctypes import * 36 from ctypes import _pointer_type_cache
|
test_errcheck.py | 2 from ctypes import *
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
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.c_in [all...] |
test_unicode.py | 3 import ctypes namespace 6 ctypes.c_wchar 11 dll = ctypes.CDLL(_ctypes_test.__file__) 13 wcslen.argtypes = [ctypes.c_wchar_p] 18 self.prev_conv_mode = ctypes.set_conversion_mode("ascii", "strict") 21 ctypes.set_conversion_mode(*self.prev_conv_mode) 24 ctypes.set_conversion_mode("ascii", "strict") 30 self.assertRaises(ctypes.ArgumentError, wcslen, "ab?") 33 ctypes.set_conversion_mode("ascii", "replace") 40 ctypes.set_conversion_mode("ascii", "ignore" [all...] |
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 66 doctest.testmod(ctypes.test.test_objects) 70 doctest.testmod(ctypes.test.test_objects)
|
runtests.py | 16 import ctypes.test namespace 19 sys.exit(ctypes.test.main(ctypes.test))
|
test_delattr.py | 2 from ctypes import *
|
test_python_api.py | 1 from ctypes import * 3 from ctypes.test import is_resource_enabled 6 # This section should be moved into ctypes\__init__.py, when it's ready. 75 PyOS_snprintf(buf, sizeof(buf), "Hello from %s", "ctypes") 76 self.assertEqual(buf.value, "Hello from ctypes") 78 PyOS_snprintf(buf, sizeof(buf), "Hello from %s", "ctypes", 1, 2, 3) 79 self.assertEqual(buf.value, "Hello from ctypes")
|
test_incomplete.py | 2 from ctypes import * 36 from ctypes import _pointer_type_cache
|
/external/chromium_org/tools/telemetry/telemetry/core/platform/ |
mac_platform_backend.py | 5 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.c_int32) [all...] |
win_platform_backend.py | 6 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.c_size_t) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_ctypes.py | 9 import ctypes.test namespace 10 skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0)
|
symlink_support.py | 31 Ctypes symlink implementation since Python doesn't support 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) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_ctypes.py | 9 import ctypes.test namespace 10 skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0)
|
symlink_support.py | 31 Ctypes symlink implementation since Python doesn't support 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) [all...] |
/external/v8/tools/ |
grokdump.py | 30 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.c_uint64 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/multiprocessing/ |
sharedctypes.py | 2 # Module which supports allocation of ctypes objects from shared memory 36 import ctypes namespace 49 'c': ctypes.c_char, 'u': ctypes.c_wchar, 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 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/multiprocessing/ |
sharedctypes.py | 2 # Module which supports allocation of ctypes objects from shared memory 36 import ctypes namespace 49 'c': ctypes.c_char, 'u': ctypes.c_wchar, 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 [all...] |
/external/chromium_org/v8/tools/ |
grokdump.py | 33 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.c_uint32) [all...] |