Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 88) sorted by relevance

1234

/build/make/tools/
Dtest_post_process_props.py70 self.props = PropList("file")
74 self.props = None
77 self.assertEqual(4, len(self.props.get_all_props()))
84 for i,p in enumerate(self.props.get_all_props()):
90 self.assertEqual(set(["foo", "bar", "qux"]), self.props.get_all_names())
92 self.assertEqual("true", self.props.get_value("foo"))
93 self.assertEqual("false", self.props.get_value("bar"))
94 self.assertEqual("1", self.props.get_value("qux"))
97 self.assertEqual(2, len(self.props.get_props("foo")))
100 self.props.put("new", "30")
[all …]
Dpost_process_props.py109 props = prop_list.get_props(name)
110 optional_props = [p for p in props if p.is_optional()]
111 overriding_props = [p for p in props if not p.is_optional()]
199 self.props = [Prop.from_line(l)
203 return [p for p in self.props if not p.is_comment()]
213 return next((p.value for p in self.props if p.name == name), "")
220 index = next((i for i,p in enumerate(self.props)
223 self.props.append(Prop(name, value,
226 self.props[index].comments.append(
228 self.props[index].value)
[all …]
/build/blueprint/proptools/
Dproptools_test.go120 props := struct {
130 props.i = 42
131 Clear(&props.i)
132 if props.i != 0 {
136 props.s = "foo"
137 Clear(&props.s)
138 if props.s != "" {
142 props.ps = StringPtr("foo")
143 Clear(&props.ps)
144 if props.ps != nil {
[all …]
Dunpack_test.go1303 run := func(b *testing.B, props []interface{}, input string) {
1325 for _, p := range props {
1343 props := []interface{}{
1357 run(b, props, bp)
1361 props := []interface{}{
1377 run(b, props, bp)
1381 props := []interface{}{
1409 run(b, props, bp)
1413 props := []interface{}{
1447 run(b, props, bp)
[all …]
/build/soong/cc/
Dorderfile.go80 func (props *OrderfileProperties) shouldInstrument() bool {
81 return Bool(props.Orderfile.Instrumentation)
86 func (props *OrderfileProperties) shouldLoadOrderfile() bool {
87 return Bool(props.Orderfile.Load_order_file) && props.Orderfile.Order_file_path != nil
102 func (orderfile *orderfile) props() []interface{} { func
107 func (props *OrderfileProperties) getOrderfile(ctx BaseModuleContext) android.OptionalPath {
108 orderFile := *props.Orderfile.Order_file_path
119 …missing := *props.Orderfile.Order_file_path + ":" + ctx.ModuleDir() + "/Android.bp:" + ctx.ModuleN…
125 func (props *OrderfileProperties) addInstrumentationProfileGatherFlags(ctx ModuleContext, flags Fla…
128 flags.Local.CFlags = append(flags.Local.CFlags, props.Orderfile.Cflags...)
[all …]
Dsabi.go77 func (props *headerAbiCheckerProperties) enabled() bool {
78 return Bool(props.Enabled)
81 func (props *headerAbiCheckerProperties) explicitlyDisabled() bool {
82 return !BoolDefault(props.Enabled, true)
101 func (sabi *sabi) props() []interface{} { func
Dgen.go63 outFile android.ModuleGenPath, props *YaccProperties) (headerFiles android.Paths) {
80 if props != nil {
81 flags = props.Flags
83 if Bool(props.Gen_location_hh) {
89 if Bool(props.Gen_position_hh) {
166 func genLex(ctx android.ModuleContext, lexFile android.Path, outFile android.ModuleGenPath, props *…
168 if props != nil {
169 flags = props.Flags
/build/soong/android/
Dhooks.go71 func (l *loadHookContext) appendPrependHelper(props []interface{},
73 for _, p := range props {
84 func (l *loadHookContext) AppendProperties(props ...interface{}) {
85 l.appendPrependHelper(props, proptools.AppendMatchingProperties)
88 func (l *loadHookContext) PrependProperties(props ...interface{}) {
89 l.appendPrependHelper(props, proptools.PrependMatchingProperties)
92 func (l *loadHookContext) createModule(factory blueprint.ModuleFactory, name string, props ...inter…
93 return l.bp.CreateModule(factory, name, props...)
101 func createModule(ctx createModuleContext, factory ModuleFactory, ext string, props ...interface{})…
115 …module := ctx.createModule(ModuleFactoryAdaptor(factory), typeName, append(inherited, props...)...…
[all …]
Dtest_suites_test.go89 props struct { member
98 module.AddProperties(&base.nameProperties, &module.props)
110 for _, output := range f.props.Outputs {
116 return f.props.Test_suites
Dpath_properties_test.go23 props struct { member
52 module.AddProperties(&module.props, &module.props2, &module.props3)
64 if p.props.Foo != "" {
66 m := SrcIsModule(p.props.Foo)
Dsoong_config_modules.go543 getConditionalFactoryProps := func(props []interface{}) reflect.Value {
545 conditionalFactoryProps = soongconfig.CreateProperties(props, moduleType)
551 module, props := factory()
552 conditionalFactoryProps := getConditionalFactoryProps(props)
554 return module, props
558 props = append(props, conditionalProps.Interface())
576 return module, props
Dpath_properties.go41 props := ctx.Module().base().GetProperties()
42 addPathDepsForProps(ctx, props)
45 func addPathDepsForProps(ctx BottomUpMutatorContext, props []interface{}) {
49 for _, ps := range props {
Dneverallow.go441 props ruleProperties member
497 r.props = append(r.props, ruleProperty{
539 if len(r.props) > 0 {
540 s = append(s, fmt.Sprintf("properties matching: %s", r.props))
607 includeProps := hasAllProperties(properties, r.props)
646 func hasAnyProperty(properties []interface{}, props []ruleProperty) bool {
647 for _, v := range props {
655 func hasAllProperties(properties []interface{}, props []ruleProperty) bool {
656 for _, v := range props {
Dmutator_test.go27 props struct { member
37 module.AddProperties(&module.props)
52 ctx.AddDependency(ctx.Module(), nil, m.props.Deps_missing_deps...)
56 ctx.AddMissingDependencies(ctx.Module().(*mutatorTestModule).props.Mutator_missing_deps)
/build/soong/tradefed/suite_harness/
Dtradefed_binary.go45 props := &TradefedBinaryProperties{}
47 module.AddProperties(props)
48 android.AddLoadHook(module, tradefedBinaryLoadHook(props))
75 props := struct {
81 props.Libs = []string{
88 props.Java_resources = []string{":" + genName}
90 ctx.AppendProperties(&props)
/build/soong/java/
Dsdk_library.go1844 props := struct {
1873 &props,
1905 props := libraryProperties{}
1906 props.Visibility = []string{"//visibility:override", "//visibility:private"}
1909 props.Sdk_version = proptools.StringPtr(sdkVersion)
1910 props.System_modules = module.deviceProperties.System_modules
1911 props.Patch_module = module.properties.Patch_module
1912 props.Installable = proptools.BoolPtr(false)
1913 props.Libs = module.sdkLibraryProperties.Stub_only_libs
1914 props.Libs = append(props.Libs, module.scopeToProperties[apiScope].Libs...)
[all …]
Dprebuilt_apis.go131 props := struct {
144 mctx.CreateModule(ImportFactory, &props)
190 props := struct {
195 props.Name = proptools.StringPtr(name)
196 props.Out = []string{name}
197 props.Cmd = proptools.StringPtr("touch $(genDir)/" + name)
198 mctx.CreateModule(genrule.GenRuleFactory, &props)
256 props := struct {
260 props.Name = proptools.StringPtr(prebuiltApiModuleName(mctx, "system_modules", scope, version))
261props.Libs = append(props.Libs, prebuiltApiModuleName(mctx, "core-for-system-modules", scope, vers…
[all …]
/build/blueprint/bootstrap/bpdoc/
Dproperties.go169 func getByName(name string, prefix string, props *[]Property) *Property {
170 for i := range *props {
171 if prefix+(*props)[i].Name == name {
172 return &(*props)[i]
173 } else if strings.HasPrefix(name, prefix+(*props)[i].Name+".") {
174 return getByName(name, prefix+(*props)[i].Name+".", &(*props)[i].Properties)
209 func structProperties(structType *ast.StructType) (props []Property, err error) {
238 props = append(props, Property{
248 return props, nil
319 func filterPropsByTag(props *[]Property, key, value string, exclude bool) {
[all …]
Dreader.go121 var props []Property
125 props = append(props, Property{Name: name,
127 return &PropertyStruct{Properties: props}, nil
150 props = append(props, prop)
152 return &PropertyStruct{Properties: props}, nil
Dreader_test.go32 return nil, []interface{}{&props{}}
90 type props struct { struct
159 ps, err := r.PropertyStruct(pkgPath, "props", reflect.ValueOf(props{A: "B"}))
/build/soong/android/soongconfig/
Dmodules.go130 props := &ModuleTypeProperties{}
132 _, errs = proptools.UnpackProperties(def.Properties, props)
137 if props.Name == "" {
141 if props.Config_namespace == "" {
145 if props.Module_type == "" {
153 if mt, errs := newModuleType(props); len(errs) > 0 {
156 v.ModuleTypes[props.Name] = mt
216 props := &VariableProperties{}
218 allProps := append([]interface{}{props}, extraProps...)
225 if props.Name == "" {
[all …]
Dmodules_test.go355 props := reflect.ValueOf(actualProps)
380 gotProps, err := PropertiesToApply(mt, props, tc.config)
411 props := reflect.ValueOf(actualProps)
433 gotProps, err := PropertiesToApply(mt, props, tc.config)
466 props := reflect.ValueOf(actualProps)
489 gotProps, err := PropertiesToApply(mt, props, tc.config)
535 props := reflect.ValueOf(actualProps)
559 gotProps, err := PropertiesToApply(mt, props, tc.config)
602 props := reflect.ValueOf(actualProps)
604 _, err := PropertiesToApply(mt, props, Config(map[string]string{
/build/soong/rust/
Dtoolchain_library.go99 type props struct {
103 p := &props{}
149 props := struct {
156 ctx.AppendProperties(&props)
/build/soong/bp2build/
Dbzl_conversion.go182 props := make([]property, 0)
196 props = extractPropertyDescriptionsFromStruct(t)
208 properties: props,
214 func getPropertyDescriptions(props []interface{}) []property {
217 for _, p := range props {
/build/soong/cmd/soong_build/
Dwritedocs.go65 props := make([]bpdoc.Property, 0)
67 props = append(props, propStruct.Properties...)
69 sort.Slice(props, func(i, j int) bool {
70 if rankI, ok := propertyRank[props[i].Name]; ok {
71 if rankJ, ok := propertyRank[props[j].Name]; ok {
77 if _, ok := propertyRank[props[j].Name]; ok {
80 return props[i].Name < props[j].Name
84 for _, prop := range props {

1234