Home
last modified time | relevance | path

Searched refs:PyObject (Results 1 – 25 of 46) sorted by relevance

12

/external/llvm/test/CodeGen/X86/
D2007-08-09-IllegalX86-64Asm.ll5 …ype { i64 (%struct.PyObject*, i64, i8**)*, i64 (%struct.PyObject*, i64, i8**)*, i64 (%struct.PyObj…
6 …uct.PyGetSetDef = type { i8*, %struct.PyObject* (%struct.PyObject*, i8*)*, i32 (%struct.PyObject*,…
7 …4 (%struct.PyObject*)*, %struct.PyObject* (%struct.PyObject*, %struct.PyObject*)*, i32 (%struct.Py…
9 …%struct.PyMethodDef = type { i8*, %struct.PyObject* (%struct.PyObject*, %struct.PyObject*)*, i32, …
10PyObject* (%struct.PyObject*, %struct.PyObject*)*, %struct.PyObject* (%struct.PyObject*, %struct.P…
11 %struct.PyObject = type { i64, %struct._typeobject* }
12PyObject*)*, %struct.PyObject* (%struct.PyObject*, %struct.PyObject*)*, %struct.PyObject* (%struct…
13 %struct.PyTupleObject = type { i64, %struct._typeobject*, i64, [1 x %struct.PyObject*] }
16PyObject*)*, i32 (%struct.PyObject*, %struct.FILE*, i32)*, %struct.PyObject* (%struct.PyObject*, i…
21 define %struct.PyObject* @ubyte_divmod(%struct.PyObject* %a, %struct.PyObject* %b) {
[all …]
/external/libxml2/python/
Dlibxml.c45 PyObject *PyInit_libxml2mod(void);
75 PyObject *function;
107 PyObject *
108 libxml_xmlMemoryUsed(PyObject * self ATTRIBUTE_UNUSED, in libxml_xmlMemoryUsed()
109 PyObject * args ATTRIBUTE_UNUSED) in libxml_xmlMemoryUsed()
112 PyObject *py_retval; in libxml_xmlMemoryUsed()
120 PyObject *
121 libxml_xmlDebugMemory(PyObject * self ATTRIBUTE_UNUSED, PyObject * args) in libxml_xmlDebugMemory()
124 PyObject *py_retval; in libxml_xmlDebugMemory()
185 PyObject *
[all …]
Dlibxml_wrap.h173 FILE *libxml_PyFileGet(PyObject *f);
234 PyObject * libxml_intWrap(int val);
235 PyObject * libxml_longWrap(long val);
236 PyObject * libxml_xmlCharPtrWrap(xmlChar *str);
237 PyObject * libxml_constxmlCharPtrWrap(const xmlChar *str);
238 PyObject * libxml_charPtrWrap(char *str);
239 PyObject * libxml_constcharPtrWrap(const char *str);
240 PyObject * libxml_charPtrConstWrap(const char *str);
241 PyObject * libxml_xmlCharPtrConstWrap(const xmlChar *str);
242 PyObject * libxml_xmlDocPtrWrap(xmlDocPtr doc);
[all …]
Dtypes.c28 libxml_PyFileGet(PyObject *f) { in libxml_PyFileGet()
89 PyObject *
92 PyObject *ret; in libxml_intWrap()
101 PyObject *
104 PyObject *ret; in libxml_longWrap()
113 PyObject *
116 PyObject *ret; in libxml_doubleWrap()
125 PyObject *
128 PyObject *ret; in libxml_charPtrWrap()
142 PyObject *
[all …]
/external/protobuf/python/google/protobuf/pyext/
Dmessage.h104 PyObject* composite_fields;
117 PyObject* NewEmpty(PyObject* type);
131 PyObject* InternalGetSubMessage(CMessage* self,
145 PyObject* slice, PyObject* cmessage_list);
150 PyObject* value);
155 PyObject* InternalGetScalar(CMessage* self,
162 PyObject* Clear(CMessage* self);
171 PyObject* ClearFieldByDescriptor(
179 PyObject* ClearField(CMessage* self, PyObject* arg);
185 PyObject* HasFieldByDescriptor(
[all …]
Dmessage.cc47 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
84 static PyObject* GetDescriptor(CMessage* self, PyObject* name);
88 PyObject* composite_field,
117 PyObject* child, in VisitCompositeField()
147 PyObject* key; in ForEachCompositeField()
148 PyObject* field; in ForEachCompositeField()
152 PyObject* cdescriptor = cmessage::GetDescriptor(self, key); in ForEachCompositeField()
179 PyObject* kPythonZero;
180 PyObject* kint32min_py;
181 PyObject* kint32max_py;
[all …]
Dextension_dict.cc65 CFieldDescriptor* InternalGetCDescriptorFromExtension(PyObject* extension) { in InternalGetCDescriptorFromExtension()
66 PyObject* cdescriptor = PyObject_GetAttrString(extension, "_cdescriptor"); in InternalGetCDescriptorFromExtension()
81 PyObject* len(ExtensionDict* self) { in len()
91 PyObject* extension, in ReleaseExtension()
120 PyObject* subscript(ExtensionDict* self, PyObject* key) { in subscript()
126 ScopedPyObjectPtr py_cdescriptor(reinterpret_cast<PyObject*>(cdescriptor)); in subscript()
136 PyObject* value = PyDict_GetItem(self->values, key); in subscript()
144 PyObject* sub_message = cmessage::InternalGetSubMessage( in subscript()
156 PyObject* py_container = PyObject_CallObject( in subscript()
157 reinterpret_cast<PyObject*>(&RepeatedCompositeContainer_Type), in subscript()
[all …]
Dextension_dict.h63 PyObject* values;
74 CFieldDescriptor* InternalGetCDescriptorFromExtension(PyObject* extension);
79 PyObject* len(ExtensionDict* self);
86 PyObject* extension,
92 PyObject* subscript(ExtensionDict* self, PyObject* key);
98 int ass_subscript(ExtensionDict* self, PyObject* key, PyObject* value);
104 PyObject* ClearExtension(ExtensionDict* self,
105 PyObject* extension);
110 PyObject* HasExtension(ExtensionDict* self, PyObject* extension);
116 PyObject* _FindExtensionByName(ExtensionDict* self, PyObject* name);
Drepeated_composite_container.h95 PyObject* subclass_init;
98 PyObject* child_messages;
113 PyObject* Add(RepeatedCompositeContainer* self,
114 PyObject* args,
115 PyObject* kwargs);
121 PyObject* Extend(RepeatedCompositeContainer* self, PyObject* value);
128 PyObject* MergeFrom(RepeatedCompositeContainer* self, PyObject* other);
134 PyObject* Subscript(RepeatedCompositeContainer* self, PyObject* slice);
140 PyObject* slice,
141 PyObject* value);
Drepeated_composite_container.cc80 static PyObject* GetKey(PyObject* x) { in GetKey()
95 static int islt(PyObject *x, PyObject *y, PyObject *compare) { in islt()
116 PyObject* cmp, in InternalQuickSort()
117 PyObject* keyfunc) { in InternalQuickSort()
129 PyObject* children = self->child_messages; in InternalQuickSort()
166 PyObject* tmp = PyList_GET_ITEM(children, left); in InternalQuickSort()
248 static PyObject* AddToAttached(RepeatedCompositeContainer* self, in AddToAttached()
249 PyObject* args, in AddToAttached()
250 PyObject* kwargs) { in AddToAttached()
262 PyObject* py_cmsg = cmessage::NewEmpty(self->subclass_init); in AddToAttached()
[all …]
Ddescriptor.h58 PyObject* descriptor_field;
77 PyObject* FindFieldByName(CDescriptorPool* self, PyObject* name);
83 PyObject* FindExtensionByName(CDescriptorPool* self, PyObject* arg);
87 PyObject* Python_NewCDescriptorPool(PyObject* ignored, PyObject* args);
88 PyObject* Python_BuildFile(PyObject* ignored, PyObject* args);
Dscoped_pyobject_ptr.h43 explicit ScopedPyObjectPtr(PyObject* p = NULL) : ptr_(p) { } in ptr_()
53 PyObject* reset(PyObject* p = NULL) {
62 PyObject* release() { in release()
63 PyObject* p = ptr_; in release()
68 operator PyObject*() { return ptr_; }
70 PyObject* operator->() const {
75 PyObject* get() const { return ptr_; } in get()
85 bool operator==(const PyObject* p) const { return ptr_ == p; }
86 bool operator!=(const PyObject* p) const { return ptr_ != p; }
89 PyObject* ptr_;
Ddescriptor.cc62 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
72 Py_TYPE(self)->tp_free(reinterpret_cast<PyObject*>(self)); in Dealloc()
75 static PyObject* GetFullName(CFieldDescriptor* self, void *closure) { in GetFullName()
81 static PyObject* GetName(CFieldDescriptor *self, void *closure) { in GetName()
87 static PyObject* GetCppType(CFieldDescriptor *self, void *closure) { in GetCppType()
91 static PyObject* GetLabel(CFieldDescriptor *self, void *closure) { in GetLabel()
95 static PyObject* GetID(CFieldDescriptor *self, void *closure) { in GetID()
157 Py_TYPE(self)->tp_free(reinterpret_cast<PyObject*>(self)); in Dealloc()
160 static PyObject* NewCDescriptor( in NewCDescriptor()
170 return reinterpret_cast<PyObject*>(cfield_descriptor); in NewCDescriptor()
[all …]
Drepeated_scalar_container.cc68 RepeatedScalarContainer* self, PyObject* list) { in InternalAssignRepeatedField()
72 PyObject* value = PyList_GET_ITEM(list, i); in InternalAssignRepeatedField()
88 PyObject* arg) { in AssignItem()
193 static PyObject* Item(RepeatedScalarContainer* self, Py_ssize_t index) { in Item()
210 PyObject* result = NULL; in Item()
268 PyObject* py_cmsg = PyObject_CallObject(reinterpret_cast<PyObject*>( in Item()
280 result = reinterpret_cast<PyObject*>(py_cmsg); in Item()
293 static PyObject* Subscript(RepeatedScalarContainer* self, PyObject* slice) { in Subscript()
327 PyObject* list = PyList_New(0); in Subscript()
357 PyObject* Append(RepeatedScalarContainer* self, PyObject* item) { in Append()
[all …]
/external/autotest/utils/named_semaphore/
Dnamedsem.c6 parse_sem_t(PyObject *object, void *address) in parse_sem_t()
13 static PyObject *
14 namedsem_sem_open(PyObject *self, PyObject *args) in namedsem_sem_open()
27 static PyObject *
28 namedsem_sem_close(PyObject *self, PyObject *args) in namedsem_sem_close()
39 static PyObject *
40 namedsem_sem_unlink(PyObject *self, PyObject *args) in namedsem_sem_unlink()
51 static PyObject *
52 namedsem_sem_wait(PyObject *self, PyObject *args) in namedsem_sem_wait()
63 static PyObject *
[all …]
/external/opencv3/modules/python/src2/
Dcv2.cpp20 static PyObject* opencv_error = 0;
125 static PyObject* failmsgp(const char *fmt, ...) in failmsgp()
144 UMatData* allocate(PyObject* o, int dims, const int* sizes, int type, size_t* step) const in allocate()
180 PyObject* o = PyArray_SimpleNew(dims, _sizes, typenum); in allocate()
196 PyObject* o = (PyObject*)u->userdata; in deallocate()
209 bool pyopencv_to(PyObject* obj, T& p, const char* name = "<unknown>");
212 PyObject* pyopencv_from(const T& src);
217 static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info) in pyopencv_to()
229 double v[] = {static_cast<double>(PyInt_AsLong((PyObject*)o)), 0., 0., 0.}; in pyopencv_to()
235 double v[] = {PyFloat_AsDouble((PyObject*)o), 0., 0., 0.}; in pyopencv_to()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/python3/src/
D_crcfunext.c96 static PyObject*
97 _crc8(PyObject* self, PyObject* args) in _crc8()
99 PyObject *obj; in _crc8()
145 static PyObject*
146 _crc8r(PyObject* self, PyObject* args) in _crc8r()
148 PyObject *obj; in _crc8r()
193 static PyObject*
194 _crc16(PyObject* self, PyObject* args) in _crc16()
196 PyObject *obj; in _crc16()
242 static PyObject*
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/python2/src/
D_crcfunext.c78 static PyObject*
79 _crc8(PyObject* self, PyObject* args) in _crc8()
119 static PyObject*
120 _crc8r(PyObject* self, PyObject* args) in _crc8r()
159 static PyObject*
160 _crc16(PyObject* self, PyObject* args) in _crc16()
200 static PyObject*
201 _crc16r(PyObject* self, PyObject* args) in _crc16r()
240 static PyObject*
241 _crc24(PyObject* self, PyObject* args) in _crc24()
[all …]
/external/chromium-trace/catapult/third_party/coverage/coverage/ctracer/
Dtracer.c14 pyint_as_int(PyObject * pyint, int *pint) in pyint_as_int()
28 static PyObject *str_trace;
29 static PyObject *str_file_tracer;
30 static PyObject *str__coverage_enabled;
31 static PyObject *str__coverage_plugin;
32 static PyObject *str__coverage_plugin_name;
33 static PyObject *str_dynamic_source_filename;
34 static PyObject *str_line_number_range;
61 static void CTracer_disable_plugin(CTracer *self, PyObject * disposition);
64 CTracer_init(CTracer *self, PyObject *args_unused, PyObject *kwds_unused) in CTracer_init()
[all …]
Dtracer.h20 PyObject * should_trace;
21 PyObject * check_include;
22 PyObject * warn;
23 PyObject * concur_id_func;
24 PyObject * data;
25 PyObject * file_tracers;
26 PyObject * should_trace_cache;
27 PyObject * trace_arcs;
48 PyObject * data_stack_index; /* Used if we are doing concurrency. */
Dfiledisp.h13 PyObject * original_filename;
14 PyObject * canonical_filename;
15 PyObject * source_filename;
16 PyObject * trace;
17 PyObject * reason;
18 PyObject * file_tracer;
19 PyObject * has_dynamic_filename;
/external/autotest/client/site_tests/hardware_VideoDecodeCapable/src/
Dvaapimodule.cc19 static PyObject *VaapiError;
32 static void destroy_display_bundle(PyObject* object) { in destroy_display_bundle()
43 static PyObject* va_create_display(PyObject* self, PyObject* args) { in va_create_display()
94 static VADisplay get_va_display(PyObject* object) { in get_va_display()
108 static PyObject* va_query_profiles(PyObject* self, PyObject* args) { in va_query_profiles()
109 PyObject* bundle; in va_query_profiles()
129 PyObject *result = PyList_New(0); in va_query_profiles()
138 static PyObject* va_query_entrypoints(PyObject* self, PyObject* args) { in va_query_entrypoints()
139 PyObject* bundle; in va_query_entrypoints()
160 PyObject *result = PyList_New(0); in va_query_entrypoints()
[all …]
Dv4l2module.cc19 PyObject *formats) { in v4l2_enum_formats()
37 PyObject* item = PyString_FromStringAndSize(pixel_format, 4); in v4l2_enum_formats()
44 static PyObject *v4l2_enum_capture_formats(PyObject *self, PyObject *args) { in v4l2_enum_capture_formats()
48 PyObject *formats = PyList_New(0); in v4l2_enum_capture_formats()
54 static PyObject *v4l2_enum_output_formats(PyObject *self, PyObject *args) { in v4l2_enum_output_formats()
58 PyObject *formats = PyList_New(0); in v4l2_enum_output_formats()
/external/selinux/policycoreutils/sepolicy/
Dpolicy.h3 extern PyObject *wrap_info(PyObject *self, PyObject *args);
4 extern void init_info (PyObject *m);
5 extern PyObject *wrap_search(PyObject *self, PyObject *args);
Dinfo.c60 static int py_insert_long(PyObject *dict, const char *name, int value) in py_insert_long()
63 PyObject *obj = PyLong_FromLong(value); in py_insert_long()
70 static int py_insert_bool(PyObject *dict, const char *name, int value) in py_insert_bool()
73 PyObject *obj = PyBool_FromLong(value); in py_insert_bool()
93 static PyObject* get_sens(const char *name, const apol_policy_t * policydb) in get_sens()
95 PyObject *dict = NULL; in get_sens()
236 static PyObject* get_cat_sens(const qpol_cat_t * cat_datum, const apol_policy_t * policydb) in get_cat_sens()
245 PyObject *list = NULL; in get_cat_sens()
246 PyObject *dict = PyDict_New(); in get_cat_sens()
309 static PyObject* get_cats(const char *name, const apol_policy_t * policydb) in get_cats()
[all …]

12