Home
last modified time | relevance | path

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

123

/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.py85 props = prop_list.get_props(name)
86 optional_props = [p for p in props if p.is_optional()]
87 overriding_props = [p for p in props if not p.is_optional()]
175 self.props = [Prop.from_line(l)
179 return [p for p in self.props if not p.is_comment()]
189 return next((p.value for p in self.props if p.name == name), "")
196 index = next((i for i,p in enumerate(self.props)
199 self.props.append(Prop(name, value,
202 self.props[index].comments.append(
204 self.props[index].value)
[all …]
/build/soong/cc/
Dpgo.go79 func (props *PgoProperties) isInstrumentation() bool {
80 return props.Pgo.Instrumentation != nil && *props.Pgo.Instrumentation == true
83 func (props *PgoProperties) isSampling() bool {
84 return props.Pgo.Sampling != nil && *props.Pgo.Sampling == true
87 func (pgo *pgo) props() []interface{} { func
91 func (props *PgoProperties) addInstrumentationProfileGatherFlags(ctx ModuleContext, flags Flags) Fl…
92 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...)
101 func (props *PgoProperties) addSamplingProfileGatherFlags(ctx ModuleContext, flags Flags) Flags {
102 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...)
109 func (props *PgoProperties) getPgoProfileFile(ctx BaseModuleContext) android.OptionalPath {
[all …]
Dtoolchain_library.go51 var props []interface{}
52 props = append(props, library.libraryDecorator.linkerProps()...)
53 return append(props, &library.Properties, &library.stripper.StripProperties)
Dgen.go69 outFile android.ModuleGenPath, props *YaccProperties) (headerFiles android.Paths) {
83 if props != nil {
84 flags = props.Flags
86 if Bool(props.Gen_location_hh) {
92 if Bool(props.Gen_position_hh) {
Dtest.go318 props := append(test.testDecorator.linkerProps(), test.binaryDecorator.linkerProps()...)
319 props = append(props, &test.Properties)
320 return props
524 props := benchmark.binaryDecorator.linkerProps()
525 props = append(props, &benchmark.Properties)
526 return props
/build/blueprint/bootstrap/bpdoc/
Dproperties.go145 func getByName(name string, prefix string, props *[]Property) *Property {
146 for i := range *props {
147 if prefix+(*props)[i].Name == name {
148 return &(*props)[i]
149 } else if strings.HasPrefix(name, prefix+(*props)[i].Name+".") {
150 return getByName(name, prefix+(*props)[i].Name+".", &(*props)[i].Properties)
181 func structProperties(structType *ast.StructType) (props []Property, err error) {
227 props = append(props, Property{
237 return props, nil
248 func filterPropsByTag(props *[]Property, key, value string, exclude bool) {
[all …]
Dreader_test.go28 return nil, []interface{}{&props{}}
32 type props struct { struct
80 ps, err := r.PropertyStruct(pkgPath, "props", reflect.ValueOf(props{A: "B"}))
/build/soong/java/
Dprebuilt_apis.go78 props := struct {
84 props.Name = proptools.StringPtr(prebuiltApiModuleName(mctx, module, scope, apiver))
85 props.Jars = append(props.Jars, path)
86 props.Sdk_version = proptools.StringPtr(scope)
87 props.Installable = proptools.BoolPtr(false)
89 mctx.CreateModule(ImportFactory, &props)
132 props := struct {
136 props.Name = proptools.StringPtr(prebuiltApiModuleName(mctx, "system_modules", "public", apiver))
137props.Libs = append(props.Libs, prebuiltApiModuleName(mctx, "core-for-system-modules", "public", a…
139 mctx.CreateModule(SystemModulesFactory, &props)
Dsdk_library.go1096 props := struct {
1117 &props,
1125 props := struct {
1153 props.Name = proptools.StringPtr(module.stubsLibraryModuleName(apiScope))
1158 props.Visibility = visibility
1161 props.Srcs = []string{":" + module.stubsSourceModuleName(apiScope)}
1163 props.Sdk_version = proptools.StringPtr(sdkVersion)
1164 props.System_modules = module.deviceProperties.System_modules
1165 props.Patch_module = module.properties.Patch_module
1166 props.Installable = proptools.BoolPtr(false)
[all …]
Drobolectric.go335 module.AddProperties(&module.props)
348 props robolectricRuntimesProperties member
360 if !ctx.Config().UnbundledBuildUsePrebuiltSdks() && r.props.Lib != nil {
361 ctx.AddVariationDependencies(nil, libTag, String(r.props.Lib))
366 files := android.PathsForModuleSrc(ctx, r.props.Jars)
374 if !ctx.Config().UnbundledBuildUsePrebuiltSdks() && r.props.Lib != nil {
375 runtimeFromSourceModule := ctx.GetDirectDepWithTag(String(r.props.Lib), libTag)
/build/soong/android/soongconfig/
Dmodules.go125 props := &ModuleTypeProperties{}
127 _, errs = proptools.UnpackProperties(def.Properties, props)
132 if props.Name == "" {
136 if props.Config_namespace == "" {
140 if props.Module_type == "" {
149 affectableProperties: props.Properties,
150 ConfigNamespace: props.Config_namespace,
151 BaseModuleType: props.Module_type,
152 variableNames: props.Variables,
154 v.ModuleTypes[props.Name] = mt
[all …]
/build/soong/android/
Dhooks.go68 func (l *loadHookContext) AppendProperties(props ...interface{}) {
69 for _, p := range props {
82 func (l *loadHookContext) PrependProperties(props ...interface{}) {
83 for _, p := range props {
96 func (l *loadHookContext) CreateModule(factory ModuleFactory, props ...interface{}) Module {
98 module := l.bp.CreateModule(ModuleFactoryAdaptor(factory), append(inherited, props...)...).(Module)
Dpath_properties_test.go24 props struct { member
41 module.AddProperties(&module.props, &module.props2)
53 if p.props.Foo != "" {
55 if ctx.GetDirectDepWithTag(SrcIsModule(p.props.Foo), sourceOrOutputDepTag("")) == nil {
Dsoong_config_modules_test.go24 props soongConfigTestModuleProperties member
33 m.AddProperties(&m.props)
129 …if g, w := foo.props.Cflags, []string{"-DGENERIC", "-DSIZE=42", "-DSOC_A", "-DFEATURE1"}; !reflect…
Dneverallow.go391 props []ruleProperty member
437 r.props = append(r.props, ruleProperty{
482 for _, v := range r.props {
541 includeProps := hasAllProperties(properties, r.props)
576 func hasAnyProperty(properties []interface{}, props []ruleProperty) bool {
577 for _, v := range props {
585 func hasAllProperties(properties []interface{}, props []ruleProperty) bool {
586 for _, v := range props {
Dmodule_test.go147 props struct { member
156 ctx.AddDependency(ctx.Module(), nil, m.props.Deps...)
161 m.AddProperties(&m.props)
Dsoong_config_modules.go358 module, props := factory()
361 props = append(props, conditionalProps.Interface())
375 return module, props
Dpaths_test.go859 props struct { member
879 module.AddProperties(&module.props)
886 if p.props.Module_handles_missing_deps {
887 …srcs, p.missingDeps = PathsAndMissingDepsForModuleSrcExcludes(ctx, p.props.Srcs, p.props.Exclude_s…
889 srcs = PathsForModuleSrcExcludes(ctx, p.props.Srcs, p.props.Exclude_srcs)
897 if p.props.Src != nil {
898 src := PathForModuleSrc(ctx, *p.props.Src)
905 if !p.props.Module_handles_missing_deps {
917 props struct { member
928 module.AddProperties(&module.props)
[all …]
Dmutator.go287 func (t *topDownMutatorContext) AppendProperties(props ...interface{}) {
288 for _, p := range props {
301 func (t *topDownMutatorContext) PrependProperties(props ...interface{}) {
302 for _, p := range props {
330 func (t *topDownMutatorContext) CreateModule(factory ModuleFactory, props ...interface{}) Module {
332 module := t.bp.CreateModule(ModuleFactoryAdaptor(factory), append(inherited, props...)...).(Module)
Dmutator_test.go29 props struct { member
39 module.AddProperties(&module.props)
54 ctx.AddDependency(ctx.Module(), nil, m.props.Deps_missing_deps...)
58 ctx.AddMissingDependencies(ctx.Module().(*mutatorTestModule).props.Mutator_missing_deps)
Dpath_properties.go36 props := m.base().generalProperties
39 for _, ps := range props {
/build/blueprint/proptools/
Dunpack_test.go737 run := func(b *testing.B, props []interface{}, input string) {
759 for _, p := range props {
777 props := []interface{}{
791 run(b, props, bp)
795 props := []interface{}{
811 run(b, props, bp)
815 props := []interface{}{
843 run(b, props, bp)
847 props := []interface{}{
881 run(b, props, bp)
[all …]
/build/soong/python/
Ddefaults.go37 func DefaultsFactory(props ...interface{}) android.Module {
40 module.AddProperties(props...)
/build/soong/cmd/soong_build/
Dwritedocs.go64 props := make([]bpdoc.Property, 0)
66 props = append(props, propStruct.Properties...)
68 sort.Slice(props, func(i, j int) bool {
69 if rankI, ok := propertyRank[props[i].Name]; ok {
70 if rankJ, ok := propertyRank[props[j].Name]; ok {
76 if _, ok := propertyRank[props[j].Name]; ok {
79 return props[i].Name < props[j].Name
83 for _, prop := range props {

123