HomeSort by relevance Sort by last modified time
    Searched refs:ctypes (Results 1 - 25 of 192) sorted by null

1 2 3 4 5 6 7 8

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
runtests.py 16 import ctypes.test namespace
19 sys.exit(ctypes.test.main(ctypes.test))
test_errcheck.py 2 from ctypes import *
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_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_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)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
runtests.py 16 import ctypes.test namespace
19 sys.exit(ctypes.test.main(ctypes.test))
test_errcheck.py 2 from ctypes import *
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_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_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)
  /external/chromium_org/build/toolchain/
get_concurrent_links.py 19 import ctypes namespace
21 class MEMORYSTATUSEX(ctypes.Structure):
23 ("dwLength", ctypes.c_ulong),
24 ("dwMemoryLoad", ctypes.c_ulong),
25 ("ullTotalPhys", ctypes.c_ulonglong),
26 ("ullAvailPhys", ctypes.c_ulonglong),
27 ("ullTotalPageFile", ctypes.c_ulonglong),
28 ("ullAvailPageFile", ctypes.c_ulonglong),
29 ("ullTotalVirtual", ctypes.c_ulonglong),
30 ("ullAvailVirtual", ctypes.c_ulonglong)
    [all...]
  /external/chromium_org/tools/telemetry/third_party/pyserial/serial/tools/
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.c_void_p, ctypes.c_void_p, ctypes.c_void_p
    [all...]
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.wintypes import LPCST
    [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...]
win_console_handler.py 11 from ctypes import wintypes, WINFUNCTYPE
13 import ctypes namespace
33 SetConsoleCtrlHandler = ctypes.windll.kernel32.SetConsoleCtrlHandler
  /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...]
win_console_handler.py 11 from ctypes import wintypes, WINFUNCTYPE
13 import ctypes namespace
33 SetConsoleCtrlHandler = ctypes.windll.kernel32.SetConsoleCtrlHandler
  /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/tools/telemetry/telemetry/core/platform/
mac_platform_backend.py 5 import ctypes namespace
58 class ProcTaskInfo(ctypes.Structure):
60 _fields_ = [("pti_virtual_size", ctypes.c_uint64),
61 ("pti_resident_size", ctypes.c_uint64),
62 ("pti_total_user", ctypes.c_uint64),
63 ("pti_total_system", ctypes.c_uint64),
64 ("pti_threads_user", ctypes.c_uint64),
65 ("pti_threads_system", ctypes.c_uint64),
66 ("pti_policy", ctypes.c_int32),
67 ("pti_faults", ctypes.c_int32)
    [all...]
msr_server_win.py 19 import ctypes namespace
54 winring0 = ctypes.WinDLL(_WinRing0Path())
71 low = ctypes.c_uint()
72 high = ctypes.c_uint()
73 _winring0.Rdmsr(ctypes.c_uint(msr_number),
74 ctypes.byref(low), ctypes.byref(high))
  /external/llvm/bindings/python/llvm/
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 import c_void_
    [all...]
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

Completed in 346 milliseconds

1 2 3 4 5 6 7 8