HomeSort by relevance Sort by last modified time
    Searched refs:ctypes (Results 26 - 50 of 443) sorted by null

12 3 4 5 6 7 8 91011>>

  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_refcounts.py 2 import ctypes
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
66 doctest.testmod(ctypes.test.test_objects)
70 doctest.testmod(ctypes.test.test_objects)
  /external/python/cpython2/Lib/ctypes/test/
test_unicode.py 3 import ctypes
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.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
63 failures, tests = doctest.testmod(ctypes.test.test_objects)
67 doctest.testmod(ctypes.test.test_objects)
  /external/autotest/client/site_tests/kernel_CryptoAPI/
kernel_CryptoAPI.py 13 import ctypes
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 may tr
    [all...]
  /external/chromium-trace/catapult/common/py_trace_event/py_trace_event/
trace_time.py 5 import ctypes
6 import ctypes.util
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.util.find_library('c')
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/
genwincodec.py 6 import ctypes
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/python/cpython2/Tools/unicode/
genwincodec.py 6 import ctypes
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)
  /prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/
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
66 doctest.testmod(ctypes.test.test_objects)
70 doctest.testmod(ctypes.test.test_objects)
  /prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/
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
66 doctest.testmod(ctypes.test.test_objects)
70 doctest.testmod(ctypes.test.test_objects)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
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
66 doctest.testmod(ctypes.test.test_objects)
70 doctest.testmod(ctypes.test.test_objects)
  /external/llvm/bindings/python/llvm/
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
  /external/python/cpython2/Lib/multiprocessing/
sharedctypes.py 2 # Module which supports allocation of ctypes objects from shared memory
36 import ctypes
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.c_long, 'L': ctypes.c_ulong
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/multiprocessing/
sharedctypes.py 2 # Module which supports allocation of ctypes objects from shared memory
36 import ctypes
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/gdb/linux-x86/lib/python2.7/multiprocessing/
sharedctypes.py 2 # Module which supports allocation of ctypes objects from shared memory
36 import ctypes
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/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
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
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...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
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
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.windll.kernel32.GetCurrentProcess(),
    [all...]
  /external/python/cpython2/Lib/test/
symlink_support.py 31 Ctypes symlink implementation since Python doesn't support
34 import ctypes.wintypes
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/python/cpython2/Tools/pybench/
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
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.windll.kernel32.GetCurrentProcess()
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
symlink_support.py 31 Ctypes symlink implementation since Python doesn't support
34 import ctypes.wintypes
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/gdb/linux-x86/lib/python2.7/test/
symlink_support.py 31 Ctypes symlink implementation since Python doesn't support
34 import ctypes.wintypes
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/darwin-x86/2.7.5/lib/python2.7/test/
symlink_support.py 31 Ctypes symlink implementation since Python doesn't support
34 import ctypes.wintypes
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/
symlink_support.py 31 Ctypes symlink implementation since Python doesn't support
34 import ctypes.wintypes
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...]
  /kernel/tests/net/test/
bpf.py 17 import ctypes
156 libc = ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True)
172 c_value = ctypes.c_uint32(value)
173 c_key = ctypes.c_uint32(key)
174 value_ptr = ctypes.addressof(c_value)
175 key_ptr = ctypes.addressof(c_key)
181 c_value = ctypes.c_uint32(0)
182 c_key = ctypes.c_uint32(key)
184 (map_fd, ctypes.addressof(c_key), ctypes.addressof(c_value), 0)
    [all...]

Completed in 482 milliseconds

12 3 4 5 6 7 8 91011>>