/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...] |
/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...] |
/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/tools/telemetry/telemetry/core/platform/ |
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/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...] |