/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_incomplete.py | 6 # The incomplete pointer example from the tutorial 12 lpcell = POINTER("cell") 24 c1.next = pointer(c2) 25 c2.next = pointer(c1)
|
test_values.py | 45 # pointer to an array of struct _frozen entries. The end of the 54 ("code", POINTER(c_ubyte)), 56 FrozenTable = POINTER(struct_frozen) 59 # ft is a pointer to the struct_frozen entries: 62 # This is dangerous. We *can* iterate over a pointer, but 64 # violation;-) because the pointer instance has no size.
|
test_prototypes.py | 19 # and the pointer passed to (and returned by) the function would 76 func.argtypes = POINTER(c_int), 83 func.argtypes = POINTER(c_short), 86 func.argtypes = POINTER(c_double), 92 func.argtypes = POINTER(c_char), 101 self.assertEqual("a", func(pointer(ca))[0]) 116 self.assertEqual("a", func(pointer(ca))[0]) 131 self.assertEqual("a", func(pointer(ca))[0]) 135 func(pointer(c_int())) 175 func.argtypes = POINTER(c_wchar) [all...] |
test_slicing.py | 69 dll.my_strdup.restype = POINTER(c_char) 95 dll.my_strdup.restype = POINTER(c_byte) 143 dll.my_wcsdup.restype = POINTER(c_wchar) 144 dll.my_wcsdup.argtypes = POINTER(c_wchar), 160 dll.my_wcsdup.restype = POINTER(c_short) 162 dll.my_wcsdup.restype = POINTER(c_int) 164 dll.my_wcsdup.restype = POINTER(c_long)
|
test_as_parameter.py | 34 f.restype = POINTER(c_int) 35 f.argtypes = [POINTER(c_int)] 38 # function is still alive while the pointer (the result) is 43 self.assertEqual(pointer(v).contents.value, 42) 44 result = f(self.wrap(pointer(v))) 45 self.assertEqual(type(result), POINTER(c_int)) 49 result = f(self.wrap(pointer(v))) 52 p = pointer(c_int(99)) 158 dll._testfunc_byval.argtypes = (POINT, POINTER(POINT))
|
test_keeprefs.py | 93 x = pointer(i) 99 _fields_ = [("p", POINTER(c_char_p))] 104 x.p = pointer(i) 132 _fields_ = [("a", POINTER(POINT)), 133 ("b", POINTER(POINT))] 137 r.a = pointer(p1) 138 r.b = pointer(p1)
|
test_functions.py | 91 f.argtypes = [c_int, c_int, POINTER(c_int)] 187 f.restype = POINTER(c_int) 188 f.argtypes = [POINTER(c_int)] 191 # function is still alive while the pointer (the result) is 196 self.assertEqual(pointer(v).contents.value, 42) 197 result = f(pointer(v)) 198 self.assertEqual(type(result), POINTER(c_int)) 202 result = f(pointer(v)) 205 p = pointer(c_int(99)) 216 # of the pointer [all...] |
test_callbacks.py | 117 # POINTER(c_double), for example, is not supported. 119 prototype = self.functype.im_func(POINTER(c_double)) 190 @CFUNCTYPE(c_int, POINTER(c_int), POINTER(c_int))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_incomplete.py | 6 # The incomplete pointer example from the tutorial 12 lpcell = POINTER("cell") 24 c1.next = pointer(c2) 25 c2.next = pointer(c1)
|
test_values.py | 45 # pointer to an array of struct _frozen entries. The end of the 54 ("code", POINTER(c_ubyte)), 56 FrozenTable = POINTER(struct_frozen) 59 # ft is a pointer to the struct_frozen entries: 62 # This is dangerous. We *can* iterate over a pointer, but 64 # violation;-) because the pointer instance has no size.
|
test_prototypes.py | 19 # and the pointer passed to (and returned by) the function would 76 func.argtypes = POINTER(c_int), 83 func.argtypes = POINTER(c_short), 86 func.argtypes = POINTER(c_double), 92 func.argtypes = POINTER(c_char), 101 self.assertEqual("a", func(pointer(ca))[0]) 116 self.assertEqual("a", func(pointer(ca))[0]) 131 self.assertEqual("a", func(pointer(ca))[0]) 135 func(pointer(c_int())) 175 func.argtypes = POINTER(c_wchar) [all...] |
test_slicing.py | 69 dll.my_strdup.restype = POINTER(c_char) 95 dll.my_strdup.restype = POINTER(c_byte) 143 dll.my_wcsdup.restype = POINTER(c_wchar) 144 dll.my_wcsdup.argtypes = POINTER(c_wchar), 160 dll.my_wcsdup.restype = POINTER(c_short) 162 dll.my_wcsdup.restype = POINTER(c_int) 164 dll.my_wcsdup.restype = POINTER(c_long)
|
test_as_parameter.py | 34 f.restype = POINTER(c_int) 35 f.argtypes = [POINTER(c_int)] 38 # function is still alive while the pointer (the result) is 43 self.assertEqual(pointer(v).contents.value, 42) 44 result = f(self.wrap(pointer(v))) 45 self.assertEqual(type(result), POINTER(c_int)) 49 result = f(self.wrap(pointer(v))) 52 p = pointer(c_int(99)) 158 dll._testfunc_byval.argtypes = (POINT, POINTER(POINT))
|
test_keeprefs.py | 93 x = pointer(i) 99 _fields_ = [("p", POINTER(c_char_p))] 104 x.p = pointer(i) 132 _fields_ = [("a", POINTER(POINT)), 133 ("b", POINTER(POINT))] 137 r.a = pointer(p1) 138 r.b = pointer(p1)
|
test_functions.py | 91 f.argtypes = [c_int, c_int, POINTER(c_int)] 187 f.restype = POINTER(c_int) 188 f.argtypes = [POINTER(c_int)] 191 # function is still alive while the pointer (the result) is 196 self.assertEqual(pointer(v).contents.value, 42) 197 result = f(pointer(v)) 198 self.assertEqual(type(result), POINTER(c_int)) 202 result = f(pointer(v)) 205 p = pointer(c_int(99)) 216 # of the pointer [all...] |
test_callbacks.py | 117 # POINTER(c_double), for example, is not supported. 119 prototype = self.functype.im_func(POINTER(c_double)) 190 @CFUNCTYPE(c_int, POINTER(c_int), POINTER(c_int))
|
/prebuilts/misc/common/swig/include/2.0.11/typemaps/ |
implicit.swg | 90 %typemap_traits_ptr(%checkcode(POINTER),Type); 126 %typemap_traits_ptr(%checkcode(POINTER),Type); 165 %typemap_traits_ptr(%checkcode(POINTER),Type); 207 %typemap_traits_ptr(%checkcode(POINTER),Type);
|
/external/chromium_org/tools/telemetry/third_party/pyserial/serial/ |
win32.py | 18 # ULONG_PTR is a an ordinary number, not a pointer and contrary to the name it 31 LPSECURITY_ATTRIBUTES = POINTER(_SECURITY_ATTRIBUTES) 78 LPOVERLAPPED = POINTER(_OVERLAPPED) 79 LPDWORD = POINTER(DWORD) 109 LPCOMSTAT = POINTER(_COMSTAT) 127 LPDCB = POINTER(_DCB) 133 LPCOMMTIMEOUTS = POINTER(_COMMTIMEOUTS) 233 ('Pointer', PVOID),
|
/external/chromium_org/third_party/jinja2/ |
debug.py | 287 ('ob_type', ctypes.POINTER(_PyObject)) 295 ('_ob_next', ctypes.POINTER(_PyObject)), 296 ('_ob_prev', ctypes.POINTER(_PyObject)), 298 ('ob_type', ctypes.POINTER(_PyObject)) 304 ('tb_next', ctypes.POINTER(_Traceback)), 305 ('tb_frame', ctypes.POINTER(_PyObject)), 320 obj.tb_next = ctypes.POINTER(_Traceback)() 324 obj.tb_next = ctypes.pointer(next)
|
/external/llvm/bindings/python/llvm/ |
common.py | 10 from ctypes import POINTER 26 c_object_p = POINTER(c_void_p)
|
/external/chromium_org/third_party/libjpeg_turbo/simd/ |
jsimdcfg.inc.h | 87 %define JSAMPROW POINTER ; JSAMPLE FAR * (jpeglib.h) 88 %define JSAMPARRAY POINTER ; JSAMPROW * (jpeglib.h) 89 %define JSAMPIMAGE POINTER ; JSAMPARRAY * (jpeglib.h) 90 %define JCOEFPTR POINTER ; JCOEF FAR * (jpeglib.h) 100 ; A forward DCT routine is given a pointer to a work area of type DCTELEM[];
|
/external/chromium_org/tools/telemetry/third_party/pyserial/serial/tools/ |
list_ports_windows.py | 27 LPDWORD = PDWORD = ctypes.POINTER(DWORD) 28 #~ LPBYTE = PBYTE = ctypes.POINTER(BYTE) 72 PSP_DEVINFO_DATA = ctypes.POINTER(SP_DEVINFO_DATA) 82 SetupDiClassGuidsFromName.argtypes = [PCTSTR, ctypes.POINTER(GUID), DWORD, PDWORD] 90 SetupDiGetClassDevs.argtypes = [ctypes.POINTER(GUID), PCTSTR, HWND, DWORD]
|
/frameworks/native/opengl/libs/GLES_trace/tools/ |
genapi.py | 47 if self.name == "pointer": # pointers map to the INT64 DataType 57 elif self.name == "pointer": 77 DataType.POINTER = DataType("pointer") 102 "GLeglImageOES":DataType.POINTER, 105 "GLsync":DataType.POINTER, 106 "GLDEBUGPROCKHR":DataType.POINTER, 193 <!--(if argtype == DataType.POINTER)--> 197 <!--(if retDataType == DataType.POINTER)--> 215 All pointer declarations are of type DataType.POINTE [all...] |
/external/chromium_org/v8/src/ |
string-stream.h | 58 FmtElm(void* value) : type_(POINTER) { // NOLINT 64 enum Type { INT, DOUBLE, C_STR, LC_STR, OBJ, HANDLE, POINTER };
|
/external/clang/bindings/python/tests/cindex/ |
test_type.py | 69 assert fields[6].type.kind == TypeKind.POINTER 74 assert fields[7].type.kind == TypeKind.POINTER 75 assert fields[7].type.get_pointee().kind == TypeKind.POINTER 76 assert fields[7].type.get_pointee().get_pointee().kind == TypeKind.POINTER 113 assert fields[0].type.get_array_element_type().kind == TypeKind.POINTER
|