Home
last modified time | relevance | path

Searched refs:decl (Results 1 – 25 of 340) sorted by relevance

12345678910>>...14

/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DAttribute.java36 public String decl; field in Attribute
47 public Attribute(String decl) { in Attribute() argument
48 extractAttribute(decl); in Attribute()
51 public Attribute(String name, String decl) { in Attribute() argument
53 this.decl = decl; in Attribute()
64 protected void extractAttribute(String decl) { in extractAttribute() argument
65 if ( decl==null ) { in extractAttribute()
70 int rightEdgeOfDeclarator = decl.length()-1; in extractAttribute()
71 int equalsIndex = decl.indexOf('='); in extractAttribute()
74 this.initValue = decl.substring(equalsIndex+1,decl.length()); in extractAttribute()
[all …]
/external/libsepol/src/
Davrule_block.c55 avrule_decl_t *decl; in avrule_decl_create() local
57 if ((decl = calloc(1, sizeof(*decl))) == NULL) { in avrule_decl_create()
60 decl->decl_id = decl_id; in avrule_decl_create()
62 if (symtab_init(&decl->symtab[i], symtab_sizes[i])) { in avrule_decl_create()
63 avrule_decl_destroy(decl); in avrule_decl_create()
69 ebitmap_init(&decl->required.scope[i]); in avrule_decl_create()
70 ebitmap_init(&decl->declared.scope[i]); in avrule_decl_create()
72 return decl; in avrule_decl_create()
112 avrule_decl_t *decl; in avrule_block_destroy() local
116 decl = x->branch_list; in avrule_block_destroy()
[all …]
/external/chromium_org/tools/generate_stubs/
Dgenerate_stubs_unittest.py213 decl = gs.PosixStubWriter.StubFunctionPointer(sig)
214 self.assertTrue(contents.find(decl) != -1,
215 msg='Expected "%s" in %s' % (decl, contents))
219 decl = gs.PosixStubWriter.StubFunction(sig)
220 self.assertTrue(contents.find(decl) != -1,
221 msg='Expected "%s" in %s' % (decl, contents))
224 decl = gs.PosixStubWriter.InitializeModuleName(self.module_name)
225 self.assertTrue(contents.find(decl) != -1,
226 msg='Expected "%s" in %s' % (decl, contents))
227 decl = gs.PosixStubWriter.UninitializeModuleName(self.module_name)
[all …]
/external/mesa3d/src/gallium/drivers/r300/
Dr300_vs_draw.c80 struct tgsi_full_declaration decl; in emit_temp() local
82 decl = tgsi_default_full_declaration(); in emit_temp()
83 decl.Declaration.File = TGSI_FILE_TEMPORARY; in emit_temp()
84 decl.Range.First = decl.Range.Last = reg; in emit_temp()
85 ctx->emit_declaration(ctx, &decl); in emit_temp()
93 struct tgsi_full_declaration decl; in emit_output() local
95 decl = tgsi_default_full_declaration(); in emit_output()
96 decl.Declaration.File = TGSI_FILE_OUTPUT; in emit_output()
97 decl.Declaration.Interpolate = 1; in emit_output()
98 decl.Declaration.Semantic = TRUE; in emit_output()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/
Dr300_vs_draw.c80 struct tgsi_full_declaration decl; in emit_temp() local
82 decl = tgsi_default_full_declaration(); in emit_temp()
83 decl.Declaration.File = TGSI_FILE_TEMPORARY; in emit_temp()
84 decl.Range.First = decl.Range.Last = reg; in emit_temp()
85 ctx->emit_declaration(ctx, &decl); in emit_temp()
93 struct tgsi_full_declaration decl; in emit_output() local
95 decl = tgsi_default_full_declaration(); in emit_output()
96 decl.Declaration.File = TGSI_FILE_OUTPUT; in emit_output()
97 decl.Declaration.Interpolate = 1; in emit_output()
98 decl.Declaration.Semantic = TRUE; in emit_output()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_pstipple.c198 struct tgsi_full_declaration *decl) in pstip_transform_decl() argument
205 if (decl->Declaration.File == TGSI_FILE_SAMPLER) { in pstip_transform_decl()
207 for (i = decl->Range.First; i <= decl->Range.Last; i++) { in pstip_transform_decl()
211 else if (decl->Declaration.File == TGSI_FILE_INPUT) { in pstip_transform_decl()
212 pctx->maxInput = MAX2(pctx->maxInput, (int) decl->Range.Last); in pstip_transform_decl()
213 if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) in pstip_transform_decl()
214 pctx->wincoordInput = (int) decl->Range.First; in pstip_transform_decl()
216 else if (decl->Declaration.File == TGSI_FILE_TEMPORARY) { in pstip_transform_decl()
218 for (i = decl->Range.First; i <= decl->Range.Last; i++) { in pstip_transform_decl()
223 ctx->emit_declaration(ctx, decl); in pstip_transform_decl()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
Du_pstipple.c198 struct tgsi_full_declaration *decl) in pstip_transform_decl() argument
205 if (decl->Declaration.File == TGSI_FILE_SAMPLER) { in pstip_transform_decl()
207 for (i = decl->Range.First; i <= decl->Range.Last; i++) { in pstip_transform_decl()
211 else if (decl->Declaration.File == TGSI_FILE_INPUT) { in pstip_transform_decl()
212 pctx->maxInput = MAX2(pctx->maxInput, (int) decl->Range.Last); in pstip_transform_decl()
213 if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) in pstip_transform_decl()
214 pctx->wincoordInput = (int) decl->Range.First; in pstip_transform_decl()
216 else if (decl->Declaration.File == TGSI_FILE_TEMPORARY) { in pstip_transform_decl()
218 for (i = decl->Range.First; i <= decl->Range.Last; i++) { in pstip_transform_decl()
223 ctx->emit_declaration(ctx, decl); in pstip_transform_decl()
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_dump.c242 struct tgsi_full_declaration *decl ) in iter_declaration() argument
248 ENM(decl->Declaration.File, tgsi_file_names); in iter_declaration()
251 if (decl->Declaration.File == TGSI_FILE_INPUT && in iter_declaration()
256 if (decl->Declaration.Dimension) { in iter_declaration()
258 SID(decl->Dim.Index2D); in iter_declaration()
263 SID(decl->Range.First); in iter_declaration()
264 if (decl->Range.First != decl->Range.Last) { in iter_declaration()
266 SID(decl->Range.Last); in iter_declaration()
272 decl->Declaration.UsageMask ); in iter_declaration()
274 if (decl->Declaration.Local) in iter_declaration()
[all …]
Dtgsi_parse.c105 struct tgsi_full_declaration *decl = &ctx->FullToken.FullDeclaration; in tgsi_parse_token() local
107 memset(decl, 0, sizeof *decl); in tgsi_parse_token()
108 copy_token(&decl->Declaration, &token); in tgsi_parse_token()
110 next_token( ctx, &decl->Range ); in tgsi_parse_token()
112 if (decl->Declaration.Dimension) { in tgsi_parse_token()
113 next_token(ctx, &decl->Dim); in tgsi_parse_token()
116 if( decl->Declaration.Interpolate ) { in tgsi_parse_token()
117 next_token( ctx, &decl->Interp ); in tgsi_parse_token()
120 if( decl->Declaration.Semantic ) { in tgsi_parse_token()
121 next_token( ctx, &decl->Semantic ); in tgsi_parse_token()
[all …]
Dtgsi_ureg.c47 struct tgsi_declaration decl; member
459 struct const_decl *decl = &ureg->const_decls2D[index2D]; in ureg_DECL_constant2D() local
463 if (decl->nr_constant_ranges < UREG_MAX_CONSTANT_RANGE) { in ureg_DECL_constant2D()
464 uint i = decl->nr_constant_ranges++; in ureg_DECL_constant2D()
466 decl->constant_range[i].first = first; in ureg_DECL_constant2D()
467 decl->constant_range[i].last = last; in ureg_DECL_constant2D()
481 struct const_decl *decl = &ureg->const_decls; in ureg_DECL_constant() local
487 for (i = 0; i < decl->nr_constant_ranges; i++) { in ureg_DECL_constant()
488 if (decl->constant_range[i].first <= index && in ureg_DECL_constant()
489 decl->constant_range[i].last >= index) { in ureg_DECL_constant()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/
Dtgsi_dump.c242 struct tgsi_full_declaration *decl ) in iter_declaration() argument
248 ENM(decl->Declaration.File, tgsi_file_names); in iter_declaration()
251 if (decl->Declaration.File == TGSI_FILE_INPUT && in iter_declaration()
256 if (decl->Declaration.Dimension) { in iter_declaration()
258 SID(decl->Dim.Index2D); in iter_declaration()
263 SID(decl->Range.First); in iter_declaration()
264 if (decl->Range.First != decl->Range.Last) { in iter_declaration()
266 SID(decl->Range.Last); in iter_declaration()
272 decl->Declaration.UsageMask ); in iter_declaration()
274 if (decl->Declaration.Local) in iter_declaration()
[all …]
Dtgsi_parse.c105 struct tgsi_full_declaration *decl = &ctx->FullToken.FullDeclaration; in tgsi_parse_token() local
107 memset(decl, 0, sizeof *decl); in tgsi_parse_token()
108 copy_token(&decl->Declaration, &token); in tgsi_parse_token()
110 next_token( ctx, &decl->Range ); in tgsi_parse_token()
112 if (decl->Declaration.Dimension) { in tgsi_parse_token()
113 next_token(ctx, &decl->Dim); in tgsi_parse_token()
116 if( decl->Declaration.Interpolate ) { in tgsi_parse_token()
117 next_token( ctx, &decl->Interp ); in tgsi_parse_token()
120 if( decl->Declaration.Semantic ) { in tgsi_parse_token()
121 next_token( ctx, &decl->Semantic ); in tgsi_parse_token()
[all …]
Dtgsi_ureg.c47 struct tgsi_declaration decl; member
459 struct const_decl *decl = &ureg->const_decls2D[index2D]; in ureg_DECL_constant2D() local
463 if (decl->nr_constant_ranges < UREG_MAX_CONSTANT_RANGE) { in ureg_DECL_constant2D()
464 uint i = decl->nr_constant_ranges++; in ureg_DECL_constant2D()
466 decl->constant_range[i].first = first; in ureg_DECL_constant2D()
467 decl->constant_range[i].last = last; in ureg_DECL_constant2D()
481 struct const_decl *decl = &ureg->const_decls; in ureg_DECL_constant() local
487 for (i = 0; i < decl->nr_constant_ranges; i++) { in ureg_DECL_constant()
488 if (decl->constant_range[i].first <= index && in ureg_DECL_constant()
489 decl->constant_range[i].last >= index) { in ureg_DECL_constant()
[all …]
/external/checkpolicy/
Dmodule_compiler.c32 avrule_decl_t *decl; /* if in an avrule block, which member
130 avrule_decl_t *decl = stack_top->decl; in declare_symbol() local
138 SCOPE_DECL, decl->decl_id, dest_value); in declare_symbol()
158 if (ebitmap_set_bit(decl->declared.scope + symbol_type, in declare_symbol()
244 roles_tab = stack_top->decl->p_roles.table; in declare_role()
449 users_tab = stack_top->decl->p_users.table; in declare_user()
523 types_tab = stack_top->decl->p_types.table; in get_local_type()
571 roles_tab = stack_top->decl->p_roles.table; in get_local_role()
625 avrule_decl_t *decl = stack_top->decl; in require_symbol() local
633 SCOPE_REQ, decl->decl_id, dest_value); in require_symbol()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/svgadump/
Dsvga_dump.py52 def __init__(self, instance = '', decl = None): argument
55 self.decl = decl
58 return decl_dumper_t(self._instance, self.decl)
61 class_ = self.decl
62 assert self.decl.class_type in ('struct', 'union')
72 for name, value in self.decl.values:
84 def dump_decl(instance, decl): argument
85 dumper = decl_dumper_t(instance, decl)
86 algorithm.apply_visitor(dumper, decl)
153 decl = type_traits.remove_declarated(self.type)
[all …]
/external/mesa3d/src/gallium/drivers/svga/svgadump/
Dsvga_dump.py52 def __init__(self, instance = '', decl = None): argument
55 self.decl = decl
58 return decl_dumper_t(self._instance, self.decl)
61 class_ = self.decl
62 assert self.decl.class_type in ('struct', 'union')
72 for name, value in self.decl.values:
84 def dump_decl(instance, decl): argument
85 dumper = decl_dumper_t(instance, decl)
86 algorithm.apply_visitor(dumper, decl)
153 decl = type_traits.remove_declarated(self.type)
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/
Ddraw_pipe_pstipple.c140 struct tgsi_full_declaration *decl) in pstip_transform_decl() argument
144 if (decl->Declaration.File == TGSI_FILE_SAMPLER) { in pstip_transform_decl()
146 for (i = decl->Range.First; in pstip_transform_decl()
147 i <= decl->Range.Last; i++) { in pstip_transform_decl()
151 else if (decl->Declaration.File == TGSI_FILE_INPUT) { in pstip_transform_decl()
152 pctx->maxInput = MAX2(pctx->maxInput, (int) decl->Range.Last); in pstip_transform_decl()
153 if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) in pstip_transform_decl()
154 pctx->wincoordInput = (int) decl->Range.First; in pstip_transform_decl()
156 else if (decl->Declaration.File == TGSI_FILE_TEMPORARY) { in pstip_transform_decl()
158 for (i = decl->Range.First; in pstip_transform_decl()
[all …]
Ddraw_pipe_aaline.c153 struct tgsi_full_declaration *decl) in aa_transform_decl() argument
157 if (decl->Declaration.File == TGSI_FILE_OUTPUT && in aa_transform_decl()
158 decl->Semantic.Name == TGSI_SEMANTIC_COLOR && in aa_transform_decl()
159 decl->Semantic.Index == 0) { in aa_transform_decl()
160 aactx->colorOutput = decl->Range.First; in aa_transform_decl()
162 else if (decl->Declaration.File == TGSI_FILE_SAMPLER) { in aa_transform_decl()
164 for (i = decl->Range.First; in aa_transform_decl()
165 i <= decl->Range.Last; i++) { in aa_transform_decl()
169 else if (decl->Declaration.File == TGSI_FILE_INPUT) { in aa_transform_decl()
170 if ((int) decl->Range.Last > aactx->maxInput) in aa_transform_decl()
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_pstipple.c140 struct tgsi_full_declaration *decl) in pstip_transform_decl() argument
144 if (decl->Declaration.File == TGSI_FILE_SAMPLER) { in pstip_transform_decl()
146 for (i = decl->Range.First; in pstip_transform_decl()
147 i <= decl->Range.Last; i++) { in pstip_transform_decl()
151 else if (decl->Declaration.File == TGSI_FILE_INPUT) { in pstip_transform_decl()
152 pctx->maxInput = MAX2(pctx->maxInput, (int) decl->Range.Last); in pstip_transform_decl()
153 if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) in pstip_transform_decl()
154 pctx->wincoordInput = (int) decl->Range.First; in pstip_transform_decl()
156 else if (decl->Declaration.File == TGSI_FILE_TEMPORARY) { in pstip_transform_decl()
158 for (i = decl->Range.First; in pstip_transform_decl()
[all …]
Ddraw_pipe_aaline.c153 struct tgsi_full_declaration *decl) in aa_transform_decl() argument
157 if (decl->Declaration.File == TGSI_FILE_OUTPUT && in aa_transform_decl()
158 decl->Semantic.Name == TGSI_SEMANTIC_COLOR && in aa_transform_decl()
159 decl->Semantic.Index == 0) { in aa_transform_decl()
160 aactx->colorOutput = decl->Range.First; in aa_transform_decl()
162 else if (decl->Declaration.File == TGSI_FILE_SAMPLER) { in aa_transform_decl()
164 for (i = decl->Range.First; in aa_transform_decl()
165 i <= decl->Range.Last; i++) { in aa_transform_decl()
169 else if (decl->Declaration.File == TGSI_FILE_INPUT) { in aa_transform_decl()
170 if ((int) decl->Range.Last > aactx->maxInput) in aa_transform_decl()
[all …]
Ddraw_pipe_aapoint.c134 struct tgsi_full_declaration *decl) in aa_transform_decl() argument
138 if (decl->Declaration.File == TGSI_FILE_OUTPUT && in aa_transform_decl()
139 decl->Semantic.Name == TGSI_SEMANTIC_COLOR && in aa_transform_decl()
140 decl->Semantic.Index == 0) { in aa_transform_decl()
141 aactx->colorOutput = decl->Range.First; in aa_transform_decl()
143 else if (decl->Declaration.File == TGSI_FILE_INPUT) { in aa_transform_decl()
144 if ((int) decl->Range.Last > aactx->maxInput) in aa_transform_decl()
145 aactx->maxInput = decl->Range.Last; in aa_transform_decl()
146 if (decl->Semantic.Name == TGSI_SEMANTIC_GENERIC && in aa_transform_decl()
147 (int) decl->Semantic.Index > aactx->maxGeneric) { in aa_transform_decl()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_vdecl.c49 SVGA3dVertexDecl decl; in emit_hw_vs_vdecl() local
107 decl.identity.type = svga->state.sw.ve_format[i]; in emit_hw_vs_vdecl()
108 decl.identity.method = SVGA3D_DECLMETHOD_DEFAULT; in emit_hw_vs_vdecl()
109 decl.identity.usage = usage; in emit_hw_vs_vdecl()
110 decl.identity.usageIndex = index; in emit_hw_vs_vdecl()
111 decl.array.stride = vb->stride; in emit_hw_vs_vdecl()
116 decl.array.offset = (vb->buffer_offset in emit_hw_vs_vdecl()
121 assert(decl.array.offset >= 0); in emit_hw_vs_vdecl()
125 &decl, in emit_hw_vs_vdecl()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/
Dsvga_state_vdecl.c49 SVGA3dVertexDecl decl; in emit_hw_vs_vdecl() local
107 decl.identity.type = svga->state.sw.ve_format[i]; in emit_hw_vs_vdecl()
108 decl.identity.method = SVGA3D_DECLMETHOD_DEFAULT; in emit_hw_vs_vdecl()
109 decl.identity.usage = usage; in emit_hw_vs_vdecl()
110 decl.identity.usageIndex = index; in emit_hw_vs_vdecl()
111 decl.array.stride = vb->stride; in emit_hw_vs_vdecl()
116 decl.array.offset = (vb->buffer_offset in emit_hw_vs_vdecl()
121 assert(decl.array.offset >= 0); in emit_hw_vs_vdecl()
125 &decl, in emit_hw_vs_vdecl()
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DElemTemplateElement.java871 XMLNSDecl decl = new XMLNSDecl(prefix, uri, false); in setPrefixes() local
873 m_declaredPrefixes.add(decl); in setPrefixes()
927 XMLNSDecl decl = (XMLNSDecl) nsDecls.get(i); in getNamespaceForPrefix() local
929 if (prefix.equals(decl.getPrefix())) in getNamespaceForPrefix()
930 return decl.getURI(); in getNamespaceForPrefix()
1048 XMLNSDecl decl = (XMLNSDecl) m_declaredPrefixes.get(i); in resolvePrefixTables() local
1049 String prefix = decl.getPrefix(); in resolvePrefixTables()
1050 String uri = decl.getURI(); in resolvePrefixTables()
1068 decl = new XMLNSDecl(nsAlias.getStylesheetPrefix(), in resolvePrefixTables()
1072 decl = new XMLNSDecl(prefix, uri, shouldExclude); in resolvePrefixTables()
[all …]
/external/libsepol/tests/
Dtest-deps.c143 avrule_decl_t *decl; in do_deps_modreq_global() local
173 decl = test_find_decl_by_sym(base, SYM_TYPES, decl_type); in do_deps_modreq_global()
174 CU_ASSERT_FATAL(decl != NULL); in do_deps_modreq_global()
176 CU_ASSERT(decl->enabled == 1); in do_deps_modreq_global()
225 avrule_decl_t *decl; in do_deps_modreq_opt() local
252 decl = test_find_decl_by_sym(base, SYM_TYPES, decl_type); in do_deps_modreq_opt()
253 CU_ASSERT_FATAL(decl != NULL); in do_deps_modreq_opt()
256 CU_ASSERT(decl->enabled == 1); in do_deps_modreq_opt()
258 CU_ASSERT(decl->enabled == 0); in do_deps_modreq_opt()

12345678910>>...14