Searched refs:self (Results 1 - 25 of 610) sorted by relevance

1234567891011>>

/xsrc/external/mit/xcb-proto/dist/xcbgen/
H A Dexpr.py16 def __init__(self, type, field_type, field_name, visible, wire, auto, enum=None, isfd=False):
17 self.type = type
18 self.field_type = field_type
19 self.field_name = field_name
20 self.enum = enum
21 self.visible = visible
22 self.wire = wire
23 self.auto = auto
24 self.isfd = isfd
25 self
[all...]
H A Dstate.py30 def __init__(self, filename):
32 self.path = filename
33 self.dir = dirname(filename)
34 self.file = basename(filename)
37 self.root = parse(filename).getroot()
38 self.header = self.root.get('header')
39 self.ns = self.header + ':'
42 self
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/tools/trace/
H A Dparse.py42 def __init__(self, type, name_or_data, attrs = None, line = None, column = None):
44 self.type = type
45 self.name_or_data = name_or_data
46 self.attrs = attrs
47 self.line = line
48 self.column = column
50 def __str__(self):
51 if self.type == ELEMENT_START:
52 return '<' + self.name_or_data + ' ...>'
53 if self
[all...]
H A Dformat.py36 def __init__(self, stream):
37 self.stream = stream
39 def text(self, text):
40 self.stream.write(text)
42 def newline(self):
43 self.text('\n')
45 def function(self, name):
46 self.text(name)
48 def variable(self, name):
49 self
[all...]
H A Dmodel.py47 def visit(self, visitor):
50 def __str__(self):
54 self.visit(pretty_printer)
60 def __init__(self, value):
61 self.value = value
63 def visit(self, visitor):
64 visitor.visit_literal(self)
69 def __init__(self, value):
70 self._rawValue = None
71 self
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/tools/trace/
H A Dformat.py36 def __init__(self, stream):
37 self.stream = stream
39 def text(self, text):
40 self.stream.write(text)
42 def newline(self):
43 self.text('\n')
45 def function(self, name):
46 self.text(name)
48 def variable(self, name):
49 self
[all...]
H A Dmodel.py42 def visit(self, visitor):
45 def __str__(self):
49 self.visit(pretty_printer)
55 def __init__(self, value):
56 self.value = value
58 def visit(self, visitor):
59 visitor.visit_literal(self)
64 def __init__(self, value):
65 self._rawValue = None
66 self
[all...]
H A Dparse.py44 def __init__(self, type, name_or_data, attrs = None, line = None, column = None):
46 self.type = type
47 self.name_or_data = name_or_data
48 self.attrs = attrs
49 self.line = line
50 self.column = column
52 def __str__(self):
53 if self.type == ELEMENT_START:
54 return '<' + self.name_or_data + ' ...>'
55 if self
[all...]
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/tests/
H A Dalgebraic_parser_test.py43 def common(self, pattern, message):
44 with self.assertRaises(AssertionError) as context:
47 self.assertEqual(message, str(context.exception))
49 def test_wrong_src_count(self):
50 self.common((('iadd', a), ('fadd', a, a)),
53 def test_var_bitsize(self):
54 self.common((('iadd', 'a@32', 'a@64'), ('fadd', a, a)),
58 def test_var_bitsize_2(self):
59 self.common((('iadd', a, 'a@32'), ('fadd', 'a@64', a)),
63 def test_search_src_bitsize(self)
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/tests/
H A Dalgebraic_parser_test.py43 def common(self, pattern, message):
44 with self.assertRaises(AssertionError) as context:
47 self.assertEqual(message, str(context.exception))
49 def test_wrong_src_count(self):
50 self.common((('iadd', a), ('fadd', a, a)),
53 def test_var_bitsize(self):
54 self.common((('iadd', 'a@32', 'a@64'), ('fadd', a, a)),
58 def test_var_bitsize_2(self):
59 self.common((('iadd', a, 'a@32'), ('fadd', 'a@64', a)),
63 def test_search_src_bitsize(self)
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mapi/glapi/gen/
H A Dmarshal_XML.py33 def create_function(self, element, context):
38 def process_element(self, element):
40 super(marshal_function, self).process_element(element)
44 if element.get('name') != self.name:
48 self.fixed_params = []
49 self.variable_params = []
50 for p in self.parameters:
54 self.variable_params.append(p)
56 self.fixed_params.append(p)
59 self
[all...]
H A DglX_XML.py35 def create_function(self, element, context):
38 def create_enum(self, element, context, category):
41 def create_api(self):
42 return glx_api(self)
46 def __init__(self, element, context, category):
47 gl_XML.gl_enum.__init__(self, element, context, category)
49 self.functions = {}
58 c = self.default_count
67 if n not in self.functions:
68 self
[all...]
H A Dtypeexpr.py32 def __init__(self):
33 self.pointer = 0 # bool
34 self.const = 0 # bool
35 self.signed = 1 # bool
36 self.integer = 1 # bool
39 self.elements = 0
41 self.name = None
42 self.size = 0 # type's size in bytes
46 def string(self):
50 if self
[all...]
/xsrc/external/mit/libepoxy/dist/src/
H A Dgen_dispatch.py31 def __init__(self, condition, condition_name, loader, name):
34 self.condition = condition
37 self.condition_name = condition_name
41 # C code, given self.name.
42 self.loader = loader
46 self.name = name
49 self.enum = condition_name
50 self.enum = self.enum.replace(' ', '_')
51 self
[all...]
/xsrc/external/mit/ctwm/dist/
H A Dr_area_list.h13 void RAreaListFree(RAreaList *self);
15 RAreaList *RAreaListCopyCropped(const RAreaList *self, int left_margin,
19 void RAreaListAdd(RAreaList *self, const RArea *area);
21 RAreaList *RAreaListHorizontalUnion(const RAreaList *self);
22 RAreaList *RAreaListVerticalUnion(const RAreaList *self);
24 RAreaList *RAreaListIntersect(const RAreaList *self, const RArea *area);
25 void RAreaListForeach(const RAreaList *self,
29 RArea RAreaListBigArea(const RAreaList *self);
30 RArea RAreaListBestTarget(const RAreaList *self, const RArea *area);
32 int RAreaListMaxX(const RAreaList *self);
44 RAreaListLen(const RAreaList * self) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/mapi/glapi/gen/
H A DglX_XML.py35 def create_function(self, element, context):
38 def create_enum(self, element, context, category):
41 def create_api(self):
42 return glx_api(self)
46 def __init__(self, element, context, category):
47 gl_XML.gl_enum.__init__(self, element, context, category)
49 self.functions = {}
58 c = self.default_count
67 if n not in self.functions:
68 self
[all...]
H A Dtypeexpr.py30 def __init__(self):
31 self.pointer = 0 # bool
32 self.const = 0 # bool
33 self.signed = 1 # bool
34 self.integer = 1 # bool
37 self.elements = 0
39 self.name = None
40 self.size = 0 # type's size in bytes
44 def string(self):
48 if self
[all...]
/xsrc/external/mit/MesaLib.old/dist/scons/
H A Dsource_list.py15 def __init__(self):
16 self.symbol_table = {}
17 self._reset()
19 def _reset(self, filename=None):
20 self.filename = filename
22 self.line_no = 1
23 self.line_cont = ''
25 def _error(self, msg):
26 raise RuntimeError('%s:%d: %s' % (self.filename, self
[all...]
/xsrc/external/mit/MesaLib/dist/src/broadcom/cle/
H A Dgen_pack_header.py97 def __init__(self, parser, attrs):
98 self.parser = parser
100 self.name = safe_name(attrs["name"]).lower()
103 self.start = int(attrs["start"][:-1]) * 8
105 self.start = int(attrs["start"])
110 self.start += 8
112 self.end = self.start + int(attrs["size"]) - 1
113 self.type = attrs["type"]
115 if self
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/broadcom/cle/
H A Dgen_pack_header.py101 def __init__(self, parser, attrs):
102 self.parser = parser
104 self.name = safe_name(attrs["name"]).lower()
107 self.start = int(attrs["start"][:-1]) * 8
109 self.start = int(attrs["start"])
114 self.start += 8
116 self.end = self.start + int(attrs["size"]) - 1
117 self.type = attrs["type"]
119 if self
[all...]
/xsrc/external/mit/MesaLib/dist/.gitlab-ci/bare-metal/
H A Dserial_buffer.py33 def __init__(self, dev, filename, prefix, timeout = None):
34 self.filename = filename
35 self.dev = dev
38 self.f = open(filename, "wb+")
39 self.serial = serial.Serial(dev, 115200, timeout=timeout if timeout else 10)
41 self.f = open(filename, "rb")
43 self.byte_queue = queue.Queue()
44 self.line_queue = queue.Queue()
45 self.prefix = prefix
46 self
[all...]
/xsrc/external/mit/brotli/dist/c/enc/
H A Dmetablock_inc.h46 MemoryManager* m, FN(BlockSplitter)* self, size_t alphabet_size,
54 self->alphabet_size_ = alphabet_size;
55 self->min_block_size_ = min_block_size;
56 self->split_threshold_ = split_threshold;
57 self->num_blocks_ = 0;
58 self->split_ = split;
59 self->histograms_size_ = histograms_size;
60 self->target_block_size_ = min_block_size;
61 self->block_size_ = 0;
62 self
[all...]
/xsrc/external/mit/brotli/dist/python/tests/
H A Ddecompressor_test.py21 def setUp(self):
22 self.decompressor = brotli.Decompressor()
24 def tearDown(self):
25 self.decompressor = None
27 def _check_decompression(self, test_data):
31 self.assertFilesMatch(temp_uncompressed, original)
33 def _decompress(self, test_data):
37 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
39 out_file.write(self.decompressor.process(data))
40 self
[all...]
/xsrc/external/mit/MesaLib/dist/src/intel/genxml/
H A Dgen_pack_header.py210 def __init__(self, parser, attrs):
211 self.parser = parser
213 self.name = safe_name(attrs["name"])
214 self.start = int(attrs["start"])
215 self.end = int(attrs["end"])
216 self.type = attrs["type"]
218 assert self.start <= self.end, \
219 'field {} has end ({}) < start ({})'.format(self.name, self
[all...]
/xsrc/external/mit/MesaLib/dist/src/compiler/isaspec/
H A Disa.py42 def __init__(self, bitset):
43 self.match = bitset.match
44 self.dontcare = bitset.dontcare
45 self.mask = bitset.mask
46 self.field_mask = bitset.field_mask;
48 def merge(self, pattern):
50 p.match = p.match | self.match
51 p.dontcare = p.dontcare | self.dontcare
52 p.mask = p.mask | self.mask
53 p.field_mask = p.field_mask | self
[all...]

Completed in 22 milliseconds

1234567891011>>