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

1 2 3

  /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_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)
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...]
  /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_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)
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...]
  /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)
win_console_handler.py 11 from ctypes import wintypes, WINFUNCTYPE
13 import ctypes namespace
33 SetConsoleCtrlHandler = ctypes.windll.kernel32.SetConsoleCtrlHandler
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)
win_console_handler.py 11 from ctypes import wintypes, WINFUNCTYPE
13 import ctypes namespace
33 SetConsoleCtrlHandler = ctypes.windll.kernel32.SetConsoleCtrlHandler
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/darwin-x86/2.7.5/lib/python2.7/lib-tk/
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)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib-tk/
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/chromium_org/chrome/test/mini_installer/
chrome_helper.py 7 import ctypes namespace
24 process_handle = ctypes.windll.kernel32.OpenProcess(
  /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...]
  /external/chromium_org/v8/tools/testrunner/local/
commands.py 58 import ctypes namespace
60 ctypes.windll.kernel32.SetErrorMode(mode) #@UndefinedVariable
  /external/lldb/examples/summaries/cocoa/
CFBag.py 11 import ctypes namespace
CFBinaryHeap.py 11 import ctypes namespace
NSBundle.py 11 import ctypes namespace
NSData.py 11 import ctypes namespace
NSIndexSet.py 11 import ctypes namespace
NSMachPort.py 11 import ctypes namespace
NSNumber.py 11 import ctypes namespace
49 return '(char)' + str(ord(ctypes.c_char(chr(self.data % 256)).value))
51 return '(short)' + str(ctypes.c_short(self.data % (256*256)).value)
53 return '(int)' + str(ctypes.c_int(self.data % (256*256*256*256)).value)
55 return '(long)' + str(ctypes.c_long(self.data).value)
110 return '(char)' + str(ord(ctypes.c_char(chr(data_vo.GetValueAsUnsigned(0))).value))
116 return '(short)' + str(ctypes.c_short(data_vo.GetValueAsUnsigned(0) % (256*256)).value)
125 return '(int)' + str(ctypes.c_int(data_vo.GetValueAsUnsigned(0)% (256*256*256*256)).value)
134 return '(long)' + str(ctypes.c_long(data_vo.GetValueAsUnsigned(0)).value)
142 return '(long)' + str(ctypes.c_long(data_vo.GetValueAsUnsigned(0)).value
    [all...]
  /external/llvm/bindings/python/llvm/
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.util.find_library()
    [all...]

Completed in 1518 milliseconds

1 2 3